20 lines
433 B
Go
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"`
|
|
}
|