// 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 TableNameGamePassPackages = "game_pass_packages" // GamePassPackages 次数卡套餐配置 type GamePassPackages 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:套餐名称,如:10次畅玩卡" json:"name"` // 套餐名称,如:10次畅玩卡 PassCount int32 `gorm:"column:pass_count;not null;comment:包含次数" json:"pass_count"` // 包含次数 Price int64 `gorm:"column:price;not null;comment:售价(分)" json:"price"` // 售价(分) OriginalPrice int64 `gorm:"column:original_price;comment:原价(分),用于展示划线价" json:"original_price"` // 原价(分),用于展示划线价 ActivityID int64 `gorm:"column:activity_id;comment:限定活动ID,NULL表示全局通用" json:"activity_id"` // 限定活动ID,NULL表示全局通用 ValidDays int32 `gorm:"column:valid_days;comment:有效期天数,NULL表示永久有效" json:"valid_days"` // 有效期天数,NULL表示永久有效 SortOrder int32 `gorm:"column:sort_order;not null;comment:排序权重" json:"sort_order"` // 排序权重 Status int32 `gorm:"column:status;not null;default:1;comment:状态: 1=上架 2=下架" json:"status"` // 状态: 1=上架 2=下架 DeletedAt gorm.DeletedAt `gorm:"column:deleted_at;comment:软删除时间" json:"deleted_at"` // 软删除时间 } // TableName GamePassPackages's table name func (*GamePassPackages) TableName() string { return TableNameGamePassPackages }