fix: return empty array instead of null for list endpoints to prevent FE crashes
11c1b6f
Mhamdans17commited on
Optimize database query logs, GetProduct, GetMe and allow clearing ImageURL
9fc6937
Mhamdans17commited on
perf: completely avoid SELECT * in DeleteProduct, GetCategory, UpdateCategory, and DeleteCategory handlers by using direct database updates and specific select counts
8afed15
Mhamdans17commited on
perf: completely avoid SELECT * in CreateProduct and UpdateProduct by selecting Category directly instead of First product load
4ffd896
Mhamdans17commited on
feat: auto-generate unique SKU when blank during product creation to match Python FastAPI schema validation behavior
44f1ca9
Mhamdans17commited on
fix: normalize empty string SKU to nil/NULL to prevent unique key constraint violations on duplicate empty SKUs
59cc420
Mhamdans17commited on
perf: optimize ListProducts, ListCategories, and ListOrders GORM queries with select-specific-columns and custom nested preload column selects
d3525b4
Mhamdans17commited on
perf: optimize ListProducts using database-level pagination, search, and branch filtering