FIX[BE]: fixing nonstock sometimes isn't appeared on get one

This commit is contained in:
aguhh18
2025-12-03 11:14:26 +07:00
parent e667d88218
commit 31699f4162
3 changed files with 26 additions and 8 deletions
+2 -2
View File
@@ -12,6 +12,6 @@ type ProjectBudget struct {
Price float64 `gorm:"type:numeric(15,3);not null"`
CreatedAt time.Time `gorm:"autoCreateTime"`
Nonstock *Nonstock `gorm:"foreignKey:Id;references:Id"`
ProjectFlock *ProjectFlock `gorm:"foreignKey:Id;references:Id"`
Nonstock *Nonstock `gorm:"foreignKey:NonstockId;references:Id"`
ProjectFlock *ProjectFlock `gorm:"foreignKey:ProjectFlockId;references:Id"`
}