feat(backend/models): add aggregated fields to full file, tag, pool models

This commit is contained in:
Masahiko AMANO 2025-07-03 18:23:46 +03:00
parent 24075e5a76
commit 82bd446a85

View File

@ -51,6 +51,8 @@ type (
Creator User `json:"creator"`
Notes pgtype.Text `json:"notes"`
Metadata *json.RawMessage `json:"metadata"`
Tags []TagCore `json:"tags"`
Viewed int `json:"viewed"`
}
)
@ -70,6 +72,8 @@ type (
CreatedAt time.Time `json:"createdAt"`
Creator User `json:"creator"`
Notes pgtype.Text `json:"notes"`
UsedIncl int `json:"usedIncl"`
UsedExcl int `json:"usedExcl"`
}
)
@ -92,6 +96,7 @@ type (
CreatedAt time.Time `json:"createdAt"`
Creator User `json:"creator"`
Notes pgtype.Text `json:"notes"`
Viewed int `json:"viewed"`
}
)