Add migrations and model go struct
This commit is contained in:
1 parent
9d8914bf26
commit
1524ebced8
6 files changed
+74
-1
No files matched your search
@@ -0,0 +1 @@
|
||||
DROP TABLE films;
|
||||
@@ -0,0 +1,21 @@
|
||||
|
||||
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,
|
||||
media JSON,
|
||||
PRIMARY KEY(id)
|
||||
);
|
||||
Reference in new issue
Block a user