This commit is contained in:
2025-03-19 14:55:12 +08:00
commit d746bc3935
11 changed files with 854 additions and 0 deletions

11
models/training.go Normal file
View 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"`
}