@brewww/authentication-service
Version:
Authenticator service for Brew projects.
16 lines • 871 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.CreateOtpTable1714636954008 = void 0;
class CreateOtpTable1714636954008 {
constructor() {
this.name = "CreateOtpsTable1714636954008";
}
async up(queryRunner) {
await queryRunner.query(`CREATE TABLE "otps" ("id" uuid NOT NULL DEFAULT uuid_generate_v4(), "created_at" TIMESTAMP NOT NULL DEFAULT now(), "updated_at" TIMESTAMP NOT NULL DEFAULT now(), "expires_at" TIMESTAMP NOT NULL, "resendable_at" TIMESTAMP, "value" character varying NOT NULL, "channel" jsonb NOT NULL, CONSTRAINT "PK_91fef5ed60605b854a2115d2410" PRIMARY KEY ("id"))`);
}
async down(queryRunner) {
await queryRunner.query(`DROP TABLE "otps"`);
}
}
exports.CreateOtpTable1714636954008 = CreateOtpTable1714636954008;
//# sourceMappingURL=1714636954008-createOtpsTable.js.map