Document Store,文档存储,将大内容分发到专门的数据表里面
| 11 | |
| 12 | // Document Store,文档存储,将大内容分发到专门的数据表里面 |
| 13 | type 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 | |
| 20 | func NewDocumentStore() *DocumentStore { |
| 21 | return &DocumentStore{} |
nothing calls this directly
no outgoing calls
no test coverage detected