17 lines
365 B
Go
17 lines
365 B
Go
package land
|
|
|
|
import (
|
|
"wagfarm-api/assets/base"
|
|
"wagfarm-api/database"
|
|
)
|
|
|
|
type Land struct {
|
|
base.Asset
|
|
FID string `gorm:"not null"`
|
|
IsWaterProtectionArea bool `gorm:"not null"`
|
|
IsRedArea bool `gorm:"not null"`
|
|
Area float64 `gorm:"not null"`
|
|
}
|
|
|
|
func RegisterModels() { database.RegisterModel(&Land{}) }
|