Initial commmit
This commit is contained in:
commit
88383f90e5
1174 changed files with 227188 additions and 0 deletions
3
migrations/2022-11-23-1750_create-sessions/down.sql
Normal file
3
migrations/2022-11-23-1750_create-sessions/down.sql
Normal file
|
@ -0,0 +1,3 @@
|
|||
use movienight;
|
||||
|
||||
DROP TABLE showings;
|
10
migrations/2022-11-23-1750_create-sessions/up.sql
Normal file
10
migrations/2022-11-23-1750_create-sessions/up.sql
Normal file
|
@ -0,0 +1,10 @@
|
|||
USE movienight;
|
||||
|
||||
CREATE TABLE IF NOT EXISTS sessions
|
||||
(
|
||||
id INTEGER UNSIGNED AUTO_INCREMENT PRIMARY KEY,
|
||||
user_id INTEGER NOT NULL,
|
||||
token VARCHAR(255) NOT NULL UNIQUE,
|
||||
FOREIGN KEY (user_id) REFERENCES users (id),
|
||||
expiration DATETIME NOT NULL
|
||||
);
|
Loading…
Add table
Add a link
Reference in a new issue