calendrier/models/calendar.go

19 lines
385 B
Go
Raw Normal View History

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