parent
3fb493f400
commit
1ce55e4091
2016 changed files with 23595 additions and 15662 deletions
13
supabase/migrations/20231124_create_todos.sql
Normal file
13
supabase/migrations/20231124_create_todos.sql
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
CREATE TABLE IF NOT EXISTS todos (
|
||||
id BIGSERIAL PRIMARY KEY,
|
||||
title TEXT NOT NULL,
|
||||
is_complete BOOLEAN NOT NULL DEFAULT FALSE,
|
||||
created_at TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
updated_at TIMESTAMP WITH TIME ZONE
|
||||
);
|
||||
|
||||
-- Insert some sample data
|
||||
INSERT INTO todos (title) VALUES
|
||||
('Learn Next.js'),
|
||||
('Build a Supabase project'),
|
||||
('Deploy to production');
|
||||
Loading…
Add table
Add a link
Reference in a new issue