RestApiv2/migrates/20221213130458_films.up.sql

34 lines
806 B
MySQL
Raw Normal View History

2022-12-13 16:45:22 +03:00
CREATE TABLE films (
id INTEGER NOT NULL,
ru_title VARCHAR(256),
orig_title VARCHAR(255),
imdb_id VARCHAR(255),
kinopoisk_id INTEGER,
posterUrl VARCHAR(1500),
posterUrlPreview VARCHAR(1500),
countries JSON,
genres JSON,
year INTEGER,
description VARCHAR(20000),
ratingKinopoisk INTEGER,
ratingImdb INTEGER,
iframe_src VARCHAR(2000),
ratingImdbVoteCount INTEGER,
ratingKinopoiskVoteCount INTEGER,
2023-03-15 22:44:31 +03:00
created VARCHAR(1500),
2022-12-13 16:45:22 +03:00
media JSON,
PRIMARY KEY(id)
);
2023-03-15 22:44:31 +03:00
CREATE TABLE users (
id INTEGER NOT NULL,
login VARCHAR(25) not NULL,
email VARCHAR(255) NOT NULL,
password VARCHAR(2500) NOT NULL,
avatar_url VARCHAR(2500),
token VARCHAR(2500) NOT NULL,
permisionLVL INTEGER NOT NULL,
PRIMARY KEY(id)
);