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

Struct Document

models/document.go:34–50  ·  view source on GitHub ↗

Document struct.

Source from the content-addressed store, hash-verified

32
33// Document struct.
34type Document struct {
35 DocumentId int `orm:"pk;auto;column(document_id)" json:"doc_id"`
36 DocumentName string `orm:"column(document_name);size(500)" json:"doc_name"`
37 Identify string `orm:"column(identify);size(100);index;null;default(null)" json:"identify"` // Identify 文档唯一标识
38 BookId int `orm:"column(book_id);type(int);index" json:"book_id"`
39 ParentId int `orm:"column(parent_id);type(int);index;default(0)" json:"parent_id"`
40 OrderSort int `orm:"column(order_sort);default(0);type(int);index" json:"order_sort"`
41 Release string `orm:"column(release);type(text);null" json:"release"` // Release 发布后的Html格式内容.
42 CreateTime time.Time `orm:"column(create_time);type(datetime);auto_now_add" json:"create_time"`
43 MemberId int `orm:"column(member_id);type(int)" json:"member_id"`
44 ModifyTime time.Time `orm:"column(modify_time);type(datetime);default(null)" json:"modify_time"`
45 ModifyAt int `orm:"column(modify_at);type(int)" json:"-"`
46 Version int64 `orm:"type(bigint);column(version)" json:"version"`
47 AttachList []*Attachment `orm:"-" json:"attach"`
48 Vcnt int `orm:"column(vcnt);default(0)" json:"vcnt"` //书籍被浏览次数
49 Markdown string `orm:"-" json:"markdown"`
50}
51
52// 多字段唯一键
53//func (m *Document) TableUnique() [][]string {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected