watch/migrations/20240914205329_add-viewing.sql

10 lines
357 B
MySQL
Raw Normal View History

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
);