datamodel done without validators
This commit is contained in:
16
wagfarm-api/assets/land/model.go
Normal file
16
wagfarm-api/assets/land/model.go
Normal file
@@ -0,0 +1,16 @@
|
||||
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{}) }
|
||||
Reference in New Issue
Block a user