30 lines
1.1 KiB
Go
30 lines
1.1 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 TableNameAiSession = "ai_session"
|
|
|
|
// AiSession mapped from table <ai_session>
|
|
type AiSession struct {
|
|
SessionID string `gorm:"column:session_id;primaryKey" json:"session_id"`
|
|
SysID int32 `gorm:"column:sys_id;not null" json:"sys_id"`
|
|
KnowlegeSessionID string `gorm:"column:knowlege_session_id;not null" json:"knowlege_session_id"`
|
|
Title string `gorm:"column:title;not null" json:"title"`
|
|
CreateAt *time.Time `gorm:"column:create_at;default:CURRENT_TIMESTAMP" json:"create_at"`
|
|
UpdateAt *time.Time `gorm:"column:update_at;default:CURRENT_TIMESTAMP" json:"update_at"`
|
|
Status int32 `gorm:"column:status;not null" json:"status"`
|
|
DeleteAt *time.Time `gorm:"column:delete_at" json:"delete_at"`
|
|
UserID string `gorm:"column:user_id;comment:用户id" json:"user_id"` // 用户id
|
|
}
|
|
|
|
// TableName AiSession's table name
|
|
func (*AiSession) TableName() string {
|
|
return TableNameAiSession
|
|
}
|