split todo backend from frontend
This commit is contained in:
parent
9c68f9748e
commit
40ca80b654
75 changed files with 260 additions and 1051 deletions
2
migrations/2021-08-06-173217_create_block/down.sql
Normal file
2
migrations/2021-08-06-173217_create_block/down.sql
Normal file
|
@ -0,0 +1,2 @@
|
|||
-- This file should undo anything in `up.sql`
|
||||
DROP TABLE IF EXISTS blocks;
|
12
migrations/2021-08-06-173217_create_block/up.sql
Normal file
12
migrations/2021-08-06-173217_create_block/up.sql
Normal file
|
@ -0,0 +1,12 @@
|
|||
-- Your SQL goes here
|
||||
CREATE TABLE IF NOT EXISTS blocks (
|
||||
id UUID DEFAULT gen_random_uuid() PRIMARY KEY,
|
||||
user_id UUID NOT NULL,
|
||||
block_type VARCHAR(255) NOT NULL,
|
||||
props JSON NOT NULL,
|
||||
children TEXT[],
|
||||
created_at TIMESTAMP DEFAULT NOW() NOT NULL,
|
||||
updated_at TIMESTAMP DEFAULT NOW() NOT NULL
|
||||
);
|
||||
|
||||
SELECT diesel_manage_updated_at('blocks');
|
Loading…
Add table
Add a link
Reference in a new issue