Feat[BE]: create project budget repo, entity, and migration

This commit is contained in:
aguhh18
2025-11-27 14:28:48 +07:00
parent 886446b55f
commit f3b14cb8f2
4 changed files with 71 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
package entities
import (
"time"
)
type ProjectBudget struct {
Id uint `gorm:"primaryKey"`
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:Id;references:Id"`
ProjectFlock *ProjectFlock `gorm:"foreignKey:Id;references:Id"`
}