Initial commmit
This commit is contained in:
commit
88383f90e5
1174 changed files with 227188 additions and 0 deletions
3
migrations/2022-11-01-1922_create-users/down.sql
Normal file
3
migrations/2022-11-01-1922_create-users/down.sql
Normal file
|
@ -0,0 +1,3 @@
|
|||
use movienight;
|
||||
|
||||
DROP TABLE users;
|
12
migrations/2022-11-01-1922_create-users/up.sql
Normal file
12
migrations/2022-11-01-1922_create-users/up.sql
Normal file
|
@ -0,0 +1,12 @@
|
|||
USE movienight;
|
||||
|
||||
CREATE TABLE IF NOT EXISTS users
|
||||
(
|
||||
id INTEGER AUTO_INCREMENT PRIMARY KEY,
|
||||
name VARCHAR(255) NOT NULL,
|
||||
email VARCHAR(255) NOT NULL UNIQUE,
|
||||
password VARCHAR(255) NOT NULL,
|
||||
username VARCHAR(255) NOT NULL,
|
||||
token VARCHAR(255) UNIQUE,
|
||||
token_expiration DATETIME
|
||||
);
|
Loading…
Add table
Add a link
Reference in a new issue