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