xunji_contact.gen.go 1.7 KB

12345678910111213141516171819202122232425262728293031
  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 TableNameXunjiContact = "xunji_contact"
  10. // XunjiContact mapped from table <xunji_contact>
  11. type XunjiContact 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. Status int64 `gorm:"column:status;default:1;comment:Status 1: normal 2: ban | 状态 1 正常 2 禁用" json:"status"` // Status 1: normal 2: ban | 状态 1 正常 2 禁用
  16. DeletedAt gorm.DeletedAt `gorm:"column:deleted_at;comment:Delete Time | 删除日期" json:"deleted_at"` // Delete Time | 删除日期
  17. RobotID string `gorm:"column:robot_id;comment:机器人ID" json:"robot_id"` // 机器人ID
  18. AccountID string `gorm:"column:account_id;comment:客户ID" json:"account_id"` // 客户ID
  19. Nickname string `gorm:"column:nickname;comment:昵称" json:"nickname"` // 昵称
  20. Avatar string `gorm:"column:avatar;comment:头像" json:"avatar"` // 头像
  21. }
  22. // TableName XunjiContact's table name
  23. func (*XunjiContact) TableName() string {
  24. return TableNameXunjiContact
  25. }