import { Migration } from "@mikro-orm/migrations";
class Migration20251101120000 extends Migration {
  async up() {
    this.addSql(`create table "indexer_status_logs" ("id" uuid not null default gen_random_uuid(), "source" text not null, "handler" text not null, "level" text not null default 'info', "entity_type" text null, "record_id" text null, "tenant_id" uuid null, "organization_id" uuid null, "message" text not null, "details" jsonb null, "occurred_at" timestamptz not null default now(), constraint "indexer_status_logs_pkey" primary key ("id"));`);
    this.addSql(`create index "indexer_status_logs_source_idx" on "indexer_status_logs" ("source");`);
    this.addSql(`create index "indexer_status_logs_occurred_idx" on "indexer_status_logs" ("occurred_at");`);
  }
  async down() {
    this.addSql(`drop table if exists "indexer_status_logs" cascade;`);
  }
}
export {
  Migration20251101120000
};
//# sourceMappingURL=Migration20251101120000.js.map
