procbay-schema 1.0.174 → 1.0.176
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/json/core-data/serial-number-config.json +6 -0
- package/prisma/migrations/20260518124524_added_new_template_builder_changes/migration.sql +26 -0
- package/prisma/schema.prisma +13 -2
- package/src/prisma/edge.js +14 -3
- package/src/prisma/index-browser.js +11 -0
- package/src/prisma/index.d.ts +143 -41
- package/src/prisma/index.js +14 -3
- package/src/prisma/package.json +1 -1
- package/src/prisma/schema.prisma +12 -1
- package/src/prisma/wasm.js +11 -0
- package/prisma/migrations/20260515130204_updated_user_approval_management_schema/migration.sql +0 -55
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "procbay-schema",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.176",
|
|
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,26 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Warnings:
|
|
3
|
+
|
|
4
|
+
- The `template_type` column on the `templates` table would be dropped and recreated. This will lead to data loss if there is data in the column.
|
|
5
|
+
|
|
6
|
+
*/
|
|
7
|
+
-- CreateEnum
|
|
8
|
+
CREATE TYPE "TemplateType" AS ENUM ('RFQ', 'RFI', 'RFP', 'RAUC', 'FAUC', 'BOQ_WITH_CATEGORY', 'BOQ_WITHOUT_CATEGORY');
|
|
9
|
+
|
|
10
|
+
-- AlterEnum
|
|
11
|
+
-- This migration adds more than one value to an enum.
|
|
12
|
+
-- With PostgreSQL versions 11 and earlier, this is not possible
|
|
13
|
+
-- in a single migration. This can be worked around by creating
|
|
14
|
+
-- multiple migrations, each migration adding only one value to
|
|
15
|
+
-- the enum.
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
ALTER TYPE "CatalogueVendorStatusEnum" ADD VALUE 'BLOCKED';
|
|
19
|
+
ALTER TYPE "CatalogueVendorStatusEnum" ADD VALUE 'SUSPENDED';
|
|
20
|
+
ALTER TYPE "CatalogueVendorStatusEnum" ADD VALUE 'PENDING_FOR_APPROVAL';
|
|
21
|
+
ALTER TYPE "CatalogueVendorStatusEnum" ADD VALUE 'REJECTED_FOR_APPROVAL';
|
|
22
|
+
|
|
23
|
+
-- AlterTable
|
|
24
|
+
ALTER TABLE "templates" ADD COLUMN "is_default" BOOLEAN DEFAULT false,
|
|
25
|
+
DROP COLUMN "template_type",
|
|
26
|
+
ADD COLUMN "template_type" "TemplateType"[];
|
package/prisma/schema.prisma
CHANGED
|
@@ -1099,12 +1099,23 @@ model ApprovalDelegationDelegate {
|
|
|
1099
1099
|
|
|
1100
1100
|
//---------------------------------- TEMPLATE MODEL START ------------------------------------------------
|
|
1101
1101
|
|
|
1102
|
+
enum TemplateType {
|
|
1103
|
+
RFQ
|
|
1104
|
+
RFI
|
|
1105
|
+
RFP
|
|
1106
|
+
RAUC
|
|
1107
|
+
FAUC
|
|
1108
|
+
BOQ_WITH_CATEGORY
|
|
1109
|
+
BOQ_WITHOUT_CATEGORY
|
|
1110
|
+
}
|
|
1111
|
+
|
|
1102
1112
|
model Template {
|
|
1103
1113
|
id Int @id @default(autoincrement())
|
|
1104
1114
|
uuid String? @unique @default(uuid())
|
|
1105
1115
|
template_code String? @unique
|
|
1106
1116
|
template_name String? @unique
|
|
1107
|
-
template_type
|
|
1117
|
+
template_type TemplateType[]
|
|
1118
|
+
is_default Boolean? @default(false)
|
|
1108
1119
|
currency_id Int?
|
|
1109
1120
|
currency Currency? @relation(fields: [currency_id], references: [id], onDelete: Cascade)
|
|
1110
1121
|
fields TemplateField[]
|
|
@@ -3817,4 +3828,4 @@ model ApprovalManagement {
|
|
|
3817
3828
|
@@map("approval_management")
|
|
3818
3829
|
}
|
|
3819
3830
|
|
|
3820
|
-
// ------------------------------------ APPROVAL MANAGEMENT MODEL END ----------------------------------
|
|
3831
|
+
// ------------------------------------ APPROVAL MANAGEMENT MODEL END ----------------------------------
|