mirror of
https://gitlab.com/mbugroup/lti-api.git
synced 2026-05-20 13:31:56 +00:00
c9633d1308
- Created database migration for production standards and related tables. - Implemented entities for ProductionStandard, ProductionStandardDetail, and StandardGrowthDetail. - Developed controller for handling production standard requests. - Added DTOs for data transfer between layers. - Implemented service layer for business logic related to production standards. - Created repository interfaces and implementations for data access. - Added validation for production standard requests. - Registered routes for production standards in the main application.
20 lines
759 B
Go
20 lines
759 B
Go
package entities
|
|
|
|
import (
|
|
"time"
|
|
)
|
|
|
|
type ProductionStandardDetail struct {
|
|
Id uint `gorm:"primaryKey;autoIncrement"`
|
|
ProductionStandardId uint `gorm:"not null"`
|
|
Week int `gorm:"not null"`
|
|
TargetHenDayProduction *float64 `gorm:"type:numeric(15,3)"`
|
|
TargetHenHouseProduction *float64 `gorm:"type:numeric(15,3)"`
|
|
TargetEggWeight *float64 `gorm:"type:numeric(15,3)"`
|
|
TargetEggMass *float64 `gorm:"type:numeric(15,3)"`
|
|
CreatedAt time.Time `gorm:"type:timestamptz;not null"`
|
|
UpdatedAt time.Time `gorm:"type:timestamptz;not null"`
|
|
|
|
ProductionStandard ProductionStandard `gorm:"foreignKey:ProductionStandardId;references:Id"`
|
|
}
|