initial commit
This commit is contained in:
commit
8a19a733d6
35 changed files with 2489 additions and 0 deletions
2
migrations/2023-12-29-191547_users/down.sql
Normal file
2
migrations/2023-12-29-191547_users/down.sql
Normal file
|
@ -0,0 +1,2 @@
|
|||
-- This file should undo anything in `up.sql`
|
||||
DROP TABLE users;
|
13
migrations/2023-12-29-191547_users/up.sql
Normal file
13
migrations/2023-12-29-191547_users/up.sql
Normal file
|
@ -0,0 +1,13 @@
|
|||
-- Your SQL goes here
|
||||
CREATE TABLE IF NOT EXISTS users
|
||||
(
|
||||
id VARCHAR(24) DEFAULT nanoid(24),
|
||||
name VARCHAR(255) NOT NULL,
|
||||
email VARCHAR(255) NOT NULL,
|
||||
password TEXT NOT NULL,
|
||||
|
||||
updated_at TIMESTAMP,
|
||||
created_at TIMESTAMP DEFAULT now() NOT NULL,
|
||||
|
||||
PRIMARY KEY (id)
|
||||
);
|
Loading…
Add table
Add a link
Reference in a new issue