// 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 TableNameRedeemMallRelate = "redeem_mall_relate" // RedeemMallRelate mapped from table type RedeemMallRelate struct { ID int64 `gorm:"column:id;type:bigint;primaryKey;autoIncrement:true" 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"` MallID int64 `gorm:"column:mall_id;type:bigint;not null;uniqueIndex:uniq_mall_id_relate_id_relate_table,priority:1;index:idx_mall_id_cancel_time,priority:1;comment:商城id(redeem_mall表)" json:"mall_id"` Source int8 `gorm:"column:source;type:tinyint;not null;comment:来源(1-任务中心,2-活动)" json:"source"` RelateID int64 `gorm:"column:relate_id;type:bigint;not null;uniqueIndex:uniq_mall_id_relate_id_relate_table,priority:2;index:idx_relate_id_relate_table,priority:1;comment:关联id" json:"relate_id"` RelateTable string `gorm:"column:relate_table;type:varchar(64);not null;uniqueIndex:uniq_mall_id_relate_id_relate_table,priority:3;index:idx_relate_id_relate_table,priority:2;comment:关联表名" json:"relate_table"` CancelTime int64 `gorm:"column:cancel_time;type:bigint;not null;uniqueIndex:uniq_mall_id_relate_id_relate_table,priority:4;index:idx_mall_id_cancel_time,priority:2;comment:取消关联时间" json:"cancel_time"` } // TableName RedeemMallRelate's table name func (*RedeemMallRelate) TableName() string { return TableNameRedeemMallRelate }