π The open-source, offline-first Notion, Obsidian & Confluence alternative. Advanced Markdown, multi-tenant teams, OIDC/SSO, and local S3 backups. Deploy in one command.
Vue dockergolangkanbanknowledge-baseknowledge-managementmarkdownnote-takingnotesnotes-appnotionnuxtnuxtjsoffline-firstoidcpwaselfhostedssovuevuejswiki
Category model
Smaug#673915d74f9ae1ae
diff --git a/backend/models/category.model.go b/backend/models/category.model.gonew file mode 100644index 00000000..fb856f23--- /dev/null+++ b/backend/models/category.model.go@@ -0,0 +1,12 @@+package models++type Category struct {+ Id int64 `json:"id" form:"id" binding:"omitempty"`+ Name string `json:"name" form:"name" binding:"required,max=50"`+ Icon string `json:"icon" form:"icon" binding:"omitempty,max=30000"`+ Order int `json:"order" form:"order" binding:"omitempty"`+ Role int `json:"role" form:"role" binding:"omitempty"` // 0 category; 1 workspace;+ WorkspaceId *int64 `json:"workspace_id" form:"workspace_id" binding:"omitempty"`+ ParentId *int64 `json:"parent_id" form:"parent_id" binding:"omitempty"`+ AuthorId int64 `json:"author_id" form:"author_id" binding:"omitempty"`+}