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-05-011028_create_user/down.sql
Normal file
2
migrations/2021-08-05-011028_create_user/down.sql
Normal file
|
@ -0,0 +1,2 @@
|
|||
-- This file should undo anything in `up.sql`
|
||||
DROP TABLE IF EXISTS users;
|
9
migrations/2021-08-05-011028_create_user/up.sql
Normal file
9
migrations/2021-08-05-011028_create_user/up.sql
Normal file
|
@ -0,0 +1,9 @@
|
|||
-- Your SQL goes here
|
||||
CREATE TABLE IF NOT EXISTS users (
|
||||
id UUID DEFAULT gen_random_uuid() PRIMARY KEY,
|
||||
discord_id VARCHAR(255) NOT NULL,
|
||||
created_at TIMESTAMP DEFAULT NOW() NOT NULL,
|
||||
updated_at TIMESTAMP DEFAULT NOW() NOT NULL
|
||||
);
|
||||
|
||||
SELECT diesel_manage_updated_at('users');
|
Loading…
Add table
Add a link
Reference in a new issue