mirror of
https://github.com/documize/community.git
synced 2025-07-24 23:59:47 +02:00
[WIP] new schema implementation
This commit is contained in:
parent
9c2594b1b4
commit
28342fcf5e
27 changed files with 1413 additions and 1158 deletions
|
@ -16,9 +16,9 @@ import "github.com/documize/community/model"
|
|||
// Category represents a category within a space that is persisted to the database.
|
||||
type Category struct {
|
||||
model.BaseEntity
|
||||
OrgID string `json:"orgId"`
|
||||
LabelID string `json:"folderId"`
|
||||
Category string `json:"category"`
|
||||
OrgID string `json:"orgId"`
|
||||
SpaceID string `json:"folderId"`
|
||||
Name string `json:"category"`
|
||||
}
|
||||
|
||||
// Member represents 0:M association between a document and category, persisted to the database.
|
||||
|
@ -26,7 +26,7 @@ type Member struct {
|
|||
model.BaseEntity
|
||||
OrgID string `json:"orgId"`
|
||||
CategoryID string `json:"categoryId"`
|
||||
LabelID string `json:"folderId"`
|
||||
SpaceID string `json:"folderId"`
|
||||
DocumentID string `json:"documentId"`
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue