procbay-schema 1.0.33 → 1.0.34

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": "procbay-schema",
3
- "version": "1.0.33",
3
+ "version": "1.0.34",
4
4
  "description": "A set of utilities for managing Prisma database schemas, seeding, and maintenance operations for the Procure-to-Pay system",
5
5
  "main": "src/prisma/index.js",
6
6
  "type": "module",
@@ -0,0 +1,6 @@
1
+ -- DropIndex
2
+ DROP INDEX IF EXISTS "purchase_order_items_purchase_order_id_item_id_key";
3
+
4
+ -- CreateIndex
5
+ CREATE UNIQUE INDEX "purchase_order_items_purchase_order_id_item_id_vendor_id_key" ON "purchase_order_items"("purchase_order_id", "item_id", "vendor_id");
6
+
@@ -2033,7 +2033,7 @@ model PurchaseOrderItem {
2033
2033
  is_deleted Boolean @default(false)
2034
2034
  deleted_at DateTime? @db.Timestamptz(6)
2035
2035
 
2036
- //@@unique([purchase_order_id, item_id, vendor_id], name: "unique_purchase_order_item")
2036
+ @@unique([purchase_order_id, item_id, vendor_id], name: "unique_purchase_order_item")
2037
2037
  @@index([purchase_order_id])
2038
2038
  @@index([purchase_request_id])
2039
2039
  @@index([item_id])