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

Struct DocumentStore

models/document_store.go:13–18  ·  view source on GitHub ↗

Document Store,文档存储,将大内容分发到专门的数据表里面

Source from the content-addressed store, hash-verified

11
12// Document Store,文档存储,将大内容分发到专门的数据表里面
13type DocumentStore struct {
14 DocumentId int `orm:"pk;auto;column(document_id)"` //文档id,对应Document中的document_id
15 Markdown string `orm:"type(text);"` //markdown内容
16 Content string `orm:"type(text);"` //文本内容
17 UpdatedAt time.Time `orm:"null"`
18}
19
20func NewDocumentStore() *DocumentStore {
21 return &DocumentStore{}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected