@brewww/authentication-service
Version:
Authenticator service for Brew projects.
16 lines • 913 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.PhoneNumberEmailUserIdentifierConstraint1721397713372 = void 0;
class PhoneNumberEmailUserIdentifierConstraint1721397713372 {
constructor() {
this.name = 'PhoneNumberEmailUserIdentifierConstraint1721397713372';
}
async up(queryRunner) {
await queryRunner.query(`ALTER TABLE "users" ADD CONSTRAINT "CHK_077ae242c03e2563b787657b7d" CHECK ("email" IS NOT NULL OR "username" IS NOT NULL OR ("phone_number" IS NOT NULL AND "country_code" IS NOT NULL))`);
}
async down(queryRunner) {
await queryRunner.query(`ALTER TABLE "users" DROP CONSTRAINT "CHK_077ae242c03e2563b787657b7d"`);
}
}
exports.PhoneNumberEmailUserIdentifierConstraint1721397713372 = PhoneNumberEmailUserIdentifierConstraint1721397713372;
//# sourceMappingURL=1721397713372-phoneNumberEmailUserIdentifierConstraint.js.map