mirror of
https://gitlab.com/mbugroup/lti-api.git
synced 2026-05-20 05:21:57 +00:00
19 lines
694 B
Go
19 lines
694 B
Go
package entities
|
|
|
|
import "time"
|
|
|
|
type FarmDepreciationManualInput struct {
|
|
Id uint `gorm:"primaryKey"`
|
|
ProjectFlockId uint `gorm:"not null;uniqueIndex:idx_farm_depreciation_manual_inputs_unique"`
|
|
TotalCost float64 `gorm:"type:numeric(18,3);not null;default:0"`
|
|
CutoverDate time.Time `gorm:"type:date;not null"`
|
|
Note *string `gorm:"type:text"`
|
|
CreatedAt time.Time `gorm:"autoCreateTime"`
|
|
UpdatedAt time.Time `gorm:"autoUpdateTime"`
|
|
ProjectFlock ProjectFlock `gorm:"foreignKey:ProjectFlockId;references:Id"`
|
|
}
|
|
|
|
func (FarmDepreciationManualInput) TableName() string {
|
|
return "farm_depreciation_manual_inputs"
|
|
}
|