mirror of
https://github.com/documize/community.git
synced 2025-07-24 15:49:44 +02:00
Specify default categories for new documents
Closes #339 All new documents will be assigned default categories. Documents created from templates that already have categories take precedence.
This commit is contained in:
parent
5c1ad25dc9
commit
f117e91bcb
18 changed files with 1284 additions and 1134 deletions
|
@ -16,9 +16,10 @@ 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"`
|
||||
SpaceID string `json:"spaceId"`
|
||||
Name string `json:"category"`
|
||||
OrgID string `json:"orgId"`
|
||||
SpaceID string `json:"spaceId"`
|
||||
Name string `json:"category"`
|
||||
IsDefault bool `json:"isDefault"`
|
||||
}
|
||||
|
||||
// Member represents 0:M association between a document and category, persisted to the database.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue