datamodel done without validators
This commit is contained in:
12
wagfarm-api/assets/machine/model.go
Normal file
12
wagfarm-api/assets/machine/model.go
Normal file
@@ -0,0 +1,12 @@
|
||||
package machine
|
||||
|
||||
import (
|
||||
"wagfarm-api/assets/base"
|
||||
"wagfarm-api/database"
|
||||
)
|
||||
|
||||
type Machine struct {
|
||||
base.Resource
|
||||
}
|
||||
|
||||
func RegisterModels() { database.RegisterModel(&Machine{}) }
|
||||
Reference in New Issue
Block a user