meetandeat/models/job.go

16 lines
246 B
Go

package models
import (
"dev.sum7.eu/genofire/golang-lib/database"
)
type Job struct {
ID int `json:"id" gorm:"PRIMARY_KEY"`
Name string `json:"name"`
}
// Function to initialize the database
func init() {
database.AddModel(&Job{})
}