procbay-schema 1.0.48 → 1.0.49

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.48",
3
+ "version": "1.0.49",
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",
@@ -76,5 +76,11 @@
76
76
  "alias": "REQ",
77
77
  "initial_number": 1,
78
78
  "current_number": 1
79
+ },
80
+ {
81
+ "module": "department",
82
+ "alias": "DEPT",
83
+ "initial_number": 1,
84
+ "current_number": 1
79
85
  }
80
86
  ]
@@ -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");
@@ -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?