@danielcok17/prisma-db 1.13.4 → 1.13.5

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": "@danielcok17/prisma-db",
3
- "version": "1.13.4",
3
+ "version": "1.13.5",
4
4
  "description": "Shared Prisma schema for Legal AI applications",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -0,0 +1,17 @@
1
+ -- Add LEGAL_OPINION to ReferenceType enum (if not exists)
2
+ DO $$
3
+ BEGIN
4
+ IF NOT EXISTS (
5
+ SELECT 1 FROM pg_enum
6
+ WHERE enumtypid = (SELECT oid FROM pg_type WHERE typname = 'ReferenceType')
7
+ AND enumlabel = 'LEGAL_OPINION'
8
+ ) THEN
9
+ ALTER TYPE "ReferenceType" ADD VALUE 'LEGAL_OPINION';
10
+ END IF;
11
+ END
12
+ $$;
13
+
14
+ -- AlterTable: Add new profile fields to User (if not exist)
15
+ ALTER TABLE "User" ADD COLUMN IF NOT EXISTS "phone" TEXT;
16
+ ALTER TABLE "User" ADD COLUMN IF NOT EXISTS "occupation" TEXT;
17
+ ALTER TABLE "User" ADD COLUMN IF NOT EXISTS "preferredLanguage" TEXT DEFAULT 'sk';