互动
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.

21 lines
917 B

5 years ago
  1. package models
  2. import "time"
  3. const RehearsalTableName = TableNamePrefix + "rehearsal"
  4. // 彩排信息
  5. type Rehearsal struct {
  6. Id int64 `json:"id" xorm:"pk autoincr"`
  7. CustomerId int64 `json:"customer_id" xorm:"not null default(0) comment('客户id')"`
  8. ActivityId int64 `json:"activity_id" xorm:"not null default(0) comment('主活动id')"`
  9. LimitNumber int64 `json:"limit_number" xorm:"not null default(10) comment('限定人数')"`
  10. Status int64 `json:"status" xorm:"not null default(0) comment('0未开始/1进行中/2已结束')"`
  11. IsDelete bool `json:"is_delete" xorm:"not null default(0) comment('删除')"`
  12. CreatedAt time.Time `json:"created_at" xorm:"not null created comment('创建时间')"`
  13. UpdatedAt time.Time `json:"updated_at" xorm:"not null updated comment('更新时间')"`
  14. }
  15. func (t *Rehearsal) TableName() string {
  16. return RehearsalTableName
  17. }