perf: add pagination, filters, and fix Django sync pagination

This commit is contained in:
2026-04-30 15:34:25 -03:00
parent 19333cf713
commit badd54b4be
12 changed files with 413 additions and 176 deletions

View File

@@ -97,8 +97,8 @@ type Comanda struct {
DtOpen time.Time `json:"dt_open"`
DtClose *time.Time `json:"dt_close"`
// Nested items from Django (not stored in coma nda table)
Items []ProductComanda `gorm:"-" json:"items"`
// Nested items from Django (not stored in comanda table)
Items []ProductComanda `gorm:"foreignKey:ComandaID" json:"items"`
}
type ProductComanda struct {