mirror of
https://gitlab.com/mbugroup/lti-api.git
synced 2026-05-20 13:31:56 +00:00
18 lines
637 B
Go
18 lines
637 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"`
|
|
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"
|
|
}
|