procbay-schema 1.0.48 → 1.0.50
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/20251024090419_alter_department_table_added_department_code/migration.sql +14 -0
- package/prisma/migrations/20251024110358_alter_template_field_add_field_type/migration.sql +13 -0
- package/prisma/schema.prisma +3 -0
- package/src/prisma/edge.js +7 -4
- package/src/prisma/index-browser.js +4 -1
- package/src/prisma/index.d.ts +55 -3
- package/src/prisma/index.js +7 -4
- package/src/prisma/package.json +1 -1
- package/src/prisma/schema.prisma +3 -0
- package/src/prisma/wasm.js +4 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "procbay-schema",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.50",
|
|
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",
|
package/prisma/migrations/20251024090419_alter_department_table_added_department_code/migration.sql
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Warnings:
|
|
3
|
+
|
|
4
|
+
- A unique constraint covering the columns `[department_code]` on the table `departments` will be added. If there are existing duplicate values, this will fail.
|
|
5
|
+
|
|
6
|
+
*/
|
|
7
|
+
-- AlterTable
|
|
8
|
+
ALTER TABLE "departments" ADD COLUMN "department_code" TEXT;
|
|
9
|
+
|
|
10
|
+
-- AlterTable
|
|
11
|
+
ALTER TABLE "export_logs" ALTER COLUMN "expires_at" SET DEFAULT NOW() + INTERVAL '7 days';
|
|
12
|
+
|
|
13
|
+
-- CreateIndex
|
|
14
|
+
CREATE UNIQUE INDEX "departments_department_code_key" ON "departments"("department_code");
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
-- AlterEnum
|
|
2
|
+
-- This migration adds more than one value to an enum.
|
|
3
|
+
-- With PostgreSQL versions 11 and earlier, this is not possible
|
|
4
|
+
-- in a single migration. This can be worked around by creating
|
|
5
|
+
-- multiple migrations, each migration adding only one value to
|
|
6
|
+
-- the enum.
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
ALTER TYPE "FieldType" ADD VALUE 'CURRENCY_FORMULA';
|
|
10
|
+
ALTER TYPE "FieldType" ADD VALUE 'VALUE_FORMULA';
|
|
11
|
+
|
|
12
|
+
-- AlterTable
|
|
13
|
+
ALTER TABLE "export_logs" ALTER COLUMN "expires_at" SET DEFAULT NOW() + INTERVAL '7 days';
|
package/prisma/schema.prisma
CHANGED
|
@@ -194,6 +194,7 @@ model RolePermission {
|
|
|
194
194
|
model Department {
|
|
195
195
|
id Int @id @default(autoincrement())
|
|
196
196
|
uuid String? @unique @default(uuid())
|
|
197
|
+
department_code String? @unique
|
|
197
198
|
department_name String?
|
|
198
199
|
department_slug String? @unique
|
|
199
200
|
department_head Int?
|
|
@@ -923,6 +924,8 @@ enum FieldType {
|
|
|
923
924
|
PERCENTAGE
|
|
924
925
|
MEDIA
|
|
925
926
|
CURRENCY
|
|
927
|
+
CURRENCY_FORMULA
|
|
928
|
+
VALUE_FORMULA
|
|
926
929
|
}
|
|
927
930
|
|
|
928
931
|
enum FieldRole {
|