MCPcopy Create free account
hub / github.com/TruthHun/BookStack / BookCategory

Struct BookCategory

models/book_category.go:10–14  ·  view source on GitHub ↗

书籍与分类关联表,一个书籍可以属于多个分类

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected