Eerste commit voor Helvoirt Gevelreiniging

This commit is contained in:
Joery Disselhof
2026-08-26 13:57:08 +02:00
commit 276dba07a2
225 changed files with 23121 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
-- Vangnet-tabel voor contactformulier-aanvragen.
-- /api/contact schrijft elke geldige aanvraag hierheen naast de e-mailmelding,
-- zodat er geen lead verloren gaat. Idempotent: veilig her-uit te voeren.
--
-- Remote (productie) toepassen:
-- $env:NODE_OPTIONS="--use-system-ca"; $env:CLOUDFLARE_ACCOUNT_ID="41972f4905f2c83f51111b80283e030b"
-- node node_modules/wrangler/bin/wrangler.js d1 execute helvoirt-db --remote --file=migrations/0001_contact_submissions.sql
CREATE TABLE IF NOT EXISTS contact_submissions (
id INTEGER PRIMARY KEY AUTOINCREMENT,
created_at TEXT NOT NULL,
name TEXT NOT NULL,
email TEXT NOT NULL,
phone TEXT,
message TEXT NOT NULL,
ip TEXT,
country TEXT,
user_agent TEXT
);
CREATE INDEX IF NOT EXISTS idx_contact_submissions_created_at
ON contact_submissions (created_at DESC);