This commit is contained in:
suyl
2021-08-30 15:24:15 +08:00
parent c5eb30a2a9
commit 49dd477045
5 changed files with 111 additions and 1 deletions

View File

@@ -812,12 +812,25 @@ type BrandBill struct {
OrderID string `orm:"column(order_id)" json:"orderID"` //关联orderPay表的订单号
}
func (*BrandBill) TableUnique() [][]string {
func (*BrandBill) TableIndex() [][]string {
return [][]string{
[]string{"BrandID", "CreatedAt"},
}
}
type BrandUser struct {
ModelIDCULD
BrandID int `orm:"column(brand_id)" json:"brandID"` //品牌ID
UserID string `orm:"column(user_id) json:"userID"`
}
func (*BrandUser) TableIndex() [][]string {
return [][]string{
[]string{"BrandID", "UserID"},
}
}
type BrandStore struct {
ModelIDCULD