package entities import "time" type HouseDepreciationStandard struct { Id uint `gorm:"primaryKey"` HouseType string `gorm:"type:house_type_enum;not null;uniqueIndex:house_depreciation_standards_house_type_day_unique,priority:1"` DayNumber int `gorm:"column:day;not null;uniqueIndex:house_depreciation_standards_house_type_day_unique,priority:2"` DepreciationPercent float64 `gorm:"type:numeric(15,6);not null"` CreatedAt time.Time `gorm:"autoCreateTime"` UpdatedAt time.Time `gorm:"autoUpdateTime"` } func (HouseDepreciationStandard) TableName() string { return "house_depreciation_standards" }