Add NameWithParent field for types.DbCategory

This commit is contained in:
qowevisa 2024-11-27 21:59:17 +02:00
parent fc2b066c12
commit 87c5676846

View File

@ -42,6 +42,8 @@ type DbCategory struct {
// Parent is used as a infinite sub-category structure
// Can be 0
ParentID uint `json:"parent_id" example:"0"`
// Purely UI things
NameWithParent string `json:"name_with_parent" example:"World -> Moldova"`
}
type DbDebt struct {