Feat(BE-36,37,38,39): finish master data management api

This commit is contained in:
Hafizh A. Y
2025-10-03 21:04:21 +07:00
parent e8905be856
commit 2d49ffe4cd
103 changed files with 6974 additions and 117 deletions
+20
View File
@@ -0,0 +1,20 @@
package entities
import (
"time"
"gorm.io/gorm"
)
type FcrStandard struct {
Id uint `gorm:"primaryKey"`
FcrID uint `gorm:"not null;index"`
Weight float64 `gorm:"type:numeric(15,3);not null"`
FcrNumber float64 `gorm:"type:numeric(15,3);not null"`
Mortality float64 `gorm:"type:numeric(15,3);not null"`
CreatedAt time.Time `gorm:"autoCreateTime"`
UpdatedAt time.Time `gorm:"autoUpdateTime"`
DeletedAt gorm.DeletedAt `gorm:"index" json:"-"`
Fcr Fcr `gorm:"foreignKey:FcrID;references:Id"`
}