chore: setup some example schema to play around
This commit is contained in:
parent
39a262dd34
commit
ef8f3471ab
7 changed files with 322 additions and 0 deletions
testdata/supabase/migrations
21
testdata/supabase/migrations/20250120172432_initial.sql
vendored
Normal file
21
testdata/supabase/migrations/20250120172432_initial.sql
vendored
Normal 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
|
||||
);
|
Loading…
Add table
Add a link
Reference in a new issue