Added location to database, model, and event templates

This commit is contained in:
Alexis
2024-06-06 22:43:31 +02:00
parent c6009a4bca
commit e63422f091
11 changed files with 98 additions and 30 deletions

View File

@@ -63,7 +63,7 @@ create table public.calendar_months (
);
comment on table public.calendar_months is 'A calendar month.';
-- Event categories
-- Calendar Event categories
create table public.calendar_event_categories (
id bigint generated by default as identity primary key,
name text not null,
@@ -71,11 +71,12 @@ create table public.calendar_event_categories (
);
comment on table public.calendar_event_categories is 'Categories describing events.';
-- Events
-- Calendar Events
create table public.calendar_events (
id bigint generated by default as identity primary key,
title text not null,
description text,
location text,
start_date json not null,
end_date json,
category bigint references public.calendar_event_categories on delete cascade,