mirror of
https://github.com/supabase/supabase.git
synced 2026-07-04 21:24:22 +08:00
17 lines
584 B
SQL
17 lines
584 B
SQL
CREATE TABLE lists (
|
|
uuid text,
|
|
id bigserial PRIMARY KEY,
|
|
inserted_at timestamp without time zone DEFAULT timezone('utc' :: text, now()) NOT NULL,
|
|
updated_at timestamp without time zone DEFAULT timezone('utc' :: text, now()) NOT NULL
|
|
);
|
|
|
|
CREATE TABLE tasks (
|
|
task_text text NOT NULL,
|
|
complete boolean DEFAULT false,
|
|
id bigserial PRIMARY KEY,
|
|
list_id bigint REFERENCES lists NOT NULL,
|
|
inserted_at timestamp without time zone DEFAULT timezone('utc' :: text, now()) NOT NULL,
|
|
updated_at timestamp without time zone DEFAULT timezone('utc' :: text, now()) NOT NULL
|
|
);
|
|
|