12345678910111213141516171819202122232425262728293031 |
- package model
- import (
- "time"
- "gorm.io/gorm"
- )
- const TableNameWpChatroomMember = "wp_chatroom_member"
- type WpChatroomMember 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"`
- Wxid string `gorm:"column:wxid;comment:微信id" json:"wxid"`
- Nickname string `gorm:"column:nickname;not null;comment:微信昵称 群备注名称" json:"nickname"`
- Avatar string `gorm:"column:avatar;not null;comment:头像" json:"avatar"`
- }
- func (*WpChatroomMember) TableName() string {
- return TableNameWpChatroomMember
- }
|