mirror of
https://gitlab.com/mbugroup/lti-api.git
synced 2026-05-20 13:31:56 +00:00
22 lines
952 B
Go
22 lines
952 B
Go
package entities
|
|
|
|
import (
|
|
"time"
|
|
)
|
|
|
|
type FarmDepreciationSnapshot struct {
|
|
Id uint `gorm:"primaryKey"`
|
|
ProjectFlockId uint `gorm:"not null;uniqueIndex:idx_farm_depreciation_snapshots_unique,priority:1"`
|
|
PeriodDate time.Time `gorm:"type:date;not null;uniqueIndex:idx_farm_depreciation_snapshots_unique,priority:2"`
|
|
DepreciationPercentEffective float64 `gorm:"type:numeric(15,6);not null;default:0"`
|
|
DepreciationValue float64 `gorm:"type:numeric(18,3);not null;default:0"`
|
|
PulletCostDayNTotal float64 `gorm:"type:numeric(18,3);not null;default:0"`
|
|
Components []byte `gorm:"type:jsonb;default:'{}'::jsonb"`
|
|
CreatedAt time.Time `gorm:"autoCreateTime"`
|
|
UpdatedAt time.Time `gorm:"autoUpdateTime"`
|
|
}
|
|
|
|
func (FarmDepreciationSnapshot) TableName() string {
|
|
return "farm_depreciation_snapshots"
|
|
}
|