import { Migration } from "@mikro-orm/migrations";
class Migration20260523234901 extends Migration {
  async up() {
    this.addSql(`alter table "api_keys" add column "opencode_session_id" text null;`);
    this.addSql(
      `create unique index "api_keys_opencode_session_id_uq" on "api_keys" ("opencode_session_id") where "opencode_session_id" is not null and "deleted_at" is null;`
    );
  }
  async down() {
    this.addSql(`drop index "api_keys_opencode_session_id_uq";`);
    this.addSql(`alter table "api_keys" drop column "opencode_session_id";`);
  }
}
export {
  Migration20260523234901
};
//# sourceMappingURL=Migration20260523234901.js.map
