1 Star 0 Fork 0

jason-laf / mxshop

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
category_brand.go 457 Bytes
一键复制 编辑 原始数据 按行查看 历史
Jason 提交于 2023-09-03 23:32 . update
package model
type CategoryBrand struct {
BaseModel
Brand Brand
Category Category
BrandID int32 `gorm:"type:int; index:idx_category_brand,unique; not null; default:0; comment:'品牌ID,0表示未知'"` // 联合唯一索引
CategoryID int32 `gorm:"type:int; index:idx_category_brand,unique; not null; default:0; comment:'分类ID,0表示未知'"`
}
// 设置表名
func (CategoryBrand) TableName() string {
return "category_brands"
}
1
https://gitee.com/jason-laf/mxshop.git
git@gitee.com:jason-laf/mxshop.git
jason-laf
mxshop
mxshop
7f5221240606

搜索帮助