123456789101112131415161718192021222324252627282930313233343536 |
- package model
- import (
- "time"
- "gorm.io/gorm"
- )
- const TableNameWxCardUser = "wx_card_user"
- type WxCardUser struct {
- ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
- CreatedAt time.Time `gorm:"column:created_at;not null;comment:Create Time | 创建日期" json:"created_at"`
- UpdatedAt time.Time `gorm:"column:updated_at;not null;comment:Update Time | 修改日期" json:"updated_at"`
- DeletedAt gorm.DeletedAt `gorm:"column:deleted_at;comment:Delete Time | 删除日期" json:"deleted_at"`
- Wxid string `gorm:"column:wxid;not null;comment:微信id" json:"wxid"`
- Account string `gorm:"column:account;comment:微信账号" json:"account"`
- Nickname string `gorm:"column:nickname;comment:微信昵称" json:"nickname"`
- Remark string `gorm:"column:remark;comment:备注名" json:"remark"`
- Avatar string `gorm:"column:avatar;comment:头像" json:"avatar"`
- Phone string `gorm:"column:phone;comment:手机号" json:"phone"`
- OpenID string `gorm:"column:open_id;comment:OpenId" json:"open_id"`
- UnionID string `gorm:"column:union_id;comment:UnionId" json:"union_id"`
- SessionKey string `gorm:"column:session_key;comment:SessionKey" json:"session_key"`
- IsVip int64 `gorm:"column:is_vip;comment:是否VIP:0-否 1-是" json:"is_vip"`
- }
- func (*WxCardUser) TableName() string {
- return TableNameWxCardUser
- }
|