"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.down = exports.up = void 0;
const tslib_1 = require("tslib");
function up(utils) {
    return tslib_1.__awaiter(this, void 0, void 0, function* () {
        {
            const query = `
      CREATE TABLE IF NOT EXISTS "videoSource" (
        "id"  SERIAL ,
        "createdAt" TIMESTAMP WITH TIME ZONE NOT NULL,
        "updatedAt" TIMESTAMP WITH TIME ZONE NOT NULL,
        "filename" VARCHAR(255) DEFAULT NULL,
        "videoId" INTEGER
          REFERENCES "video" ("id")
          ON DELETE CASCADE
          ON UPDATE CASCADE,
        PRIMARY KEY ("id")
      );
    `;
            yield utils.sequelize.query(query);
        }
    });
}
exports.up = up;
function down(options) {
    throw new Error('Not implemented.');
}
exports.down = down;
//# sourceMappingURL=0715-video-source.js.map