1
0
Fork 0
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:
HarveyKandola 2019-11-15 14:51:52 +00:00
parent 5c1ad25dc9
commit f117e91bcb
18 changed files with 1284 additions and 1134 deletions

View file

@ -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.