-- CreateTable
CREATE TABLE "TrackerEvent" (
    "id" TEXT NOT NULL,
    "createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
    "event" TEXT NOT NULL,
    "step" TEXT,
    "sessionId" TEXT,
    "data" JSONB,
    "ip" TEXT,
    "userAgent" TEXT,

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

-- CreateTable
CREATE TABLE "RecordSubmission" (
    "id" TEXT NOT NULL,
    "createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
    "raw" JSONB NOT NULL,
    "computed" JSONB NOT NULL,
    "context" JSONB NOT NULL,
    "notes" TEXT,
    "sessionId" TEXT,
    "ip" TEXT,
    "userAgent" TEXT,

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