chore: setup some example schema to play around

This commit is contained in:
Peter 2025-01-21 08:53:10 +01:00
parent 39a262dd34
commit ef8f3471ab
Signed by: prskr
GPG key ID: F56BED6903BC5E37
7 changed files with 322 additions and 0 deletions
testdata/supabase/migrations

View file

@ -0,0 +1,21 @@
create table public.categories (
id bigint primary key generated always as identity,
name text not null unique
);
create table public.lists (
id bigint primary key generated always as identity,
user_id uuid not null references auth.users (id),
name text not null
);
create table public.tasks (
id bigint primary key generated always as identity,
list_id bigint not null references lists (id),
category_id bigint references categories (id),
name text not null,
description text,
due_date date,
priority int,
completed boolean default false
);