calendrier/models/calendar.go

19 lines
385 B
Go
Raw Permalink Normal View History

2024-02-17 12:25:03 +00:00
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"`
}
*/