Machines app
This commit is contained in:
10
machines/app/db/models.go
Normal file
10
machines/app/db/models.go
Normal file
@ -0,0 +1,10 @@
|
||||
package db
|
||||
|
||||
type Machine struct {
|
||||
Id int `json:"id"`
|
||||
Name string `json:"name"`
|
||||
}
|
||||
|
||||
func (m *Machine) TableName() string {
|
||||
return "machines"
|
||||
}
|
||||
Reference in New Issue
Block a user