互动
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
1.1 KiB

5 years ago
  1. package models
  2. import "time"
  3. const ShakeRedEnvelopeUserTableName = TableNamePrefix + "shake_red_envelope_user"
  4. type ShakeRedEnvelopeUser struct {
  5. Id int64 `json:"id" xorm:"not null pk autoincr INT(11)"`
  6. RehearsalId int64 `json:"rehearsal_id" xorm:"not null default(0) comment('彩排id/0正式') INT(11)"`
  7. ShakeRedEnvelopeActivityId int64 `json:"shake_red_envelope_activity_id" xrom:"not null comment('摇红包活动id') INT(11)"`
  8. ShakeRedEnvelopeRuleId int64 `json:"shake_red_envelope_rule_id" xorm:"not null comment('轮次id') INT(11)"`
  9. UserId int64 `json:"user_id" xorm:"not null comment('用户id') INT(11)"`
  10. IsDelete int `json:"is_delete" xorm:"not null default(0) comment('软删除') TINYINT(1)"`
  11. CreatedAt time.Time `json:"created_at" xorm:"not null created comment('创建时间')"`
  12. UpdateAt time.Time `json:"update_at" xorm:"not null updated comment('更新时间')"`
  13. }
  14. func (t *ShakeRedEnvelopeUser) TableName() string {
  15. return ShakeRedEnvelopeUserTableName
  16. }