mirror of
https://gitlab.com/mbugroup/lti-api.git
synced 2026-05-26 00:05:44 +00:00
init depresiasi
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
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"
|
||||
}
|
||||
Reference in New Issue
Block a user