checkbox for status visibility in frontend

This commit is contained in:
gom-by
2025-02-03 16:11:10 +01:00
parent 97dc0b8022
commit 83e6d145b2
4 changed files with 47 additions and 36 deletions

View File

@@ -18,7 +18,7 @@ type Event struct {
bun.BaseModel `bun:"table:events"`
EventID uuid.UUID `bun:"event_id,type:uuid,pk,default:gen_random_uuid()" json:"id"`
Title string `bun:"title,notnull,default:'no title'" json:"title"`
Title string `bun:"title,notnull" json:"title"`
CreationDate time.Time `bun:"creation_date,notnull,default:current_timestamp" json:"creationDate"`
ScheduleStart time.Time `bun:"schedule_start,notnull" json:"start"`
ScheduleEnd time.Time `bun:"schedule_end,notnull" json:"end"`