import { Migration } from "@mikro-orm/migrations";
class Migration20260207101938 extends Migration {
  async up() {
    this.addSql(`alter table "action_logs" add column "parent_resource_kind" text null, add column "parent_resource_id" text null;`);
    this.addSql(`create index "action_logs_parent_resource_idx" on "action_logs" ("tenant_id", "parent_resource_kind", "parent_resource_id", "created_at");`);
    this.addSql(`create index "action_logs_resource_idx" on "action_logs" ("tenant_id", "resource_kind", "resource_id", "created_at");`);
  }
  async down() {
    this.addSql(`drop index "action_logs_parent_resource_idx";`);
    this.addSql(`drop index "action_logs_resource_idx";`);
    this.addSql(`alter table "action_logs" drop column "parent_resource_kind", drop column "parent_resource_id";`);
  }
}
export {
  Migration20260207101938
};
//# sourceMappingURL=Migration20260207101938.js.map
