[FEAT/BE] Add restrict purchase chickin

This commit is contained in:
ragilap
2026-02-10 15:21:48 +07:00
parent b43979bbba
commit cad9328e5d
3 changed files with 160 additions and 0 deletions
+1
View File
@@ -21,6 +21,7 @@ type PurchaseItem struct {
Price float64 `gorm:"type:numeric(15,3);default:0"`
TotalPrice float64 `gorm:"type:numeric(15,3);default:0"`
ExpenseNonstockId *uint64
HasChickin bool `gorm:"-" json:"-"`
// Relations
ExpenseNonstock *ExpenseNonstock `gorm:"foreignKey:ExpenseNonstockId;references:Id"`