@danielcok17/prisma-db 1.19.1 → 1.19.2

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.19.1",
3
+ "version": "1.19.2",
4
4
  "description": "Shared Prisma schema for Legal AI applications",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/prisma/app.prisma CHANGED
@@ -930,6 +930,7 @@ enum UserFileUploadSource {
930
930
  FOLDER // nahraté cez UI priečinka / prípadu
931
931
  CHAT // nahraté z chatovej konverzácie
932
932
  STORAGE // nahraté priamo do "Môj archív"
933
+ CANVAS // AI-vygenerovaný dokument uložený z canvas editora
933
934
  }
934
935
 
935
936
  enum IndexingJobStatus {
@@ -1159,7 +1160,8 @@ model UserFile {
1159
1160
  versionNumber Int @default(1)
1160
1161
 
1161
1162
  uploadSource UserFileUploadSource @default(STORAGE)
1162
- uploadContextId String? // polymorphic: folderId | conversationId | null
1163
+ uploadContextId String? // polymorphic: folderId | conversationId | documentId | null
1164
+ isAiGenerated Boolean @default(false) // true = AI vygeneroval obsah (canvas export)
1163
1165
 
1164
1166
  createdAt DateTime @default(now())
1165
1167
  updatedAt DateTime @updatedAt
@@ -0,0 +1,5 @@
1
+ -- AlterEnum
2
+ ALTER TYPE "UserFileUploadSource" ADD VALUE 'CANVAS';
3
+
4
+ -- AlterTable
5
+ ALTER TABLE "UserFile" ADD COLUMN "isAiGenerated" BOOLEAN NOT NULL DEFAULT false;