package entities import ( "time" ) type ProjectBudget struct { Id uint `gorm:"primaryKey"` ProjectFlockId uint `gorm:"not null"` NonstockId uint `gorm:"not null"` Qty float64 `gorm:"type:numeric(15,3);not null"` Price float64 `gorm:"type:numeric(15,3);not null"` CreatedAt time.Time `gorm:"autoCreateTime"` Nonstock *Nonstock `gorm:"foreignKey:NonstockId;references:Id"` ProjectFlock *ProjectFlock `gorm:"foreignKey:ProjectFlockId;references:Id"` }