perf: add pagination, filters, and fix Django sync pagination
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user