supabase-operator/testdata/supabase/migrations/20250120172432_initial.sql
Peter Kurfer ef8f3471ab
Some checks failed
Lint / Run on Ubuntu (push) Failing after 3m14s
E2E Tests / Run on Ubuntu (push) Failing after 24s
Tests / Run on Ubuntu (push) Failing after 2m42s
release / release (push) Successful in 7m58s
chore: setup some example schema to play around
2025-01-21 08:53:10 +01:00

21 lines
570 B
SQL

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