书籍与分类关联表,一个书籍可以属于多个分类
| 8 | |
| 9 | //书籍与分类关联表,一个书籍可以属于多个分类 |
| 10 | type BookCategory struct { |
| 11 | Id int //自增主键 |
| 12 | BookId int //书籍id |
| 13 | CategoryId int //分类id |
| 14 | } |
| 15 | |
| 16 | // 多字段唯一键 |
| 17 | func (this *BookCategory) TableUnique() [][]string { |
nothing calls this directly
no outgoing calls
no test coverage detected