Initial commmit
This commit is contained in:
commit
88383f90e5
1174 changed files with 227188 additions and 0 deletions
3
migrations/2022-11-15-2030_create-schedules/down.sql
Normal file
3
migrations/2022-11-15-2030_create-schedules/down.sql
Normal file
|
@ -0,0 +1,3 @@
|
|||
use movienight;
|
||||
|
||||
DROP TABLE schedules;
|
14
migrations/2022-11-15-2030_create-schedules/up.sql
Normal file
14
migrations/2022-11-15-2030_create-schedules/up.sql
Normal file
|
@ -0,0 +1,14 @@
|
|||
USE movienight;
|
||||
|
||||
CREATE TABLE IF NOT EXISTS schedules
|
||||
(
|
||||
id INTEGER AUTO_INCREMENT PRIMARY KEY,
|
||||
name VARCHAR(255),
|
||||
is_public BOOLEAN,
|
||||
slug VARCHAR(255) UNIQUE,
|
||||
owner INTEGER,
|
||||
created_at DATETIME NOT NULL,
|
||||
updated_at DATETIME NOT NULL,
|
||||
deleted_at DATETIME,
|
||||
FOREIGN KEY (owner) REFERENCES users (id)
|
||||
);
|
Loading…
Add table
Add a link
Reference in a new issue