import { Migration } from "@mikro-orm/migrations";
class Migration20260526154136_integrations extends Migration {
  up() {
    this.addSql(`alter table "integration_credentials" add "user_id" uuid null;`);
    this.addSql(`create unique index "integration_credentials_user_lookup_idx" on "integration_credentials" ("integration_id", "organization_id", "tenant_id", "user_id") where "user_id" is not null and "deleted_at" is null;`);
  }
  down() {
    this.addSql(`drop index "integration_credentials_user_lookup_idx";`);
    this.addSql(`alter table "integration_credentials" drop column "user_id";`);
  }
}
export {
  Migration20260526154136_integrations
};
//# sourceMappingURL=Migration20260526154136_integrations.js.map
