import { MigrationInterface , QueryRunner } from "typeorm" ; export class initialOrganizationEntity1611668130609 implements MigrationInterface { name = "initialOrganizationEntity1611668130609" ; public async up ( queryRunner ) { await queryRunner . query ( `CREATE TABLE "organization" ("id" uuid NOT NULL DEFAULT uuid_generate_v4(), "slug" character varying NOT NULL, "name" character varying NOT NULL, CONSTRAINT "UQ_a08804baa7c5d5427067c49a31f" UNIQUE ("slug"), CONSTRAINT "PK_472c1f99a32def1b0abb219cd67" PRIMARY KEY ("id"))` , undefined ) ; } public async down ( queryRunner ) { await queryRunner . query ( `DROP TABLE "organization"` , undefined ) ; } }