Adding registration date and multiple addresses for contacts and leads.

This commit is contained in:
2026-10-03 12:29:11 +03:30
parent 989c03b381
commit 1309da2281
22 changed files with 699 additions and 32 deletions
@@ -0,0 +1,7 @@
-- AlterTable
ALTER TABLE "Person" ADD COLUMN IF NOT EXISTS "instagram" TEXT;
ALTER TABLE "Person" ADD COLUMN IF NOT EXISTS "addresses" JSONB NOT NULL DEFAULT '[]';
-- AlterTable
ALTER TABLE "Lead" ADD COLUMN IF NOT EXISTS "instagram" TEXT;
ALTER TABLE "Lead" ADD COLUMN IF NOT EXISTS "addresses" JSONB NOT NULL DEFAULT '[]';
+8
View File
@@ -432,8 +432,12 @@ model Person {
position String?
/// آدرس وب‌سایت
website String?
/// پیج اینستاگرام
instagram String?
/// نام معرف
referrer String?
/// لیست آدرس‌ها (JSON array of strings)
addresses Json @default("[]")
notes String?
mood PersonMood @default(newcomer)
tags String[] @default([])
@@ -2064,6 +2068,10 @@ model Lead {
phone String?
city String?
region String?
/// پیج اینستاگرام
instagram String?
/// لیست آدرس‌ها (JSON array of strings)
addresses Json @default("[]")
/// صنف
trade String?
source String?