meetandeat/models/person.go

16 lines
252 B
Go
Raw Permalink Normal View History

2019-03-22 16:35:16 +01:00
package models
import (
"dev.sum7.eu/genofire/golang-lib/database"
)
type Person struct {
ID int `json:"id" gorm:"PRIMARY_KEY"`
Name string `json:"name"`
}
// Function to initialize the database
func init() {
database.AddModel(&Person{})
}