package model import ( "github.com/shopspring/decimal" ) type Park struct { CreatedAndModified `xorm:"extends"` Id string `xorm:"varchar(120) pk notnull" json:"id"` UserId string `xorm:"varchar(120) notnull" json:"userId"` Name string `xorm:"vachar(70) notnull" json:"name"` Abbr *string `xorm:"varchar(50)" json:"abbr"` Area decimal.NullDecimal `xorm:"numeric(14,2)" json:"area"` TenementQuantity decimal.NullDecimal `xorm:"numeric(8,0)" json:"tenementQuantity"` Capacity decimal.NullDecimal `xorm:"numeric(16,2)" json:"capacity"` Category int8 `xorm:"smallint notnull" json:"category"` Region *string `xorm:"varchar(10)" json:"region"` Address *string `xorm:"varchar(120)" json:"address"` Contact *string `xorm:"varchar(100)" json:"contact"` Phone *string `xorm:"varchar(50)" json:"phone"` Enabled bool `xorm:"bool notnull" json:"enabled"` } func (Park) TableName() string { return "park" }