Files
SerpentRace/SerpentRace_Backend/dist/Infrastructure/Migrations/1755855028839-CreateContactTable.js
T

16 lines
1.0 KiB
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.CreateContactTable1755855028839 = void 0;
class CreateContactTable1755855028839 {
constructor() {
this.name = 'CreateContactTable1755855028839';
}
async up(queryRunner) {
await queryRunner.query(`CREATE TABLE "Contacts" ("id" uuid NOT NULL DEFAULT uuid_generate_v4(), "name" character varying(255) NOT NULL, "email" character varying(255) NOT NULL, "userid" uuid, "type" integer NOT NULL, "txt" text NOT NULL, "state" integer NOT NULL DEFAULT '0', "createDate" TIMESTAMP NOT NULL DEFAULT now(), "updateDate" TIMESTAMP NOT NULL DEFAULT now(), "adminResponse" text, "responseDate" TIMESTAMP, "respondedBy" uuid, CONSTRAINT "PK_68782cec65c8eef577c62958273" PRIMARY KEY ("id"))`);
}
async down(queryRunner) {
await queryRunner.query(`DROP TABLE "Contacts"`);
}
}
exports.CreateContactTable1755855028839 = CreateContactTable1755855028839;
//# sourceMappingURL=1755855028839-CreateContactTable.js.map