struct
This commit is contained in:
11
models/training.go
Normal file
11
models/training.go
Normal file
@ -0,0 +1,11 @@
|
||||
package models
|
||||
|
||||
import "gorm.io/gorm"
|
||||
|
||||
type TrainingData struct {
|
||||
gorm.Model
|
||||
Features string `gorm:"type:JSONB; not null" json:"features"`
|
||||
Label string `gorm:"type:varchar(255)" json:"label"`
|
||||
Probability float64 `gorm:"type:decimal(5,4)" json:"probability"`
|
||||
SessionID string `gorm:"index" json:"session_id"`
|
||||
}
|
||||
Reference in New Issue
Block a user