29 lines
1.0 KiB
Go
29 lines
1.0 KiB
Go
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||
|
||
package model
|
||
|
||
import (
|
||
"time"
|
||
)
|
||
|
||
const TableNameAiChatHi = "ai_chat_his"
|
||
|
||
// AiChatHi mapped from table <ai_chat_his>
|
||
type AiChatHi struct {
|
||
HisID int64 `gorm:"column:his_id;primaryKey;autoIncrement:true" json:"his_id"`
|
||
SessionID string `gorm:"column:session_id;not null" json:"session_id"`
|
||
Ques string `gorm:"column:ques;not null" json:"ques"`
|
||
Ans string `gorm:"column:ans;not null" json:"ans"`
|
||
Files string `gorm:"column:files;not null" json:"files"`
|
||
Useful int32 `gorm:"column:useful;not null;comment:0不评价,1有用,其他为无用" json:"useful"` // 0不评价,1有用,其他为无用
|
||
CreateAt time.Time `gorm:"column:create_at;default:CURRENT_TIMESTAMP" json:"create_at"`
|
||
UpdatedAt time.Time `gorm:"column:updated_at;default:CURRENT_TIMESTAMP" json:"updated_at"`
|
||
}
|
||
|
||
// TableName AiChatHi's table name
|
||
func (*AiChatHi) TableName() string {
|
||
return TableNameAiChatHi
|
||
}
|