calendrier/models/event.go
2024-02-25 20:30:36 +01:00

20 lines
433 B
Go

package models
import "github.com/uptrace/bun"
type Event struct {
bun.BaseModel `bun:"table:event"`
Id int `json:"id"`
Name string `json:"name"`
Site string `json:"site"`
IsPublic bool `json:"is_public"`
}
type Edition struct {
Id int `json:"id"`
DateFrom int `json:"from"`
DateTo int `json:"to"`
Name string `json:"name"`
location string `json:"location"`
}