package entities type ExpenseNonstock struct { Id uint64 `gorm:"primaryKey;autoIncrement"` ExpenseId *uint64 `gorm:""` ProjectFlockKandangId *uint64 `gorm:""` KandangId *uint64 `gorm:""` NonstockId *uint64 `gorm:""` Qty float64 `gorm:"type:numeric(15,3);not null"` UnitPrice float64 `gorm:"type:numeric(15,3);not null"` TotalPrice float64 `gorm:"type:numeric(15,3);not null"` Note string `gorm:"type:text"` // Relations Expense *Expense `gorm:"foreignKey:ExpenseId;references:Id"` ProjectFlockKandang *ProjectFlockKandang `gorm:"foreignKey:ProjectFlockKandangId;references:Id"` Kandang *Kandang `gorm:"foreignKey:KandangId;references:Id"` Nonstock *Nonstock `gorm:"foreignKey:NonstockId;references:Id"` Realization *ExpenseRealization `gorm:"foreignKey:ExpenseNonstockId;references:Id"` }