CodeIssuesDiscussionsWikiPull RequestsProjectsCommitsActionsReleasesContributorsPulse● GatesSecuritySettingsDeploymentsPipelineInsightsAgents✨ Explain✨ Ask AI✨ Workspace✨ Spec✨ Tests▓ Debt Map✨ NL Search🏛 Archaeology
Blame · Line-by-line history
0082_enterprise_leads.sql
Each line is annotated with the commit that last touched it. Click any SHA to jump to that commit and see the surrounding change.
| 9f29b65 | 1 | -- Enterprise leads table — captures contact form submissions from /enterprise. |
| 2 | -- Used to route sales conversations to the enterprise team. | |
| 3 | -- Strictly additive; no existing tables are touched. | |
| 4 | ||
| 5 | CREATE TABLE IF NOT EXISTS "enterprise_leads" ( | |
| 6 | "id" uuid PRIMARY KEY DEFAULT gen_random_uuid(), | |
| 7 | "name" text NOT NULL, | |
| 8 | "company" text NOT NULL, | |
| 9 | "email" text NOT NULL, | |
| 10 | "team_size" text NOT NULL, | |
| 11 | "message" text, | |
| 12 | "ip" text, | |
| 13 | "created_at" timestamp DEFAULT now() NOT NULL | |
| 14 | ); | |
| 15 | ||
| 16 | CREATE INDEX IF NOT EXISTS "enterprise_leads_created" ON "enterprise_leads" ("created_at"); |