// 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 const TableNameRedeemMallItem = "redeem_mall_item" // RedeemMallItem mapped from table type RedeemMallItem struct { ID int64 `gorm:"column:id;type:bigint;primaryKey" json:"id"` CreatedAt int64 `gorm:"column:created_at;type:bigint;not null" json:"created_at"` UpdatedAt int64 `gorm:"column:updated_at;type:bigint;not null" json:"updated_at"` IsDel int8 `gorm:"column:is_del;type:tinyint;not null;index:idx_mall_id_down_at_is_del,priority:3;comment:是否删除(0-否,1-是)" json:"is_del"` MallID int64 `gorm:"column:mall_id;type:bigint;not null;index:idx_mall_id_down_at_is_del,priority:1;comment:商城id(redeem_mall表)" json:"mall_id"` RewardID int64 `gorm:"column:reward_id;type:bigint;not null;comment:奖品id(reward表)" json:"reward_id"` CoinNum int32 `gorm:"column:coin_num;type:int;not null;comment:所需积分数" json:"coin_num"` Stock int64 `gorm:"column:stock;type:bigint;not null;comment:总库存" json:"stock"` UseStock int64 `gorm:"column:use_stock;type:bigint;not null;comment:已使用库存(下架时候结算,-1未结算)" json:"use_stock"` UpType int8 `gorm:"column:up_type;type:tinyint;not null;comment:上架类型(1-立即上架,2-指定时间)" json:"up_type"` UpCustom int64 `gorm:"column:up_custom;type:bigint;not null;comment:自定的上架时间" json:"up_custom"` UpAt int64 `gorm:"column:up_at;type:bigint;not null;comment:上架时间" json:"up_at"` UpFrom string `gorm:"column:up_from;type:varchar(32);not null;comment:上架来源" json:"up_from"` UpShow string `gorm:"column:up_show;type:varchar(255);not null;comment:指定上架展示配置" json:"up_show"` DownType int8 `gorm:"column:down_type;type:tinyint;not null;comment:下架类型(1-永久上架,2-指定时间下架)" json:"down_type"` DownCustom int64 `gorm:"column:down_custom;type:bigint;not null;comment:指定下架时间" json:"down_custom"` DownAt int64 `gorm:"column:down_at;type:bigint;not null;index:idx_mall_id_down_at_is_del,priority:2;comment:下架时间" json:"down_at"` DownFrom string `gorm:"column:down_from;type:varchar(32);not null;comment:下架来源" json:"down_from"` DownShow string `gorm:"column:down_show;type:varchar(255);not null;comment:指定下架展示配置" json:"down_show"` Sort int32 `gorm:"column:sort;type:int;not null;comment:排序" json:"sort"` } // TableName RedeemMallItem's table name func (*RedeemMallItem) TableName() string { return TableNameRedeemMallItem }