-- Backup pending queue for git-based backup sync
CREATE TABLE "BackupPending" (
    "id" TEXT NOT NULL,
    "resourceKind" TEXT NOT NULL,
    "resourceName" TEXT NOT NULL,
    "action" TEXT NOT NULL,
    "userName" TEXT NOT NULL,
    "yamlContent" TEXT,
    "createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,

    CONSTRAINT "BackupPending_pkey" PRIMARY KEY ("id")
);

CREATE INDEX "BackupPending_createdAt_idx" ON "BackupPending"("createdAt");
