add jwt authentication, and fix cours for next js
This commit is contained in:
1 parent
3026f89f2e
commit
05b8d55d0e
17 files changed
+471
-64
No files matched your search
@@ -16,11 +16,15 @@ CREATE TABLE films (
|
||||
iframe_src VARCHAR(2000),
|
||||
ratingImdbVoteCount INTEGER,
|
||||
ratingKinopoiskVoteCount INTEGER,
|
||||
created VARCHAR(1500),
|
||||
created VARCHAR(1000),
|
||||
content_type VARCHAR(25),
|
||||
ratingAgeLimits VARCHAR(25),
|
||||
media JSON,
|
||||
PRIMARY KEY(id)
|
||||
);
|
||||
|
||||
|
||||
|
||||
CREATE TABLE users (
|
||||
id SERIAL,
|
||||
login TEXT not NULL,
|
||||
@@ -34,8 +38,32 @@ CREATE TABLE users (
|
||||
PRIMARY KEY(id)
|
||||
);
|
||||
|
||||
|
||||
CREATE TABLE Siries (
|
||||
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,
|
||||
created VARCHAR(1000),
|
||||
content_type VARCHAR(25),
|
||||
ratingAgeLimits VARCHAR(25),
|
||||
translation JSON,
|
||||
episodes JSON,
|
||||
PRIMARY KEY(id)
|
||||
);
|
||||
CREATE TABLE tokens (
|
||||
userID INTEGER NOT NULL,
|
||||
refreshToken TEXT NOT NULL
|
||||
login TEXT NOT NULL,
|
||||
refreshToken TEXT NOT NULL,
|
||||
PRIMARY KEY(login)
|
||||
);
|
||||
Reference in new issue
Block a user