Files
Montech_Landing/apps/api/prisma/migrations/20261001120000_leads/migration.sql
T
MahdiandCursor b0088c35d1 Replace the landing with the artifact design and rebuild the admin in Ant Design.
Adds consultation leads, section editors, and the one-time content reset for this release.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-01 20:36:06 +03:30

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');