// Code generated by gorm.io/gen. DO NOT EDIT. // Code generated by gorm.io/gen. DO NOT EDIT. // Code generated by gorm.io/gen. DO NOT EDIT. package model import ( "time" "gorm.io/gorm" ) const TableNameActivities = "activities" // Activities 活动 type Activities struct { ID int64 `gorm:"column:id;primaryKey;autoIncrement:true;comment:主键ID" json:"id"` // 主键ID CreatedAt time.Time `gorm:"column:created_at;not null;default:CURRENT_TIMESTAMP(3);comment:创建时间" json:"created_at"` // 创建时间 UpdatedAt time.Time `gorm:"column:updated_at;not null;default:CURRENT_TIMESTAMP(3);comment:更新时间" json:"updated_at"` // 更新时间 Name string `gorm:"column:name;not null;comment:活动名称" json:"name"` // 活动名称 Banner string `gorm:"column:banner;comment:活动横幅/海报URL" json:"banner"` // 活动横幅/海报URL ActivityCategoryID int64 `gorm:"column:activity_category_id;comment:活动所属分类ID(activity_categories.id,可空)" json:"activity_category_id"` // 活动所属分类ID(activity_categories.id,可空) Status int32 `gorm:"column:status;not null;default:1;comment:状态:1进行中 2下线" json:"status"` // 状态:1进行中 2下线 PriceDraw int64 `gorm:"column:price_draw;comment:活动门票价格" json:"price_draw"` // 活动门票价格 IsBoss int32 `gorm:"column:is_boss;comment:Boss: 1 是 0 不是" json:"is_boss"` // Boss: 1 是 0 不是 AllowItemCards bool `gorm:"column:allow_item_cards;not null;default:1;comment:是否允许使用道具卡" json:"allow_item_cards"` // 是否允许使用道具卡 AllowCoupons bool `gorm:"column:allow_coupons;not null;default:1;comment:是否允许使用优惠券" json:"allow_coupons"` // 是否允许使用优惠券 StartTime time.Time `gorm:"column:start_time;comment:开始时间" json:"start_time"` // 开始时间 EndTime time.Time `gorm:"column:end_time;comment:结束时间" json:"end_time"` // 结束时间 DrawMode string `gorm:"column:draw_mode;not null" json:"draw_mode"` PlayType string `gorm:"column:play_type;not null" json:"play_type"` MinParticipants int64 `gorm:"column:min_participants;not null" json:"min_participants"` IntervalMinutes int64 `gorm:"column:interval_minutes;not null" json:"interval_minutes"` ScheduledTime time.Time `gorm:"column:scheduled_time" json:"scheduled_time"` LastSettledAt time.Time `gorm:"column:last_settled_at" json:"last_settled_at"` RefundCouponID int64 `gorm:"column:refund_coupon_id;not null" json:"refund_coupon_id"` DeletedAt gorm.DeletedAt `gorm:"column:deleted_at" json:"deleted_at"` Image string `gorm:"column:image;comment:活动图片地址" json:"image"` // 活动图片地址 CommitmentAlgo string `gorm:"column:commitment_algo;default:commit-v1" json:"commitment_algo"` CommitmentSeedMaster []byte `gorm:"column:commitment_seed_master" json:"commitment_seed_master"` CommitmentSeedHash []byte `gorm:"column:commitment_seed_hash" json:"commitment_seed_hash"` CommitmentStateVersion int32 `gorm:"column:commitment_state_version" json:"commitment_state_version"` CommitmentItemsRoot []byte `gorm:"column:commitment_items_root" json:"commitment_items_root"` GameplayIntro string `gorm:"column:gameplay_intro;comment:玩法介绍" json:"gameplay_intro"` // 玩法介绍 } // TableName Activities's table name func (*Activities) TableName() string { return TableNameActivities }