mirror of
https://github.com/yangjian102621/geekai.git
synced 2026-04-29 06:24:24 +08:00
重命名数据表
This commit is contained in:
16
api/store/model/moderation.go
Normal file
16
api/store/model/moderation.go
Normal file
@@ -0,0 +1,16 @@
|
||||
package model
|
||||
|
||||
import "time"
|
||||
|
||||
type Moderation struct {
|
||||
Id uint `gorm:"column:id;primaryKey;autoIncrement" json:"id"`
|
||||
UserId uint `gorm:"column:user_id;type:int(11);not null;comment:用户ID" json:"user_id"`
|
||||
Input string `gorm:"column:prompt;type:text;not null;comment:用户输入" json:"input"`
|
||||
Output string `gorm:"column:output;type:text;not null;comment:AI 输出" json:"output"`
|
||||
Result string `gorm:"column:result;type:text;not null;comment:鉴别结果" json:"result"`
|
||||
CreatedAt time.Time `gorm:"column:created_at;type:datetime;not null" json:"created_at"`
|
||||
}
|
||||
|
||||
func (m *Moderation) TableName() string {
|
||||
return "geekai_moderation"
|
||||
}
|
||||
Reference in New Issue
Block a user