12345678910111213141516171819202122232425262728293031323334 |
- package model
- import (
- "time"
- "gorm.io/gorm"
- )
- const TableNameWpChatroom = "wp_chatroom"
- type WpChatroom struct {
- ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
- CreatedAt time.Time `gorm:"column:created_at;not null;default:CURRENT_TIMESTAMP;comment:Create Time | 创建日期" json:"created_at"`
- UpdatedAt time.Time `gorm:"column:updated_at;not null;default:CURRENT_TIMESTAMP;comment:Update Time | 修改日期" json:"updated_at"`
- Status int64 `gorm:"column:status;default:1;comment:Status 1: normal 2: ban | 状态 1 正常 2 禁用" json:"status"`
- DeletedAt gorm.DeletedAt `gorm:"column:deleted_at;comment:Delete Time | 删除日期" json:"deleted_at"`
- WxWxid string `gorm:"column:wx_wxid;comment:属主微信id" json:"wx_wxid"`
- ChatroomID string `gorm:"column:chatroom_id;not null;comment:微信id 公众号微信ID" json:"chatroom_id"`
- Nickname string `gorm:"column:nickname;not null;comment:微信昵称 群备注名称" json:"nickname"`
- Owner string `gorm:"column:owner;comment:群主微信id" json:"owner"`
- Avatar string `gorm:"column:avatar;not null;comment:头像" json:"avatar"`
- MemberList string `gorm:"column:member_list" json:"member_list"`
- ShowNameList string `gorm:"column:show_name_list" json:"show_name_list"`
- }
- func (*WpChatroom) TableName() string {
- return TableNameWpChatroom
- }
|