watch/migrations/20240914205329_add-viewing.sql
Thomas Gideon b2e55008dd Add ability to watch an episode
- Migration for new backing table.
- CRUD server functions, new components to display and interact.
2024-09-14 18:33:50 -04:00

9 lines
357 B
SQL

create table if not exists viewing (
id uuid default gen_random_uuid() not null primary key,
series_id uuid not null references series(id),
created timestamptz default now() not null,
updated timestamptz default now() not null,
season smallint not null check (season > 0),
episode smallint not null check (episode > 0),
"comment" text null
);