@factor-wise/prisma-schema 2.0.131 → 2.0.132
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/prisma/schema.prisma +29 -24
package/package.json
CHANGED
package/prisma/schema.prisma
CHANGED
|
@@ -809,15 +809,18 @@ model customer_locations {
|
|
|
809
809
|
@@index([latitude, longitude])
|
|
810
810
|
}
|
|
811
811
|
|
|
812
|
-
model
|
|
812
|
+
model customer_calling_remarks {
|
|
813
813
|
id Int @id @default(autoincrement())
|
|
814
|
-
customerId Int
|
|
815
814
|
leadID Int
|
|
816
|
-
|
|
815
|
+
callingRemark String @db.Text
|
|
817
816
|
createdBy Int
|
|
818
|
-
createdDate DateTime
|
|
817
|
+
createdDate DateTime @default(now()) @db.DateTime(0)
|
|
819
818
|
|
|
820
|
-
|
|
819
|
+
lead leads @relation(fields: [leadID], references: [leadID])
|
|
820
|
+
createdByUser lms_users @relation(fields: [createdBy], references: [userID])
|
|
821
|
+
|
|
822
|
+
@@index([leadID], map: "customer_credit_remarks_leadID_fkey")
|
|
823
|
+
@@index([createdBy], map: "customer_credit_remarks_createdBy_fkey")
|
|
821
824
|
}
|
|
822
825
|
|
|
823
826
|
/// This model or at least one of its fields has comments in the database, and requires an additional setup for migrations: Read more: https://pris.ly/d/database-comments
|
|
@@ -1453,6 +1456,7 @@ model leads {
|
|
|
1453
1456
|
credforge_bre_log credforge_bre_log[]
|
|
1454
1457
|
aiCallLogs ai_call_logs[]
|
|
1455
1458
|
creditRemarks credit_remarks[]
|
|
1459
|
+
customercallingremarks customer_calling_remarks[]
|
|
1456
1460
|
|
|
1457
1461
|
@@index([customerID], map: "idx_customerID")
|
|
1458
1462
|
@@index([userID], map: "idx_userID")
|
|
@@ -2016,25 +2020,25 @@ model penny_drop {
|
|
|
2016
2020
|
|
|
2017
2021
|
/// The underlying table does not contain a valid unique identifier and can therefore currently not be handled by Prisma Client.
|
|
2018
2022
|
model pincode {
|
|
2019
|
-
id
|
|
2020
|
-
pincode
|
|
2021
|
-
circlename
|
|
2022
|
-
regionname
|
|
2023
|
-
divisionname
|
|
2024
|
-
officename
|
|
2025
|
-
officetype
|
|
2026
|
-
delivery
|
|
2027
|
-
district
|
|
2028
|
-
statename
|
|
2029
|
-
latitude
|
|
2030
|
-
longitude
|
|
2031
|
-
type
|
|
2032
|
-
riskStatus
|
|
2033
|
-
riskEligibleFlag
|
|
2034
|
-
eligibleSince
|
|
2035
|
-
isActive
|
|
2036
|
-
createdAt
|
|
2037
|
-
updatedAt
|
|
2023
|
+
id BigInt @id @default(autoincrement())
|
|
2024
|
+
pincode String @db.VarChar(10)
|
|
2025
|
+
circlename String? @db.VarChar(100)
|
|
2026
|
+
regionname String? @db.VarChar(100)
|
|
2027
|
+
divisionname String? @db.VarChar(100)
|
|
2028
|
+
officename String? @db.VarChar(100)
|
|
2029
|
+
officetype String? @db.VarChar(50)
|
|
2030
|
+
delivery String? @db.VarChar(50)
|
|
2031
|
+
district String? @db.VarChar(100)
|
|
2032
|
+
statename String? @db.VarChar(100)
|
|
2033
|
+
latitude String? @db.VarChar(20)
|
|
2034
|
+
longitude String? @db.VarChar(20)
|
|
2035
|
+
type String? @db.VarChar(50)
|
|
2036
|
+
riskStatus String? @db.VarChar(50)
|
|
2037
|
+
riskEligibleFlag String? @db.VarChar(50)
|
|
2038
|
+
eligibleSince String? @db.VarChar(50)
|
|
2039
|
+
isActive Boolean @default(false)
|
|
2040
|
+
createdAt DateTime @default(now())
|
|
2041
|
+
updatedAt DateTime @updatedAt
|
|
2038
2042
|
|
|
2039
2043
|
@@unique([pincode])
|
|
2040
2044
|
@@index([pincode, isActive, district, statename])
|
|
@@ -2790,6 +2794,7 @@ model lms_users {
|
|
|
2790
2794
|
paymentDatesCreated payment_block_dates[] @relation("UserCreatedPaymentDates")
|
|
2791
2795
|
paymentDatesUpdated payment_block_dates[] @relation("UserUpdatedPaymentDates")
|
|
2792
2796
|
creditRemarks credit_remarks[]
|
|
2797
|
+
customercallingremarks customer_calling_remarks[]
|
|
2793
2798
|
}
|
|
2794
2799
|
|
|
2795
2800
|
model lms_users_permissions {
|