@factor-wise/prisma-schema 2.0.117 → 2.0.118

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@factor-wise/prisma-schema",
3
- "version": "2.0.117",
3
+ "version": "2.0.118",
4
4
  "description": "Shared Prisma schema and generated client for Factor Wise projects",
5
5
  "main": "generated/client/index.js",
6
6
  "types": "generated/client/index.d.ts",
@@ -723,6 +723,8 @@ model customer {
723
723
 
724
724
  aiCallLogs ai_call_logs[]
725
725
 
726
+ customerLocations customer_locations[]
727
+
726
728
  @@index([mobile], map: "idx_customer_mobile")
727
729
  @@index([email], map: "idx_customer_email")
728
730
  @@index([pancard], map: "idx_customer_pancard")
@@ -757,25 +759,34 @@ model customer {
757
759
  }
758
760
 
759
761
  model customer_extended {
760
- id Int @id @default(autoincrement())
761
- customerID Int @unique
762
- isBtCase Boolean @default(false)
763
- attempts Int? @default(0)
764
- lastAttempt DateTime?
765
- verifyAttempts Int? @default(0)
766
- verifyLastAttempt DateTime?
767
- otpExpiresAt DateTime?
768
- latitude Decimal? @db.Decimal(10, 7)
769
- longitude Decimal? @db.Decimal(10, 7)
770
- selfieAttempts Int? @default(0)
771
- kidGenerateAt DateTime? @default(now()) @db.DateTime(0)
772
- locationType LocationType?
773
- customer customer @relation(fields: [customerID], references: [customerID])
774
-
775
- @@unique([customerID, locationType])
776
- @@index([latitude, longitude])
777
- }
762
+ id Int @id @default(autoincrement())
763
+ customerID Int @unique
764
+ isBtCase Boolean @default(false)
765
+ attempts Int? @default(0)
766
+ lastAttempt DateTime?
767
+ verifyAttempts Int? @default(0)
768
+ verifyLastAttempt DateTime?
769
+ otpExpiresAt DateTime?
770
+ selfieAttempts Int? @default(0)
771
+ kidGenerateAt DateTime? @default(now()) @db.DateTime(0)
772
+ customer customer @relation(fields: [customerID], references: [customerID])
773
+ }
774
+
775
+ model customer_locations {
776
+ id Int @id @default(autoincrement())
777
+ customerID Int
778
+ latitude Decimal @db.Decimal(10, 7)
779
+ longitude Decimal @db.Decimal(10, 7)
780
+ locationType LocationType
781
+ createdAt DateTime @default(now())
782
+ updatedAt DateTime @updatedAt
778
783
 
784
+ customer customer @relation(fields: [customerID], references: [customerID])
785
+
786
+ @@unique([customerID, locationType])
787
+ @@index([customerID])
788
+ @@index([latitude, longitude])
789
+ }
779
790
 
780
791
  model customer_credit_remarks {
781
792
  id Int @id @default(autoincrement())