wp_chatroom.gen.go 2.2 KB

12345678910111213141516171819202122232425262728293031323334
  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 TableNameWpChatroom = "wp_chatroom"
  10. // WpChatroom mapped from table <wp_chatroom>
  11. type WpChatroom struct {
  12. ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
  13. CreatedAt time.Time `gorm:"column:created_at;not null;default:CURRENT_TIMESTAMP;comment:Create Time | 创建日期" json:"created_at"` // Create Time | 创建日期
  14. UpdatedAt time.Time `gorm:"column:updated_at;not null;default:CURRENT_TIMESTAMP;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. WxWxid string `gorm:"column:wx_wxid;comment:属主微信id" json:"wx_wxid"` // 属主微信id
  18. ChatroomID string `gorm:"column:chatroom_id;not null;comment:微信id 公众号微信ID" json:"chatroom_id"` // 微信id 公众号微信ID
  19. Nickname string `gorm:"column:nickname;not null;comment:微信昵称 群备注名称" json:"nickname"` // 微信昵称 群备注名称
  20. Owner string `gorm:"column:owner;comment:群主微信id" json:"owner"` // 群主微信id
  21. Avatar string `gorm:"column:avatar;not null;comment:头像" json:"avatar"` // 头像
  22. MemberList string `gorm:"column:member_list" json:"member_list"`
  23. ShowNameList string `gorm:"column:show_name_list" json:"show_name_list"`
  24. }
  25. // TableName WpChatroom's table name
  26. func (*WpChatroom) TableName() string {
  27. return TableNameWpChatroom
  28. }