CREATE TABLE IF NOT EXISTS series (
    id INT NOT NULL AUTO_INCREMENT,
    code INT NOT NULL,
    title TEXT NOT NULL,
    released TEXT NOT NULL,
    webImg TEXT NOT NULL,
    PRIMARY KEY (id),
    UNIQUE code (code)
);

CREATE TABLE IF NOT EXISTS movies (
    id INT NOT NULL AUTO_INCREMENT,
    code INT NOT NULL,
    title TEXT NOT NULL,
    released TEXT NOT NULL,
    webImg TEXT NOT NULL,
    PRIMARY KEY (id),
    UNIQUE code (code)
);

CREATE TABLE IF NOT EXISTS games (
    id INT NOT NULL AUTO_INCREMENT,
    code INT NOT NULL,
    title TEXT NOT NULL,
    released TEXT NOT NULL,
    webImg TEXT NOT NULL,
    PRIMARY KEY (id),
    UNIQUE code (code)
);

CREATE TABLE IF NOT EXISTS userData (
    id INT NOT NULL AUTO_INCREMENT,
    name TEXT NOT NULL,
    value TEXT NOT NULL,
    PRIMARY KEY (id),
);

INSERT INTO userData (name, value) VALUES ("pass", "");

INSERT INTO userData (name, value) VALUES ("omdb_key", "");

INSERT INTO userData (name, value) VALUES ("twitch_client_id", "");

INSERT INTO userData (name, value) VALUES ("twitch_client_secret", "");