feat: initial register functionality
This commit is contained in:
parent
f8ce315d8e
commit
e834b3308a
15 changed files with 183 additions and 1 deletions
2
migrations/2023-05-15-142901_create_users/down.sql
Normal file
2
migrations/2023-05-15-142901_create_users/down.sql
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
-- This file should undo anything in `up.sql`
|
||||
DROP TABLE users;
|
||||
7
migrations/2023-05-15-142901_create_users/up.sql
Normal file
7
migrations/2023-05-15-142901_create_users/up.sql
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
-- Your SQL goes here
|
||||
CREATE TABLE users (
|
||||
discord_id UNSIGNED BIG INT PRIMARY KEY NOT NULL,
|
||||
email TEXT UNIQUE NOT NULL,
|
||||
first_name TEXT NOT NULL,
|
||||
last_name TEXT NOT NULL
|
||||
);
|
||||
Loading…
Add table
Add a link
Reference in a new issue