mirror of
https://gitlab.com/mbugroup/lti-api.git
synced 2026-05-20 13:31:56 +00:00
18 lines
748 B
Go
18 lines
748 B
Go
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"`
|
|
StandardWeek int `gorm:"column:standard_week;not null"`
|
|
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"
|
|
}
|