calendrier/models/calendar.go
2024-02-17 13:25:03 +01:00

19 lines
385 B
Go

package models
import "github.com/uptrace/bun"
type Calendar struct {
bun.BaseModel `bun:"table:calendar"`
Id int `json:"id" bun:"id,pk,autoincrement"`
Name string `json:"name"`
Url string `json:"url"`
IsPublic bool `json:"is_public"`
}
/*
type CalendarUrl struct {
Url string `json:"url"`
CanWrite bool `json:"can_write"`
}
*/