"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.up = up;
exports.down = down;
const kysely_1 = require("kysely");
async function up(db) {
    await (0, kysely_1.sql) `DROP TABLE "audit";`.execute(db);
}
async function down(db) {
    await (0, kysely_1.sql) `CREATE TABLE "audit" (
  "id" serial NOT NULL,
  "entityType" character varying NOT NULL,
  "entityId" uuid NOT NULL,
  "action" character varying NOT NULL,
  "ownerId" uuid NOT NULL,
  "createdAt" timestamp with time zone NOT NULL DEFAULT now(),
  CONSTRAINT "audit_pkey" PRIMARY KEY ("id")
);`.execute(db);
    await (0, kysely_1.sql) `CREATE INDEX "audit_ownerId_createdAt_idx" ON "audit" ("ownerId", "createdAt");`.execute(db);
}
//# sourceMappingURL=1776217577402-DropAuditTable.js.map