package daytask // DtUserSocial 用户社交账号绑定表 type DtUserSocial struct { Id int64 `json:"id" gorm:"column:id;type:bigint;primarykey;comment:ID"` UserId int64 `json:"userId" gorm:"column:user_id;type:bigint;not null;uniqueIndex:uk_user_platform,priority:1;comment:用户ID"` Platform string `json:"platform" gorm:"column:platform;type:varchar(32);not null;uniqueIndex:uk_user_platform,priority:2;index:idx_platform;comment:平台: tiktok/telegram/zalo"` Account string `json:"account" gorm:"column:account;type:varchar(128);not null;comment:账号"` Nickname string `json:"nickname" gorm:"column:nickname;type:varchar(64);comment:昵称"` Avatar string `json:"avatar" gorm:"column:avatar;type:varchar(255);comment:头像"` Extra string `json:"extra" gorm:"column:extra;type:json;comment:扩展信息"` Status int8 `json:"status" gorm:"column:status;type:tinyint;default:1;comment:状态: 0=未验证 1=已验证"` CreatedAt int64 `json:"createdAt" gorm:"column:created_at;type:bigint;autoCreateTime;comment:创建时间"` UpdatedAt int64 `json:"updatedAt" gorm:"column:updated_at;type:bigint;autoUpdateTime;comment:更新时间"` } func (*DtUserSocial) TableName() string { return "dt_user_social" } func NewDtUserSocial() *DtUserSocial { return &DtUserSocial{} } // DtUserPayment 用户收款方式表 type DtUserPayment struct { Id int64 `json:"id" gorm:"column:id;type:bigint;primarykey;comment:ID"` UserId int64 `json:"userId" gorm:"column:user_id;type:bigint;not null;index:idx_user_id;comment:用户ID"` Type string `json:"type" gorm:"column:type;type:varchar(32);not null;index:idx_type;comment:类型: usdt/bank/momo/zalopay"` Name string `json:"name" gorm:"column:name;type:varchar(64);comment:姓名"` Account string `json:"account" gorm:"column:account;type:varchar(128);not null;comment:账号/地址"` BankName string `json:"bankName" gorm:"column:bank_name;type:varchar(64);comment:银行名称"` BankBranch string `json:"bankBranch" gorm:"column:bank_branch;type:varchar(128);comment:支行"` Qrcode string `json:"qrcode" gorm:"column:qrcode;type:varchar(255);comment:收款二维码"` IsDefault int8 `json:"isDefault" gorm:"column:is_default;type:tinyint;default:0;comment:是否默认: 0=否 1=是"` Status int8 `json:"status" gorm:"column:status;type:tinyint;default:1;comment:状态: 0=禁用 1=启用"` CreatedAt int64 `json:"createdAt" gorm:"column:created_at;type:bigint;autoCreateTime;comment:创建时间"` UpdatedAt int64 `json:"updatedAt" gorm:"column:updated_at;type:bigint;autoUpdateTime;comment:更新时间"` } func (*DtUserPayment) TableName() string { return "dt_user_payment" } func NewDtUserPayment() *DtUserPayment { return &DtUserPayment{} }