@factor-wise/prisma-schema 2.0.24 → 2.0.25

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.24",
3
+ "version": "2.0.25",
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",
@@ -1627,13 +1627,19 @@ model penny_drop {
1627
1627
 
1628
1628
  /// The underlying table does not contain a valid unique identifier and can therefore currently not be handled by Prisma Client.
1629
1629
  model pincode {
1630
- id Int
1631
- city_id Int @default(0)
1632
- pincode Int
1633
- status Int @default(1)
1634
- created_at DateTime @default(now()) @db.DateTime(0)
1630
+ id BigInt @id @default(autoincrement())
1631
+ pincode String @db.VarChar(10)
1632
+ city String? @db.VarChar(100)
1633
+ state String? @db.VarChar(100)
1634
+ isActive Boolean @default(true)
1635
+ riskLevel Int?
1636
+ priority Int?
1635
1637
 
1636
- @@ignore
1638
+ createdAt DateTime @default(now())
1639
+ updatedAt DateTime @updatedAt
1640
+
1641
+ @@unique([pincode])
1642
+ @@index([pincode, isActive])
1637
1643
  }
1638
1644
 
1639
1645
  /// The underlying table does not contain a valid unique identifier and can therefore currently not be handled by Prisma Client.