procbay-schema 1.0.10 → 1.0.12

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.10",
3
+ "version": "1.0.12",
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,2 @@
1
+ -- AlterTable
2
+ ALTER TABLE "export_logs" ALTER COLUMN "expires_at" SET DEFAULT NOW() + INTERVAL '7 days';
@@ -412,12 +412,13 @@ enum PurchaseIntakePriorityEnum {
412
412
 
413
413
  // Enum for status levels
414
414
  enum PurchaseIntakeStatusEnum {
415
- Approved
416
- InProgress
417
- Pending
418
- Rejected
419
- Completed
420
- Cancelled
415
+ APPROVED
416
+ IN_PROGRESS
417
+ PENDING
418
+ REJECTED
419
+ COMPLETED
420
+ CANCELLED
421
+ AUTO_APPROVED
421
422
  }
422
423
 
423
424
  enum PurchaseRequestStatusEnum {
@@ -443,7 +444,7 @@ model PurchaseIntake {
443
444
  items_or_services_description String?
444
445
  priority PurchaseIntakePriorityEnum
445
446
  estimated_budget Float?
446
- status PurchaseIntakeStatusEnum @default(Pending)
447
+ status PurchaseIntakeStatusEnum @default(PENDING)
447
448
  pr_status PurchaseRequestStatusEnum @default(Open)
448
449
  reject_reason String?
449
450
  pr_reject_reason String?
@@ -2476,7 +2477,7 @@ model RequestedCatalogue {
2476
2477
  deleted_at DateTime? @db.Timestamptz(6)
2477
2478
  deleted_by Int?
2478
2479
  requested_catalogue_items RequestedCatalogueItem[]
2479
- requested_catalogue_vendor RequestedCatalogueVendor[]
2480
+ requested_catalogue_vendors RequestedCatalogueVendor[]
2480
2481
 
2481
2482
  @@map("requested_catalogues")
2482
2483
  }