Add optional activity experience on leads and people with form mapping and filters.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
-- AlterTable
|
||||
ALTER TABLE "Lead" ADD COLUMN "activityExperience" TEXT;
|
||||
|
||||
-- AlterTable
|
||||
ALTER TABLE "Person" ADD COLUMN "activityExperience" TEXT;
|
||||
|
||||
-- CreateIndex
|
||||
CREATE INDEX "Lead_organizationId_activityExperience_idx" ON "Lead"("organizationId", "activityExperience");
|
||||
|
||||
-- CreateIndex
|
||||
CREATE INDEX "Person_organizationId_activityExperience_idx" ON "Person"("organizationId", "activityExperience");
|
||||
@@ -656,6 +656,8 @@ model Person {
|
||||
birthDate DateTime?
|
||||
/// نام معرف
|
||||
referrer String?
|
||||
/// سابقه فعالیت (ندارم | 1 الی 2 سال | 2 الی 5 سال | بیش از 5 سال)
|
||||
activityExperience String?
|
||||
/// لیست آدرسها (JSON array of strings)
|
||||
addresses Json @default("[]")
|
||||
notes String?
|
||||
@@ -710,6 +712,7 @@ model Person {
|
||||
@@index([ownerId])
|
||||
@@index([loyaltyTierId])
|
||||
@@index([organizationId, discLabel])
|
||||
@@index([organizationId, activityExperience])
|
||||
}
|
||||
|
||||
model Pipeline {
|
||||
@@ -3158,6 +3161,8 @@ model Lead {
|
||||
/// صنف
|
||||
trade String?
|
||||
source String?
|
||||
/// سابقه فعالیت (ندارم | 1 الی 2 سال | 2 الی 5 سال | بیش از 5 سال)
|
||||
activityExperience String?
|
||||
notes String?
|
||||
/// لوگوی فروشگاه / شرکت
|
||||
logoStorageKey String?
|
||||
@@ -3195,6 +3200,7 @@ model Lead {
|
||||
@@index([organizationId, city])
|
||||
@@index([organizationId, trade])
|
||||
@@index([organizationId, source])
|
||||
@@index([organizationId, activityExperience])
|
||||
}
|
||||
|
||||
model LeadEvent {
|
||||
|
||||
Reference in New Issue
Block a user