chat_session.gen.go 1.4 KB

123456789101112131415161718192021222324252627282930
  1. // Code generated by gorm.io/gen. DO NOT EDIT.
  2. // Code generated by gorm.io/gen. DO NOT EDIT.
  3. // Code generated by gorm.io/gen. DO NOT EDIT.
  4. package model
  5. import (
  6. "time"
  7. "gorm.io/gorm"
  8. )
  9. const TableNameChatSession = "chat_session"
  10. // ChatSession 聊天会话表
  11. type ChatSession struct {
  12. ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
  13. CreatedAt time.Time `gorm:"column:created_at;not null;comment:Create Time | 创建日期" json:"created_at"` // Create Time | 创建日期
  14. UpdatedAt time.Time `gorm:"column:updated_at;not null;comment:Update Time | 修改日期" json:"updated_at"` // Update Time | 修改日期
  15. DeletedAt gorm.DeletedAt `gorm:"column:deleted_at;comment:Delete Time | 删除日期" json:"deleted_at"` // Delete Time | 删除日期
  16. Name string `gorm:"column:name;comment:会话名称" json:"name"` // 会话名称
  17. UserID int64 `gorm:"column:user_id;not null;comment:用户ID" json:"user_id"` // 用户ID
  18. BotID int64 `gorm:"column:bot_id;comment:聊天 ID" json:"bot_id"` // 聊天 ID
  19. BotType int64 `gorm:"column:bot_type;comment:类型:1-微信 2-小程序 3-智能体" json:"bot_type"` // 类型:1-微信 2-小程序 3-智能体
  20. }
  21. // TableName ChatSession's table name
  22. func (*ChatSession) TableName() string {
  23. return TableNameChatSession
  24. }