Adds consultation leads, section editors, and the one-time content reset for this release. Co-authored-by: Cursor <cursoragent@cursor.com>
23 lines
731 B
SQL
23 lines
731 B
SQL
-- CreateTable
|
|
CREATE TABLE "Lead" (
|
|
"id" TEXT NOT NULL,
|
|
"name" TEXT NOT NULL,
|
|
"phone" TEXT NOT NULL,
|
|
"businessType" TEXT NOT NULL,
|
|
"source" TEXT NOT NULL DEFAULT 'consult',
|
|
"aiQuery" TEXT,
|
|
"status" TEXT NOT NULL DEFAULT 'new',
|
|
"note" TEXT,
|
|
"ip" TEXT,
|
|
"createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
|
"updatedAt" TIMESTAMP(3) NOT NULL,
|
|
|
|
CONSTRAINT "Lead_pkey" PRIMARY KEY ("id")
|
|
);
|
|
|
|
-- CreateIndex
|
|
CREATE INDEX "Lead_status_createdAt_idx" ON "Lead"("status", "createdAt");
|
|
|
|
-- Landing redesign: sections from the previous design are no longer rendered.
|
|
DELETE FROM "SectionContent" WHERE "key" IN ('marquee', 'manifesto', 'services', 'work', 'process', 'stats', 'team');
|