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"
}
