From 5d315a6bddac1ecc0029d0cd9c7079acebdbc27f Mon Sep 17 00:00:00 2001 From: sepehr Date: Mon, 12 Jan 2026 22:51:24 +0100 Subject: [PATCH] fix: make paragraph refactor service use configured AI provider The paragraph-refactor service was using OLLAMA_BASE_URL directly from environment variables instead of using the configured AI provider from the database. This caused "OLLAMA error" even when OpenAI was configured in the admin interface. Changes: - paragraph-refactor.service.ts: Now uses getSystemConfig() and getTagsProvider() from factory instead of direct Ollama calls - factory.ts: Added proper error messages when API keys are missing - .env.docker.example: Updated with new provider configuration variables (AI_PROVIDER_TAGS, AI_PROVIDER_EMBEDDING) This fixes the issue where AI reformulation features (Clarify, Shorten, Improve Style) would fail with OLLAMA errors even when OpenAI was properly configured in the admin settings. Co-Authored-By: Claude Sonnet 4.5 --- .env.docker.example | 37 +- keep-notes/lib/ai/factory.ts | 3 + .../ai/services/paragraph-refactor.service.ts | 74 +- keep-notes/prisma/client-generated/edge.js | 6 +- keep-notes/prisma/client-generated/index.d.ts | 5406 ++++++++--------- keep-notes/prisma/client-generated/index.js | 6 +- .../prisma/client-generated/package.json | 2 +- .../prisma/client-generated/schema.prisma | 240 +- keep-notes/prisma/schema.prisma | 282 +- keep-notes/scripts/debug-config.ts | 41 + 10 files changed, 3025 insertions(+), 3072 deletions(-) create mode 100644 keep-notes/scripts/debug-config.ts diff --git a/.env.docker.example b/.env.docker.example index 2da8140..96d2130 100644 --- a/.env.docker.example +++ b/.env.docker.example @@ -14,19 +14,37 @@ NEXTAUTH_URL="http://YOUR_SERVER_IP:3000" # ============================================ # AI Provider Configuration # ============================================ +# You can configure separate providers for tags and embeddings +# Options: ollama, openai, custom + # For local Ollama in Docker (service name): -AI_PROVIDER=ollama -OLLAMA_BASE_URL="http://ollama:11434" -OLLAMA_MODEL="granite4:latest" +# AI_PROVIDER_TAGS=ollama +# AI_PROVIDER_EMBEDDING=ollama +# OLLAMA_BASE_URL="http://ollama:11434" +# AI_MODEL_TAGS="granite4:latest" +# AI_MODEL_EMBEDDING="embeddinggemma:latest" # For external Ollama (on host or different server): -# AI_PROVIDER=ollama +# AI_PROVIDER_TAGS=ollama +# AI_PROVIDER_EMBEDDING=ollama # OLLAMA_BASE_URL="http://YOUR_SERVER_IP:11434" -# OLLAMA_MODEL="granite4:latest" +# AI_MODEL_TAGS="granite4:latest" +# AI_MODEL_EMBEDDING="embeddinggemma:latest" -# For OpenAI: -# AI_PROVIDER=openai +# For OpenAI (recommended for production): +# AI_PROVIDER_TAGS=openai +# AI_PROVIDER_EMBEDDING=openai # OPENAI_API_KEY="sk-..." +# AI_MODEL_TAGS="gpt-4o-mini" +# AI_MODEL_EMBEDDING="text-embedding-3-small" + +# Mixed setup (e.g., Ollama for tags, OpenAI for embeddings): +# AI_PROVIDER_TAGS=ollama +# AI_PROVIDER_EMBEDDING=openai +# OLLAMA_BASE_URL="http://ollama:11434" +# OPENAI_API_KEY="sk-..." +# AI_MODEL_TAGS="granite4:latest" +# AI_MODEL_EMBEDDING="text-embedding-3-small" # ============================================ # Email Configuration (Optional) @@ -37,8 +55,3 @@ OLLAMA_MODEL="granite4:latest" # SMTP_USER="your-email@gmail.com" # SMTP_PASS="your-app-password" # SMTP_FROM="noreply@memento.app" - -# ============================================ -# OpenAI (Optional - for GPT models) -# ============================================ -# OPENAI_API_KEY="sk-..." diff --git a/keep-notes/lib/ai/factory.ts b/keep-notes/lib/ai/factory.ts index a439ae8..f0b65bc 100644 --- a/keep-notes/lib/ai/factory.ts +++ b/keep-notes/lib/ai/factory.ts @@ -29,6 +29,7 @@ function createOpenAIProvider(config: Record, modelName: string, const apiKey = config?.OPENAI_API_KEY || process.env.OPENAI_API_KEY || ''; if (!apiKey) { + throw new Error('OPENAI_API_KEY is required when using OpenAI provider'); } return new OpenAIProvider(apiKey, modelName, embeddingModelName); @@ -39,9 +40,11 @@ function createCustomOpenAIProvider(config: Record, modelName: s const baseUrl = config?.CUSTOM_OPENAI_BASE_URL || process.env.CUSTOM_OPENAI_BASE_URL || ''; if (!apiKey) { + throw new Error('CUSTOM_OPENAI_API_KEY is required when using Custom OpenAI provider'); } if (!baseUrl) { + throw new Error('CUSTOM_OPENAI_BASE_URL is required when using Custom OpenAI provider'); } return new CustomOpenAIProvider(apiKey, baseUrl, modelName, embeddingModelName); diff --git a/keep-notes/lib/ai/services/paragraph-refactor.service.ts b/keep-notes/lib/ai/services/paragraph-refactor.service.ts index cdc5119..727bc0a 100644 --- a/keep-notes/lib/ai/services/paragraph-refactor.service.ts +++ b/keep-notes/lib/ai/services/paragraph-refactor.service.ts @@ -7,6 +7,8 @@ */ import { LanguageDetectionService } from './language-detection.service' +import { getTagsProvider } from '../factory' +import { getSystemConfig } from '@/lib/config' export type RefactorMode = 'clarify' | 'shorten' | 'improveStyle' @@ -83,37 +85,13 @@ export class ParagraphRefactorService { const systemPrompt = this.getSystemPrompt(mode) const userPrompt = this.getUserPrompt(mode, content, language) - // Get AI provider response using fetch - let baseUrl = process.env.OLLAMA_BASE_URL + // Get AI provider from factory + const config = await getSystemConfig() + const provider = getTagsProvider(config) - if (!baseUrl) { - throw new Error('OLLAMA_BASE_URL environment variable is required') - } - - // Remove /api suffix if present to avoid double /api/api/... - if (baseUrl.endsWith('/api')) { - baseUrl = baseUrl.slice(0, -4) - } - const modelName = process.env.OLLAMA_MODEL || 'granite4:latest' - - const response = await fetch(`${baseUrl}/api/generate`, { - method: 'POST', - headers: { 'Content-Type': 'application/json' }, - body: JSON.stringify({ - model: modelName, - system: systemPrompt, - prompt: userPrompt, - stream: false, - }), - }) - - if (!response.ok) { - throw new Error(`Provider error: ${response.statusText}`) - } - - const data = await response.json() - - const refactored = this.extractRefactoredText(data.response) + // Use provider's generateText method + const fullPrompt = `${systemPrompt}\n\n${userPrompt}` + const refactored = await provider.generateText(fullPrompt) // Calculate word count change const refactoredWordCount = refactored.split(/\s+/).length @@ -189,38 +167,16 @@ ${content} Original language: ${language} IMPORTANT: Provide all 3 versions in ${language}. No English, no explanations.` - // Get AI provider response using fetch - let baseUrl = process.env.OLLAMA_BASE_URL + // Get AI provider from factory + const config = await getSystemConfig() + const provider = getTagsProvider(config) - if (!baseUrl) { - throw new Error('OLLAMA_BASE_URL environment variable is required') - } - - // Remove /api suffix if present to avoid double /api/api/... - if (baseUrl.endsWith('/api')) { - baseUrl = baseUrl.slice(0, -4) - } - const modelName = process.env.OLLAMA_MODEL || 'granite4:latest' - - const response = await fetch(`${baseUrl}/api/generate`, { - method: 'POST', - headers: { 'Content-Type': 'application/json' }, - body: JSON.stringify({ - model: modelName, - system: systemPrompt, - prompt: userPrompt, - stream: false, - }), - }) - - if (!response.ok) { - throw new Error(`Provider error: ${response.statusText}`) - } - - const data = await response.json() + // Use provider's generateText method + const fullPrompt = `${systemPrompt}\n\n${userPrompt}` + const response = await provider.generateText(fullPrompt) // Parse JSON response - const jsonResponse = JSON.parse(data.response) + const jsonResponse = JSON.parse(response) const modes: RefactorMode[] = ['clarify', 'shorten', 'improveStyle'] const results: RefactorResult[] = [] diff --git a/keep-notes/prisma/client-generated/edge.js b/keep-notes/prisma/client-generated/edge.js index ac7bffb..9ce3729 100644 --- a/keep-notes/prisma/client-generated/edge.js +++ b/keep-notes/prisma/client-generated/edge.js @@ -319,13 +319,13 @@ const config = { } } }, - "inlineSchema": "// This is your Prisma schema file,\n// learn more about it in the docs: https://pris.ly/d/prisma-schema\n\ngenerator client {\n provider = \"prisma-client-js\"\n output = \"./client-generated\"\n binaryTargets = [\"debian-openssl-1.1.x\", \"native\"]\n}\n\ndatasource db {\n provider = \"sqlite\"\n url = env(\"DATABASE_URL\")\n}\n\nmodel User {\n id String @id @default(cuid())\n name String?\n email String @unique\n emailVerified DateTime?\n password String? // Hashed password\n role String @default(\"USER\") // \"USER\" or \"ADMIN\"\n image String?\n theme String @default(\"light\")\n resetToken String? @unique\n resetTokenExpiry DateTime?\n accounts Account[]\n sessions Session[]\n notes Note[]\n labels Label[]\n notebooks Notebook[] // NEW: Relation to notebooks\n receivedShares NoteShare[] @relation(\"ReceivedShares\")\n sentShares NoteShare[] @relation(\"SentShares\")\n\n // Phase 1 AI Relations\n aiFeedback AiFeedback[]\n aiSettings UserAISettings?\n memoryEchoInsights MemoryEchoInsight[]\n\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n}\n\nmodel Account {\n userId String\n type String\n provider String\n providerAccountId String\n refresh_token String?\n access_token String?\n expires_at Int?\n token_type String?\n scope String?\n id_token String?\n session_state String?\n\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n\n user User @relation(fields: [userId], references: [id], onDelete: Cascade)\n\n @@id([provider, providerAccountId])\n}\n\nmodel Session {\n sessionToken String @unique\n userId String\n expires DateTime\n user User @relation(fields: [userId], references: [id], onDelete: Cascade)\n\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n}\n\nmodel VerificationToken {\n identifier String\n token String\n expires DateTime\n\n @@id([identifier, token])\n}\n\n// NEW: Notebook model for organizing notes\nmodel Notebook {\n id String @id @default(cuid())\n name String\n icon String? // Emoji or icon name\n color String? // Hex color for personalization\n order Int // Manual order for drag & drop\n userId String\n user User @relation(fields: [userId], references: [id], onDelete: Cascade)\n notes Note[] // Notes can belong to a notebook\n labels Label[] // Labels are contextual to this notebook\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n\n @@index([userId, order])\n @@index([userId])\n}\n\nmodel Label {\n id String @id @default(cuid())\n name String\n color String @default(\"gray\")\n notebookId String? // TEMPORARY: Optional for migration, will be required later\n notebook Notebook? @relation(fields: [notebookId], references: [id], onDelete: Cascade)\n notes Note[] // NEW: Many-to-many relation with notes\n userId String? // DEPRECATED: Kept for migration, will be removed after migration\n user User? @relation(fields: [userId], references: [id], onDelete: Cascade)\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n\n @@unique([notebookId, name]) // NEW: Labels are unique within a notebook (ignored if notebookId is null)\n @@index([notebookId])\n @@index([userId]) // DEPRECATED: Keep for now, remove after migration\n}\n\nmodel Note {\n id String @id @default(cuid())\n title String?\n content String\n color String @default(\"default\")\n isPinned Boolean @default(false)\n isArchived Boolean @default(false)\n type String @default(\"text\") // \"text\" or \"checklist\"\n checkItems String? // For checklist items stored as JSON string\n labels String? // Array of label names stored as JSON string (DEPRECATED)\n images String? // Array of image URLs stored as JSON string\n links String? // Array of link metadata stored as JSON string\n reminder DateTime? // Reminder date and time\n isReminderDone Boolean @default(false)\n reminderRecurrence String? // \"none\", \"daily\", \"weekly\", \"monthly\", \"custom\"\n reminderLocation String? // Location for location-based reminders\n isMarkdown Boolean @default(false) // Whether content uses Markdown\n size String @default(\"small\") // \"small\", \"medium\", \"large\"\n embedding String? // Vector embeddings stored as JSON string for semantic search\n sharedWith String? // Array of user IDs (collaborators) stored as JSON string\n userId String? // Owner of the note\n user User? @relation(fields: [userId], references: [id], onDelete: Cascade)\n shares NoteShare[] // All share records for this note\n order Int @default(0)\n\n // NEW: Notebook relation (optional - null = \"Notes générales\" / Inbox)\n notebookId String? // NULL = note is in general notes\n notebook Notebook? @relation(fields: [notebookId], references: [id], onDelete: SetNull)\n\n // NEW: Many-to-many relation with labels\n labelRelations Label[] // Uses implicit _NoteToLabel junction table\n\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n\n // Phase 1 AI Extensions\n autoGenerated Boolean? // True if title/content was AI-generated\n aiProvider String? // 'openai' | 'ollama'\n aiConfidence Int? // 0-100 (collected Phase 1, UI Phase 3)\n language String? // ISO 639-1: 'fr', 'en', 'es', 'de', 'fa'\n languageConfidence Float? // 0.0-1.0\n lastAiAnalysis DateTime? // Timestamp of last AI analysis\n\n // Relations for Phase 1 AI\n aiFeedback AiFeedback[]\n memoryEchoAsNote1 MemoryEchoInsight[] @relation(\"EchoNote1\")\n memoryEchoAsNote2 MemoryEchoInsight[] @relation(\"EchoNote2\")\n\n @@index([isPinned])\n @@index([isArchived])\n @@index([order])\n @@index([reminder])\n @@index([userId])\n @@index([userId, notebookId]) // NEW: For filtering notes by notebook\n}\n\nmodel NoteShare {\n id String @id @default(cuid())\n noteId String\n note Note @relation(fields: [noteId], references: [id], onDelete: Cascade)\n userId String\n user User @relation(\"ReceivedShares\", fields: [userId], references: [id], onDelete: Cascade)\n sharedBy String // User ID who shared the note\n sharer User @relation(\"SentShares\", fields: [sharedBy], references: [id], onDelete: Cascade)\n status String @default(\"pending\") // \"pending\", \"accepted\", \"declined\", \"removed\"\n permission String @default(\"view\") // \"view\", \"comment\", \"edit\"\n notifiedAt DateTime?\n respondedAt DateTime?\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n\n @@unique([noteId, userId])\n @@index([userId])\n @@index([status])\n @@index([sharedBy])\n}\n\nmodel SystemConfig {\n key String @id\n value String\n}\n\n// Phase 1 MVP AI Models\n\nmodel AiFeedback {\n id String @id @default(cuid())\n noteId String\n userId String?\n feedbackType String // 'thumbs_up' | 'thumbs_down' | 'correction'\n feature String // 'title_suggestion' | 'memory_echo' | 'semantic_search' | 'paragraph_refactor'\n originalContent String // JSON string of AI-generated content\n correctedContent String? // User's modified version\n metadata String? // JSON string for additional data (provider, model, timestamp)\n createdAt DateTime @default(now())\n\n note Note @relation(fields: [noteId], references: [id], onDelete: Cascade)\n user User? @relation(fields: [userId], references: [id], onDelete: Cascade)\n\n @@index([noteId])\n @@index([userId])\n @@index([feature])\n}\n\nmodel MemoryEchoInsight {\n id String @id @default(cuid())\n userId String?\n note1Id String\n note2Id String\n similarityScore Float\n insight String // AI-generated explanation of the connection\n insightDate DateTime @default(now())\n viewed Boolean @default(false)\n feedback String? // 'thumbs_up' | 'thumbs_down'\n dismissed Boolean @default(false) // User dismissed this connection\n\n note1 Note @relation(\"EchoNote1\", fields: [note1Id], references: [id], onDelete: Cascade)\n note2 Note @relation(\"EchoNote2\", fields: [note2Id], references: [id], onDelete: Cascade)\n user User? @relation(fields: [userId], references: [id], onDelete: Cascade)\n\n @@unique([userId, insightDate])\n @@index([userId, insightDate])\n @@index([userId, dismissed]) // For filtering dismissed connections\n}\n\nmodel UserAISettings {\n userId String @id\n\n // Feature Flags (granular ON/OFF)\n titleSuggestions Boolean @default(true)\n semanticSearch Boolean @default(true)\n paragraphRefactor Boolean @default(true)\n memoryEcho Boolean @default(true)\n\n // Configuration\n memoryEchoFrequency String @default(\"daily\") // 'daily' | 'weekly' | 'custom'\n aiProvider String @default(\"auto\") // 'auto' | 'openai' | 'ollama'\n preferredLanguage String @default(\"auto\") // 'auto' | 'en' | 'fr' | 'es' | 'de' | 'fa' | 'it' | 'pt' | 'ru' | 'zh' | 'ja' | 'ko' | 'ar' | 'hi' | 'nl' | 'pl'\n fontSize String @default(\"medium\") // 'small' | 'medium' | 'large' | 'extra-large'\n demoMode Boolean @default(false) // Demo mode for testing Memory Echo\n\n // Relation\n user User @relation(fields: [userId], references: [id], onDelete: Cascade)\n\n // Indexes for analytics\n @@index([memoryEcho])\n @@index([aiProvider])\n @@index([memoryEchoFrequency])\n @@index([preferredLanguage])\n}\n", - "inlineSchemaHash": "ae4e60997fb32227785be8abc02a406d65b24fd1e7099d80c851da7a935260e2", + "inlineSchema": "generator client {\n provider = \"prisma-client-js\"\n output = \"./client-generated\"\n binaryTargets = [\"debian-openssl-1.1.x\", \"native\"]\n}\n\ndatasource db {\n provider = \"sqlite\"\n url = env(\"DATABASE_URL\")\n}\n\nmodel User {\n id String @id @default(cuid())\n name String?\n email String @unique\n emailVerified DateTime?\n password String?\n role String @default(\"USER\")\n image String?\n theme String @default(\"light\")\n resetToken String? @unique\n resetTokenExpiry DateTime?\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n accounts Account[]\n aiFeedback AiFeedback[]\n labels Label[]\n memoryEchoInsights MemoryEchoInsight[]\n notes Note[]\n sentShares NoteShare[] @relation(\"SentShares\")\n receivedShares NoteShare[] @relation(\"ReceivedShares\")\n notebooks Notebook[]\n sessions Session[]\n aiSettings UserAISettings?\n}\n\nmodel Account {\n userId String\n type String\n provider String\n providerAccountId String\n refresh_token String?\n access_token String?\n expires_at Int?\n token_type String?\n scope String?\n id_token String?\n session_state String?\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n user User @relation(fields: [userId], references: [id], onDelete: Cascade)\n\n @@id([provider, providerAccountId])\n}\n\nmodel Session {\n sessionToken String @unique\n userId String\n expires DateTime\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n user User @relation(fields: [userId], references: [id], onDelete: Cascade)\n}\n\nmodel VerificationToken {\n identifier String\n token String\n expires DateTime\n\n @@id([identifier, token])\n}\n\nmodel Notebook {\n id String @id @default(cuid())\n name String\n icon String?\n color String?\n order Int\n userId String\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n labels Label[]\n notes Note[]\n user User @relation(fields: [userId], references: [id], onDelete: Cascade)\n\n @@index([userId, order])\n @@index([userId])\n}\n\nmodel Label {\n id String @id @default(cuid())\n name String\n color String @default(\"gray\")\n notebookId String?\n userId String?\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n user User? @relation(fields: [userId], references: [id], onDelete: Cascade)\n notebook Notebook? @relation(fields: [notebookId], references: [id], onDelete: Cascade)\n notes Note[] @relation(\"LabelToNote\")\n\n @@unique([notebookId, name])\n @@index([notebookId])\n @@index([userId])\n}\n\nmodel Note {\n id String @id @default(cuid())\n title String?\n content String\n color String @default(\"default\")\n isPinned Boolean @default(false)\n isArchived Boolean @default(false)\n type String @default(\"text\")\n checkItems String?\n labels String?\n images String?\n links String?\n reminder DateTime?\n isReminderDone Boolean @default(false)\n reminderRecurrence String?\n reminderLocation String?\n isMarkdown Boolean @default(false)\n size String @default(\"small\")\n embedding String?\n sharedWith String?\n userId String?\n order Int @default(0)\n notebookId String?\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n autoGenerated Boolean?\n aiProvider String?\n aiConfidence Int?\n language String?\n languageConfidence Float?\n lastAiAnalysis DateTime?\n aiFeedback AiFeedback[]\n memoryEchoAsNote2 MemoryEchoInsight[] @relation(\"EchoNote2\")\n memoryEchoAsNote1 MemoryEchoInsight[] @relation(\"EchoNote1\")\n notebook Notebook? @relation(fields: [notebookId], references: [id])\n user User? @relation(fields: [userId], references: [id], onDelete: Cascade)\n shares NoteShare[]\n labelRelations Label[] @relation(\"LabelToNote\")\n\n @@index([isPinned])\n @@index([isArchived])\n @@index([order])\n @@index([reminder])\n @@index([userId])\n @@index([userId, notebookId])\n}\n\nmodel NoteShare {\n id String @id @default(cuid())\n noteId String\n userId String\n sharedBy String\n status String @default(\"pending\")\n permission String @default(\"view\")\n notifiedAt DateTime?\n respondedAt DateTime?\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n sharer User @relation(\"SentShares\", fields: [sharedBy], references: [id], onDelete: Cascade)\n user User @relation(\"ReceivedShares\", fields: [userId], references: [id], onDelete: Cascade)\n note Note @relation(fields: [noteId], references: [id], onDelete: Cascade)\n\n @@unique([noteId, userId])\n @@index([userId])\n @@index([status])\n @@index([sharedBy])\n}\n\nmodel SystemConfig {\n key String @id\n value String\n}\n\nmodel AiFeedback {\n id String @id @default(cuid())\n noteId String\n userId String?\n feedbackType String\n feature String\n originalContent String\n correctedContent String?\n metadata String?\n createdAt DateTime @default(now())\n user User? @relation(fields: [userId], references: [id], onDelete: Cascade)\n note Note @relation(fields: [noteId], references: [id], onDelete: Cascade)\n\n @@index([noteId])\n @@index([userId])\n @@index([feature])\n}\n\nmodel MemoryEchoInsight {\n id String @id @default(cuid())\n userId String?\n note1Id String\n note2Id String\n similarityScore Float\n insight String\n insightDate DateTime @default(now())\n viewed Boolean @default(false)\n feedback String?\n dismissed Boolean @default(false)\n user User? @relation(fields: [userId], references: [id], onDelete: Cascade)\n note2 Note @relation(\"EchoNote2\", fields: [note2Id], references: [id], onDelete: Cascade)\n note1 Note @relation(\"EchoNote1\", fields: [note1Id], references: [id], onDelete: Cascade)\n\n @@unique([userId, insightDate])\n @@index([userId, insightDate])\n @@index([userId, dismissed])\n}\n\nmodel UserAISettings {\n userId String @id\n titleSuggestions Boolean @default(true)\n semanticSearch Boolean @default(true)\n paragraphRefactor Boolean @default(true)\n memoryEcho Boolean @default(true)\n memoryEchoFrequency String @default(\"daily\")\n aiProvider String @default(\"auto\")\n preferredLanguage String @default(\"auto\")\n fontSize String @default(\"medium\")\n demoMode Boolean @default(false)\n user User @relation(fields: [userId], references: [id], onDelete: Cascade)\n\n @@index([memoryEcho])\n @@index([aiProvider])\n @@index([memoryEchoFrequency])\n @@index([preferredLanguage])\n}\n", + "inlineSchemaHash": "4079921d971a2680359f4be0f9d9995aed4306a037ee478ba417e803ddcce2e1", "copyEngine": true } config.dirname = '/' -config.runtimeDataModel = JSON.parse("{\"models\":{\"User\":{\"dbName\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":{\"name\":\"cuid\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"name\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"email\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":true,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"emailVerified\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"password\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"role\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":\"USER\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"image\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"theme\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":\"light\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"resetToken\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":true,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"resetTokenExpiry\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"accounts\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Account\",\"relationName\":\"AccountToUser\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"sessions\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Session\",\"relationName\":\"SessionToUser\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"notes\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Note\",\"relationName\":\"NoteToUser\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"labels\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Label\",\"relationName\":\"LabelToUser\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"notebooks\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Notebook\",\"relationName\":\"NotebookToUser\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"receivedShares\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"NoteShare\",\"relationName\":\"ReceivedShares\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"sentShares\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"NoteShare\",\"relationName\":\"SentShares\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"aiFeedback\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"AiFeedback\",\"relationName\":\"AiFeedbackToUser\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"aiSettings\",\"kind\":\"object\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"UserAISettings\",\"relationName\":\"UserToUserAISettings\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"memoryEchoInsights\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"MemoryEchoInsight\",\"relationName\":\"MemoryEchoInsightToUser\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":true}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"Account\":{\"dbName\":null,\"fields\":[{\"name\":\"userId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"type\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"provider\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"providerAccountId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"refresh_token\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"access_token\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"expires_at\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Int\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"token_type\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"scope\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"id_token\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"session_state\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":true},{\"name\":\"user\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"User\",\"relationName\":\"AccountToUser\",\"relationFromFields\":[\"userId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":{\"name\":null,\"fields\":[\"provider\",\"providerAccountId\"]},\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"Session\":{\"dbName\":null,\"fields\":[{\"name\":\"sessionToken\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":true,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"userId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"expires\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"user\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"User\",\"relationName\":\"SessionToUser\",\"relationFromFields\":[\"userId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":true}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"VerificationToken\":{\"dbName\":null,\"fields\":[{\"name\":\"identifier\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"token\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"expires\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":{\"name\":null,\"fields\":[\"identifier\",\"token\"]},\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"Notebook\":{\"dbName\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":{\"name\":\"cuid\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"name\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"icon\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"color\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"order\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Int\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"userId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"user\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"User\",\"relationName\":\"NotebookToUser\",\"relationFromFields\":[\"userId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"notes\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Note\",\"relationName\":\"NoteToNotebook\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"labels\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Label\",\"relationName\":\"LabelToNotebook\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":true}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"Label\":{\"dbName\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":{\"name\":\"cuid\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"name\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"color\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":\"gray\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"notebookId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"notebook\",\"kind\":\"object\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Notebook\",\"relationName\":\"LabelToNotebook\",\"relationFromFields\":[\"notebookId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"notes\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Note\",\"relationName\":\"LabelToNote\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"userId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"user\",\"kind\":\"object\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"User\",\"relationName\":\"LabelToUser\",\"relationFromFields\":[\"userId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":true}],\"primaryKey\":null,\"uniqueFields\":[[\"notebookId\",\"name\"]],\"uniqueIndexes\":[{\"name\":null,\"fields\":[\"notebookId\",\"name\"]}],\"isGenerated\":false},\"Note\":{\"dbName\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":{\"name\":\"cuid\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"title\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"content\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"color\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":\"default\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"isPinned\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"default\":false,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"isArchived\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"default\":false,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"type\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":\"text\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"checkItems\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"labels\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"images\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"links\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"reminder\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"isReminderDone\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"default\":false,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"reminderRecurrence\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"reminderLocation\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"isMarkdown\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"default\":false,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"size\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":\"small\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"embedding\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"sharedWith\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"userId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"user\",\"kind\":\"object\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"User\",\"relationName\":\"NoteToUser\",\"relationFromFields\":[\"userId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"shares\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"NoteShare\",\"relationName\":\"NoteToNoteShare\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"order\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Int\",\"default\":0,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"notebookId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"notebook\",\"kind\":\"object\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Notebook\",\"relationName\":\"NoteToNotebook\",\"relationFromFields\":[\"notebookId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"SetNull\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"labelRelations\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Label\",\"relationName\":\"LabelToNote\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":true},{\"name\":\"autoGenerated\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Boolean\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"aiProvider\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"aiConfidence\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Int\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"language\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"languageConfidence\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Float\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"lastAiAnalysis\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"aiFeedback\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"AiFeedback\",\"relationName\":\"AiFeedbackToNote\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"memoryEchoAsNote1\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"MemoryEchoInsight\",\"relationName\":\"EchoNote1\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"memoryEchoAsNote2\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"MemoryEchoInsight\",\"relationName\":\"EchoNote2\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"NoteShare\":{\"dbName\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":{\"name\":\"cuid\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"noteId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"note\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Note\",\"relationName\":\"NoteToNoteShare\",\"relationFromFields\":[\"noteId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"userId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"user\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"User\",\"relationName\":\"ReceivedShares\",\"relationFromFields\":[\"userId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"sharedBy\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"sharer\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"User\",\"relationName\":\"SentShares\",\"relationFromFields\":[\"sharedBy\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"status\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":\"pending\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"permission\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":\"view\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"notifiedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"respondedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":true}],\"primaryKey\":null,\"uniqueFields\":[[\"noteId\",\"userId\"]],\"uniqueIndexes\":[{\"name\":null,\"fields\":[\"noteId\",\"userId\"]}],\"isGenerated\":false},\"SystemConfig\":{\"dbName\":null,\"fields\":[{\"name\":\"key\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"value\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"AiFeedback\":{\"dbName\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":{\"name\":\"cuid\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"noteId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"userId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"feedbackType\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"feature\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"originalContent\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"correctedContent\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"metadata\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"note\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Note\",\"relationName\":\"AiFeedbackToNote\",\"relationFromFields\":[\"noteId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"user\",\"kind\":\"object\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"User\",\"relationName\":\"AiFeedbackToUser\",\"relationFromFields\":[\"userId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"MemoryEchoInsight\":{\"dbName\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":{\"name\":\"cuid\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"userId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"note1Id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"note2Id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"similarityScore\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Float\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"insight\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"insightDate\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"viewed\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"default\":false,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"feedback\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"dismissed\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"default\":false,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"note1\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Note\",\"relationName\":\"EchoNote1\",\"relationFromFields\":[\"note1Id\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"note2\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Note\",\"relationName\":\"EchoNote2\",\"relationFromFields\":[\"note2Id\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"user\",\"kind\":\"object\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"User\",\"relationName\":\"MemoryEchoInsightToUser\",\"relationFromFields\":[\"userId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[[\"userId\",\"insightDate\"]],\"uniqueIndexes\":[{\"name\":null,\"fields\":[\"userId\",\"insightDate\"]}],\"isGenerated\":false},\"UserAISettings\":{\"dbName\":null,\"fields\":[{\"name\":\"userId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"titleSuggestions\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"default\":true,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"semanticSearch\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"default\":true,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"paragraphRefactor\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"default\":true,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"memoryEcho\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"default\":true,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"memoryEchoFrequency\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":\"daily\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"aiProvider\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":\"auto\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"preferredLanguage\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":\"auto\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"fontSize\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":\"medium\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"demoMode\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"default\":false,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"user\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"User\",\"relationName\":\"UserToUserAISettings\",\"relationFromFields\":[\"userId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false}},\"enums\":{},\"types\":{}}") +config.runtimeDataModel = JSON.parse("{\"models\":{\"User\":{\"dbName\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":{\"name\":\"cuid\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"name\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"email\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":true,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"emailVerified\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"password\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"role\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":\"USER\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"image\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"theme\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":\"light\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"resetToken\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":true,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"resetTokenExpiry\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":true},{\"name\":\"accounts\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Account\",\"relationName\":\"AccountToUser\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"aiFeedback\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"AiFeedback\",\"relationName\":\"AiFeedbackToUser\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"labels\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Label\",\"relationName\":\"LabelToUser\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"memoryEchoInsights\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"MemoryEchoInsight\",\"relationName\":\"MemoryEchoInsightToUser\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"notes\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Note\",\"relationName\":\"NoteToUser\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"sentShares\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"NoteShare\",\"relationName\":\"SentShares\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"receivedShares\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"NoteShare\",\"relationName\":\"ReceivedShares\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"notebooks\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Notebook\",\"relationName\":\"NotebookToUser\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"sessions\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Session\",\"relationName\":\"SessionToUser\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"aiSettings\",\"kind\":\"object\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"UserAISettings\",\"relationName\":\"UserToUserAISettings\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"Account\":{\"dbName\":null,\"fields\":[{\"name\":\"userId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"type\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"provider\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"providerAccountId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"refresh_token\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"access_token\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"expires_at\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Int\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"token_type\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"scope\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"id_token\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"session_state\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":true},{\"name\":\"user\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"User\",\"relationName\":\"AccountToUser\",\"relationFromFields\":[\"userId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":{\"name\":null,\"fields\":[\"provider\",\"providerAccountId\"]},\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"Session\":{\"dbName\":null,\"fields\":[{\"name\":\"sessionToken\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":true,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"userId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"expires\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":true},{\"name\":\"user\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"User\",\"relationName\":\"SessionToUser\",\"relationFromFields\":[\"userId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"VerificationToken\":{\"dbName\":null,\"fields\":[{\"name\":\"identifier\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"token\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"expires\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":{\"name\":null,\"fields\":[\"identifier\",\"token\"]},\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"Notebook\":{\"dbName\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":{\"name\":\"cuid\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"name\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"icon\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"color\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"order\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Int\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"userId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":true},{\"name\":\"labels\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Label\",\"relationName\":\"LabelToNotebook\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"notes\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Note\",\"relationName\":\"NoteToNotebook\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"user\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"User\",\"relationName\":\"NotebookToUser\",\"relationFromFields\":[\"userId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"Label\":{\"dbName\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":{\"name\":\"cuid\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"name\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"color\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":\"gray\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"notebookId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"userId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":true},{\"name\":\"user\",\"kind\":\"object\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"User\",\"relationName\":\"LabelToUser\",\"relationFromFields\":[\"userId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"notebook\",\"kind\":\"object\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Notebook\",\"relationName\":\"LabelToNotebook\",\"relationFromFields\":[\"notebookId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"notes\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Note\",\"relationName\":\"LabelToNote\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[[\"notebookId\",\"name\"]],\"uniqueIndexes\":[{\"name\":null,\"fields\":[\"notebookId\",\"name\"]}],\"isGenerated\":false},\"Note\":{\"dbName\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":{\"name\":\"cuid\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"title\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"content\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"color\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":\"default\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"isPinned\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"default\":false,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"isArchived\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"default\":false,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"type\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":\"text\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"checkItems\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"labels\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"images\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"links\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"reminder\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"isReminderDone\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"default\":false,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"reminderRecurrence\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"reminderLocation\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"isMarkdown\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"default\":false,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"size\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":\"small\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"embedding\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"sharedWith\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"userId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"order\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Int\",\"default\":0,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"notebookId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":true},{\"name\":\"autoGenerated\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Boolean\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"aiProvider\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"aiConfidence\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Int\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"language\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"languageConfidence\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Float\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"lastAiAnalysis\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"aiFeedback\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"AiFeedback\",\"relationName\":\"AiFeedbackToNote\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"memoryEchoAsNote2\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"MemoryEchoInsight\",\"relationName\":\"EchoNote2\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"memoryEchoAsNote1\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"MemoryEchoInsight\",\"relationName\":\"EchoNote1\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"notebook\",\"kind\":\"object\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Notebook\",\"relationName\":\"NoteToNotebook\",\"relationFromFields\":[\"notebookId\"],\"relationToFields\":[\"id\"],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"user\",\"kind\":\"object\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"User\",\"relationName\":\"NoteToUser\",\"relationFromFields\":[\"userId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"shares\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"NoteShare\",\"relationName\":\"NoteToNoteShare\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"labelRelations\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Label\",\"relationName\":\"LabelToNote\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"NoteShare\":{\"dbName\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":{\"name\":\"cuid\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"noteId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"userId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"sharedBy\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"status\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":\"pending\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"permission\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":\"view\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"notifiedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"respondedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":true},{\"name\":\"sharer\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"User\",\"relationName\":\"SentShares\",\"relationFromFields\":[\"sharedBy\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"user\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"User\",\"relationName\":\"ReceivedShares\",\"relationFromFields\":[\"userId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"note\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Note\",\"relationName\":\"NoteToNoteShare\",\"relationFromFields\":[\"noteId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[[\"noteId\",\"userId\"]],\"uniqueIndexes\":[{\"name\":null,\"fields\":[\"noteId\",\"userId\"]}],\"isGenerated\":false},\"SystemConfig\":{\"dbName\":null,\"fields\":[{\"name\":\"key\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"value\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"AiFeedback\":{\"dbName\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":{\"name\":\"cuid\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"noteId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"userId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"feedbackType\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"feature\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"originalContent\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"correctedContent\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"metadata\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"user\",\"kind\":\"object\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"User\",\"relationName\":\"AiFeedbackToUser\",\"relationFromFields\":[\"userId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"note\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Note\",\"relationName\":\"AiFeedbackToNote\",\"relationFromFields\":[\"noteId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"MemoryEchoInsight\":{\"dbName\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":{\"name\":\"cuid\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"userId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"note1Id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"note2Id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"similarityScore\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Float\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"insight\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"insightDate\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"viewed\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"default\":false,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"feedback\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"dismissed\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"default\":false,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"user\",\"kind\":\"object\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"User\",\"relationName\":\"MemoryEchoInsightToUser\",\"relationFromFields\":[\"userId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"note2\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Note\",\"relationName\":\"EchoNote2\",\"relationFromFields\":[\"note2Id\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"note1\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Note\",\"relationName\":\"EchoNote1\",\"relationFromFields\":[\"note1Id\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[[\"userId\",\"insightDate\"]],\"uniqueIndexes\":[{\"name\":null,\"fields\":[\"userId\",\"insightDate\"]}],\"isGenerated\":false},\"UserAISettings\":{\"dbName\":null,\"fields\":[{\"name\":\"userId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"titleSuggestions\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"default\":true,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"semanticSearch\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"default\":true,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"paragraphRefactor\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"default\":true,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"memoryEcho\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"default\":true,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"memoryEchoFrequency\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":\"daily\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"aiProvider\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":\"auto\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"preferredLanguage\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":\"auto\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"fontSize\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":\"medium\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"demoMode\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"default\":false,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"user\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"User\",\"relationName\":\"UserToUserAISettings\",\"relationFromFields\":[\"userId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false}},\"enums\":{},\"types\":{}}") defineDmmfProperty(exports.Prisma, config.runtimeDataModel) config.engineWasm = undefined diff --git a/keep-notes/prisma/client-generated/index.d.ts b/keep-notes/prisma/client-generated/index.d.ts index 90ceb04..7d7a4b8 100644 --- a/keep-notes/prisma/client-generated/index.d.ts +++ b/keep-notes/prisma/client-generated/index.d.ts @@ -1790,26 +1790,26 @@ export namespace Prisma { export type UserCountOutputType = { accounts: number - sessions: number - notes: number - labels: number - notebooks: number - receivedShares: number - sentShares: number aiFeedback: number + labels: number memoryEchoInsights: number + notes: number + sentShares: number + receivedShares: number + notebooks: number + sessions: number } export type UserCountOutputTypeSelect = { accounts?: boolean | UserCountOutputTypeCountAccountsArgs - sessions?: boolean | UserCountOutputTypeCountSessionsArgs - notes?: boolean | UserCountOutputTypeCountNotesArgs - labels?: boolean | UserCountOutputTypeCountLabelsArgs - notebooks?: boolean | UserCountOutputTypeCountNotebooksArgs - receivedShares?: boolean | UserCountOutputTypeCountReceivedSharesArgs - sentShares?: boolean | UserCountOutputTypeCountSentSharesArgs aiFeedback?: boolean | UserCountOutputTypeCountAiFeedbackArgs + labels?: boolean | UserCountOutputTypeCountLabelsArgs memoryEchoInsights?: boolean | UserCountOutputTypeCountMemoryEchoInsightsArgs + notes?: boolean | UserCountOutputTypeCountNotesArgs + sentShares?: boolean | UserCountOutputTypeCountSentSharesArgs + receivedShares?: boolean | UserCountOutputTypeCountReceivedSharesArgs + notebooks?: boolean | UserCountOutputTypeCountNotebooksArgs + sessions?: boolean | UserCountOutputTypeCountSessionsArgs } // Custom InputTypes @@ -1833,15 +1833,8 @@ export namespace Prisma { /** * UserCountOutputType without action */ - export type UserCountOutputTypeCountSessionsArgs = { - where?: SessionWhereInput - } - - /** - * UserCountOutputType without action - */ - export type UserCountOutputTypeCountNotesArgs = { - where?: NoteWhereInput + export type UserCountOutputTypeCountAiFeedbackArgs = { + where?: AiFeedbackWhereInput } /** @@ -1854,15 +1847,15 @@ export namespace Prisma { /** * UserCountOutputType without action */ - export type UserCountOutputTypeCountNotebooksArgs = { - where?: NotebookWhereInput + export type UserCountOutputTypeCountMemoryEchoInsightsArgs = { + where?: MemoryEchoInsightWhereInput } /** * UserCountOutputType without action */ - export type UserCountOutputTypeCountReceivedSharesArgs = { - where?: NoteShareWhereInput + export type UserCountOutputTypeCountNotesArgs = { + where?: NoteWhereInput } /** @@ -1875,15 +1868,22 @@ export namespace Prisma { /** * UserCountOutputType without action */ - export type UserCountOutputTypeCountAiFeedbackArgs = { - where?: AiFeedbackWhereInput + export type UserCountOutputTypeCountReceivedSharesArgs = { + where?: NoteShareWhereInput } /** * UserCountOutputType without action */ - export type UserCountOutputTypeCountMemoryEchoInsightsArgs = { - where?: MemoryEchoInsightWhereInput + export type UserCountOutputTypeCountNotebooksArgs = { + where?: NotebookWhereInput + } + + /** + * UserCountOutputType without action + */ + export type UserCountOutputTypeCountSessionsArgs = { + where?: SessionWhereInput } @@ -1892,13 +1892,13 @@ export namespace Prisma { */ export type NotebookCountOutputType = { - notes: number labels: number + notes: number } export type NotebookCountOutputTypeSelect = { - notes?: boolean | NotebookCountOutputTypeCountNotesArgs labels?: boolean | NotebookCountOutputTypeCountLabelsArgs + notes?: boolean | NotebookCountOutputTypeCountNotesArgs } // Custom InputTypes @@ -1915,15 +1915,15 @@ export namespace Prisma { /** * NotebookCountOutputType without action */ - export type NotebookCountOutputTypeCountNotesArgs = { - where?: NoteWhereInput + export type NotebookCountOutputTypeCountLabelsArgs = { + where?: LabelWhereInput } /** * NotebookCountOutputType without action */ - export type NotebookCountOutputTypeCountLabelsArgs = { - where?: LabelWhereInput + export type NotebookCountOutputTypeCountNotesArgs = { + where?: NoteWhereInput } @@ -1963,19 +1963,19 @@ export namespace Prisma { */ export type NoteCountOutputType = { + aiFeedback: number + memoryEchoAsNote2: number + memoryEchoAsNote1: number shares: number labelRelations: number - aiFeedback: number - memoryEchoAsNote1: number - memoryEchoAsNote2: number } export type NoteCountOutputTypeSelect = { + aiFeedback?: boolean | NoteCountOutputTypeCountAiFeedbackArgs + memoryEchoAsNote2?: boolean | NoteCountOutputTypeCountMemoryEchoAsNote2Args + memoryEchoAsNote1?: boolean | NoteCountOutputTypeCountMemoryEchoAsNote1Args shares?: boolean | NoteCountOutputTypeCountSharesArgs labelRelations?: boolean | NoteCountOutputTypeCountLabelRelationsArgs - aiFeedback?: boolean | NoteCountOutputTypeCountAiFeedbackArgs - memoryEchoAsNote1?: boolean | NoteCountOutputTypeCountMemoryEchoAsNote1Args - memoryEchoAsNote2?: boolean | NoteCountOutputTypeCountMemoryEchoAsNote2Args } // Custom InputTypes @@ -1989,20 +1989,6 @@ export namespace Prisma { select?: NoteCountOutputTypeSelect | null } - /** - * NoteCountOutputType without action - */ - export type NoteCountOutputTypeCountSharesArgs = { - where?: NoteShareWhereInput - } - - /** - * NoteCountOutputType without action - */ - export type NoteCountOutputTypeCountLabelRelationsArgs = { - where?: LabelWhereInput - } - /** * NoteCountOutputType without action */ @@ -2010,6 +1996,13 @@ export namespace Prisma { where?: AiFeedbackWhereInput } + /** + * NoteCountOutputType without action + */ + export type NoteCountOutputTypeCountMemoryEchoAsNote2Args = { + where?: MemoryEchoInsightWhereInput + } + /** * NoteCountOutputType without action */ @@ -2020,8 +2013,15 @@ export namespace Prisma { /** * NoteCountOutputType without action */ - export type NoteCountOutputTypeCountMemoryEchoAsNote2Args = { - where?: MemoryEchoInsightWhereInput + export type NoteCountOutputTypeCountSharesArgs = { + where?: NoteShareWhereInput + } + + /** + * NoteCountOutputType without action + */ + export type NoteCountOutputTypeCountLabelRelationsArgs = { + where?: LabelWhereInput } @@ -2250,15 +2250,15 @@ export namespace Prisma { createdAt?: boolean updatedAt?: boolean accounts?: boolean | User$accountsArgs - sessions?: boolean | User$sessionsArgs - notes?: boolean | User$notesArgs - labels?: boolean | User$labelsArgs - notebooks?: boolean | User$notebooksArgs - receivedShares?: boolean | User$receivedSharesArgs - sentShares?: boolean | User$sentSharesArgs aiFeedback?: boolean | User$aiFeedbackArgs - aiSettings?: boolean | User$aiSettingsArgs + labels?: boolean | User$labelsArgs memoryEchoInsights?: boolean | User$memoryEchoInsightsArgs + notes?: boolean | User$notesArgs + sentShares?: boolean | User$sentSharesArgs + receivedShares?: boolean | User$receivedSharesArgs + notebooks?: boolean | User$notebooksArgs + sessions?: boolean | User$sessionsArgs + aiSettings?: boolean | User$aiSettingsArgs _count?: boolean | UserCountOutputTypeDefaultArgs }, ExtArgs["result"]["user"]> @@ -2294,15 +2294,15 @@ export namespace Prisma { export type UserInclude = { accounts?: boolean | User$accountsArgs - sessions?: boolean | User$sessionsArgs - notes?: boolean | User$notesArgs - labels?: boolean | User$labelsArgs - notebooks?: boolean | User$notebooksArgs - receivedShares?: boolean | User$receivedSharesArgs - sentShares?: boolean | User$sentSharesArgs aiFeedback?: boolean | User$aiFeedbackArgs - aiSettings?: boolean | User$aiSettingsArgs + labels?: boolean | User$labelsArgs memoryEchoInsights?: boolean | User$memoryEchoInsightsArgs + notes?: boolean | User$notesArgs + sentShares?: boolean | User$sentSharesArgs + receivedShares?: boolean | User$receivedSharesArgs + notebooks?: boolean | User$notebooksArgs + sessions?: boolean | User$sessionsArgs + aiSettings?: boolean | User$aiSettingsArgs _count?: boolean | UserCountOutputTypeDefaultArgs } export type UserIncludeCreateManyAndReturn = {} @@ -2311,15 +2311,15 @@ export namespace Prisma { name: "User" objects: { accounts: Prisma.$AccountPayload[] - sessions: Prisma.$SessionPayload[] - notes: Prisma.$NotePayload[] - labels: Prisma.$LabelPayload[] - notebooks: Prisma.$NotebookPayload[] - receivedShares: Prisma.$NoteSharePayload[] - sentShares: Prisma.$NoteSharePayload[] aiFeedback: Prisma.$AiFeedbackPayload[] - aiSettings: Prisma.$UserAISettingsPayload | null + labels: Prisma.$LabelPayload[] memoryEchoInsights: Prisma.$MemoryEchoInsightPayload[] + notes: Prisma.$NotePayload[] + sentShares: Prisma.$NoteSharePayload[] + receivedShares: Prisma.$NoteSharePayload[] + notebooks: Prisma.$NotebookPayload[] + sessions: Prisma.$SessionPayload[] + aiSettings: Prisma.$UserAISettingsPayload | null } scalars: $Extensions.GetPayloadResult<{ id: string @@ -2699,15 +2699,15 @@ export namespace Prisma { export interface Prisma__UserClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" accounts = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany"> | Null> - sessions = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany"> | Null> - notes = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany"> | Null> - labels = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany"> | Null> - notebooks = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany"> | Null> - receivedShares = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany"> | Null> - sentShares = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany"> | Null> aiFeedback = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany"> | Null> - aiSettings = {}>(args?: Subset>): Prisma__UserAISettingsClient<$Result.GetResult, T, "findUniqueOrThrow"> | null, null, ExtArgs> + labels = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany"> | Null> memoryEchoInsights = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany"> | Null> + notes = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany"> | Null> + sentShares = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany"> | Null> + receivedShares = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany"> | Null> + notebooks = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany"> | Null> + sessions = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany"> | Null> + aiSettings = {}>(args?: Subset>): Prisma__UserAISettingsClient<$Result.GetResult, T, "findUniqueOrThrow"> | null, null, ExtArgs> /** * Attaches callbacks for the resolution and/or rejection of the Promise. * @param onfulfilled The callback to execute when the Promise is resolved. @@ -3081,43 +3081,23 @@ export namespace Prisma { } /** - * User.sessions + * User.aiFeedback */ - export type User$sessionsArgs = { + export type User$aiFeedbackArgs = { /** - * Select specific fields to fetch from the Session + * Select specific fields to fetch from the AiFeedback */ - select?: SessionSelect | null + select?: AiFeedbackSelect | null /** * Choose, which related nodes to fetch as well */ - include?: SessionInclude | null - where?: SessionWhereInput - orderBy?: SessionOrderByWithRelationInput | SessionOrderByWithRelationInput[] - cursor?: SessionWhereUniqueInput + include?: AiFeedbackInclude | null + where?: AiFeedbackWhereInput + orderBy?: AiFeedbackOrderByWithRelationInput | AiFeedbackOrderByWithRelationInput[] + cursor?: AiFeedbackWhereUniqueInput take?: number skip?: number - distinct?: SessionScalarFieldEnum | SessionScalarFieldEnum[] - } - - /** - * User.notes - */ - export type User$notesArgs = { - /** - * Select specific fields to fetch from the Note - */ - select?: NoteSelect | null - /** - * Choose, which related nodes to fetch as well - */ - include?: NoteInclude | null - where?: NoteWhereInput - orderBy?: NoteOrderByWithRelationInput | NoteOrderByWithRelationInput[] - cursor?: NoteWhereUniqueInput - take?: number - skip?: number - distinct?: NoteScalarFieldEnum | NoteScalarFieldEnum[] + distinct?: AiFeedbackScalarFieldEnum | AiFeedbackScalarFieldEnum[] } /** @@ -3141,43 +3121,43 @@ export namespace Prisma { } /** - * User.notebooks + * User.memoryEchoInsights */ - export type User$notebooksArgs = { + export type User$memoryEchoInsightsArgs = { /** - * Select specific fields to fetch from the Notebook + * Select specific fields to fetch from the MemoryEchoInsight */ - select?: NotebookSelect | null + select?: MemoryEchoInsightSelect | null /** * Choose, which related nodes to fetch as well */ - include?: NotebookInclude | null - where?: NotebookWhereInput - orderBy?: NotebookOrderByWithRelationInput | NotebookOrderByWithRelationInput[] - cursor?: NotebookWhereUniqueInput + include?: MemoryEchoInsightInclude | null + where?: MemoryEchoInsightWhereInput + orderBy?: MemoryEchoInsightOrderByWithRelationInput | MemoryEchoInsightOrderByWithRelationInput[] + cursor?: MemoryEchoInsightWhereUniqueInput take?: number skip?: number - distinct?: NotebookScalarFieldEnum | NotebookScalarFieldEnum[] + distinct?: MemoryEchoInsightScalarFieldEnum | MemoryEchoInsightScalarFieldEnum[] } /** - * User.receivedShares + * User.notes */ - export type User$receivedSharesArgs = { + export type User$notesArgs = { /** - * Select specific fields to fetch from the NoteShare + * Select specific fields to fetch from the Note */ - select?: NoteShareSelect | null + select?: NoteSelect | null /** * Choose, which related nodes to fetch as well */ - include?: NoteShareInclude | null - where?: NoteShareWhereInput - orderBy?: NoteShareOrderByWithRelationInput | NoteShareOrderByWithRelationInput[] - cursor?: NoteShareWhereUniqueInput + include?: NoteInclude | null + where?: NoteWhereInput + orderBy?: NoteOrderByWithRelationInput | NoteOrderByWithRelationInput[] + cursor?: NoteWhereUniqueInput take?: number skip?: number - distinct?: NoteShareScalarFieldEnum | NoteShareScalarFieldEnum[] + distinct?: NoteScalarFieldEnum | NoteScalarFieldEnum[] } /** @@ -3201,23 +3181,63 @@ export namespace Prisma { } /** - * User.aiFeedback + * User.receivedShares */ - export type User$aiFeedbackArgs = { + export type User$receivedSharesArgs = { /** - * Select specific fields to fetch from the AiFeedback + * Select specific fields to fetch from the NoteShare */ - select?: AiFeedbackSelect | null + select?: NoteShareSelect | null /** * Choose, which related nodes to fetch as well */ - include?: AiFeedbackInclude | null - where?: AiFeedbackWhereInput - orderBy?: AiFeedbackOrderByWithRelationInput | AiFeedbackOrderByWithRelationInput[] - cursor?: AiFeedbackWhereUniqueInput + include?: NoteShareInclude | null + where?: NoteShareWhereInput + orderBy?: NoteShareOrderByWithRelationInput | NoteShareOrderByWithRelationInput[] + cursor?: NoteShareWhereUniqueInput take?: number skip?: number - distinct?: AiFeedbackScalarFieldEnum | AiFeedbackScalarFieldEnum[] + distinct?: NoteShareScalarFieldEnum | NoteShareScalarFieldEnum[] + } + + /** + * User.notebooks + */ + export type User$notebooksArgs = { + /** + * Select specific fields to fetch from the Notebook + */ + select?: NotebookSelect | null + /** + * Choose, which related nodes to fetch as well + */ + include?: NotebookInclude | null + where?: NotebookWhereInput + orderBy?: NotebookOrderByWithRelationInput | NotebookOrderByWithRelationInput[] + cursor?: NotebookWhereUniqueInput + take?: number + skip?: number + distinct?: NotebookScalarFieldEnum | NotebookScalarFieldEnum[] + } + + /** + * User.sessions + */ + export type User$sessionsArgs = { + /** + * Select specific fields to fetch from the Session + */ + select?: SessionSelect | null + /** + * Choose, which related nodes to fetch as well + */ + include?: SessionInclude | null + where?: SessionWhereInput + orderBy?: SessionOrderByWithRelationInput | SessionOrderByWithRelationInput[] + cursor?: SessionWhereUniqueInput + take?: number + skip?: number + distinct?: SessionScalarFieldEnum | SessionScalarFieldEnum[] } /** @@ -3235,26 +3255,6 @@ export namespace Prisma { where?: UserAISettingsWhereInput } - /** - * User.memoryEchoInsights - */ - export type User$memoryEchoInsightsArgs = { - /** - * Select specific fields to fetch from the MemoryEchoInsight - */ - select?: MemoryEchoInsightSelect | null - /** - * Choose, which related nodes to fetch as well - */ - include?: MemoryEchoInsightInclude | null - where?: MemoryEchoInsightWhereInput - orderBy?: MemoryEchoInsightOrderByWithRelationInput | MemoryEchoInsightOrderByWithRelationInput[] - cursor?: MemoryEchoInsightWhereUniqueInput - take?: number - skip?: number - distinct?: MemoryEchoInsightScalarFieldEnum | MemoryEchoInsightScalarFieldEnum[] - } - /** * User without action */ @@ -6336,9 +6336,9 @@ export namespace Prisma { userId?: boolean createdAt?: boolean updatedAt?: boolean - user?: boolean | UserDefaultArgs - notes?: boolean | Notebook$notesArgs labels?: boolean | Notebook$labelsArgs + notes?: boolean | Notebook$notesArgs + user?: boolean | UserDefaultArgs _count?: boolean | NotebookCountOutputTypeDefaultArgs }, ExtArgs["result"]["notebook"]> @@ -6366,9 +6366,9 @@ export namespace Prisma { } export type NotebookInclude = { - user?: boolean | UserDefaultArgs - notes?: boolean | Notebook$notesArgs labels?: boolean | Notebook$labelsArgs + notes?: boolean | Notebook$notesArgs + user?: boolean | UserDefaultArgs _count?: boolean | NotebookCountOutputTypeDefaultArgs } export type NotebookIncludeCreateManyAndReturn = { @@ -6378,9 +6378,9 @@ export namespace Prisma { export type $NotebookPayload = { name: "Notebook" objects: { - user: Prisma.$UserPayload - notes: Prisma.$NotePayload[] labels: Prisma.$LabelPayload[] + notes: Prisma.$NotePayload[] + user: Prisma.$UserPayload } scalars: $Extensions.GetPayloadResult<{ id: string @@ -6755,9 +6755,9 @@ export namespace Prisma { */ export interface Prisma__NotebookClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" - user = {}>(args?: Subset>): Prisma__UserClient<$Result.GetResult, T, "findUniqueOrThrow"> | Null, Null, ExtArgs> - notes = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany"> | Null> labels = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany"> | Null> + notes = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany"> | Null> + user = {}>(args?: Subset>): Prisma__UserClient<$Result.GetResult, T, "findUniqueOrThrow"> | Null, Null, ExtArgs> /** * Attaches callbacks for the resolution and/or rejection of the Promise. * @param onfulfilled The callback to execute when the Promise is resolved. @@ -7110,26 +7110,6 @@ export namespace Prisma { where?: NotebookWhereInput } - /** - * Notebook.notes - */ - export type Notebook$notesArgs = { - /** - * Select specific fields to fetch from the Note - */ - select?: NoteSelect | null - /** - * Choose, which related nodes to fetch as well - */ - include?: NoteInclude | null - where?: NoteWhereInput - orderBy?: NoteOrderByWithRelationInput | NoteOrderByWithRelationInput[] - cursor?: NoteWhereUniqueInput - take?: number - skip?: number - distinct?: NoteScalarFieldEnum | NoteScalarFieldEnum[] - } - /** * Notebook.labels */ @@ -7150,6 +7130,26 @@ export namespace Prisma { distinct?: LabelScalarFieldEnum | LabelScalarFieldEnum[] } + /** + * Notebook.notes + */ + export type Notebook$notesArgs = { + /** + * Select specific fields to fetch from the Note + */ + select?: NoteSelect | null + /** + * Choose, which related nodes to fetch as well + */ + include?: NoteInclude | null + where?: NoteWhereInput + orderBy?: NoteOrderByWithRelationInput | NoteOrderByWithRelationInput[] + cursor?: NoteWhereUniqueInput + take?: number + skip?: number + distinct?: NoteScalarFieldEnum | NoteScalarFieldEnum[] + } + /** * Notebook without action */ @@ -7345,9 +7345,9 @@ export namespace Prisma { userId?: boolean createdAt?: boolean updatedAt?: boolean + user?: boolean | Label$userArgs notebook?: boolean | Label$notebookArgs notes?: boolean | Label$notesArgs - user?: boolean | Label$userArgs _count?: boolean | LabelCountOutputTypeDefaultArgs }, ExtArgs["result"]["label"]> @@ -7359,8 +7359,8 @@ export namespace Prisma { userId?: boolean createdAt?: boolean updatedAt?: boolean - notebook?: boolean | Label$notebookArgs user?: boolean | Label$userArgs + notebook?: boolean | Label$notebookArgs }, ExtArgs["result"]["label"]> export type LabelSelectScalar = { @@ -7374,22 +7374,22 @@ export namespace Prisma { } export type LabelInclude = { + user?: boolean | Label$userArgs notebook?: boolean | Label$notebookArgs notes?: boolean | Label$notesArgs - user?: boolean | Label$userArgs _count?: boolean | LabelCountOutputTypeDefaultArgs } export type LabelIncludeCreateManyAndReturn = { - notebook?: boolean | Label$notebookArgs user?: boolean | Label$userArgs + notebook?: boolean | Label$notebookArgs } export type $LabelPayload = { name: "Label" objects: { + user: Prisma.$UserPayload | null notebook: Prisma.$NotebookPayload | null notes: Prisma.$NotePayload[] - user: Prisma.$UserPayload | null } scalars: $Extensions.GetPayloadResult<{ id: string @@ -7763,9 +7763,9 @@ export namespace Prisma { */ export interface Prisma__LabelClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" + user = {}>(args?: Subset>): Prisma__UserClient<$Result.GetResult, T, "findUniqueOrThrow"> | null, null, ExtArgs> notebook = {}>(args?: Subset>): Prisma__NotebookClient<$Result.GetResult, T, "findUniqueOrThrow"> | null, null, ExtArgs> notes = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany"> | Null> - user = {}>(args?: Subset>): Prisma__UserClient<$Result.GetResult, T, "findUniqueOrThrow"> | null, null, ExtArgs> /** * Attaches callbacks for the resolution and/or rejection of the Promise. * @param onfulfilled The callback to execute when the Promise is resolved. @@ -8117,6 +8117,21 @@ export namespace Prisma { where?: LabelWhereInput } + /** + * Label.user + */ + export type Label$userArgs = { + /** + * Select specific fields to fetch from the User + */ + select?: UserSelect | null + /** + * Choose, which related nodes to fetch as well + */ + include?: UserInclude | null + where?: UserWhereInput + } + /** * Label.notebook */ @@ -8152,21 +8167,6 @@ export namespace Prisma { distinct?: NoteScalarFieldEnum | NoteScalarFieldEnum[] } - /** - * Label.user - */ - export type Label$userArgs = { - /** - * Select specific fields to fetch from the User - */ - select?: UserSelect | null - /** - * Choose, which related nodes to fetch as well - */ - include?: UserInclude | null - where?: UserWhereInput - } - /** * Label without action */ @@ -8588,13 +8588,13 @@ export namespace Prisma { language?: boolean languageConfidence?: boolean lastAiAnalysis?: boolean + aiFeedback?: boolean | Note$aiFeedbackArgs + memoryEchoAsNote2?: boolean | Note$memoryEchoAsNote2Args + memoryEchoAsNote1?: boolean | Note$memoryEchoAsNote1Args + notebook?: boolean | Note$notebookArgs user?: boolean | Note$userArgs shares?: boolean | Note$sharesArgs - notebook?: boolean | Note$notebookArgs labelRelations?: boolean | Note$labelRelationsArgs - aiFeedback?: boolean | Note$aiFeedbackArgs - memoryEchoAsNote1?: boolean | Note$memoryEchoAsNote1Args - memoryEchoAsNote2?: boolean | Note$memoryEchoAsNote2Args _count?: boolean | NoteCountOutputTypeDefaultArgs }, ExtArgs["result"]["note"]> @@ -8629,8 +8629,8 @@ export namespace Prisma { language?: boolean languageConfidence?: boolean lastAiAnalysis?: boolean - user?: boolean | Note$userArgs notebook?: boolean | Note$notebookArgs + user?: boolean | Note$userArgs }, ExtArgs["result"]["note"]> export type NoteSelectScalar = { @@ -8667,30 +8667,30 @@ export namespace Prisma { } export type NoteInclude = { + aiFeedback?: boolean | Note$aiFeedbackArgs + memoryEchoAsNote2?: boolean | Note$memoryEchoAsNote2Args + memoryEchoAsNote1?: boolean | Note$memoryEchoAsNote1Args + notebook?: boolean | Note$notebookArgs user?: boolean | Note$userArgs shares?: boolean | Note$sharesArgs - notebook?: boolean | Note$notebookArgs labelRelations?: boolean | Note$labelRelationsArgs - aiFeedback?: boolean | Note$aiFeedbackArgs - memoryEchoAsNote1?: boolean | Note$memoryEchoAsNote1Args - memoryEchoAsNote2?: boolean | Note$memoryEchoAsNote2Args _count?: boolean | NoteCountOutputTypeDefaultArgs } export type NoteIncludeCreateManyAndReturn = { - user?: boolean | Note$userArgs notebook?: boolean | Note$notebookArgs + user?: boolean | Note$userArgs } export type $NotePayload = { name: "Note" objects: { + aiFeedback: Prisma.$AiFeedbackPayload[] + memoryEchoAsNote2: Prisma.$MemoryEchoInsightPayload[] + memoryEchoAsNote1: Prisma.$MemoryEchoInsightPayload[] + notebook: Prisma.$NotebookPayload | null user: Prisma.$UserPayload | null shares: Prisma.$NoteSharePayload[] - notebook: Prisma.$NotebookPayload | null labelRelations: Prisma.$LabelPayload[] - aiFeedback: Prisma.$AiFeedbackPayload[] - memoryEchoAsNote1: Prisma.$MemoryEchoInsightPayload[] - memoryEchoAsNote2: Prisma.$MemoryEchoInsightPayload[] } scalars: $Extensions.GetPayloadResult<{ id: string @@ -9087,13 +9087,13 @@ export namespace Prisma { */ export interface Prisma__NoteClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" + aiFeedback = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany"> | Null> + memoryEchoAsNote2 = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany"> | Null> + memoryEchoAsNote1 = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany"> | Null> + notebook = {}>(args?: Subset>): Prisma__NotebookClient<$Result.GetResult, T, "findUniqueOrThrow"> | null, null, ExtArgs> user = {}>(args?: Subset>): Prisma__UserClient<$Result.GetResult, T, "findUniqueOrThrow"> | null, null, ExtArgs> shares = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany"> | Null> - notebook = {}>(args?: Subset>): Prisma__NotebookClient<$Result.GetResult, T, "findUniqueOrThrow"> | null, null, ExtArgs> labelRelations = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany"> | Null> - aiFeedback = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany"> | Null> - memoryEchoAsNote1 = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany"> | Null> - memoryEchoAsNote2 = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany"> | Null> /** * Attaches callbacks for the resolution and/or rejection of the Promise. * @param onfulfilled The callback to execute when the Promise is resolved. @@ -9468,6 +9468,81 @@ export namespace Prisma { where?: NoteWhereInput } + /** + * Note.aiFeedback + */ + export type Note$aiFeedbackArgs = { + /** + * Select specific fields to fetch from the AiFeedback + */ + select?: AiFeedbackSelect | null + /** + * Choose, which related nodes to fetch as well + */ + include?: AiFeedbackInclude | null + where?: AiFeedbackWhereInput + orderBy?: AiFeedbackOrderByWithRelationInput | AiFeedbackOrderByWithRelationInput[] + cursor?: AiFeedbackWhereUniqueInput + take?: number + skip?: number + distinct?: AiFeedbackScalarFieldEnum | AiFeedbackScalarFieldEnum[] + } + + /** + * Note.memoryEchoAsNote2 + */ + export type Note$memoryEchoAsNote2Args = { + /** + * Select specific fields to fetch from the MemoryEchoInsight + */ + select?: MemoryEchoInsightSelect | null + /** + * Choose, which related nodes to fetch as well + */ + include?: MemoryEchoInsightInclude | null + where?: MemoryEchoInsightWhereInput + orderBy?: MemoryEchoInsightOrderByWithRelationInput | MemoryEchoInsightOrderByWithRelationInput[] + cursor?: MemoryEchoInsightWhereUniqueInput + take?: number + skip?: number + distinct?: MemoryEchoInsightScalarFieldEnum | MemoryEchoInsightScalarFieldEnum[] + } + + /** + * Note.memoryEchoAsNote1 + */ + export type Note$memoryEchoAsNote1Args = { + /** + * Select specific fields to fetch from the MemoryEchoInsight + */ + select?: MemoryEchoInsightSelect | null + /** + * Choose, which related nodes to fetch as well + */ + include?: MemoryEchoInsightInclude | null + where?: MemoryEchoInsightWhereInput + orderBy?: MemoryEchoInsightOrderByWithRelationInput | MemoryEchoInsightOrderByWithRelationInput[] + cursor?: MemoryEchoInsightWhereUniqueInput + take?: number + skip?: number + distinct?: MemoryEchoInsightScalarFieldEnum | MemoryEchoInsightScalarFieldEnum[] + } + + /** + * Note.notebook + */ + export type Note$notebookArgs = { + /** + * Select specific fields to fetch from the Notebook + */ + select?: NotebookSelect | null + /** + * Choose, which related nodes to fetch as well + */ + include?: NotebookInclude | null + where?: NotebookWhereInput + } + /** * Note.user */ @@ -9503,21 +9578,6 @@ export namespace Prisma { distinct?: NoteShareScalarFieldEnum | NoteShareScalarFieldEnum[] } - /** - * Note.notebook - */ - export type Note$notebookArgs = { - /** - * Select specific fields to fetch from the Notebook - */ - select?: NotebookSelect | null - /** - * Choose, which related nodes to fetch as well - */ - include?: NotebookInclude | null - where?: NotebookWhereInput - } - /** * Note.labelRelations */ @@ -9538,66 +9598,6 @@ export namespace Prisma { distinct?: LabelScalarFieldEnum | LabelScalarFieldEnum[] } - /** - * Note.aiFeedback - */ - export type Note$aiFeedbackArgs = { - /** - * Select specific fields to fetch from the AiFeedback - */ - select?: AiFeedbackSelect | null - /** - * Choose, which related nodes to fetch as well - */ - include?: AiFeedbackInclude | null - where?: AiFeedbackWhereInput - orderBy?: AiFeedbackOrderByWithRelationInput | AiFeedbackOrderByWithRelationInput[] - cursor?: AiFeedbackWhereUniqueInput - take?: number - skip?: number - distinct?: AiFeedbackScalarFieldEnum | AiFeedbackScalarFieldEnum[] - } - - /** - * Note.memoryEchoAsNote1 - */ - export type Note$memoryEchoAsNote1Args = { - /** - * Select specific fields to fetch from the MemoryEchoInsight - */ - select?: MemoryEchoInsightSelect | null - /** - * Choose, which related nodes to fetch as well - */ - include?: MemoryEchoInsightInclude | null - where?: MemoryEchoInsightWhereInput - orderBy?: MemoryEchoInsightOrderByWithRelationInput | MemoryEchoInsightOrderByWithRelationInput[] - cursor?: MemoryEchoInsightWhereUniqueInput - take?: number - skip?: number - distinct?: MemoryEchoInsightScalarFieldEnum | MemoryEchoInsightScalarFieldEnum[] - } - - /** - * Note.memoryEchoAsNote2 - */ - export type Note$memoryEchoAsNote2Args = { - /** - * Select specific fields to fetch from the MemoryEchoInsight - */ - select?: MemoryEchoInsightSelect | null - /** - * Choose, which related nodes to fetch as well - */ - include?: MemoryEchoInsightInclude | null - where?: MemoryEchoInsightWhereInput - orderBy?: MemoryEchoInsightOrderByWithRelationInput | MemoryEchoInsightOrderByWithRelationInput[] - cursor?: MemoryEchoInsightWhereUniqueInput - take?: number - skip?: number - distinct?: MemoryEchoInsightScalarFieldEnum | MemoryEchoInsightScalarFieldEnum[] - } - /** * Note without action */ @@ -9817,9 +9817,9 @@ export namespace Prisma { respondedAt?: boolean createdAt?: boolean updatedAt?: boolean - note?: boolean | NoteDefaultArgs - user?: boolean | UserDefaultArgs sharer?: boolean | UserDefaultArgs + user?: boolean | UserDefaultArgs + note?: boolean | NoteDefaultArgs }, ExtArgs["result"]["noteShare"]> export type NoteShareSelectCreateManyAndReturn = $Extensions.GetSelect<{ @@ -9833,9 +9833,9 @@ export namespace Prisma { respondedAt?: boolean createdAt?: boolean updatedAt?: boolean - note?: boolean | NoteDefaultArgs - user?: boolean | UserDefaultArgs sharer?: boolean | UserDefaultArgs + user?: boolean | UserDefaultArgs + note?: boolean | NoteDefaultArgs }, ExtArgs["result"]["noteShare"]> export type NoteShareSelectScalar = { @@ -9852,22 +9852,22 @@ export namespace Prisma { } export type NoteShareInclude = { - note?: boolean | NoteDefaultArgs - user?: boolean | UserDefaultArgs sharer?: boolean | UserDefaultArgs + user?: boolean | UserDefaultArgs + note?: boolean | NoteDefaultArgs } export type NoteShareIncludeCreateManyAndReturn = { - note?: boolean | NoteDefaultArgs - user?: boolean | UserDefaultArgs sharer?: boolean | UserDefaultArgs + user?: boolean | UserDefaultArgs + note?: boolean | NoteDefaultArgs } export type $NoteSharePayload = { name: "NoteShare" objects: { - note: Prisma.$NotePayload - user: Prisma.$UserPayload sharer: Prisma.$UserPayload + user: Prisma.$UserPayload + note: Prisma.$NotePayload } scalars: $Extensions.GetPayloadResult<{ id: string @@ -10244,9 +10244,9 @@ export namespace Prisma { */ export interface Prisma__NoteShareClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" - note = {}>(args?: Subset>): Prisma__NoteClient<$Result.GetResult, T, "findUniqueOrThrow"> | Null, Null, ExtArgs> - user = {}>(args?: Subset>): Prisma__UserClient<$Result.GetResult, T, "findUniqueOrThrow"> | Null, Null, ExtArgs> sharer = {}>(args?: Subset>): Prisma__UserClient<$Result.GetResult, T, "findUniqueOrThrow"> | Null, Null, ExtArgs> + user = {}>(args?: Subset>): Prisma__UserClient<$Result.GetResult, T, "findUniqueOrThrow"> | Null, Null, ExtArgs> + note = {}>(args?: Subset>): Prisma__NoteClient<$Result.GetResult, T, "findUniqueOrThrow"> | Null, Null, ExtArgs> /** * Attaches callbacks for the resolution and/or rejection of the Promise. * @param onfulfilled The callback to execute when the Promise is resolved. @@ -11652,8 +11652,8 @@ export namespace Prisma { correctedContent?: boolean metadata?: boolean createdAt?: boolean - note?: boolean | NoteDefaultArgs user?: boolean | AiFeedback$userArgs + note?: boolean | NoteDefaultArgs }, ExtArgs["result"]["aiFeedback"]> export type AiFeedbackSelectCreateManyAndReturn = $Extensions.GetSelect<{ @@ -11666,8 +11666,8 @@ export namespace Prisma { correctedContent?: boolean metadata?: boolean createdAt?: boolean - note?: boolean | NoteDefaultArgs user?: boolean | AiFeedback$userArgs + note?: boolean | NoteDefaultArgs }, ExtArgs["result"]["aiFeedback"]> export type AiFeedbackSelectScalar = { @@ -11683,19 +11683,19 @@ export namespace Prisma { } export type AiFeedbackInclude = { - note?: boolean | NoteDefaultArgs user?: boolean | AiFeedback$userArgs + note?: boolean | NoteDefaultArgs } export type AiFeedbackIncludeCreateManyAndReturn = { - note?: boolean | NoteDefaultArgs user?: boolean | AiFeedback$userArgs + note?: boolean | NoteDefaultArgs } export type $AiFeedbackPayload = { name: "AiFeedback" objects: { - note: Prisma.$NotePayload user: Prisma.$UserPayload | null + note: Prisma.$NotePayload } scalars: $Extensions.GetPayloadResult<{ id: string @@ -12071,8 +12071,8 @@ export namespace Prisma { */ export interface Prisma__AiFeedbackClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" - note = {}>(args?: Subset>): Prisma__NoteClient<$Result.GetResult, T, "findUniqueOrThrow"> | Null, Null, ExtArgs> user = {}>(args?: Subset>): Prisma__UserClient<$Result.GetResult, T, "findUniqueOrThrow"> | null, null, ExtArgs> + note = {}>(args?: Subset>): Prisma__NoteClient<$Result.GetResult, T, "findUniqueOrThrow"> | Null, Null, ExtArgs> /** * Attaches callbacks for the resolution and/or rejection of the Promise. * @param onfulfilled The callback to execute when the Promise is resolved. @@ -12694,9 +12694,9 @@ export namespace Prisma { viewed?: boolean feedback?: boolean dismissed?: boolean - note1?: boolean | NoteDefaultArgs - note2?: boolean | NoteDefaultArgs user?: boolean | MemoryEchoInsight$userArgs + note2?: boolean | NoteDefaultArgs + note1?: boolean | NoteDefaultArgs }, ExtArgs["result"]["memoryEchoInsight"]> export type MemoryEchoInsightSelectCreateManyAndReturn = $Extensions.GetSelect<{ @@ -12710,9 +12710,9 @@ export namespace Prisma { viewed?: boolean feedback?: boolean dismissed?: boolean - note1?: boolean | NoteDefaultArgs - note2?: boolean | NoteDefaultArgs user?: boolean | MemoryEchoInsight$userArgs + note2?: boolean | NoteDefaultArgs + note1?: boolean | NoteDefaultArgs }, ExtArgs["result"]["memoryEchoInsight"]> export type MemoryEchoInsightSelectScalar = { @@ -12729,22 +12729,22 @@ export namespace Prisma { } export type MemoryEchoInsightInclude = { - note1?: boolean | NoteDefaultArgs - note2?: boolean | NoteDefaultArgs user?: boolean | MemoryEchoInsight$userArgs + note2?: boolean | NoteDefaultArgs + note1?: boolean | NoteDefaultArgs } export type MemoryEchoInsightIncludeCreateManyAndReturn = { - note1?: boolean | NoteDefaultArgs - note2?: boolean | NoteDefaultArgs user?: boolean | MemoryEchoInsight$userArgs + note2?: boolean | NoteDefaultArgs + note1?: boolean | NoteDefaultArgs } export type $MemoryEchoInsightPayload = { name: "MemoryEchoInsight" objects: { - note1: Prisma.$NotePayload - note2: Prisma.$NotePayload user: Prisma.$UserPayload | null + note2: Prisma.$NotePayload + note1: Prisma.$NotePayload } scalars: $Extensions.GetPayloadResult<{ id: string @@ -13121,9 +13121,9 @@ export namespace Prisma { */ export interface Prisma__MemoryEchoInsightClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" - note1 = {}>(args?: Subset>): Prisma__NoteClient<$Result.GetResult, T, "findUniqueOrThrow"> | Null, Null, ExtArgs> - note2 = {}>(args?: Subset>): Prisma__NoteClient<$Result.GetResult, T, "findUniqueOrThrow"> | Null, Null, ExtArgs> user = {}>(args?: Subset>): Prisma__UserClient<$Result.GetResult, T, "findUniqueOrThrow"> | null, null, ExtArgs> + note2 = {}>(args?: Subset>): Prisma__NoteClient<$Result.GetResult, T, "findUniqueOrThrow"> | Null, Null, ExtArgs> + note1 = {}>(args?: Subset>): Prisma__NoteClient<$Result.GetResult, T, "findUniqueOrThrow"> | Null, Null, ExtArgs> /** * Attaches callbacks for the resolution and/or rejection of the Promise. * @param onfulfilled The callback to execute when the Promise is resolved. @@ -14777,15 +14777,15 @@ export namespace Prisma { createdAt?: DateTimeFilter<"User"> | Date | string updatedAt?: DateTimeFilter<"User"> | Date | string accounts?: AccountListRelationFilter - sessions?: SessionListRelationFilter - notes?: NoteListRelationFilter - labels?: LabelListRelationFilter - notebooks?: NotebookListRelationFilter - receivedShares?: NoteShareListRelationFilter - sentShares?: NoteShareListRelationFilter aiFeedback?: AiFeedbackListRelationFilter - aiSettings?: XOR | null + labels?: LabelListRelationFilter memoryEchoInsights?: MemoryEchoInsightListRelationFilter + notes?: NoteListRelationFilter + sentShares?: NoteShareListRelationFilter + receivedShares?: NoteShareListRelationFilter + notebooks?: NotebookListRelationFilter + sessions?: SessionListRelationFilter + aiSettings?: XOR | null } export type UserOrderByWithRelationInput = { @@ -14802,15 +14802,15 @@ export namespace Prisma { createdAt?: SortOrder updatedAt?: SortOrder accounts?: AccountOrderByRelationAggregateInput - sessions?: SessionOrderByRelationAggregateInput - notes?: NoteOrderByRelationAggregateInput - labels?: LabelOrderByRelationAggregateInput - notebooks?: NotebookOrderByRelationAggregateInput - receivedShares?: NoteShareOrderByRelationAggregateInput - sentShares?: NoteShareOrderByRelationAggregateInput aiFeedback?: AiFeedbackOrderByRelationAggregateInput - aiSettings?: UserAISettingsOrderByWithRelationInput + labels?: LabelOrderByRelationAggregateInput memoryEchoInsights?: MemoryEchoInsightOrderByRelationAggregateInput + notes?: NoteOrderByRelationAggregateInput + sentShares?: NoteShareOrderByRelationAggregateInput + receivedShares?: NoteShareOrderByRelationAggregateInput + notebooks?: NotebookOrderByRelationAggregateInput + sessions?: SessionOrderByRelationAggregateInput + aiSettings?: UserAISettingsOrderByWithRelationInput } export type UserWhereUniqueInput = Prisma.AtLeast<{ @@ -14830,15 +14830,15 @@ export namespace Prisma { createdAt?: DateTimeFilter<"User"> | Date | string updatedAt?: DateTimeFilter<"User"> | Date | string accounts?: AccountListRelationFilter - sessions?: SessionListRelationFilter - notes?: NoteListRelationFilter - labels?: LabelListRelationFilter - notebooks?: NotebookListRelationFilter - receivedShares?: NoteShareListRelationFilter - sentShares?: NoteShareListRelationFilter aiFeedback?: AiFeedbackListRelationFilter - aiSettings?: XOR | null + labels?: LabelListRelationFilter memoryEchoInsights?: MemoryEchoInsightListRelationFilter + notes?: NoteListRelationFilter + sentShares?: NoteShareListRelationFilter + receivedShares?: NoteShareListRelationFilter + notebooks?: NotebookListRelationFilter + sessions?: SessionListRelationFilter + aiSettings?: XOR | null }, "id" | "email" | "resetToken"> export type UserOrderByWithAggregationInput = { @@ -15085,9 +15085,9 @@ export namespace Prisma { userId?: StringFilter<"Notebook"> | string createdAt?: DateTimeFilter<"Notebook"> | Date | string updatedAt?: DateTimeFilter<"Notebook"> | Date | string - user?: XOR - notes?: NoteListRelationFilter labels?: LabelListRelationFilter + notes?: NoteListRelationFilter + user?: XOR } export type NotebookOrderByWithRelationInput = { @@ -15099,9 +15099,9 @@ export namespace Prisma { userId?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder - user?: UserOrderByWithRelationInput - notes?: NoteOrderByRelationAggregateInput labels?: LabelOrderByRelationAggregateInput + notes?: NoteOrderByRelationAggregateInput + user?: UserOrderByWithRelationInput } export type NotebookWhereUniqueInput = Prisma.AtLeast<{ @@ -15116,9 +15116,9 @@ export namespace Prisma { userId?: StringFilter<"Notebook"> | string createdAt?: DateTimeFilter<"Notebook"> | Date | string updatedAt?: DateTimeFilter<"Notebook"> | Date | string - user?: XOR - notes?: NoteListRelationFilter labels?: LabelListRelationFilter + notes?: NoteListRelationFilter + user?: XOR }, "id"> export type NotebookOrderByWithAggregationInput = { @@ -15162,9 +15162,9 @@ export namespace Prisma { userId?: StringNullableFilter<"Label"> | string | null createdAt?: DateTimeFilter<"Label"> | Date | string updatedAt?: DateTimeFilter<"Label"> | Date | string + user?: XOR | null notebook?: XOR | null notes?: NoteListRelationFilter - user?: XOR | null } export type LabelOrderByWithRelationInput = { @@ -15175,9 +15175,9 @@ export namespace Prisma { userId?: SortOrderInput | SortOrder createdAt?: SortOrder updatedAt?: SortOrder + user?: UserOrderByWithRelationInput notebook?: NotebookOrderByWithRelationInput notes?: NoteOrderByRelationAggregateInput - user?: UserOrderByWithRelationInput } export type LabelWhereUniqueInput = Prisma.AtLeast<{ @@ -15192,9 +15192,9 @@ export namespace Prisma { userId?: StringNullableFilter<"Label"> | string | null createdAt?: DateTimeFilter<"Label"> | Date | string updatedAt?: DateTimeFilter<"Label"> | Date | string + user?: XOR | null notebook?: XOR | null notes?: NoteListRelationFilter - user?: XOR | null }, "id" | "notebookId_name"> export type LabelOrderByWithAggregationInput = { @@ -15257,13 +15257,13 @@ export namespace Prisma { language?: StringNullableFilter<"Note"> | string | null languageConfidence?: FloatNullableFilter<"Note"> | number | null lastAiAnalysis?: DateTimeNullableFilter<"Note"> | Date | string | null + aiFeedback?: AiFeedbackListRelationFilter + memoryEchoAsNote2?: MemoryEchoInsightListRelationFilter + memoryEchoAsNote1?: MemoryEchoInsightListRelationFilter + notebook?: XOR | null user?: XOR | null shares?: NoteShareListRelationFilter - notebook?: XOR | null labelRelations?: LabelListRelationFilter - aiFeedback?: AiFeedbackListRelationFilter - memoryEchoAsNote1?: MemoryEchoInsightListRelationFilter - memoryEchoAsNote2?: MemoryEchoInsightListRelationFilter } export type NoteOrderByWithRelationInput = { @@ -15297,13 +15297,13 @@ export namespace Prisma { language?: SortOrderInput | SortOrder languageConfidence?: SortOrderInput | SortOrder lastAiAnalysis?: SortOrderInput | SortOrder + aiFeedback?: AiFeedbackOrderByRelationAggregateInput + memoryEchoAsNote2?: MemoryEchoInsightOrderByRelationAggregateInput + memoryEchoAsNote1?: MemoryEchoInsightOrderByRelationAggregateInput + notebook?: NotebookOrderByWithRelationInput user?: UserOrderByWithRelationInput shares?: NoteShareOrderByRelationAggregateInput - notebook?: NotebookOrderByWithRelationInput labelRelations?: LabelOrderByRelationAggregateInput - aiFeedback?: AiFeedbackOrderByRelationAggregateInput - memoryEchoAsNote1?: MemoryEchoInsightOrderByRelationAggregateInput - memoryEchoAsNote2?: MemoryEchoInsightOrderByRelationAggregateInput } export type NoteWhereUniqueInput = Prisma.AtLeast<{ @@ -15340,13 +15340,13 @@ export namespace Prisma { language?: StringNullableFilter<"Note"> | string | null languageConfidence?: FloatNullableFilter<"Note"> | number | null lastAiAnalysis?: DateTimeNullableFilter<"Note"> | Date | string | null + aiFeedback?: AiFeedbackListRelationFilter + memoryEchoAsNote2?: MemoryEchoInsightListRelationFilter + memoryEchoAsNote1?: MemoryEchoInsightListRelationFilter + notebook?: XOR | null user?: XOR | null shares?: NoteShareListRelationFilter - notebook?: XOR | null labelRelations?: LabelListRelationFilter - aiFeedback?: AiFeedbackListRelationFilter - memoryEchoAsNote1?: MemoryEchoInsightListRelationFilter - memoryEchoAsNote2?: MemoryEchoInsightListRelationFilter }, "id"> export type NoteOrderByWithAggregationInput = { @@ -15437,9 +15437,9 @@ export namespace Prisma { respondedAt?: DateTimeNullableFilter<"NoteShare"> | Date | string | null createdAt?: DateTimeFilter<"NoteShare"> | Date | string updatedAt?: DateTimeFilter<"NoteShare"> | Date | string - note?: XOR - user?: XOR sharer?: XOR + user?: XOR + note?: XOR } export type NoteShareOrderByWithRelationInput = { @@ -15453,9 +15453,9 @@ export namespace Prisma { respondedAt?: SortOrderInput | SortOrder createdAt?: SortOrder updatedAt?: SortOrder - note?: NoteOrderByWithRelationInput - user?: UserOrderByWithRelationInput sharer?: UserOrderByWithRelationInput + user?: UserOrderByWithRelationInput + note?: NoteOrderByWithRelationInput } export type NoteShareWhereUniqueInput = Prisma.AtLeast<{ @@ -15473,9 +15473,9 @@ export namespace Prisma { respondedAt?: DateTimeNullableFilter<"NoteShare"> | Date | string | null createdAt?: DateTimeFilter<"NoteShare"> | Date | string updatedAt?: DateTimeFilter<"NoteShare"> | Date | string - note?: XOR - user?: XOR sharer?: XOR + user?: XOR + note?: XOR }, "id" | "noteId_userId"> export type NoteShareOrderByWithAggregationInput = { @@ -15560,8 +15560,8 @@ export namespace Prisma { correctedContent?: StringNullableFilter<"AiFeedback"> | string | null metadata?: StringNullableFilter<"AiFeedback"> | string | null createdAt?: DateTimeFilter<"AiFeedback"> | Date | string - note?: XOR user?: XOR | null + note?: XOR } export type AiFeedbackOrderByWithRelationInput = { @@ -15574,8 +15574,8 @@ export namespace Prisma { correctedContent?: SortOrderInput | SortOrder metadata?: SortOrderInput | SortOrder createdAt?: SortOrder - note?: NoteOrderByWithRelationInput user?: UserOrderByWithRelationInput + note?: NoteOrderByWithRelationInput } export type AiFeedbackWhereUniqueInput = Prisma.AtLeast<{ @@ -15591,8 +15591,8 @@ export namespace Prisma { correctedContent?: StringNullableFilter<"AiFeedback"> | string | null metadata?: StringNullableFilter<"AiFeedback"> | string | null createdAt?: DateTimeFilter<"AiFeedback"> | Date | string - note?: XOR user?: XOR | null + note?: XOR }, "id"> export type AiFeedbackOrderByWithAggregationInput = { @@ -15639,9 +15639,9 @@ export namespace Prisma { viewed?: BoolFilter<"MemoryEchoInsight"> | boolean feedback?: StringNullableFilter<"MemoryEchoInsight"> | string | null dismissed?: BoolFilter<"MemoryEchoInsight"> | boolean - note1?: XOR - note2?: XOR user?: XOR | null + note2?: XOR + note1?: XOR } export type MemoryEchoInsightOrderByWithRelationInput = { @@ -15655,9 +15655,9 @@ export namespace Prisma { viewed?: SortOrder feedback?: SortOrderInput | SortOrder dismissed?: SortOrder - note1?: NoteOrderByWithRelationInput - note2?: NoteOrderByWithRelationInput user?: UserOrderByWithRelationInput + note2?: NoteOrderByWithRelationInput + note1?: NoteOrderByWithRelationInput } export type MemoryEchoInsightWhereUniqueInput = Prisma.AtLeast<{ @@ -15675,9 +15675,9 @@ export namespace Prisma { viewed?: BoolFilter<"MemoryEchoInsight"> | boolean feedback?: StringNullableFilter<"MemoryEchoInsight"> | string | null dismissed?: BoolFilter<"MemoryEchoInsight"> | boolean - note1?: XOR - note2?: XOR user?: XOR | null + note2?: XOR + note1?: XOR }, "id" | "userId_insightDate"> export type MemoryEchoInsightOrderByWithAggregationInput = { @@ -15808,15 +15808,15 @@ export namespace Prisma { createdAt?: Date | string updatedAt?: Date | string accounts?: AccountCreateNestedManyWithoutUserInput - sessions?: SessionCreateNestedManyWithoutUserInput - notes?: NoteCreateNestedManyWithoutUserInput - labels?: LabelCreateNestedManyWithoutUserInput - notebooks?: NotebookCreateNestedManyWithoutUserInput - receivedShares?: NoteShareCreateNestedManyWithoutUserInput - sentShares?: NoteShareCreateNestedManyWithoutSharerInput aiFeedback?: AiFeedbackCreateNestedManyWithoutUserInput - aiSettings?: UserAISettingsCreateNestedOneWithoutUserInput + labels?: LabelCreateNestedManyWithoutUserInput memoryEchoInsights?: MemoryEchoInsightCreateNestedManyWithoutUserInput + notes?: NoteCreateNestedManyWithoutUserInput + sentShares?: NoteShareCreateNestedManyWithoutSharerInput + receivedShares?: NoteShareCreateNestedManyWithoutUserInput + notebooks?: NotebookCreateNestedManyWithoutUserInput + sessions?: SessionCreateNestedManyWithoutUserInput + aiSettings?: UserAISettingsCreateNestedOneWithoutUserInput } export type UserUncheckedCreateInput = { @@ -15833,15 +15833,15 @@ export namespace Prisma { createdAt?: Date | string updatedAt?: Date | string accounts?: AccountUncheckedCreateNestedManyWithoutUserInput - sessions?: SessionUncheckedCreateNestedManyWithoutUserInput - notes?: NoteUncheckedCreateNestedManyWithoutUserInput - labels?: LabelUncheckedCreateNestedManyWithoutUserInput - notebooks?: NotebookUncheckedCreateNestedManyWithoutUserInput - receivedShares?: NoteShareUncheckedCreateNestedManyWithoutUserInput - sentShares?: NoteShareUncheckedCreateNestedManyWithoutSharerInput aiFeedback?: AiFeedbackUncheckedCreateNestedManyWithoutUserInput - aiSettings?: UserAISettingsUncheckedCreateNestedOneWithoutUserInput + labels?: LabelUncheckedCreateNestedManyWithoutUserInput memoryEchoInsights?: MemoryEchoInsightUncheckedCreateNestedManyWithoutUserInput + notes?: NoteUncheckedCreateNestedManyWithoutUserInput + sentShares?: NoteShareUncheckedCreateNestedManyWithoutSharerInput + receivedShares?: NoteShareUncheckedCreateNestedManyWithoutUserInput + notebooks?: NotebookUncheckedCreateNestedManyWithoutUserInput + sessions?: SessionUncheckedCreateNestedManyWithoutUserInput + aiSettings?: UserAISettingsUncheckedCreateNestedOneWithoutUserInput } export type UserUpdateInput = { @@ -15858,15 +15858,15 @@ export namespace Prisma { createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string accounts?: AccountUpdateManyWithoutUserNestedInput - sessions?: SessionUpdateManyWithoutUserNestedInput - notes?: NoteUpdateManyWithoutUserNestedInput - labels?: LabelUpdateManyWithoutUserNestedInput - notebooks?: NotebookUpdateManyWithoutUserNestedInput - receivedShares?: NoteShareUpdateManyWithoutUserNestedInput - sentShares?: NoteShareUpdateManyWithoutSharerNestedInput aiFeedback?: AiFeedbackUpdateManyWithoutUserNestedInput - aiSettings?: UserAISettingsUpdateOneWithoutUserNestedInput + labels?: LabelUpdateManyWithoutUserNestedInput memoryEchoInsights?: MemoryEchoInsightUpdateManyWithoutUserNestedInput + notes?: NoteUpdateManyWithoutUserNestedInput + sentShares?: NoteShareUpdateManyWithoutSharerNestedInput + receivedShares?: NoteShareUpdateManyWithoutUserNestedInput + notebooks?: NotebookUpdateManyWithoutUserNestedInput + sessions?: SessionUpdateManyWithoutUserNestedInput + aiSettings?: UserAISettingsUpdateOneWithoutUserNestedInput } export type UserUncheckedUpdateInput = { @@ -15883,15 +15883,15 @@ export namespace Prisma { createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string accounts?: AccountUncheckedUpdateManyWithoutUserNestedInput - sessions?: SessionUncheckedUpdateManyWithoutUserNestedInput - notes?: NoteUncheckedUpdateManyWithoutUserNestedInput - labels?: LabelUncheckedUpdateManyWithoutUserNestedInput - notebooks?: NotebookUncheckedUpdateManyWithoutUserNestedInput - receivedShares?: NoteShareUncheckedUpdateManyWithoutUserNestedInput - sentShares?: NoteShareUncheckedUpdateManyWithoutSharerNestedInput aiFeedback?: AiFeedbackUncheckedUpdateManyWithoutUserNestedInput - aiSettings?: UserAISettingsUncheckedUpdateOneWithoutUserNestedInput + labels?: LabelUncheckedUpdateManyWithoutUserNestedInput memoryEchoInsights?: MemoryEchoInsightUncheckedUpdateManyWithoutUserNestedInput + notes?: NoteUncheckedUpdateManyWithoutUserNestedInput + sentShares?: NoteShareUncheckedUpdateManyWithoutSharerNestedInput + receivedShares?: NoteShareUncheckedUpdateManyWithoutUserNestedInput + notebooks?: NotebookUncheckedUpdateManyWithoutUserNestedInput + sessions?: SessionUncheckedUpdateManyWithoutUserNestedInput + aiSettings?: UserAISettingsUncheckedUpdateOneWithoutUserNestedInput } export type UserCreateManyInput = { @@ -16155,9 +16155,9 @@ export namespace Prisma { order: number createdAt?: Date | string updatedAt?: Date | string - user: UserCreateNestedOneWithoutNotebooksInput - notes?: NoteCreateNestedManyWithoutNotebookInput labels?: LabelCreateNestedManyWithoutNotebookInput + notes?: NoteCreateNestedManyWithoutNotebookInput + user: UserCreateNestedOneWithoutNotebooksInput } export type NotebookUncheckedCreateInput = { @@ -16169,8 +16169,8 @@ export namespace Prisma { userId: string createdAt?: Date | string updatedAt?: Date | string - notes?: NoteUncheckedCreateNestedManyWithoutNotebookInput labels?: LabelUncheckedCreateNestedManyWithoutNotebookInput + notes?: NoteUncheckedCreateNestedManyWithoutNotebookInput } export type NotebookUpdateInput = { @@ -16181,9 +16181,9 @@ export namespace Prisma { order?: IntFieldUpdateOperationsInput | number createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - user?: UserUpdateOneRequiredWithoutNotebooksNestedInput - notes?: NoteUpdateManyWithoutNotebookNestedInput labels?: LabelUpdateManyWithoutNotebookNestedInput + notes?: NoteUpdateManyWithoutNotebookNestedInput + user?: UserUpdateOneRequiredWithoutNotebooksNestedInput } export type NotebookUncheckedUpdateInput = { @@ -16195,8 +16195,8 @@ export namespace Prisma { userId?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - notes?: NoteUncheckedUpdateManyWithoutNotebookNestedInput labels?: LabelUncheckedUpdateManyWithoutNotebookNestedInput + notes?: NoteUncheckedUpdateManyWithoutNotebookNestedInput } export type NotebookCreateManyInput = { @@ -16237,9 +16237,9 @@ export namespace Prisma { color?: string createdAt?: Date | string updatedAt?: Date | string + user?: UserCreateNestedOneWithoutLabelsInput notebook?: NotebookCreateNestedOneWithoutLabelsInput notes?: NoteCreateNestedManyWithoutLabelRelationsInput - user?: UserCreateNestedOneWithoutLabelsInput } export type LabelUncheckedCreateInput = { @@ -16259,9 +16259,9 @@ export namespace Prisma { color?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string + user?: UserUpdateOneWithoutLabelsNestedInput notebook?: NotebookUpdateOneWithoutLabelsNestedInput notes?: NoteUpdateManyWithoutLabelRelationsNestedInput - user?: UserUpdateOneWithoutLabelsNestedInput } export type LabelUncheckedUpdateInput = { @@ -16332,13 +16332,13 @@ export namespace Prisma { language?: string | null languageConfidence?: number | null lastAiAnalysis?: Date | string | null + aiFeedback?: AiFeedbackCreateNestedManyWithoutNoteInput + memoryEchoAsNote2?: MemoryEchoInsightCreateNestedManyWithoutNote2Input + memoryEchoAsNote1?: MemoryEchoInsightCreateNestedManyWithoutNote1Input + notebook?: NotebookCreateNestedOneWithoutNotesInput user?: UserCreateNestedOneWithoutNotesInput shares?: NoteShareCreateNestedManyWithoutNoteInput - notebook?: NotebookCreateNestedOneWithoutNotesInput labelRelations?: LabelCreateNestedManyWithoutNotesInput - aiFeedback?: AiFeedbackCreateNestedManyWithoutNoteInput - memoryEchoAsNote1?: MemoryEchoInsightCreateNestedManyWithoutNote1Input - memoryEchoAsNote2?: MemoryEchoInsightCreateNestedManyWithoutNote2Input } export type NoteUncheckedCreateInput = { @@ -16372,11 +16372,11 @@ export namespace Prisma { language?: string | null languageConfidence?: number | null lastAiAnalysis?: Date | string | null + aiFeedback?: AiFeedbackUncheckedCreateNestedManyWithoutNoteInput + memoryEchoAsNote2?: MemoryEchoInsightUncheckedCreateNestedManyWithoutNote2Input + memoryEchoAsNote1?: MemoryEchoInsightUncheckedCreateNestedManyWithoutNote1Input shares?: NoteShareUncheckedCreateNestedManyWithoutNoteInput labelRelations?: LabelUncheckedCreateNestedManyWithoutNotesInput - aiFeedback?: AiFeedbackUncheckedCreateNestedManyWithoutNoteInput - memoryEchoAsNote1?: MemoryEchoInsightUncheckedCreateNestedManyWithoutNote1Input - memoryEchoAsNote2?: MemoryEchoInsightUncheckedCreateNestedManyWithoutNote2Input } export type NoteUpdateInput = { @@ -16408,13 +16408,13 @@ export namespace Prisma { language?: NullableStringFieldUpdateOperationsInput | string | null languageConfidence?: NullableFloatFieldUpdateOperationsInput | number | null lastAiAnalysis?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null + aiFeedback?: AiFeedbackUpdateManyWithoutNoteNestedInput + memoryEchoAsNote2?: MemoryEchoInsightUpdateManyWithoutNote2NestedInput + memoryEchoAsNote1?: MemoryEchoInsightUpdateManyWithoutNote1NestedInput + notebook?: NotebookUpdateOneWithoutNotesNestedInput user?: UserUpdateOneWithoutNotesNestedInput shares?: NoteShareUpdateManyWithoutNoteNestedInput - notebook?: NotebookUpdateOneWithoutNotesNestedInput labelRelations?: LabelUpdateManyWithoutNotesNestedInput - aiFeedback?: AiFeedbackUpdateManyWithoutNoteNestedInput - memoryEchoAsNote1?: MemoryEchoInsightUpdateManyWithoutNote1NestedInput - memoryEchoAsNote2?: MemoryEchoInsightUpdateManyWithoutNote2NestedInput } export type NoteUncheckedUpdateInput = { @@ -16448,11 +16448,11 @@ export namespace Prisma { language?: NullableStringFieldUpdateOperationsInput | string | null languageConfidence?: NullableFloatFieldUpdateOperationsInput | number | null lastAiAnalysis?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null + aiFeedback?: AiFeedbackUncheckedUpdateManyWithoutNoteNestedInput + memoryEchoAsNote2?: MemoryEchoInsightUncheckedUpdateManyWithoutNote2NestedInput + memoryEchoAsNote1?: MemoryEchoInsightUncheckedUpdateManyWithoutNote1NestedInput shares?: NoteShareUncheckedUpdateManyWithoutNoteNestedInput labelRelations?: LabelUncheckedUpdateManyWithoutNotesNestedInput - aiFeedback?: AiFeedbackUncheckedUpdateManyWithoutNoteNestedInput - memoryEchoAsNote1?: MemoryEchoInsightUncheckedUpdateManyWithoutNote1NestedInput - memoryEchoAsNote2?: MemoryEchoInsightUncheckedUpdateManyWithoutNote2NestedInput } export type NoteCreateManyInput = { @@ -16560,9 +16560,9 @@ export namespace Prisma { respondedAt?: Date | string | null createdAt?: Date | string updatedAt?: Date | string - note: NoteCreateNestedOneWithoutSharesInput - user: UserCreateNestedOneWithoutReceivedSharesInput sharer: UserCreateNestedOneWithoutSentSharesInput + user: UserCreateNestedOneWithoutReceivedSharesInput + note: NoteCreateNestedOneWithoutSharesInput } export type NoteShareUncheckedCreateInput = { @@ -16586,9 +16586,9 @@ export namespace Prisma { respondedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - note?: NoteUpdateOneRequiredWithoutSharesNestedInput - user?: UserUpdateOneRequiredWithoutReceivedSharesNestedInput sharer?: UserUpdateOneRequiredWithoutSentSharesNestedInput + user?: UserUpdateOneRequiredWithoutReceivedSharesNestedInput + note?: NoteUpdateOneRequiredWithoutSharesNestedInput } export type NoteShareUncheckedUpdateInput = { @@ -16683,8 +16683,8 @@ export namespace Prisma { correctedContent?: string | null metadata?: string | null createdAt?: Date | string - note: NoteCreateNestedOneWithoutAiFeedbackInput user?: UserCreateNestedOneWithoutAiFeedbackInput + note: NoteCreateNestedOneWithoutAiFeedbackInput } export type AiFeedbackUncheckedCreateInput = { @@ -16707,8 +16707,8 @@ export namespace Prisma { correctedContent?: NullableStringFieldUpdateOperationsInput | string | null metadata?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - note?: NoteUpdateOneRequiredWithoutAiFeedbackNestedInput user?: UserUpdateOneWithoutAiFeedbackNestedInput + note?: NoteUpdateOneRequiredWithoutAiFeedbackNestedInput } export type AiFeedbackUncheckedUpdateInput = { @@ -16765,9 +16765,9 @@ export namespace Prisma { viewed?: boolean feedback?: string | null dismissed?: boolean - note1: NoteCreateNestedOneWithoutMemoryEchoAsNote1Input - note2: NoteCreateNestedOneWithoutMemoryEchoAsNote2Input user?: UserCreateNestedOneWithoutMemoryEchoInsightsInput + note2: NoteCreateNestedOneWithoutMemoryEchoAsNote2Input + note1: NoteCreateNestedOneWithoutMemoryEchoAsNote1Input } export type MemoryEchoInsightUncheckedCreateInput = { @@ -16791,9 +16791,9 @@ export namespace Prisma { viewed?: BoolFieldUpdateOperationsInput | boolean feedback?: NullableStringFieldUpdateOperationsInput | string | null dismissed?: BoolFieldUpdateOperationsInput | boolean - note1?: NoteUpdateOneRequiredWithoutMemoryEchoAsNote1NestedInput - note2?: NoteUpdateOneRequiredWithoutMemoryEchoAsNote2NestedInput user?: UserUpdateOneWithoutMemoryEchoInsightsNestedInput + note2?: NoteUpdateOneRequiredWithoutMemoryEchoAsNote2NestedInput + note1?: NoteUpdateOneRequiredWithoutMemoryEchoAsNote1NestedInput } export type MemoryEchoInsightUncheckedUpdateInput = { @@ -16991,16 +16991,10 @@ export namespace Prisma { none?: AccountWhereInput } - export type SessionListRelationFilter = { - every?: SessionWhereInput - some?: SessionWhereInput - none?: SessionWhereInput - } - - export type NoteListRelationFilter = { - every?: NoteWhereInput - some?: NoteWhereInput - none?: NoteWhereInput + export type AiFeedbackListRelationFilter = { + every?: AiFeedbackWhereInput + some?: AiFeedbackWhereInput + none?: AiFeedbackWhereInput } export type LabelListRelationFilter = { @@ -17009,10 +17003,16 @@ export namespace Prisma { none?: LabelWhereInput } - export type NotebookListRelationFilter = { - every?: NotebookWhereInput - some?: NotebookWhereInput - none?: NotebookWhereInput + export type MemoryEchoInsightListRelationFilter = { + every?: MemoryEchoInsightWhereInput + some?: MemoryEchoInsightWhereInput + none?: MemoryEchoInsightWhereInput + } + + export type NoteListRelationFilter = { + every?: NoteWhereInput + some?: NoteWhereInput + none?: NoteWhereInput } export type NoteShareListRelationFilter = { @@ -17021,10 +17021,16 @@ export namespace Prisma { none?: NoteShareWhereInput } - export type AiFeedbackListRelationFilter = { - every?: AiFeedbackWhereInput - some?: AiFeedbackWhereInput - none?: AiFeedbackWhereInput + export type NotebookListRelationFilter = { + every?: NotebookWhereInput + some?: NotebookWhereInput + none?: NotebookWhereInput + } + + export type SessionListRelationFilter = { + every?: SessionWhereInput + some?: SessionWhereInput + none?: SessionWhereInput } export type UserAISettingsNullableRelationFilter = { @@ -17032,12 +17038,6 @@ export namespace Prisma { isNot?: UserAISettingsWhereInput | null } - export type MemoryEchoInsightListRelationFilter = { - every?: MemoryEchoInsightWhereInput - some?: MemoryEchoInsightWhereInput - none?: MemoryEchoInsightWhereInput - } - export type SortOrderInput = { sort: SortOrder nulls?: NullsOrder @@ -17047,11 +17047,7 @@ export namespace Prisma { _count?: SortOrder } - export type SessionOrderByRelationAggregateInput = { - _count?: SortOrder - } - - export type NoteOrderByRelationAggregateInput = { + export type AiFeedbackOrderByRelationAggregateInput = { _count?: SortOrder } @@ -17059,7 +17055,11 @@ export namespace Prisma { _count?: SortOrder } - export type NotebookOrderByRelationAggregateInput = { + export type MemoryEchoInsightOrderByRelationAggregateInput = { + _count?: SortOrder + } + + export type NoteOrderByRelationAggregateInput = { _count?: SortOrder } @@ -17067,11 +17067,11 @@ export namespace Prisma { _count?: SortOrder } - export type AiFeedbackOrderByRelationAggregateInput = { + export type NotebookOrderByRelationAggregateInput = { _count?: SortOrder } - export type MemoryEchoInsightOrderByRelationAggregateInput = { + export type SessionOrderByRelationAggregateInput = { _count?: SortOrder } @@ -17390,16 +17390,16 @@ export namespace Prisma { _max?: NestedIntFilter<$PrismaModel> } - export type NotebookNullableRelationFilter = { - is?: NotebookWhereInput | null - isNot?: NotebookWhereInput | null - } - export type UserNullableRelationFilter = { is?: UserWhereInput | null isNot?: UserWhereInput | null } + export type NotebookNullableRelationFilter = { + is?: NotebookWhereInput | null + isNot?: NotebookWhereInput | null + } + export type LabelNotebookIdNameCompoundUniqueInput = { notebookId: string name: string @@ -17824,18 +17824,11 @@ export namespace Prisma { connect?: AccountWhereUniqueInput | AccountWhereUniqueInput[] } - export type SessionCreateNestedManyWithoutUserInput = { - create?: XOR | SessionCreateWithoutUserInput[] | SessionUncheckedCreateWithoutUserInput[] - connectOrCreate?: SessionCreateOrConnectWithoutUserInput | SessionCreateOrConnectWithoutUserInput[] - createMany?: SessionCreateManyUserInputEnvelope - connect?: SessionWhereUniqueInput | SessionWhereUniqueInput[] - } - - export type NoteCreateNestedManyWithoutUserInput = { - create?: XOR | NoteCreateWithoutUserInput[] | NoteUncheckedCreateWithoutUserInput[] - connectOrCreate?: NoteCreateOrConnectWithoutUserInput | NoteCreateOrConnectWithoutUserInput[] - createMany?: NoteCreateManyUserInputEnvelope - connect?: NoteWhereUniqueInput | NoteWhereUniqueInput[] + export type AiFeedbackCreateNestedManyWithoutUserInput = { + create?: XOR | AiFeedbackCreateWithoutUserInput[] | AiFeedbackUncheckedCreateWithoutUserInput[] + connectOrCreate?: AiFeedbackCreateOrConnectWithoutUserInput | AiFeedbackCreateOrConnectWithoutUserInput[] + createMany?: AiFeedbackCreateManyUserInputEnvelope + connect?: AiFeedbackWhereUniqueInput | AiFeedbackWhereUniqueInput[] } export type LabelCreateNestedManyWithoutUserInput = { @@ -17845,18 +17838,18 @@ export namespace Prisma { connect?: LabelWhereUniqueInput | LabelWhereUniqueInput[] } - export type NotebookCreateNestedManyWithoutUserInput = { - create?: XOR | NotebookCreateWithoutUserInput[] | NotebookUncheckedCreateWithoutUserInput[] - connectOrCreate?: NotebookCreateOrConnectWithoutUserInput | NotebookCreateOrConnectWithoutUserInput[] - createMany?: NotebookCreateManyUserInputEnvelope - connect?: NotebookWhereUniqueInput | NotebookWhereUniqueInput[] + export type MemoryEchoInsightCreateNestedManyWithoutUserInput = { + create?: XOR | MemoryEchoInsightCreateWithoutUserInput[] | MemoryEchoInsightUncheckedCreateWithoutUserInput[] + connectOrCreate?: MemoryEchoInsightCreateOrConnectWithoutUserInput | MemoryEchoInsightCreateOrConnectWithoutUserInput[] + createMany?: MemoryEchoInsightCreateManyUserInputEnvelope + connect?: MemoryEchoInsightWhereUniqueInput | MemoryEchoInsightWhereUniqueInput[] } - export type NoteShareCreateNestedManyWithoutUserInput = { - create?: XOR | NoteShareCreateWithoutUserInput[] | NoteShareUncheckedCreateWithoutUserInput[] - connectOrCreate?: NoteShareCreateOrConnectWithoutUserInput | NoteShareCreateOrConnectWithoutUserInput[] - createMany?: NoteShareCreateManyUserInputEnvelope - connect?: NoteShareWhereUniqueInput | NoteShareWhereUniqueInput[] + export type NoteCreateNestedManyWithoutUserInput = { + create?: XOR | NoteCreateWithoutUserInput[] | NoteUncheckedCreateWithoutUserInput[] + connectOrCreate?: NoteCreateOrConnectWithoutUserInput | NoteCreateOrConnectWithoutUserInput[] + createMany?: NoteCreateManyUserInputEnvelope + connect?: NoteWhereUniqueInput | NoteWhereUniqueInput[] } export type NoteShareCreateNestedManyWithoutSharerInput = { @@ -17866,11 +17859,25 @@ export namespace Prisma { connect?: NoteShareWhereUniqueInput | NoteShareWhereUniqueInput[] } - export type AiFeedbackCreateNestedManyWithoutUserInput = { - create?: XOR | AiFeedbackCreateWithoutUserInput[] | AiFeedbackUncheckedCreateWithoutUserInput[] - connectOrCreate?: AiFeedbackCreateOrConnectWithoutUserInput | AiFeedbackCreateOrConnectWithoutUserInput[] - createMany?: AiFeedbackCreateManyUserInputEnvelope - connect?: AiFeedbackWhereUniqueInput | AiFeedbackWhereUniqueInput[] + export type NoteShareCreateNestedManyWithoutUserInput = { + create?: XOR | NoteShareCreateWithoutUserInput[] | NoteShareUncheckedCreateWithoutUserInput[] + connectOrCreate?: NoteShareCreateOrConnectWithoutUserInput | NoteShareCreateOrConnectWithoutUserInput[] + createMany?: NoteShareCreateManyUserInputEnvelope + connect?: NoteShareWhereUniqueInput | NoteShareWhereUniqueInput[] + } + + export type NotebookCreateNestedManyWithoutUserInput = { + create?: XOR | NotebookCreateWithoutUserInput[] | NotebookUncheckedCreateWithoutUserInput[] + connectOrCreate?: NotebookCreateOrConnectWithoutUserInput | NotebookCreateOrConnectWithoutUserInput[] + createMany?: NotebookCreateManyUserInputEnvelope + connect?: NotebookWhereUniqueInput | NotebookWhereUniqueInput[] + } + + export type SessionCreateNestedManyWithoutUserInput = { + create?: XOR | SessionCreateWithoutUserInput[] | SessionUncheckedCreateWithoutUserInput[] + connectOrCreate?: SessionCreateOrConnectWithoutUserInput | SessionCreateOrConnectWithoutUserInput[] + createMany?: SessionCreateManyUserInputEnvelope + connect?: SessionWhereUniqueInput | SessionWhereUniqueInput[] } export type UserAISettingsCreateNestedOneWithoutUserInput = { @@ -17879,13 +17886,6 @@ export namespace Prisma { connect?: UserAISettingsWhereUniqueInput } - export type MemoryEchoInsightCreateNestedManyWithoutUserInput = { - create?: XOR | MemoryEchoInsightCreateWithoutUserInput[] | MemoryEchoInsightUncheckedCreateWithoutUserInput[] - connectOrCreate?: MemoryEchoInsightCreateOrConnectWithoutUserInput | MemoryEchoInsightCreateOrConnectWithoutUserInput[] - createMany?: MemoryEchoInsightCreateManyUserInputEnvelope - connect?: MemoryEchoInsightWhereUniqueInput | MemoryEchoInsightWhereUniqueInput[] - } - export type AccountUncheckedCreateNestedManyWithoutUserInput = { create?: XOR | AccountCreateWithoutUserInput[] | AccountUncheckedCreateWithoutUserInput[] connectOrCreate?: AccountCreateOrConnectWithoutUserInput | AccountCreateOrConnectWithoutUserInput[] @@ -17893,18 +17893,11 @@ export namespace Prisma { connect?: AccountWhereUniqueInput | AccountWhereUniqueInput[] } - export type SessionUncheckedCreateNestedManyWithoutUserInput = { - create?: XOR | SessionCreateWithoutUserInput[] | SessionUncheckedCreateWithoutUserInput[] - connectOrCreate?: SessionCreateOrConnectWithoutUserInput | SessionCreateOrConnectWithoutUserInput[] - createMany?: SessionCreateManyUserInputEnvelope - connect?: SessionWhereUniqueInput | SessionWhereUniqueInput[] - } - - export type NoteUncheckedCreateNestedManyWithoutUserInput = { - create?: XOR | NoteCreateWithoutUserInput[] | NoteUncheckedCreateWithoutUserInput[] - connectOrCreate?: NoteCreateOrConnectWithoutUserInput | NoteCreateOrConnectWithoutUserInput[] - createMany?: NoteCreateManyUserInputEnvelope - connect?: NoteWhereUniqueInput | NoteWhereUniqueInput[] + export type AiFeedbackUncheckedCreateNestedManyWithoutUserInput = { + create?: XOR | AiFeedbackCreateWithoutUserInput[] | AiFeedbackUncheckedCreateWithoutUserInput[] + connectOrCreate?: AiFeedbackCreateOrConnectWithoutUserInput | AiFeedbackCreateOrConnectWithoutUserInput[] + createMany?: AiFeedbackCreateManyUserInputEnvelope + connect?: AiFeedbackWhereUniqueInput | AiFeedbackWhereUniqueInput[] } export type LabelUncheckedCreateNestedManyWithoutUserInput = { @@ -17914,18 +17907,18 @@ export namespace Prisma { connect?: LabelWhereUniqueInput | LabelWhereUniqueInput[] } - export type NotebookUncheckedCreateNestedManyWithoutUserInput = { - create?: XOR | NotebookCreateWithoutUserInput[] | NotebookUncheckedCreateWithoutUserInput[] - connectOrCreate?: NotebookCreateOrConnectWithoutUserInput | NotebookCreateOrConnectWithoutUserInput[] - createMany?: NotebookCreateManyUserInputEnvelope - connect?: NotebookWhereUniqueInput | NotebookWhereUniqueInput[] + export type MemoryEchoInsightUncheckedCreateNestedManyWithoutUserInput = { + create?: XOR | MemoryEchoInsightCreateWithoutUserInput[] | MemoryEchoInsightUncheckedCreateWithoutUserInput[] + connectOrCreate?: MemoryEchoInsightCreateOrConnectWithoutUserInput | MemoryEchoInsightCreateOrConnectWithoutUserInput[] + createMany?: MemoryEchoInsightCreateManyUserInputEnvelope + connect?: MemoryEchoInsightWhereUniqueInput | MemoryEchoInsightWhereUniqueInput[] } - export type NoteShareUncheckedCreateNestedManyWithoutUserInput = { - create?: XOR | NoteShareCreateWithoutUserInput[] | NoteShareUncheckedCreateWithoutUserInput[] - connectOrCreate?: NoteShareCreateOrConnectWithoutUserInput | NoteShareCreateOrConnectWithoutUserInput[] - createMany?: NoteShareCreateManyUserInputEnvelope - connect?: NoteShareWhereUniqueInput | NoteShareWhereUniqueInput[] + export type NoteUncheckedCreateNestedManyWithoutUserInput = { + create?: XOR | NoteCreateWithoutUserInput[] | NoteUncheckedCreateWithoutUserInput[] + connectOrCreate?: NoteCreateOrConnectWithoutUserInput | NoteCreateOrConnectWithoutUserInput[] + createMany?: NoteCreateManyUserInputEnvelope + connect?: NoteWhereUniqueInput | NoteWhereUniqueInput[] } export type NoteShareUncheckedCreateNestedManyWithoutSharerInput = { @@ -17935,11 +17928,25 @@ export namespace Prisma { connect?: NoteShareWhereUniqueInput | NoteShareWhereUniqueInput[] } - export type AiFeedbackUncheckedCreateNestedManyWithoutUserInput = { - create?: XOR | AiFeedbackCreateWithoutUserInput[] | AiFeedbackUncheckedCreateWithoutUserInput[] - connectOrCreate?: AiFeedbackCreateOrConnectWithoutUserInput | AiFeedbackCreateOrConnectWithoutUserInput[] - createMany?: AiFeedbackCreateManyUserInputEnvelope - connect?: AiFeedbackWhereUniqueInput | AiFeedbackWhereUniqueInput[] + export type NoteShareUncheckedCreateNestedManyWithoutUserInput = { + create?: XOR | NoteShareCreateWithoutUserInput[] | NoteShareUncheckedCreateWithoutUserInput[] + connectOrCreate?: NoteShareCreateOrConnectWithoutUserInput | NoteShareCreateOrConnectWithoutUserInput[] + createMany?: NoteShareCreateManyUserInputEnvelope + connect?: NoteShareWhereUniqueInput | NoteShareWhereUniqueInput[] + } + + export type NotebookUncheckedCreateNestedManyWithoutUserInput = { + create?: XOR | NotebookCreateWithoutUserInput[] | NotebookUncheckedCreateWithoutUserInput[] + connectOrCreate?: NotebookCreateOrConnectWithoutUserInput | NotebookCreateOrConnectWithoutUserInput[] + createMany?: NotebookCreateManyUserInputEnvelope + connect?: NotebookWhereUniqueInput | NotebookWhereUniqueInput[] + } + + export type SessionUncheckedCreateNestedManyWithoutUserInput = { + create?: XOR | SessionCreateWithoutUserInput[] | SessionUncheckedCreateWithoutUserInput[] + connectOrCreate?: SessionCreateOrConnectWithoutUserInput | SessionCreateOrConnectWithoutUserInput[] + createMany?: SessionCreateManyUserInputEnvelope + connect?: SessionWhereUniqueInput | SessionWhereUniqueInput[] } export type UserAISettingsUncheckedCreateNestedOneWithoutUserInput = { @@ -17948,13 +17955,6 @@ export namespace Prisma { connect?: UserAISettingsWhereUniqueInput } - export type MemoryEchoInsightUncheckedCreateNestedManyWithoutUserInput = { - create?: XOR | MemoryEchoInsightCreateWithoutUserInput[] | MemoryEchoInsightUncheckedCreateWithoutUserInput[] - connectOrCreate?: MemoryEchoInsightCreateOrConnectWithoutUserInput | MemoryEchoInsightCreateOrConnectWithoutUserInput[] - createMany?: MemoryEchoInsightCreateManyUserInputEnvelope - connect?: MemoryEchoInsightWhereUniqueInput | MemoryEchoInsightWhereUniqueInput[] - } - export type StringFieldUpdateOperationsInput = { set?: string } @@ -17985,32 +17985,18 @@ export namespace Prisma { deleteMany?: AccountScalarWhereInput | AccountScalarWhereInput[] } - export type SessionUpdateManyWithoutUserNestedInput = { - create?: XOR | SessionCreateWithoutUserInput[] | SessionUncheckedCreateWithoutUserInput[] - connectOrCreate?: SessionCreateOrConnectWithoutUserInput | SessionCreateOrConnectWithoutUserInput[] - upsert?: SessionUpsertWithWhereUniqueWithoutUserInput | SessionUpsertWithWhereUniqueWithoutUserInput[] - createMany?: SessionCreateManyUserInputEnvelope - set?: SessionWhereUniqueInput | SessionWhereUniqueInput[] - disconnect?: SessionWhereUniqueInput | SessionWhereUniqueInput[] - delete?: SessionWhereUniqueInput | SessionWhereUniqueInput[] - connect?: SessionWhereUniqueInput | SessionWhereUniqueInput[] - update?: SessionUpdateWithWhereUniqueWithoutUserInput | SessionUpdateWithWhereUniqueWithoutUserInput[] - updateMany?: SessionUpdateManyWithWhereWithoutUserInput | SessionUpdateManyWithWhereWithoutUserInput[] - deleteMany?: SessionScalarWhereInput | SessionScalarWhereInput[] - } - - export type NoteUpdateManyWithoutUserNestedInput = { - create?: XOR | NoteCreateWithoutUserInput[] | NoteUncheckedCreateWithoutUserInput[] - connectOrCreate?: NoteCreateOrConnectWithoutUserInput | NoteCreateOrConnectWithoutUserInput[] - upsert?: NoteUpsertWithWhereUniqueWithoutUserInput | NoteUpsertWithWhereUniqueWithoutUserInput[] - createMany?: NoteCreateManyUserInputEnvelope - set?: NoteWhereUniqueInput | NoteWhereUniqueInput[] - disconnect?: NoteWhereUniqueInput | NoteWhereUniqueInput[] - delete?: NoteWhereUniqueInput | NoteWhereUniqueInput[] - connect?: NoteWhereUniqueInput | NoteWhereUniqueInput[] - update?: NoteUpdateWithWhereUniqueWithoutUserInput | NoteUpdateWithWhereUniqueWithoutUserInput[] - updateMany?: NoteUpdateManyWithWhereWithoutUserInput | NoteUpdateManyWithWhereWithoutUserInput[] - deleteMany?: NoteScalarWhereInput | NoteScalarWhereInput[] + export type AiFeedbackUpdateManyWithoutUserNestedInput = { + create?: XOR | AiFeedbackCreateWithoutUserInput[] | AiFeedbackUncheckedCreateWithoutUserInput[] + connectOrCreate?: AiFeedbackCreateOrConnectWithoutUserInput | AiFeedbackCreateOrConnectWithoutUserInput[] + upsert?: AiFeedbackUpsertWithWhereUniqueWithoutUserInput | AiFeedbackUpsertWithWhereUniqueWithoutUserInput[] + createMany?: AiFeedbackCreateManyUserInputEnvelope + set?: AiFeedbackWhereUniqueInput | AiFeedbackWhereUniqueInput[] + disconnect?: AiFeedbackWhereUniqueInput | AiFeedbackWhereUniqueInput[] + delete?: AiFeedbackWhereUniqueInput | AiFeedbackWhereUniqueInput[] + connect?: AiFeedbackWhereUniqueInput | AiFeedbackWhereUniqueInput[] + update?: AiFeedbackUpdateWithWhereUniqueWithoutUserInput | AiFeedbackUpdateWithWhereUniqueWithoutUserInput[] + updateMany?: AiFeedbackUpdateManyWithWhereWithoutUserInput | AiFeedbackUpdateManyWithWhereWithoutUserInput[] + deleteMany?: AiFeedbackScalarWhereInput | AiFeedbackScalarWhereInput[] } export type LabelUpdateManyWithoutUserNestedInput = { @@ -18027,32 +18013,32 @@ export namespace Prisma { deleteMany?: LabelScalarWhereInput | LabelScalarWhereInput[] } - export type NotebookUpdateManyWithoutUserNestedInput = { - create?: XOR | NotebookCreateWithoutUserInput[] | NotebookUncheckedCreateWithoutUserInput[] - connectOrCreate?: NotebookCreateOrConnectWithoutUserInput | NotebookCreateOrConnectWithoutUserInput[] - upsert?: NotebookUpsertWithWhereUniqueWithoutUserInput | NotebookUpsertWithWhereUniqueWithoutUserInput[] - createMany?: NotebookCreateManyUserInputEnvelope - set?: NotebookWhereUniqueInput | NotebookWhereUniqueInput[] - disconnect?: NotebookWhereUniqueInput | NotebookWhereUniqueInput[] - delete?: NotebookWhereUniqueInput | NotebookWhereUniqueInput[] - connect?: NotebookWhereUniqueInput | NotebookWhereUniqueInput[] - update?: NotebookUpdateWithWhereUniqueWithoutUserInput | NotebookUpdateWithWhereUniqueWithoutUserInput[] - updateMany?: NotebookUpdateManyWithWhereWithoutUserInput | NotebookUpdateManyWithWhereWithoutUserInput[] - deleteMany?: NotebookScalarWhereInput | NotebookScalarWhereInput[] + export type MemoryEchoInsightUpdateManyWithoutUserNestedInput = { + create?: XOR | MemoryEchoInsightCreateWithoutUserInput[] | MemoryEchoInsightUncheckedCreateWithoutUserInput[] + connectOrCreate?: MemoryEchoInsightCreateOrConnectWithoutUserInput | MemoryEchoInsightCreateOrConnectWithoutUserInput[] + upsert?: MemoryEchoInsightUpsertWithWhereUniqueWithoutUserInput | MemoryEchoInsightUpsertWithWhereUniqueWithoutUserInput[] + createMany?: MemoryEchoInsightCreateManyUserInputEnvelope + set?: MemoryEchoInsightWhereUniqueInput | MemoryEchoInsightWhereUniqueInput[] + disconnect?: MemoryEchoInsightWhereUniqueInput | MemoryEchoInsightWhereUniqueInput[] + delete?: MemoryEchoInsightWhereUniqueInput | MemoryEchoInsightWhereUniqueInput[] + connect?: MemoryEchoInsightWhereUniqueInput | MemoryEchoInsightWhereUniqueInput[] + update?: MemoryEchoInsightUpdateWithWhereUniqueWithoutUserInput | MemoryEchoInsightUpdateWithWhereUniqueWithoutUserInput[] + updateMany?: MemoryEchoInsightUpdateManyWithWhereWithoutUserInput | MemoryEchoInsightUpdateManyWithWhereWithoutUserInput[] + deleteMany?: MemoryEchoInsightScalarWhereInput | MemoryEchoInsightScalarWhereInput[] } - export type NoteShareUpdateManyWithoutUserNestedInput = { - create?: XOR | NoteShareCreateWithoutUserInput[] | NoteShareUncheckedCreateWithoutUserInput[] - connectOrCreate?: NoteShareCreateOrConnectWithoutUserInput | NoteShareCreateOrConnectWithoutUserInput[] - upsert?: NoteShareUpsertWithWhereUniqueWithoutUserInput | NoteShareUpsertWithWhereUniqueWithoutUserInput[] - createMany?: NoteShareCreateManyUserInputEnvelope - set?: NoteShareWhereUniqueInput | NoteShareWhereUniqueInput[] - disconnect?: NoteShareWhereUniqueInput | NoteShareWhereUniqueInput[] - delete?: NoteShareWhereUniqueInput | NoteShareWhereUniqueInput[] - connect?: NoteShareWhereUniqueInput | NoteShareWhereUniqueInput[] - update?: NoteShareUpdateWithWhereUniqueWithoutUserInput | NoteShareUpdateWithWhereUniqueWithoutUserInput[] - updateMany?: NoteShareUpdateManyWithWhereWithoutUserInput | NoteShareUpdateManyWithWhereWithoutUserInput[] - deleteMany?: NoteShareScalarWhereInput | NoteShareScalarWhereInput[] + export type NoteUpdateManyWithoutUserNestedInput = { + create?: XOR | NoteCreateWithoutUserInput[] | NoteUncheckedCreateWithoutUserInput[] + connectOrCreate?: NoteCreateOrConnectWithoutUserInput | NoteCreateOrConnectWithoutUserInput[] + upsert?: NoteUpsertWithWhereUniqueWithoutUserInput | NoteUpsertWithWhereUniqueWithoutUserInput[] + createMany?: NoteCreateManyUserInputEnvelope + set?: NoteWhereUniqueInput | NoteWhereUniqueInput[] + disconnect?: NoteWhereUniqueInput | NoteWhereUniqueInput[] + delete?: NoteWhereUniqueInput | NoteWhereUniqueInput[] + connect?: NoteWhereUniqueInput | NoteWhereUniqueInput[] + update?: NoteUpdateWithWhereUniqueWithoutUserInput | NoteUpdateWithWhereUniqueWithoutUserInput[] + updateMany?: NoteUpdateManyWithWhereWithoutUserInput | NoteUpdateManyWithWhereWithoutUserInput[] + deleteMany?: NoteScalarWhereInput | NoteScalarWhereInput[] } export type NoteShareUpdateManyWithoutSharerNestedInput = { @@ -18069,18 +18055,46 @@ export namespace Prisma { deleteMany?: NoteShareScalarWhereInput | NoteShareScalarWhereInput[] } - export type AiFeedbackUpdateManyWithoutUserNestedInput = { - create?: XOR | AiFeedbackCreateWithoutUserInput[] | AiFeedbackUncheckedCreateWithoutUserInput[] - connectOrCreate?: AiFeedbackCreateOrConnectWithoutUserInput | AiFeedbackCreateOrConnectWithoutUserInput[] - upsert?: AiFeedbackUpsertWithWhereUniqueWithoutUserInput | AiFeedbackUpsertWithWhereUniqueWithoutUserInput[] - createMany?: AiFeedbackCreateManyUserInputEnvelope - set?: AiFeedbackWhereUniqueInput | AiFeedbackWhereUniqueInput[] - disconnect?: AiFeedbackWhereUniqueInput | AiFeedbackWhereUniqueInput[] - delete?: AiFeedbackWhereUniqueInput | AiFeedbackWhereUniqueInput[] - connect?: AiFeedbackWhereUniqueInput | AiFeedbackWhereUniqueInput[] - update?: AiFeedbackUpdateWithWhereUniqueWithoutUserInput | AiFeedbackUpdateWithWhereUniqueWithoutUserInput[] - updateMany?: AiFeedbackUpdateManyWithWhereWithoutUserInput | AiFeedbackUpdateManyWithWhereWithoutUserInput[] - deleteMany?: AiFeedbackScalarWhereInput | AiFeedbackScalarWhereInput[] + export type NoteShareUpdateManyWithoutUserNestedInput = { + create?: XOR | NoteShareCreateWithoutUserInput[] | NoteShareUncheckedCreateWithoutUserInput[] + connectOrCreate?: NoteShareCreateOrConnectWithoutUserInput | NoteShareCreateOrConnectWithoutUserInput[] + upsert?: NoteShareUpsertWithWhereUniqueWithoutUserInput | NoteShareUpsertWithWhereUniqueWithoutUserInput[] + createMany?: NoteShareCreateManyUserInputEnvelope + set?: NoteShareWhereUniqueInput | NoteShareWhereUniqueInput[] + disconnect?: NoteShareWhereUniqueInput | NoteShareWhereUniqueInput[] + delete?: NoteShareWhereUniqueInput | NoteShareWhereUniqueInput[] + connect?: NoteShareWhereUniqueInput | NoteShareWhereUniqueInput[] + update?: NoteShareUpdateWithWhereUniqueWithoutUserInput | NoteShareUpdateWithWhereUniqueWithoutUserInput[] + updateMany?: NoteShareUpdateManyWithWhereWithoutUserInput | NoteShareUpdateManyWithWhereWithoutUserInput[] + deleteMany?: NoteShareScalarWhereInput | NoteShareScalarWhereInput[] + } + + export type NotebookUpdateManyWithoutUserNestedInput = { + create?: XOR | NotebookCreateWithoutUserInput[] | NotebookUncheckedCreateWithoutUserInput[] + connectOrCreate?: NotebookCreateOrConnectWithoutUserInput | NotebookCreateOrConnectWithoutUserInput[] + upsert?: NotebookUpsertWithWhereUniqueWithoutUserInput | NotebookUpsertWithWhereUniqueWithoutUserInput[] + createMany?: NotebookCreateManyUserInputEnvelope + set?: NotebookWhereUniqueInput | NotebookWhereUniqueInput[] + disconnect?: NotebookWhereUniqueInput | NotebookWhereUniqueInput[] + delete?: NotebookWhereUniqueInput | NotebookWhereUniqueInput[] + connect?: NotebookWhereUniqueInput | NotebookWhereUniqueInput[] + update?: NotebookUpdateWithWhereUniqueWithoutUserInput | NotebookUpdateWithWhereUniqueWithoutUserInput[] + updateMany?: NotebookUpdateManyWithWhereWithoutUserInput | NotebookUpdateManyWithWhereWithoutUserInput[] + deleteMany?: NotebookScalarWhereInput | NotebookScalarWhereInput[] + } + + export type SessionUpdateManyWithoutUserNestedInput = { + create?: XOR | SessionCreateWithoutUserInput[] | SessionUncheckedCreateWithoutUserInput[] + connectOrCreate?: SessionCreateOrConnectWithoutUserInput | SessionCreateOrConnectWithoutUserInput[] + upsert?: SessionUpsertWithWhereUniqueWithoutUserInput | SessionUpsertWithWhereUniqueWithoutUserInput[] + createMany?: SessionCreateManyUserInputEnvelope + set?: SessionWhereUniqueInput | SessionWhereUniqueInput[] + disconnect?: SessionWhereUniqueInput | SessionWhereUniqueInput[] + delete?: SessionWhereUniqueInput | SessionWhereUniqueInput[] + connect?: SessionWhereUniqueInput | SessionWhereUniqueInput[] + update?: SessionUpdateWithWhereUniqueWithoutUserInput | SessionUpdateWithWhereUniqueWithoutUserInput[] + updateMany?: SessionUpdateManyWithWhereWithoutUserInput | SessionUpdateManyWithWhereWithoutUserInput[] + deleteMany?: SessionScalarWhereInput | SessionScalarWhereInput[] } export type UserAISettingsUpdateOneWithoutUserNestedInput = { @@ -18093,20 +18107,6 @@ export namespace Prisma { update?: XOR, UserAISettingsUncheckedUpdateWithoutUserInput> } - export type MemoryEchoInsightUpdateManyWithoutUserNestedInput = { - create?: XOR | MemoryEchoInsightCreateWithoutUserInput[] | MemoryEchoInsightUncheckedCreateWithoutUserInput[] - connectOrCreate?: MemoryEchoInsightCreateOrConnectWithoutUserInput | MemoryEchoInsightCreateOrConnectWithoutUserInput[] - upsert?: MemoryEchoInsightUpsertWithWhereUniqueWithoutUserInput | MemoryEchoInsightUpsertWithWhereUniqueWithoutUserInput[] - createMany?: MemoryEchoInsightCreateManyUserInputEnvelope - set?: MemoryEchoInsightWhereUniqueInput | MemoryEchoInsightWhereUniqueInput[] - disconnect?: MemoryEchoInsightWhereUniqueInput | MemoryEchoInsightWhereUniqueInput[] - delete?: MemoryEchoInsightWhereUniqueInput | MemoryEchoInsightWhereUniqueInput[] - connect?: MemoryEchoInsightWhereUniqueInput | MemoryEchoInsightWhereUniqueInput[] - update?: MemoryEchoInsightUpdateWithWhereUniqueWithoutUserInput | MemoryEchoInsightUpdateWithWhereUniqueWithoutUserInput[] - updateMany?: MemoryEchoInsightUpdateManyWithWhereWithoutUserInput | MemoryEchoInsightUpdateManyWithWhereWithoutUserInput[] - deleteMany?: MemoryEchoInsightScalarWhereInput | MemoryEchoInsightScalarWhereInput[] - } - export type AccountUncheckedUpdateManyWithoutUserNestedInput = { create?: XOR | AccountCreateWithoutUserInput[] | AccountUncheckedCreateWithoutUserInput[] connectOrCreate?: AccountCreateOrConnectWithoutUserInput | AccountCreateOrConnectWithoutUserInput[] @@ -18121,32 +18121,18 @@ export namespace Prisma { deleteMany?: AccountScalarWhereInput | AccountScalarWhereInput[] } - export type SessionUncheckedUpdateManyWithoutUserNestedInput = { - create?: XOR | SessionCreateWithoutUserInput[] | SessionUncheckedCreateWithoutUserInput[] - connectOrCreate?: SessionCreateOrConnectWithoutUserInput | SessionCreateOrConnectWithoutUserInput[] - upsert?: SessionUpsertWithWhereUniqueWithoutUserInput | SessionUpsertWithWhereUniqueWithoutUserInput[] - createMany?: SessionCreateManyUserInputEnvelope - set?: SessionWhereUniqueInput | SessionWhereUniqueInput[] - disconnect?: SessionWhereUniqueInput | SessionWhereUniqueInput[] - delete?: SessionWhereUniqueInput | SessionWhereUniqueInput[] - connect?: SessionWhereUniqueInput | SessionWhereUniqueInput[] - update?: SessionUpdateWithWhereUniqueWithoutUserInput | SessionUpdateWithWhereUniqueWithoutUserInput[] - updateMany?: SessionUpdateManyWithWhereWithoutUserInput | SessionUpdateManyWithWhereWithoutUserInput[] - deleteMany?: SessionScalarWhereInput | SessionScalarWhereInput[] - } - - export type NoteUncheckedUpdateManyWithoutUserNestedInput = { - create?: XOR | NoteCreateWithoutUserInput[] | NoteUncheckedCreateWithoutUserInput[] - connectOrCreate?: NoteCreateOrConnectWithoutUserInput | NoteCreateOrConnectWithoutUserInput[] - upsert?: NoteUpsertWithWhereUniqueWithoutUserInput | NoteUpsertWithWhereUniqueWithoutUserInput[] - createMany?: NoteCreateManyUserInputEnvelope - set?: NoteWhereUniqueInput | NoteWhereUniqueInput[] - disconnect?: NoteWhereUniqueInput | NoteWhereUniqueInput[] - delete?: NoteWhereUniqueInput | NoteWhereUniqueInput[] - connect?: NoteWhereUniqueInput | NoteWhereUniqueInput[] - update?: NoteUpdateWithWhereUniqueWithoutUserInput | NoteUpdateWithWhereUniqueWithoutUserInput[] - updateMany?: NoteUpdateManyWithWhereWithoutUserInput | NoteUpdateManyWithWhereWithoutUserInput[] - deleteMany?: NoteScalarWhereInput | NoteScalarWhereInput[] + export type AiFeedbackUncheckedUpdateManyWithoutUserNestedInput = { + create?: XOR | AiFeedbackCreateWithoutUserInput[] | AiFeedbackUncheckedCreateWithoutUserInput[] + connectOrCreate?: AiFeedbackCreateOrConnectWithoutUserInput | AiFeedbackCreateOrConnectWithoutUserInput[] + upsert?: AiFeedbackUpsertWithWhereUniqueWithoutUserInput | AiFeedbackUpsertWithWhereUniqueWithoutUserInput[] + createMany?: AiFeedbackCreateManyUserInputEnvelope + set?: AiFeedbackWhereUniqueInput | AiFeedbackWhereUniqueInput[] + disconnect?: AiFeedbackWhereUniqueInput | AiFeedbackWhereUniqueInput[] + delete?: AiFeedbackWhereUniqueInput | AiFeedbackWhereUniqueInput[] + connect?: AiFeedbackWhereUniqueInput | AiFeedbackWhereUniqueInput[] + update?: AiFeedbackUpdateWithWhereUniqueWithoutUserInput | AiFeedbackUpdateWithWhereUniqueWithoutUserInput[] + updateMany?: AiFeedbackUpdateManyWithWhereWithoutUserInput | AiFeedbackUpdateManyWithWhereWithoutUserInput[] + deleteMany?: AiFeedbackScalarWhereInput | AiFeedbackScalarWhereInput[] } export type LabelUncheckedUpdateManyWithoutUserNestedInput = { @@ -18163,32 +18149,32 @@ export namespace Prisma { deleteMany?: LabelScalarWhereInput | LabelScalarWhereInput[] } - export type NotebookUncheckedUpdateManyWithoutUserNestedInput = { - create?: XOR | NotebookCreateWithoutUserInput[] | NotebookUncheckedCreateWithoutUserInput[] - connectOrCreate?: NotebookCreateOrConnectWithoutUserInput | NotebookCreateOrConnectWithoutUserInput[] - upsert?: NotebookUpsertWithWhereUniqueWithoutUserInput | NotebookUpsertWithWhereUniqueWithoutUserInput[] - createMany?: NotebookCreateManyUserInputEnvelope - set?: NotebookWhereUniqueInput | NotebookWhereUniqueInput[] - disconnect?: NotebookWhereUniqueInput | NotebookWhereUniqueInput[] - delete?: NotebookWhereUniqueInput | NotebookWhereUniqueInput[] - connect?: NotebookWhereUniqueInput | NotebookWhereUniqueInput[] - update?: NotebookUpdateWithWhereUniqueWithoutUserInput | NotebookUpdateWithWhereUniqueWithoutUserInput[] - updateMany?: NotebookUpdateManyWithWhereWithoutUserInput | NotebookUpdateManyWithWhereWithoutUserInput[] - deleteMany?: NotebookScalarWhereInput | NotebookScalarWhereInput[] + export type MemoryEchoInsightUncheckedUpdateManyWithoutUserNestedInput = { + create?: XOR | MemoryEchoInsightCreateWithoutUserInput[] | MemoryEchoInsightUncheckedCreateWithoutUserInput[] + connectOrCreate?: MemoryEchoInsightCreateOrConnectWithoutUserInput | MemoryEchoInsightCreateOrConnectWithoutUserInput[] + upsert?: MemoryEchoInsightUpsertWithWhereUniqueWithoutUserInput | MemoryEchoInsightUpsertWithWhereUniqueWithoutUserInput[] + createMany?: MemoryEchoInsightCreateManyUserInputEnvelope + set?: MemoryEchoInsightWhereUniqueInput | MemoryEchoInsightWhereUniqueInput[] + disconnect?: MemoryEchoInsightWhereUniqueInput | MemoryEchoInsightWhereUniqueInput[] + delete?: MemoryEchoInsightWhereUniqueInput | MemoryEchoInsightWhereUniqueInput[] + connect?: MemoryEchoInsightWhereUniqueInput | MemoryEchoInsightWhereUniqueInput[] + update?: MemoryEchoInsightUpdateWithWhereUniqueWithoutUserInput | MemoryEchoInsightUpdateWithWhereUniqueWithoutUserInput[] + updateMany?: MemoryEchoInsightUpdateManyWithWhereWithoutUserInput | MemoryEchoInsightUpdateManyWithWhereWithoutUserInput[] + deleteMany?: MemoryEchoInsightScalarWhereInput | MemoryEchoInsightScalarWhereInput[] } - export type NoteShareUncheckedUpdateManyWithoutUserNestedInput = { - create?: XOR | NoteShareCreateWithoutUserInput[] | NoteShareUncheckedCreateWithoutUserInput[] - connectOrCreate?: NoteShareCreateOrConnectWithoutUserInput | NoteShareCreateOrConnectWithoutUserInput[] - upsert?: NoteShareUpsertWithWhereUniqueWithoutUserInput | NoteShareUpsertWithWhereUniqueWithoutUserInput[] - createMany?: NoteShareCreateManyUserInputEnvelope - set?: NoteShareWhereUniqueInput | NoteShareWhereUniqueInput[] - disconnect?: NoteShareWhereUniqueInput | NoteShareWhereUniqueInput[] - delete?: NoteShareWhereUniqueInput | NoteShareWhereUniqueInput[] - connect?: NoteShareWhereUniqueInput | NoteShareWhereUniqueInput[] - update?: NoteShareUpdateWithWhereUniqueWithoutUserInput | NoteShareUpdateWithWhereUniqueWithoutUserInput[] - updateMany?: NoteShareUpdateManyWithWhereWithoutUserInput | NoteShareUpdateManyWithWhereWithoutUserInput[] - deleteMany?: NoteShareScalarWhereInput | NoteShareScalarWhereInput[] + export type NoteUncheckedUpdateManyWithoutUserNestedInput = { + create?: XOR | NoteCreateWithoutUserInput[] | NoteUncheckedCreateWithoutUserInput[] + connectOrCreate?: NoteCreateOrConnectWithoutUserInput | NoteCreateOrConnectWithoutUserInput[] + upsert?: NoteUpsertWithWhereUniqueWithoutUserInput | NoteUpsertWithWhereUniqueWithoutUserInput[] + createMany?: NoteCreateManyUserInputEnvelope + set?: NoteWhereUniqueInput | NoteWhereUniqueInput[] + disconnect?: NoteWhereUniqueInput | NoteWhereUniqueInput[] + delete?: NoteWhereUniqueInput | NoteWhereUniqueInput[] + connect?: NoteWhereUniqueInput | NoteWhereUniqueInput[] + update?: NoteUpdateWithWhereUniqueWithoutUserInput | NoteUpdateWithWhereUniqueWithoutUserInput[] + updateMany?: NoteUpdateManyWithWhereWithoutUserInput | NoteUpdateManyWithWhereWithoutUserInput[] + deleteMany?: NoteScalarWhereInput | NoteScalarWhereInput[] } export type NoteShareUncheckedUpdateManyWithoutSharerNestedInput = { @@ -18205,18 +18191,46 @@ export namespace Prisma { deleteMany?: NoteShareScalarWhereInput | NoteShareScalarWhereInput[] } - export type AiFeedbackUncheckedUpdateManyWithoutUserNestedInput = { - create?: XOR | AiFeedbackCreateWithoutUserInput[] | AiFeedbackUncheckedCreateWithoutUserInput[] - connectOrCreate?: AiFeedbackCreateOrConnectWithoutUserInput | AiFeedbackCreateOrConnectWithoutUserInput[] - upsert?: AiFeedbackUpsertWithWhereUniqueWithoutUserInput | AiFeedbackUpsertWithWhereUniqueWithoutUserInput[] - createMany?: AiFeedbackCreateManyUserInputEnvelope - set?: AiFeedbackWhereUniqueInput | AiFeedbackWhereUniqueInput[] - disconnect?: AiFeedbackWhereUniqueInput | AiFeedbackWhereUniqueInput[] - delete?: AiFeedbackWhereUniqueInput | AiFeedbackWhereUniqueInput[] - connect?: AiFeedbackWhereUniqueInput | AiFeedbackWhereUniqueInput[] - update?: AiFeedbackUpdateWithWhereUniqueWithoutUserInput | AiFeedbackUpdateWithWhereUniqueWithoutUserInput[] - updateMany?: AiFeedbackUpdateManyWithWhereWithoutUserInput | AiFeedbackUpdateManyWithWhereWithoutUserInput[] - deleteMany?: AiFeedbackScalarWhereInput | AiFeedbackScalarWhereInput[] + export type NoteShareUncheckedUpdateManyWithoutUserNestedInput = { + create?: XOR | NoteShareCreateWithoutUserInput[] | NoteShareUncheckedCreateWithoutUserInput[] + connectOrCreate?: NoteShareCreateOrConnectWithoutUserInput | NoteShareCreateOrConnectWithoutUserInput[] + upsert?: NoteShareUpsertWithWhereUniqueWithoutUserInput | NoteShareUpsertWithWhereUniqueWithoutUserInput[] + createMany?: NoteShareCreateManyUserInputEnvelope + set?: NoteShareWhereUniqueInput | NoteShareWhereUniqueInput[] + disconnect?: NoteShareWhereUniqueInput | NoteShareWhereUniqueInput[] + delete?: NoteShareWhereUniqueInput | NoteShareWhereUniqueInput[] + connect?: NoteShareWhereUniqueInput | NoteShareWhereUniqueInput[] + update?: NoteShareUpdateWithWhereUniqueWithoutUserInput | NoteShareUpdateWithWhereUniqueWithoutUserInput[] + updateMany?: NoteShareUpdateManyWithWhereWithoutUserInput | NoteShareUpdateManyWithWhereWithoutUserInput[] + deleteMany?: NoteShareScalarWhereInput | NoteShareScalarWhereInput[] + } + + export type NotebookUncheckedUpdateManyWithoutUserNestedInput = { + create?: XOR | NotebookCreateWithoutUserInput[] | NotebookUncheckedCreateWithoutUserInput[] + connectOrCreate?: NotebookCreateOrConnectWithoutUserInput | NotebookCreateOrConnectWithoutUserInput[] + upsert?: NotebookUpsertWithWhereUniqueWithoutUserInput | NotebookUpsertWithWhereUniqueWithoutUserInput[] + createMany?: NotebookCreateManyUserInputEnvelope + set?: NotebookWhereUniqueInput | NotebookWhereUniqueInput[] + disconnect?: NotebookWhereUniqueInput | NotebookWhereUniqueInput[] + delete?: NotebookWhereUniqueInput | NotebookWhereUniqueInput[] + connect?: NotebookWhereUniqueInput | NotebookWhereUniqueInput[] + update?: NotebookUpdateWithWhereUniqueWithoutUserInput | NotebookUpdateWithWhereUniqueWithoutUserInput[] + updateMany?: NotebookUpdateManyWithWhereWithoutUserInput | NotebookUpdateManyWithWhereWithoutUserInput[] + deleteMany?: NotebookScalarWhereInput | NotebookScalarWhereInput[] + } + + export type SessionUncheckedUpdateManyWithoutUserNestedInput = { + create?: XOR | SessionCreateWithoutUserInput[] | SessionUncheckedCreateWithoutUserInput[] + connectOrCreate?: SessionCreateOrConnectWithoutUserInput | SessionCreateOrConnectWithoutUserInput[] + upsert?: SessionUpsertWithWhereUniqueWithoutUserInput | SessionUpsertWithWhereUniqueWithoutUserInput[] + createMany?: SessionCreateManyUserInputEnvelope + set?: SessionWhereUniqueInput | SessionWhereUniqueInput[] + disconnect?: SessionWhereUniqueInput | SessionWhereUniqueInput[] + delete?: SessionWhereUniqueInput | SessionWhereUniqueInput[] + connect?: SessionWhereUniqueInput | SessionWhereUniqueInput[] + update?: SessionUpdateWithWhereUniqueWithoutUserInput | SessionUpdateWithWhereUniqueWithoutUserInput[] + updateMany?: SessionUpdateManyWithWhereWithoutUserInput | SessionUpdateManyWithWhereWithoutUserInput[] + deleteMany?: SessionScalarWhereInput | SessionScalarWhereInput[] } export type UserAISettingsUncheckedUpdateOneWithoutUserNestedInput = { @@ -18229,20 +18243,6 @@ export namespace Prisma { update?: XOR, UserAISettingsUncheckedUpdateWithoutUserInput> } - export type MemoryEchoInsightUncheckedUpdateManyWithoutUserNestedInput = { - create?: XOR | MemoryEchoInsightCreateWithoutUserInput[] | MemoryEchoInsightUncheckedCreateWithoutUserInput[] - connectOrCreate?: MemoryEchoInsightCreateOrConnectWithoutUserInput | MemoryEchoInsightCreateOrConnectWithoutUserInput[] - upsert?: MemoryEchoInsightUpsertWithWhereUniqueWithoutUserInput | MemoryEchoInsightUpsertWithWhereUniqueWithoutUserInput[] - createMany?: MemoryEchoInsightCreateManyUserInputEnvelope - set?: MemoryEchoInsightWhereUniqueInput | MemoryEchoInsightWhereUniqueInput[] - disconnect?: MemoryEchoInsightWhereUniqueInput | MemoryEchoInsightWhereUniqueInput[] - delete?: MemoryEchoInsightWhereUniqueInput | MemoryEchoInsightWhereUniqueInput[] - connect?: MemoryEchoInsightWhereUniqueInput | MemoryEchoInsightWhereUniqueInput[] - update?: MemoryEchoInsightUpdateWithWhereUniqueWithoutUserInput | MemoryEchoInsightUpdateWithWhereUniqueWithoutUserInput[] - updateMany?: MemoryEchoInsightUpdateManyWithWhereWithoutUserInput | MemoryEchoInsightUpdateManyWithWhereWithoutUserInput[] - deleteMany?: MemoryEchoInsightScalarWhereInput | MemoryEchoInsightScalarWhereInput[] - } - export type UserCreateNestedOneWithoutAccountsInput = { create?: XOR connectOrCreate?: UserCreateOrConnectWithoutAccountsInput @@ -18279,10 +18279,11 @@ export namespace Prisma { update?: XOR, UserUncheckedUpdateWithoutSessionsInput> } - export type UserCreateNestedOneWithoutNotebooksInput = { - create?: XOR - connectOrCreate?: UserCreateOrConnectWithoutNotebooksInput - connect?: UserWhereUniqueInput + export type LabelCreateNestedManyWithoutNotebookInput = { + create?: XOR | LabelCreateWithoutNotebookInput[] | LabelUncheckedCreateWithoutNotebookInput[] + connectOrCreate?: LabelCreateOrConnectWithoutNotebookInput | LabelCreateOrConnectWithoutNotebookInput[] + createMany?: LabelCreateManyNotebookInputEnvelope + connect?: LabelWhereUniqueInput | LabelWhereUniqueInput[] } export type NoteCreateNestedManyWithoutNotebookInput = { @@ -18292,7 +18293,13 @@ export namespace Prisma { connect?: NoteWhereUniqueInput | NoteWhereUniqueInput[] } - export type LabelCreateNestedManyWithoutNotebookInput = { + export type UserCreateNestedOneWithoutNotebooksInput = { + create?: XOR + connectOrCreate?: UserCreateOrConnectWithoutNotebooksInput + connect?: UserWhereUniqueInput + } + + export type LabelUncheckedCreateNestedManyWithoutNotebookInput = { create?: XOR | LabelCreateWithoutNotebookInput[] | LabelUncheckedCreateWithoutNotebookInput[] connectOrCreate?: LabelCreateOrConnectWithoutNotebookInput | LabelCreateOrConnectWithoutNotebookInput[] createMany?: LabelCreateManyNotebookInputEnvelope @@ -18306,13 +18313,6 @@ export namespace Prisma { connect?: NoteWhereUniqueInput | NoteWhereUniqueInput[] } - export type LabelUncheckedCreateNestedManyWithoutNotebookInput = { - create?: XOR | LabelCreateWithoutNotebookInput[] | LabelUncheckedCreateWithoutNotebookInput[] - connectOrCreate?: LabelCreateOrConnectWithoutNotebookInput | LabelCreateOrConnectWithoutNotebookInput[] - createMany?: LabelCreateManyNotebookInputEnvelope - connect?: LabelWhereUniqueInput | LabelWhereUniqueInput[] - } - export type IntFieldUpdateOperationsInput = { set?: number increment?: number @@ -18321,12 +18321,18 @@ export namespace Prisma { divide?: number } - export type UserUpdateOneRequiredWithoutNotebooksNestedInput = { - create?: XOR - connectOrCreate?: UserCreateOrConnectWithoutNotebooksInput - upsert?: UserUpsertWithoutNotebooksInput - connect?: UserWhereUniqueInput - update?: XOR, UserUncheckedUpdateWithoutNotebooksInput> + export type LabelUpdateManyWithoutNotebookNestedInput = { + create?: XOR | LabelCreateWithoutNotebookInput[] | LabelUncheckedCreateWithoutNotebookInput[] + connectOrCreate?: LabelCreateOrConnectWithoutNotebookInput | LabelCreateOrConnectWithoutNotebookInput[] + upsert?: LabelUpsertWithWhereUniqueWithoutNotebookInput | LabelUpsertWithWhereUniqueWithoutNotebookInput[] + createMany?: LabelCreateManyNotebookInputEnvelope + set?: LabelWhereUniqueInput | LabelWhereUniqueInput[] + disconnect?: LabelWhereUniqueInput | LabelWhereUniqueInput[] + delete?: LabelWhereUniqueInput | LabelWhereUniqueInput[] + connect?: LabelWhereUniqueInput | LabelWhereUniqueInput[] + update?: LabelUpdateWithWhereUniqueWithoutNotebookInput | LabelUpdateWithWhereUniqueWithoutNotebookInput[] + updateMany?: LabelUpdateManyWithWhereWithoutNotebookInput | LabelUpdateManyWithWhereWithoutNotebookInput[] + deleteMany?: LabelScalarWhereInput | LabelScalarWhereInput[] } export type NoteUpdateManyWithoutNotebookNestedInput = { @@ -18343,7 +18349,15 @@ export namespace Prisma { deleteMany?: NoteScalarWhereInput | NoteScalarWhereInput[] } - export type LabelUpdateManyWithoutNotebookNestedInput = { + export type UserUpdateOneRequiredWithoutNotebooksNestedInput = { + create?: XOR + connectOrCreate?: UserCreateOrConnectWithoutNotebooksInput + upsert?: UserUpsertWithoutNotebooksInput + connect?: UserWhereUniqueInput + update?: XOR, UserUncheckedUpdateWithoutNotebooksInput> + } + + export type LabelUncheckedUpdateManyWithoutNotebookNestedInput = { create?: XOR | LabelCreateWithoutNotebookInput[] | LabelUncheckedCreateWithoutNotebookInput[] connectOrCreate?: LabelCreateOrConnectWithoutNotebookInput | LabelCreateOrConnectWithoutNotebookInput[] upsert?: LabelUpsertWithWhereUniqueWithoutNotebookInput | LabelUpsertWithWhereUniqueWithoutNotebookInput[] @@ -18371,18 +18385,10 @@ export namespace Prisma { deleteMany?: NoteScalarWhereInput | NoteScalarWhereInput[] } - export type LabelUncheckedUpdateManyWithoutNotebookNestedInput = { - create?: XOR | LabelCreateWithoutNotebookInput[] | LabelUncheckedCreateWithoutNotebookInput[] - connectOrCreate?: LabelCreateOrConnectWithoutNotebookInput | LabelCreateOrConnectWithoutNotebookInput[] - upsert?: LabelUpsertWithWhereUniqueWithoutNotebookInput | LabelUpsertWithWhereUniqueWithoutNotebookInput[] - createMany?: LabelCreateManyNotebookInputEnvelope - set?: LabelWhereUniqueInput | LabelWhereUniqueInput[] - disconnect?: LabelWhereUniqueInput | LabelWhereUniqueInput[] - delete?: LabelWhereUniqueInput | LabelWhereUniqueInput[] - connect?: LabelWhereUniqueInput | LabelWhereUniqueInput[] - update?: LabelUpdateWithWhereUniqueWithoutNotebookInput | LabelUpdateWithWhereUniqueWithoutNotebookInput[] - updateMany?: LabelUpdateManyWithWhereWithoutNotebookInput | LabelUpdateManyWithWhereWithoutNotebookInput[] - deleteMany?: LabelScalarWhereInput | LabelScalarWhereInput[] + export type UserCreateNestedOneWithoutLabelsInput = { + create?: XOR + connectOrCreate?: UserCreateOrConnectWithoutLabelsInput + connect?: UserWhereUniqueInput } export type NotebookCreateNestedOneWithoutLabelsInput = { @@ -18397,18 +18403,22 @@ export namespace Prisma { connect?: NoteWhereUniqueInput | NoteWhereUniqueInput[] } - export type UserCreateNestedOneWithoutLabelsInput = { - create?: XOR - connectOrCreate?: UserCreateOrConnectWithoutLabelsInput - connect?: UserWhereUniqueInput - } - export type NoteUncheckedCreateNestedManyWithoutLabelRelationsInput = { create?: XOR | NoteCreateWithoutLabelRelationsInput[] | NoteUncheckedCreateWithoutLabelRelationsInput[] connectOrCreate?: NoteCreateOrConnectWithoutLabelRelationsInput | NoteCreateOrConnectWithoutLabelRelationsInput[] connect?: NoteWhereUniqueInput | NoteWhereUniqueInput[] } + export type UserUpdateOneWithoutLabelsNestedInput = { + create?: XOR + connectOrCreate?: UserCreateOrConnectWithoutLabelsInput + upsert?: UserUpsertWithoutLabelsInput + disconnect?: UserWhereInput | boolean + delete?: UserWhereInput | boolean + connect?: UserWhereUniqueInput + update?: XOR, UserUncheckedUpdateWithoutLabelsInput> + } + export type NotebookUpdateOneWithoutLabelsNestedInput = { create?: XOR connectOrCreate?: NotebookCreateOrConnectWithoutLabelsInput @@ -18432,16 +18442,6 @@ export namespace Prisma { deleteMany?: NoteScalarWhereInput | NoteScalarWhereInput[] } - export type UserUpdateOneWithoutLabelsNestedInput = { - create?: XOR - connectOrCreate?: UserCreateOrConnectWithoutLabelsInput - upsert?: UserUpsertWithoutLabelsInput - disconnect?: UserWhereInput | boolean - delete?: UserWhereInput | boolean - connect?: UserWhereUniqueInput - update?: XOR, UserUncheckedUpdateWithoutLabelsInput> - } - export type NoteUncheckedUpdateManyWithoutLabelRelationsNestedInput = { create?: XOR | NoteCreateWithoutLabelRelationsInput[] | NoteUncheckedCreateWithoutLabelRelationsInput[] connectOrCreate?: NoteCreateOrConnectWithoutLabelRelationsInput | NoteCreateOrConnectWithoutLabelRelationsInput[] @@ -18455,6 +18455,33 @@ export namespace Prisma { deleteMany?: NoteScalarWhereInput | NoteScalarWhereInput[] } + export type AiFeedbackCreateNestedManyWithoutNoteInput = { + create?: XOR | AiFeedbackCreateWithoutNoteInput[] | AiFeedbackUncheckedCreateWithoutNoteInput[] + connectOrCreate?: AiFeedbackCreateOrConnectWithoutNoteInput | AiFeedbackCreateOrConnectWithoutNoteInput[] + createMany?: AiFeedbackCreateManyNoteInputEnvelope + connect?: AiFeedbackWhereUniqueInput | AiFeedbackWhereUniqueInput[] + } + + export type MemoryEchoInsightCreateNestedManyWithoutNote2Input = { + create?: XOR | MemoryEchoInsightCreateWithoutNote2Input[] | MemoryEchoInsightUncheckedCreateWithoutNote2Input[] + connectOrCreate?: MemoryEchoInsightCreateOrConnectWithoutNote2Input | MemoryEchoInsightCreateOrConnectWithoutNote2Input[] + createMany?: MemoryEchoInsightCreateManyNote2InputEnvelope + connect?: MemoryEchoInsightWhereUniqueInput | MemoryEchoInsightWhereUniqueInput[] + } + + export type MemoryEchoInsightCreateNestedManyWithoutNote1Input = { + create?: XOR | MemoryEchoInsightCreateWithoutNote1Input[] | MemoryEchoInsightUncheckedCreateWithoutNote1Input[] + connectOrCreate?: MemoryEchoInsightCreateOrConnectWithoutNote1Input | MemoryEchoInsightCreateOrConnectWithoutNote1Input[] + createMany?: MemoryEchoInsightCreateManyNote1InputEnvelope + connect?: MemoryEchoInsightWhereUniqueInput | MemoryEchoInsightWhereUniqueInput[] + } + + export type NotebookCreateNestedOneWithoutNotesInput = { + create?: XOR + connectOrCreate?: NotebookCreateOrConnectWithoutNotesInput + connect?: NotebookWhereUniqueInput + } + export type UserCreateNestedOneWithoutNotesInput = { create?: XOR connectOrCreate?: UserCreateOrConnectWithoutNotesInput @@ -18468,39 +18495,33 @@ export namespace Prisma { connect?: NoteShareWhereUniqueInput | NoteShareWhereUniqueInput[] } - export type NotebookCreateNestedOneWithoutNotesInput = { - create?: XOR - connectOrCreate?: NotebookCreateOrConnectWithoutNotesInput - connect?: NotebookWhereUniqueInput - } - export type LabelCreateNestedManyWithoutNotesInput = { create?: XOR | LabelCreateWithoutNotesInput[] | LabelUncheckedCreateWithoutNotesInput[] connectOrCreate?: LabelCreateOrConnectWithoutNotesInput | LabelCreateOrConnectWithoutNotesInput[] connect?: LabelWhereUniqueInput | LabelWhereUniqueInput[] } - export type AiFeedbackCreateNestedManyWithoutNoteInput = { + export type AiFeedbackUncheckedCreateNestedManyWithoutNoteInput = { create?: XOR | AiFeedbackCreateWithoutNoteInput[] | AiFeedbackUncheckedCreateWithoutNoteInput[] connectOrCreate?: AiFeedbackCreateOrConnectWithoutNoteInput | AiFeedbackCreateOrConnectWithoutNoteInput[] createMany?: AiFeedbackCreateManyNoteInputEnvelope connect?: AiFeedbackWhereUniqueInput | AiFeedbackWhereUniqueInput[] } - export type MemoryEchoInsightCreateNestedManyWithoutNote1Input = { - create?: XOR | MemoryEchoInsightCreateWithoutNote1Input[] | MemoryEchoInsightUncheckedCreateWithoutNote1Input[] - connectOrCreate?: MemoryEchoInsightCreateOrConnectWithoutNote1Input | MemoryEchoInsightCreateOrConnectWithoutNote1Input[] - createMany?: MemoryEchoInsightCreateManyNote1InputEnvelope - connect?: MemoryEchoInsightWhereUniqueInput | MemoryEchoInsightWhereUniqueInput[] - } - - export type MemoryEchoInsightCreateNestedManyWithoutNote2Input = { + export type MemoryEchoInsightUncheckedCreateNestedManyWithoutNote2Input = { create?: XOR | MemoryEchoInsightCreateWithoutNote2Input[] | MemoryEchoInsightUncheckedCreateWithoutNote2Input[] connectOrCreate?: MemoryEchoInsightCreateOrConnectWithoutNote2Input | MemoryEchoInsightCreateOrConnectWithoutNote2Input[] createMany?: MemoryEchoInsightCreateManyNote2InputEnvelope connect?: MemoryEchoInsightWhereUniqueInput | MemoryEchoInsightWhereUniqueInput[] } + export type MemoryEchoInsightUncheckedCreateNestedManyWithoutNote1Input = { + create?: XOR | MemoryEchoInsightCreateWithoutNote1Input[] | MemoryEchoInsightUncheckedCreateWithoutNote1Input[] + connectOrCreate?: MemoryEchoInsightCreateOrConnectWithoutNote1Input | MemoryEchoInsightCreateOrConnectWithoutNote1Input[] + createMany?: MemoryEchoInsightCreateManyNote1InputEnvelope + connect?: MemoryEchoInsightWhereUniqueInput | MemoryEchoInsightWhereUniqueInput[] + } + export type NoteShareUncheckedCreateNestedManyWithoutNoteInput = { create?: XOR | NoteShareCreateWithoutNoteInput[] | NoteShareUncheckedCreateWithoutNoteInput[] connectOrCreate?: NoteShareCreateOrConnectWithoutNoteInput | NoteShareCreateOrConnectWithoutNoteInput[] @@ -18514,27 +18535,6 @@ export namespace Prisma { connect?: LabelWhereUniqueInput | LabelWhereUniqueInput[] } - export type AiFeedbackUncheckedCreateNestedManyWithoutNoteInput = { - create?: XOR | AiFeedbackCreateWithoutNoteInput[] | AiFeedbackUncheckedCreateWithoutNoteInput[] - connectOrCreate?: AiFeedbackCreateOrConnectWithoutNoteInput | AiFeedbackCreateOrConnectWithoutNoteInput[] - createMany?: AiFeedbackCreateManyNoteInputEnvelope - connect?: AiFeedbackWhereUniqueInput | AiFeedbackWhereUniqueInput[] - } - - export type MemoryEchoInsightUncheckedCreateNestedManyWithoutNote1Input = { - create?: XOR | MemoryEchoInsightCreateWithoutNote1Input[] | MemoryEchoInsightUncheckedCreateWithoutNote1Input[] - connectOrCreate?: MemoryEchoInsightCreateOrConnectWithoutNote1Input | MemoryEchoInsightCreateOrConnectWithoutNote1Input[] - createMany?: MemoryEchoInsightCreateManyNote1InputEnvelope - connect?: MemoryEchoInsightWhereUniqueInput | MemoryEchoInsightWhereUniqueInput[] - } - - export type MemoryEchoInsightUncheckedCreateNestedManyWithoutNote2Input = { - create?: XOR | MemoryEchoInsightCreateWithoutNote2Input[] | MemoryEchoInsightUncheckedCreateWithoutNote2Input[] - connectOrCreate?: MemoryEchoInsightCreateOrConnectWithoutNote2Input | MemoryEchoInsightCreateOrConnectWithoutNote2Input[] - createMany?: MemoryEchoInsightCreateManyNote2InputEnvelope - connect?: MemoryEchoInsightWhereUniqueInput | MemoryEchoInsightWhereUniqueInput[] - } - export type BoolFieldUpdateOperationsInput = { set?: boolean } @@ -18551,6 +18551,58 @@ export namespace Prisma { divide?: number } + export type AiFeedbackUpdateManyWithoutNoteNestedInput = { + create?: XOR | AiFeedbackCreateWithoutNoteInput[] | AiFeedbackUncheckedCreateWithoutNoteInput[] + connectOrCreate?: AiFeedbackCreateOrConnectWithoutNoteInput | AiFeedbackCreateOrConnectWithoutNoteInput[] + upsert?: AiFeedbackUpsertWithWhereUniqueWithoutNoteInput | AiFeedbackUpsertWithWhereUniqueWithoutNoteInput[] + createMany?: AiFeedbackCreateManyNoteInputEnvelope + set?: AiFeedbackWhereUniqueInput | AiFeedbackWhereUniqueInput[] + disconnect?: AiFeedbackWhereUniqueInput | AiFeedbackWhereUniqueInput[] + delete?: AiFeedbackWhereUniqueInput | AiFeedbackWhereUniqueInput[] + connect?: AiFeedbackWhereUniqueInput | AiFeedbackWhereUniqueInput[] + update?: AiFeedbackUpdateWithWhereUniqueWithoutNoteInput | AiFeedbackUpdateWithWhereUniqueWithoutNoteInput[] + updateMany?: AiFeedbackUpdateManyWithWhereWithoutNoteInput | AiFeedbackUpdateManyWithWhereWithoutNoteInput[] + deleteMany?: AiFeedbackScalarWhereInput | AiFeedbackScalarWhereInput[] + } + + export type MemoryEchoInsightUpdateManyWithoutNote2NestedInput = { + create?: XOR | MemoryEchoInsightCreateWithoutNote2Input[] | MemoryEchoInsightUncheckedCreateWithoutNote2Input[] + connectOrCreate?: MemoryEchoInsightCreateOrConnectWithoutNote2Input | MemoryEchoInsightCreateOrConnectWithoutNote2Input[] + upsert?: MemoryEchoInsightUpsertWithWhereUniqueWithoutNote2Input | MemoryEchoInsightUpsertWithWhereUniqueWithoutNote2Input[] + createMany?: MemoryEchoInsightCreateManyNote2InputEnvelope + set?: MemoryEchoInsightWhereUniqueInput | MemoryEchoInsightWhereUniqueInput[] + disconnect?: MemoryEchoInsightWhereUniqueInput | MemoryEchoInsightWhereUniqueInput[] + delete?: MemoryEchoInsightWhereUniqueInput | MemoryEchoInsightWhereUniqueInput[] + connect?: MemoryEchoInsightWhereUniqueInput | MemoryEchoInsightWhereUniqueInput[] + update?: MemoryEchoInsightUpdateWithWhereUniqueWithoutNote2Input | MemoryEchoInsightUpdateWithWhereUniqueWithoutNote2Input[] + updateMany?: MemoryEchoInsightUpdateManyWithWhereWithoutNote2Input | MemoryEchoInsightUpdateManyWithWhereWithoutNote2Input[] + deleteMany?: MemoryEchoInsightScalarWhereInput | MemoryEchoInsightScalarWhereInput[] + } + + export type MemoryEchoInsightUpdateManyWithoutNote1NestedInput = { + create?: XOR | MemoryEchoInsightCreateWithoutNote1Input[] | MemoryEchoInsightUncheckedCreateWithoutNote1Input[] + connectOrCreate?: MemoryEchoInsightCreateOrConnectWithoutNote1Input | MemoryEchoInsightCreateOrConnectWithoutNote1Input[] + upsert?: MemoryEchoInsightUpsertWithWhereUniqueWithoutNote1Input | MemoryEchoInsightUpsertWithWhereUniqueWithoutNote1Input[] + createMany?: MemoryEchoInsightCreateManyNote1InputEnvelope + set?: MemoryEchoInsightWhereUniqueInput | MemoryEchoInsightWhereUniqueInput[] + disconnect?: MemoryEchoInsightWhereUniqueInput | MemoryEchoInsightWhereUniqueInput[] + delete?: MemoryEchoInsightWhereUniqueInput | MemoryEchoInsightWhereUniqueInput[] + connect?: MemoryEchoInsightWhereUniqueInput | MemoryEchoInsightWhereUniqueInput[] + update?: MemoryEchoInsightUpdateWithWhereUniqueWithoutNote1Input | MemoryEchoInsightUpdateWithWhereUniqueWithoutNote1Input[] + updateMany?: MemoryEchoInsightUpdateManyWithWhereWithoutNote1Input | MemoryEchoInsightUpdateManyWithWhereWithoutNote1Input[] + deleteMany?: MemoryEchoInsightScalarWhereInput | MemoryEchoInsightScalarWhereInput[] + } + + export type NotebookUpdateOneWithoutNotesNestedInput = { + create?: XOR + connectOrCreate?: NotebookCreateOrConnectWithoutNotesInput + upsert?: NotebookUpsertWithoutNotesInput + disconnect?: NotebookWhereInput | boolean + delete?: NotebookWhereInput | boolean + connect?: NotebookWhereUniqueInput + update?: XOR, NotebookUncheckedUpdateWithoutNotesInput> + } + export type UserUpdateOneWithoutNotesNestedInput = { create?: XOR connectOrCreate?: UserCreateOrConnectWithoutNotesInput @@ -18575,16 +18627,6 @@ export namespace Prisma { deleteMany?: NoteShareScalarWhereInput | NoteShareScalarWhereInput[] } - export type NotebookUpdateOneWithoutNotesNestedInput = { - create?: XOR - connectOrCreate?: NotebookCreateOrConnectWithoutNotesInput - upsert?: NotebookUpsertWithoutNotesInput - disconnect?: NotebookWhereInput | boolean - delete?: NotebookWhereInput | boolean - connect?: NotebookWhereUniqueInput - update?: XOR, NotebookUncheckedUpdateWithoutNotesInput> - } - export type LabelUpdateManyWithoutNotesNestedInput = { create?: XOR | LabelCreateWithoutNotesInput[] | LabelUncheckedCreateWithoutNotesInput[] connectOrCreate?: LabelCreateOrConnectWithoutNotesInput | LabelCreateOrConnectWithoutNotesInput[] @@ -18598,7 +18640,7 @@ export namespace Prisma { deleteMany?: LabelScalarWhereInput | LabelScalarWhereInput[] } - export type AiFeedbackUpdateManyWithoutNoteNestedInput = { + export type AiFeedbackUncheckedUpdateManyWithoutNoteNestedInput = { create?: XOR | AiFeedbackCreateWithoutNoteInput[] | AiFeedbackUncheckedCreateWithoutNoteInput[] connectOrCreate?: AiFeedbackCreateOrConnectWithoutNoteInput | AiFeedbackCreateOrConnectWithoutNoteInput[] upsert?: AiFeedbackUpsertWithWhereUniqueWithoutNoteInput | AiFeedbackUpsertWithWhereUniqueWithoutNoteInput[] @@ -18612,21 +18654,7 @@ export namespace Prisma { deleteMany?: AiFeedbackScalarWhereInput | AiFeedbackScalarWhereInput[] } - export type MemoryEchoInsightUpdateManyWithoutNote1NestedInput = { - create?: XOR | MemoryEchoInsightCreateWithoutNote1Input[] | MemoryEchoInsightUncheckedCreateWithoutNote1Input[] - connectOrCreate?: MemoryEchoInsightCreateOrConnectWithoutNote1Input | MemoryEchoInsightCreateOrConnectWithoutNote1Input[] - upsert?: MemoryEchoInsightUpsertWithWhereUniqueWithoutNote1Input | MemoryEchoInsightUpsertWithWhereUniqueWithoutNote1Input[] - createMany?: MemoryEchoInsightCreateManyNote1InputEnvelope - set?: MemoryEchoInsightWhereUniqueInput | MemoryEchoInsightWhereUniqueInput[] - disconnect?: MemoryEchoInsightWhereUniqueInput | MemoryEchoInsightWhereUniqueInput[] - delete?: MemoryEchoInsightWhereUniqueInput | MemoryEchoInsightWhereUniqueInput[] - connect?: MemoryEchoInsightWhereUniqueInput | MemoryEchoInsightWhereUniqueInput[] - update?: MemoryEchoInsightUpdateWithWhereUniqueWithoutNote1Input | MemoryEchoInsightUpdateWithWhereUniqueWithoutNote1Input[] - updateMany?: MemoryEchoInsightUpdateManyWithWhereWithoutNote1Input | MemoryEchoInsightUpdateManyWithWhereWithoutNote1Input[] - deleteMany?: MemoryEchoInsightScalarWhereInput | MemoryEchoInsightScalarWhereInput[] - } - - export type MemoryEchoInsightUpdateManyWithoutNote2NestedInput = { + export type MemoryEchoInsightUncheckedUpdateManyWithoutNote2NestedInput = { create?: XOR | MemoryEchoInsightCreateWithoutNote2Input[] | MemoryEchoInsightUncheckedCreateWithoutNote2Input[] connectOrCreate?: MemoryEchoInsightCreateOrConnectWithoutNote2Input | MemoryEchoInsightCreateOrConnectWithoutNote2Input[] upsert?: MemoryEchoInsightUpsertWithWhereUniqueWithoutNote2Input | MemoryEchoInsightUpsertWithWhereUniqueWithoutNote2Input[] @@ -18640,6 +18668,20 @@ export namespace Prisma { deleteMany?: MemoryEchoInsightScalarWhereInput | MemoryEchoInsightScalarWhereInput[] } + export type MemoryEchoInsightUncheckedUpdateManyWithoutNote1NestedInput = { + create?: XOR | MemoryEchoInsightCreateWithoutNote1Input[] | MemoryEchoInsightUncheckedCreateWithoutNote1Input[] + connectOrCreate?: MemoryEchoInsightCreateOrConnectWithoutNote1Input | MemoryEchoInsightCreateOrConnectWithoutNote1Input[] + upsert?: MemoryEchoInsightUpsertWithWhereUniqueWithoutNote1Input | MemoryEchoInsightUpsertWithWhereUniqueWithoutNote1Input[] + createMany?: MemoryEchoInsightCreateManyNote1InputEnvelope + set?: MemoryEchoInsightWhereUniqueInput | MemoryEchoInsightWhereUniqueInput[] + disconnect?: MemoryEchoInsightWhereUniqueInput | MemoryEchoInsightWhereUniqueInput[] + delete?: MemoryEchoInsightWhereUniqueInput | MemoryEchoInsightWhereUniqueInput[] + connect?: MemoryEchoInsightWhereUniqueInput | MemoryEchoInsightWhereUniqueInput[] + update?: MemoryEchoInsightUpdateWithWhereUniqueWithoutNote1Input | MemoryEchoInsightUpdateWithWhereUniqueWithoutNote1Input[] + updateMany?: MemoryEchoInsightUpdateManyWithWhereWithoutNote1Input | MemoryEchoInsightUpdateManyWithWhereWithoutNote1Input[] + deleteMany?: MemoryEchoInsightScalarWhereInput | MemoryEchoInsightScalarWhereInput[] + } + export type NoteShareUncheckedUpdateManyWithoutNoteNestedInput = { create?: XOR | NoteShareCreateWithoutNoteInput[] | NoteShareUncheckedCreateWithoutNoteInput[] connectOrCreate?: NoteShareCreateOrConnectWithoutNoteInput | NoteShareCreateOrConnectWithoutNoteInput[] @@ -18667,52 +18709,10 @@ export namespace Prisma { deleteMany?: LabelScalarWhereInput | LabelScalarWhereInput[] } - export type AiFeedbackUncheckedUpdateManyWithoutNoteNestedInput = { - create?: XOR | AiFeedbackCreateWithoutNoteInput[] | AiFeedbackUncheckedCreateWithoutNoteInput[] - connectOrCreate?: AiFeedbackCreateOrConnectWithoutNoteInput | AiFeedbackCreateOrConnectWithoutNoteInput[] - upsert?: AiFeedbackUpsertWithWhereUniqueWithoutNoteInput | AiFeedbackUpsertWithWhereUniqueWithoutNoteInput[] - createMany?: AiFeedbackCreateManyNoteInputEnvelope - set?: AiFeedbackWhereUniqueInput | AiFeedbackWhereUniqueInput[] - disconnect?: AiFeedbackWhereUniqueInput | AiFeedbackWhereUniqueInput[] - delete?: AiFeedbackWhereUniqueInput | AiFeedbackWhereUniqueInput[] - connect?: AiFeedbackWhereUniqueInput | AiFeedbackWhereUniqueInput[] - update?: AiFeedbackUpdateWithWhereUniqueWithoutNoteInput | AiFeedbackUpdateWithWhereUniqueWithoutNoteInput[] - updateMany?: AiFeedbackUpdateManyWithWhereWithoutNoteInput | AiFeedbackUpdateManyWithWhereWithoutNoteInput[] - deleteMany?: AiFeedbackScalarWhereInput | AiFeedbackScalarWhereInput[] - } - - export type MemoryEchoInsightUncheckedUpdateManyWithoutNote1NestedInput = { - create?: XOR | MemoryEchoInsightCreateWithoutNote1Input[] | MemoryEchoInsightUncheckedCreateWithoutNote1Input[] - connectOrCreate?: MemoryEchoInsightCreateOrConnectWithoutNote1Input | MemoryEchoInsightCreateOrConnectWithoutNote1Input[] - upsert?: MemoryEchoInsightUpsertWithWhereUniqueWithoutNote1Input | MemoryEchoInsightUpsertWithWhereUniqueWithoutNote1Input[] - createMany?: MemoryEchoInsightCreateManyNote1InputEnvelope - set?: MemoryEchoInsightWhereUniqueInput | MemoryEchoInsightWhereUniqueInput[] - disconnect?: MemoryEchoInsightWhereUniqueInput | MemoryEchoInsightWhereUniqueInput[] - delete?: MemoryEchoInsightWhereUniqueInput | MemoryEchoInsightWhereUniqueInput[] - connect?: MemoryEchoInsightWhereUniqueInput | MemoryEchoInsightWhereUniqueInput[] - update?: MemoryEchoInsightUpdateWithWhereUniqueWithoutNote1Input | MemoryEchoInsightUpdateWithWhereUniqueWithoutNote1Input[] - updateMany?: MemoryEchoInsightUpdateManyWithWhereWithoutNote1Input | MemoryEchoInsightUpdateManyWithWhereWithoutNote1Input[] - deleteMany?: MemoryEchoInsightScalarWhereInput | MemoryEchoInsightScalarWhereInput[] - } - - export type MemoryEchoInsightUncheckedUpdateManyWithoutNote2NestedInput = { - create?: XOR | MemoryEchoInsightCreateWithoutNote2Input[] | MemoryEchoInsightUncheckedCreateWithoutNote2Input[] - connectOrCreate?: MemoryEchoInsightCreateOrConnectWithoutNote2Input | MemoryEchoInsightCreateOrConnectWithoutNote2Input[] - upsert?: MemoryEchoInsightUpsertWithWhereUniqueWithoutNote2Input | MemoryEchoInsightUpsertWithWhereUniqueWithoutNote2Input[] - createMany?: MemoryEchoInsightCreateManyNote2InputEnvelope - set?: MemoryEchoInsightWhereUniqueInput | MemoryEchoInsightWhereUniqueInput[] - disconnect?: MemoryEchoInsightWhereUniqueInput | MemoryEchoInsightWhereUniqueInput[] - delete?: MemoryEchoInsightWhereUniqueInput | MemoryEchoInsightWhereUniqueInput[] - connect?: MemoryEchoInsightWhereUniqueInput | MemoryEchoInsightWhereUniqueInput[] - update?: MemoryEchoInsightUpdateWithWhereUniqueWithoutNote2Input | MemoryEchoInsightUpdateWithWhereUniqueWithoutNote2Input[] - updateMany?: MemoryEchoInsightUpdateManyWithWhereWithoutNote2Input | MemoryEchoInsightUpdateManyWithWhereWithoutNote2Input[] - deleteMany?: MemoryEchoInsightScalarWhereInput | MemoryEchoInsightScalarWhereInput[] - } - - export type NoteCreateNestedOneWithoutSharesInput = { - create?: XOR - connectOrCreate?: NoteCreateOrConnectWithoutSharesInput - connect?: NoteWhereUniqueInput + export type UserCreateNestedOneWithoutSentSharesInput = { + create?: XOR + connectOrCreate?: UserCreateOrConnectWithoutSentSharesInput + connect?: UserWhereUniqueInput } export type UserCreateNestedOneWithoutReceivedSharesInput = { @@ -18721,26 +18721,10 @@ export namespace Prisma { connect?: UserWhereUniqueInput } - export type UserCreateNestedOneWithoutSentSharesInput = { - create?: XOR - connectOrCreate?: UserCreateOrConnectWithoutSentSharesInput - connect?: UserWhereUniqueInput - } - - export type NoteUpdateOneRequiredWithoutSharesNestedInput = { + export type NoteCreateNestedOneWithoutSharesInput = { create?: XOR connectOrCreate?: NoteCreateOrConnectWithoutSharesInput - upsert?: NoteUpsertWithoutSharesInput connect?: NoteWhereUniqueInput - update?: XOR, NoteUncheckedUpdateWithoutSharesInput> - } - - export type UserUpdateOneRequiredWithoutReceivedSharesNestedInput = { - create?: XOR - connectOrCreate?: UserCreateOrConnectWithoutReceivedSharesInput - upsert?: UserUpsertWithoutReceivedSharesInput - connect?: UserWhereUniqueInput - update?: XOR, UserUncheckedUpdateWithoutReceivedSharesInput> } export type UserUpdateOneRequiredWithoutSentSharesNestedInput = { @@ -18751,10 +18735,20 @@ export namespace Prisma { update?: XOR, UserUncheckedUpdateWithoutSentSharesInput> } - export type NoteCreateNestedOneWithoutAiFeedbackInput = { - create?: XOR - connectOrCreate?: NoteCreateOrConnectWithoutAiFeedbackInput + export type UserUpdateOneRequiredWithoutReceivedSharesNestedInput = { + create?: XOR + connectOrCreate?: UserCreateOrConnectWithoutReceivedSharesInput + upsert?: UserUpsertWithoutReceivedSharesInput + connect?: UserWhereUniqueInput + update?: XOR, UserUncheckedUpdateWithoutReceivedSharesInput> + } + + export type NoteUpdateOneRequiredWithoutSharesNestedInput = { + create?: XOR + connectOrCreate?: NoteCreateOrConnectWithoutSharesInput + upsert?: NoteUpsertWithoutSharesInput connect?: NoteWhereUniqueInput + update?: XOR, NoteUncheckedUpdateWithoutSharesInput> } export type UserCreateNestedOneWithoutAiFeedbackInput = { @@ -18763,12 +18757,10 @@ export namespace Prisma { connect?: UserWhereUniqueInput } - export type NoteUpdateOneRequiredWithoutAiFeedbackNestedInput = { + export type NoteCreateNestedOneWithoutAiFeedbackInput = { create?: XOR connectOrCreate?: NoteCreateOrConnectWithoutAiFeedbackInput - upsert?: NoteUpsertWithoutAiFeedbackInput connect?: NoteWhereUniqueInput - update?: XOR, NoteUncheckedUpdateWithoutAiFeedbackInput> } export type UserUpdateOneWithoutAiFeedbackNestedInput = { @@ -18781,10 +18773,18 @@ export namespace Prisma { update?: XOR, UserUncheckedUpdateWithoutAiFeedbackInput> } - export type NoteCreateNestedOneWithoutMemoryEchoAsNote1Input = { - create?: XOR - connectOrCreate?: NoteCreateOrConnectWithoutMemoryEchoAsNote1Input + export type NoteUpdateOneRequiredWithoutAiFeedbackNestedInput = { + create?: XOR + connectOrCreate?: NoteCreateOrConnectWithoutAiFeedbackInput + upsert?: NoteUpsertWithoutAiFeedbackInput connect?: NoteWhereUniqueInput + update?: XOR, NoteUncheckedUpdateWithoutAiFeedbackInput> + } + + export type UserCreateNestedOneWithoutMemoryEchoInsightsInput = { + create?: XOR + connectOrCreate?: UserCreateOrConnectWithoutMemoryEchoInsightsInput + connect?: UserWhereUniqueInput } export type NoteCreateNestedOneWithoutMemoryEchoAsNote2Input = { @@ -18793,10 +18793,10 @@ export namespace Prisma { connect?: NoteWhereUniqueInput } - export type UserCreateNestedOneWithoutMemoryEchoInsightsInput = { - create?: XOR - connectOrCreate?: UserCreateOrConnectWithoutMemoryEchoInsightsInput - connect?: UserWhereUniqueInput + export type NoteCreateNestedOneWithoutMemoryEchoAsNote1Input = { + create?: XOR + connectOrCreate?: NoteCreateOrConnectWithoutMemoryEchoAsNote1Input + connect?: NoteWhereUniqueInput } export type FloatFieldUpdateOperationsInput = { @@ -18807,12 +18807,14 @@ export namespace Prisma { divide?: number } - export type NoteUpdateOneRequiredWithoutMemoryEchoAsNote1NestedInput = { - create?: XOR - connectOrCreate?: NoteCreateOrConnectWithoutMemoryEchoAsNote1Input - upsert?: NoteUpsertWithoutMemoryEchoAsNote1Input - connect?: NoteWhereUniqueInput - update?: XOR, NoteUncheckedUpdateWithoutMemoryEchoAsNote1Input> + export type UserUpdateOneWithoutMemoryEchoInsightsNestedInput = { + create?: XOR + connectOrCreate?: UserCreateOrConnectWithoutMemoryEchoInsightsInput + upsert?: UserUpsertWithoutMemoryEchoInsightsInput + disconnect?: UserWhereInput | boolean + delete?: UserWhereInput | boolean + connect?: UserWhereUniqueInput + update?: XOR, UserUncheckedUpdateWithoutMemoryEchoInsightsInput> } export type NoteUpdateOneRequiredWithoutMemoryEchoAsNote2NestedInput = { @@ -18823,14 +18825,12 @@ export namespace Prisma { update?: XOR, NoteUncheckedUpdateWithoutMemoryEchoAsNote2Input> } - export type UserUpdateOneWithoutMemoryEchoInsightsNestedInput = { - create?: XOR - connectOrCreate?: UserCreateOrConnectWithoutMemoryEchoInsightsInput - upsert?: UserUpsertWithoutMemoryEchoInsightsInput - disconnect?: UserWhereInput | boolean - delete?: UserWhereInput | boolean - connect?: UserWhereUniqueInput - update?: XOR, UserUncheckedUpdateWithoutMemoryEchoInsightsInput> + export type NoteUpdateOneRequiredWithoutMemoryEchoAsNote1NestedInput = { + create?: XOR + connectOrCreate?: NoteCreateOrConnectWithoutMemoryEchoAsNote1Input + upsert?: NoteUpsertWithoutMemoryEchoAsNote1Input + connect?: NoteWhereUniqueInput + update?: XOR, NoteUncheckedUpdateWithoutMemoryEchoAsNote1Input> } export type UserCreateNestedOneWithoutAiSettingsInput = { @@ -19132,27 +19132,97 @@ export namespace Prisma { data: AccountCreateManyUserInput | AccountCreateManyUserInput[] } - export type SessionCreateWithoutUserInput = { - sessionToken: string - expires: Date | string + export type AiFeedbackCreateWithoutUserInput = { + id?: string + feedbackType: string + feature: string + originalContent: string + correctedContent?: string | null + metadata?: string | null + createdAt?: Date | string + note: NoteCreateNestedOneWithoutAiFeedbackInput + } + + export type AiFeedbackUncheckedCreateWithoutUserInput = { + id?: string + noteId: string + feedbackType: string + feature: string + originalContent: string + correctedContent?: string | null + metadata?: string | null + createdAt?: Date | string + } + + export type AiFeedbackCreateOrConnectWithoutUserInput = { + where: AiFeedbackWhereUniqueInput + create: XOR + } + + export type AiFeedbackCreateManyUserInputEnvelope = { + data: AiFeedbackCreateManyUserInput | AiFeedbackCreateManyUserInput[] + } + + export type LabelCreateWithoutUserInput = { + id?: string + name: string + color?: string createdAt?: Date | string updatedAt?: Date | string + notebook?: NotebookCreateNestedOneWithoutLabelsInput + notes?: NoteCreateNestedManyWithoutLabelRelationsInput } - export type SessionUncheckedCreateWithoutUserInput = { - sessionToken: string - expires: Date | string + export type LabelUncheckedCreateWithoutUserInput = { + id?: string + name: string + color?: string + notebookId?: string | null createdAt?: Date | string updatedAt?: Date | string + notes?: NoteUncheckedCreateNestedManyWithoutLabelRelationsInput } - export type SessionCreateOrConnectWithoutUserInput = { - where: SessionWhereUniqueInput - create: XOR + export type LabelCreateOrConnectWithoutUserInput = { + where: LabelWhereUniqueInput + create: XOR } - export type SessionCreateManyUserInputEnvelope = { - data: SessionCreateManyUserInput | SessionCreateManyUserInput[] + export type LabelCreateManyUserInputEnvelope = { + data: LabelCreateManyUserInput | LabelCreateManyUserInput[] + } + + export type MemoryEchoInsightCreateWithoutUserInput = { + id?: string + similarityScore: number + insight: string + insightDate?: Date | string + viewed?: boolean + feedback?: string | null + dismissed?: boolean + note2: NoteCreateNestedOneWithoutMemoryEchoAsNote2Input + note1: NoteCreateNestedOneWithoutMemoryEchoAsNote1Input + } + + export type MemoryEchoInsightUncheckedCreateWithoutUserInput = { + id?: string + note1Id: string + note2Id: string + similarityScore: number + insight: string + insightDate?: Date | string + viewed?: boolean + feedback?: string | null + dismissed?: boolean + } + + export type MemoryEchoInsightCreateOrConnectWithoutUserInput = { + where: MemoryEchoInsightWhereUniqueInput + create: XOR + } + + export type MemoryEchoInsightCreateManyUserInputEnvelope = { + data: MemoryEchoInsightCreateManyUserInput | MemoryEchoInsightCreateManyUserInput[] } export type NoteCreateWithoutUserInput = { @@ -19184,12 +19254,12 @@ export namespace Prisma { language?: string | null languageConfidence?: number | null lastAiAnalysis?: Date | string | null - shares?: NoteShareCreateNestedManyWithoutNoteInput - notebook?: NotebookCreateNestedOneWithoutNotesInput - labelRelations?: LabelCreateNestedManyWithoutNotesInput aiFeedback?: AiFeedbackCreateNestedManyWithoutNoteInput - memoryEchoAsNote1?: MemoryEchoInsightCreateNestedManyWithoutNote1Input memoryEchoAsNote2?: MemoryEchoInsightCreateNestedManyWithoutNote2Input + memoryEchoAsNote1?: MemoryEchoInsightCreateNestedManyWithoutNote1Input + notebook?: NotebookCreateNestedOneWithoutNotesInput + shares?: NoteShareCreateNestedManyWithoutNoteInput + labelRelations?: LabelCreateNestedManyWithoutNotesInput } export type NoteUncheckedCreateWithoutUserInput = { @@ -19222,11 +19292,11 @@ export namespace Prisma { language?: string | null languageConfidence?: number | null lastAiAnalysis?: Date | string | null + aiFeedback?: AiFeedbackUncheckedCreateNestedManyWithoutNoteInput + memoryEchoAsNote2?: MemoryEchoInsightUncheckedCreateNestedManyWithoutNote2Input + memoryEchoAsNote1?: MemoryEchoInsightUncheckedCreateNestedManyWithoutNote1Input shares?: NoteShareUncheckedCreateNestedManyWithoutNoteInput labelRelations?: LabelUncheckedCreateNestedManyWithoutNotesInput - aiFeedback?: AiFeedbackUncheckedCreateNestedManyWithoutNoteInput - memoryEchoAsNote1?: MemoryEchoInsightUncheckedCreateNestedManyWithoutNote1Input - memoryEchoAsNote2?: MemoryEchoInsightUncheckedCreateNestedManyWithoutNote2Input } export type NoteCreateOrConnectWithoutUserInput = { @@ -19238,101 +19308,6 @@ export namespace Prisma { data: NoteCreateManyUserInput | NoteCreateManyUserInput[] } - export type LabelCreateWithoutUserInput = { - id?: string - name: string - color?: string - createdAt?: Date | string - updatedAt?: Date | string - notebook?: NotebookCreateNestedOneWithoutLabelsInput - notes?: NoteCreateNestedManyWithoutLabelRelationsInput - } - - export type LabelUncheckedCreateWithoutUserInput = { - id?: string - name: string - color?: string - notebookId?: string | null - createdAt?: Date | string - updatedAt?: Date | string - notes?: NoteUncheckedCreateNestedManyWithoutLabelRelationsInput - } - - export type LabelCreateOrConnectWithoutUserInput = { - where: LabelWhereUniqueInput - create: XOR - } - - export type LabelCreateManyUserInputEnvelope = { - data: LabelCreateManyUserInput | LabelCreateManyUserInput[] - } - - export type NotebookCreateWithoutUserInput = { - id?: string - name: string - icon?: string | null - color?: string | null - order: number - createdAt?: Date | string - updatedAt?: Date | string - notes?: NoteCreateNestedManyWithoutNotebookInput - labels?: LabelCreateNestedManyWithoutNotebookInput - } - - export type NotebookUncheckedCreateWithoutUserInput = { - id?: string - name: string - icon?: string | null - color?: string | null - order: number - createdAt?: Date | string - updatedAt?: Date | string - notes?: NoteUncheckedCreateNestedManyWithoutNotebookInput - labels?: LabelUncheckedCreateNestedManyWithoutNotebookInput - } - - export type NotebookCreateOrConnectWithoutUserInput = { - where: NotebookWhereUniqueInput - create: XOR - } - - export type NotebookCreateManyUserInputEnvelope = { - data: NotebookCreateManyUserInput | NotebookCreateManyUserInput[] - } - - export type NoteShareCreateWithoutUserInput = { - id?: string - status?: string - permission?: string - notifiedAt?: Date | string | null - respondedAt?: Date | string | null - createdAt?: Date | string - updatedAt?: Date | string - note: NoteCreateNestedOneWithoutSharesInput - sharer: UserCreateNestedOneWithoutSentSharesInput - } - - export type NoteShareUncheckedCreateWithoutUserInput = { - id?: string - noteId: string - sharedBy: string - status?: string - permission?: string - notifiedAt?: Date | string | null - respondedAt?: Date | string | null - createdAt?: Date | string - updatedAt?: Date | string - } - - export type NoteShareCreateOrConnectWithoutUserInput = { - where: NoteShareWhereUniqueInput - create: XOR - } - - export type NoteShareCreateManyUserInputEnvelope = { - data: NoteShareCreateManyUserInput | NoteShareCreateManyUserInput[] - } - export type NoteShareCreateWithoutSharerInput = { id?: string status?: string @@ -19341,8 +19316,8 @@ export namespace Prisma { respondedAt?: Date | string | null createdAt?: Date | string updatedAt?: Date | string - note: NoteCreateNestedOneWithoutSharesInput user: UserCreateNestedOneWithoutReceivedSharesInput + note: NoteCreateNestedOneWithoutSharesInput } export type NoteShareUncheckedCreateWithoutSharerInput = { @@ -19366,35 +19341,93 @@ export namespace Prisma { data: NoteShareCreateManySharerInput | NoteShareCreateManySharerInput[] } - export type AiFeedbackCreateWithoutUserInput = { + export type NoteShareCreateWithoutUserInput = { id?: string - feedbackType: string - feature: string - originalContent: string - correctedContent?: string | null - metadata?: string | null + status?: string + permission?: string + notifiedAt?: Date | string | null + respondedAt?: Date | string | null createdAt?: Date | string - note: NoteCreateNestedOneWithoutAiFeedbackInput + updatedAt?: Date | string + sharer: UserCreateNestedOneWithoutSentSharesInput + note: NoteCreateNestedOneWithoutSharesInput } - export type AiFeedbackUncheckedCreateWithoutUserInput = { + export type NoteShareUncheckedCreateWithoutUserInput = { id?: string noteId: string - feedbackType: string - feature: string - originalContent: string - correctedContent?: string | null - metadata?: string | null + sharedBy: string + status?: string + permission?: string + notifiedAt?: Date | string | null + respondedAt?: Date | string | null createdAt?: Date | string + updatedAt?: Date | string } - export type AiFeedbackCreateOrConnectWithoutUserInput = { - where: AiFeedbackWhereUniqueInput - create: XOR + export type NoteShareCreateOrConnectWithoutUserInput = { + where: NoteShareWhereUniqueInput + create: XOR } - export type AiFeedbackCreateManyUserInputEnvelope = { - data: AiFeedbackCreateManyUserInput | AiFeedbackCreateManyUserInput[] + export type NoteShareCreateManyUserInputEnvelope = { + data: NoteShareCreateManyUserInput | NoteShareCreateManyUserInput[] + } + + export type NotebookCreateWithoutUserInput = { + id?: string + name: string + icon?: string | null + color?: string | null + order: number + createdAt?: Date | string + updatedAt?: Date | string + labels?: LabelCreateNestedManyWithoutNotebookInput + notes?: NoteCreateNestedManyWithoutNotebookInput + } + + export type NotebookUncheckedCreateWithoutUserInput = { + id?: string + name: string + icon?: string | null + color?: string | null + order: number + createdAt?: Date | string + updatedAt?: Date | string + labels?: LabelUncheckedCreateNestedManyWithoutNotebookInput + notes?: NoteUncheckedCreateNestedManyWithoutNotebookInput + } + + export type NotebookCreateOrConnectWithoutUserInput = { + where: NotebookWhereUniqueInput + create: XOR + } + + export type NotebookCreateManyUserInputEnvelope = { + data: NotebookCreateManyUserInput | NotebookCreateManyUserInput[] + } + + export type SessionCreateWithoutUserInput = { + sessionToken: string + expires: Date | string + createdAt?: Date | string + updatedAt?: Date | string + } + + export type SessionUncheckedCreateWithoutUserInput = { + sessionToken: string + expires: Date | string + createdAt?: Date | string + updatedAt?: Date | string + } + + export type SessionCreateOrConnectWithoutUserInput = { + where: SessionWhereUniqueInput + create: XOR + } + + export type SessionCreateManyUserInputEnvelope = { + data: SessionCreateManyUserInput | SessionCreateManyUserInput[] } export type UserAISettingsCreateWithoutUserInput = { @@ -19426,39 +19459,6 @@ export namespace Prisma { create: XOR } - export type MemoryEchoInsightCreateWithoutUserInput = { - id?: string - similarityScore: number - insight: string - insightDate?: Date | string - viewed?: boolean - feedback?: string | null - dismissed?: boolean - note1: NoteCreateNestedOneWithoutMemoryEchoAsNote1Input - note2: NoteCreateNestedOneWithoutMemoryEchoAsNote2Input - } - - export type MemoryEchoInsightUncheckedCreateWithoutUserInput = { - id?: string - note1Id: string - note2Id: string - similarityScore: number - insight: string - insightDate?: Date | string - viewed?: boolean - feedback?: string | null - dismissed?: boolean - } - - export type MemoryEchoInsightCreateOrConnectWithoutUserInput = { - where: MemoryEchoInsightWhereUniqueInput - create: XOR - } - - export type MemoryEchoInsightCreateManyUserInputEnvelope = { - data: MemoryEchoInsightCreateManyUserInput | MemoryEchoInsightCreateManyUserInput[] - } - export type AccountUpsertWithWhereUniqueWithoutUserInput = { where: AccountWhereUniqueInput update: XOR @@ -19494,31 +19494,96 @@ export namespace Prisma { updatedAt?: DateTimeFilter<"Account"> | Date | string } - export type SessionUpsertWithWhereUniqueWithoutUserInput = { - where: SessionWhereUniqueInput - update: XOR - create: XOR + export type AiFeedbackUpsertWithWhereUniqueWithoutUserInput = { + where: AiFeedbackWhereUniqueInput + update: XOR + create: XOR } - export type SessionUpdateWithWhereUniqueWithoutUserInput = { - where: SessionWhereUniqueInput - data: XOR + export type AiFeedbackUpdateWithWhereUniqueWithoutUserInput = { + where: AiFeedbackWhereUniqueInput + data: XOR } - export type SessionUpdateManyWithWhereWithoutUserInput = { - where: SessionScalarWhereInput - data: XOR + export type AiFeedbackUpdateManyWithWhereWithoutUserInput = { + where: AiFeedbackScalarWhereInput + data: XOR } - export type SessionScalarWhereInput = { - AND?: SessionScalarWhereInput | SessionScalarWhereInput[] - OR?: SessionScalarWhereInput[] - NOT?: SessionScalarWhereInput | SessionScalarWhereInput[] - sessionToken?: StringFilter<"Session"> | string - userId?: StringFilter<"Session"> | string - expires?: DateTimeFilter<"Session"> | Date | string - createdAt?: DateTimeFilter<"Session"> | Date | string - updatedAt?: DateTimeFilter<"Session"> | Date | string + export type AiFeedbackScalarWhereInput = { + AND?: AiFeedbackScalarWhereInput | AiFeedbackScalarWhereInput[] + OR?: AiFeedbackScalarWhereInput[] + NOT?: AiFeedbackScalarWhereInput | AiFeedbackScalarWhereInput[] + id?: StringFilter<"AiFeedback"> | string + noteId?: StringFilter<"AiFeedback"> | string + userId?: StringNullableFilter<"AiFeedback"> | string | null + feedbackType?: StringFilter<"AiFeedback"> | string + feature?: StringFilter<"AiFeedback"> | string + originalContent?: StringFilter<"AiFeedback"> | string + correctedContent?: StringNullableFilter<"AiFeedback"> | string | null + metadata?: StringNullableFilter<"AiFeedback"> | string | null + createdAt?: DateTimeFilter<"AiFeedback"> | Date | string + } + + export type LabelUpsertWithWhereUniqueWithoutUserInput = { + where: LabelWhereUniqueInput + update: XOR + create: XOR + } + + export type LabelUpdateWithWhereUniqueWithoutUserInput = { + where: LabelWhereUniqueInput + data: XOR + } + + export type LabelUpdateManyWithWhereWithoutUserInput = { + where: LabelScalarWhereInput + data: XOR + } + + export type LabelScalarWhereInput = { + AND?: LabelScalarWhereInput | LabelScalarWhereInput[] + OR?: LabelScalarWhereInput[] + NOT?: LabelScalarWhereInput | LabelScalarWhereInput[] + id?: StringFilter<"Label"> | string + name?: StringFilter<"Label"> | string + color?: StringFilter<"Label"> | string + notebookId?: StringNullableFilter<"Label"> | string | null + userId?: StringNullableFilter<"Label"> | string | null + createdAt?: DateTimeFilter<"Label"> | Date | string + updatedAt?: DateTimeFilter<"Label"> | Date | string + } + + export type MemoryEchoInsightUpsertWithWhereUniqueWithoutUserInput = { + where: MemoryEchoInsightWhereUniqueInput + update: XOR + create: XOR + } + + export type MemoryEchoInsightUpdateWithWhereUniqueWithoutUserInput = { + where: MemoryEchoInsightWhereUniqueInput + data: XOR + } + + export type MemoryEchoInsightUpdateManyWithWhereWithoutUserInput = { + where: MemoryEchoInsightScalarWhereInput + data: XOR + } + + export type MemoryEchoInsightScalarWhereInput = { + AND?: MemoryEchoInsightScalarWhereInput | MemoryEchoInsightScalarWhereInput[] + OR?: MemoryEchoInsightScalarWhereInput[] + NOT?: MemoryEchoInsightScalarWhereInput | MemoryEchoInsightScalarWhereInput[] + id?: StringFilter<"MemoryEchoInsight"> | string + userId?: StringNullableFilter<"MemoryEchoInsight"> | string | null + note1Id?: StringFilter<"MemoryEchoInsight"> | string + note2Id?: StringFilter<"MemoryEchoInsight"> | string + similarityScore?: FloatFilter<"MemoryEchoInsight"> | number + insight?: StringFilter<"MemoryEchoInsight"> | string + insightDate?: DateTimeFilter<"MemoryEchoInsight"> | Date | string + viewed?: BoolFilter<"MemoryEchoInsight"> | boolean + feedback?: StringNullableFilter<"MemoryEchoInsight"> | string | null + dismissed?: BoolFilter<"MemoryEchoInsight"> | boolean } export type NoteUpsertWithWhereUniqueWithoutUserInput = { @@ -19573,33 +19638,52 @@ export namespace Prisma { lastAiAnalysis?: DateTimeNullableFilter<"Note"> | Date | string | null } - export type LabelUpsertWithWhereUniqueWithoutUserInput = { - where: LabelWhereUniqueInput - update: XOR - create: XOR + export type NoteShareUpsertWithWhereUniqueWithoutSharerInput = { + where: NoteShareWhereUniqueInput + update: XOR + create: XOR } - export type LabelUpdateWithWhereUniqueWithoutUserInput = { - where: LabelWhereUniqueInput - data: XOR + export type NoteShareUpdateWithWhereUniqueWithoutSharerInput = { + where: NoteShareWhereUniqueInput + data: XOR } - export type LabelUpdateManyWithWhereWithoutUserInput = { - where: LabelScalarWhereInput - data: XOR + export type NoteShareUpdateManyWithWhereWithoutSharerInput = { + where: NoteShareScalarWhereInput + data: XOR } - export type LabelScalarWhereInput = { - AND?: LabelScalarWhereInput | LabelScalarWhereInput[] - OR?: LabelScalarWhereInput[] - NOT?: LabelScalarWhereInput | LabelScalarWhereInput[] - id?: StringFilter<"Label"> | string - name?: StringFilter<"Label"> | string - color?: StringFilter<"Label"> | string - notebookId?: StringNullableFilter<"Label"> | string | null - userId?: StringNullableFilter<"Label"> | string | null - createdAt?: DateTimeFilter<"Label"> | Date | string - updatedAt?: DateTimeFilter<"Label"> | Date | string + export type NoteShareScalarWhereInput = { + AND?: NoteShareScalarWhereInput | NoteShareScalarWhereInput[] + OR?: NoteShareScalarWhereInput[] + NOT?: NoteShareScalarWhereInput | NoteShareScalarWhereInput[] + id?: StringFilter<"NoteShare"> | string + noteId?: StringFilter<"NoteShare"> | string + userId?: StringFilter<"NoteShare"> | string + sharedBy?: StringFilter<"NoteShare"> | string + status?: StringFilter<"NoteShare"> | string + permission?: StringFilter<"NoteShare"> | string + notifiedAt?: DateTimeNullableFilter<"NoteShare"> | Date | string | null + respondedAt?: DateTimeNullableFilter<"NoteShare"> | Date | string | null + createdAt?: DateTimeFilter<"NoteShare"> | Date | string + updatedAt?: DateTimeFilter<"NoteShare"> | Date | string + } + + export type NoteShareUpsertWithWhereUniqueWithoutUserInput = { + where: NoteShareWhereUniqueInput + update: XOR + create: XOR + } + + export type NoteShareUpdateWithWhereUniqueWithoutUserInput = { + where: NoteShareWhereUniqueInput + data: XOR + } + + export type NoteShareUpdateManyWithWhereWithoutUserInput = { + where: NoteShareScalarWhereInput + data: XOR } export type NotebookUpsertWithWhereUniqueWithoutUserInput = { @@ -19632,83 +19716,31 @@ export namespace Prisma { updatedAt?: DateTimeFilter<"Notebook"> | Date | string } - export type NoteShareUpsertWithWhereUniqueWithoutUserInput = { - where: NoteShareWhereUniqueInput - update: XOR - create: XOR + export type SessionUpsertWithWhereUniqueWithoutUserInput = { + where: SessionWhereUniqueInput + update: XOR + create: XOR } - export type NoteShareUpdateWithWhereUniqueWithoutUserInput = { - where: NoteShareWhereUniqueInput - data: XOR + export type SessionUpdateWithWhereUniqueWithoutUserInput = { + where: SessionWhereUniqueInput + data: XOR } - export type NoteShareUpdateManyWithWhereWithoutUserInput = { - where: NoteShareScalarWhereInput - data: XOR + export type SessionUpdateManyWithWhereWithoutUserInput = { + where: SessionScalarWhereInput + data: XOR } - export type NoteShareScalarWhereInput = { - AND?: NoteShareScalarWhereInput | NoteShareScalarWhereInput[] - OR?: NoteShareScalarWhereInput[] - NOT?: NoteShareScalarWhereInput | NoteShareScalarWhereInput[] - id?: StringFilter<"NoteShare"> | string - noteId?: StringFilter<"NoteShare"> | string - userId?: StringFilter<"NoteShare"> | string - sharedBy?: StringFilter<"NoteShare"> | string - status?: StringFilter<"NoteShare"> | string - permission?: StringFilter<"NoteShare"> | string - notifiedAt?: DateTimeNullableFilter<"NoteShare"> | Date | string | null - respondedAt?: DateTimeNullableFilter<"NoteShare"> | Date | string | null - createdAt?: DateTimeFilter<"NoteShare"> | Date | string - updatedAt?: DateTimeFilter<"NoteShare"> | Date | string - } - - export type NoteShareUpsertWithWhereUniqueWithoutSharerInput = { - where: NoteShareWhereUniqueInput - update: XOR - create: XOR - } - - export type NoteShareUpdateWithWhereUniqueWithoutSharerInput = { - where: NoteShareWhereUniqueInput - data: XOR - } - - export type NoteShareUpdateManyWithWhereWithoutSharerInput = { - where: NoteShareScalarWhereInput - data: XOR - } - - export type AiFeedbackUpsertWithWhereUniqueWithoutUserInput = { - where: AiFeedbackWhereUniqueInput - update: XOR - create: XOR - } - - export type AiFeedbackUpdateWithWhereUniqueWithoutUserInput = { - where: AiFeedbackWhereUniqueInput - data: XOR - } - - export type AiFeedbackUpdateManyWithWhereWithoutUserInput = { - where: AiFeedbackScalarWhereInput - data: XOR - } - - export type AiFeedbackScalarWhereInput = { - AND?: AiFeedbackScalarWhereInput | AiFeedbackScalarWhereInput[] - OR?: AiFeedbackScalarWhereInput[] - NOT?: AiFeedbackScalarWhereInput | AiFeedbackScalarWhereInput[] - id?: StringFilter<"AiFeedback"> | string - noteId?: StringFilter<"AiFeedback"> | string - userId?: StringNullableFilter<"AiFeedback"> | string | null - feedbackType?: StringFilter<"AiFeedback"> | string - feature?: StringFilter<"AiFeedback"> | string - originalContent?: StringFilter<"AiFeedback"> | string - correctedContent?: StringNullableFilter<"AiFeedback"> | string | null - metadata?: StringNullableFilter<"AiFeedback"> | string | null - createdAt?: DateTimeFilter<"AiFeedback"> | Date | string + export type SessionScalarWhereInput = { + AND?: SessionScalarWhereInput | SessionScalarWhereInput[] + OR?: SessionScalarWhereInput[] + NOT?: SessionScalarWhereInput | SessionScalarWhereInput[] + sessionToken?: StringFilter<"Session"> | string + userId?: StringFilter<"Session"> | string + expires?: DateTimeFilter<"Session"> | Date | string + createdAt?: DateTimeFilter<"Session"> | Date | string + updatedAt?: DateTimeFilter<"Session"> | Date | string } export type UserAISettingsUpsertWithoutUserInput = { @@ -19746,38 +19778,6 @@ export namespace Prisma { demoMode?: BoolFieldUpdateOperationsInput | boolean } - export type MemoryEchoInsightUpsertWithWhereUniqueWithoutUserInput = { - where: MemoryEchoInsightWhereUniqueInput - update: XOR - create: XOR - } - - export type MemoryEchoInsightUpdateWithWhereUniqueWithoutUserInput = { - where: MemoryEchoInsightWhereUniqueInput - data: XOR - } - - export type MemoryEchoInsightUpdateManyWithWhereWithoutUserInput = { - where: MemoryEchoInsightScalarWhereInput - data: XOR - } - - export type MemoryEchoInsightScalarWhereInput = { - AND?: MemoryEchoInsightScalarWhereInput | MemoryEchoInsightScalarWhereInput[] - OR?: MemoryEchoInsightScalarWhereInput[] - NOT?: MemoryEchoInsightScalarWhereInput | MemoryEchoInsightScalarWhereInput[] - id?: StringFilter<"MemoryEchoInsight"> | string - userId?: StringNullableFilter<"MemoryEchoInsight"> | string | null - note1Id?: StringFilter<"MemoryEchoInsight"> | string - note2Id?: StringFilter<"MemoryEchoInsight"> | string - similarityScore?: FloatFilter<"MemoryEchoInsight"> | number - insight?: StringFilter<"MemoryEchoInsight"> | string - insightDate?: DateTimeFilter<"MemoryEchoInsight"> | Date | string - viewed?: BoolFilter<"MemoryEchoInsight"> | boolean - feedback?: StringNullableFilter<"MemoryEchoInsight"> | string | null - dismissed?: BoolFilter<"MemoryEchoInsight"> | boolean - } - export type UserCreateWithoutAccountsInput = { id?: string name?: string | null @@ -19791,15 +19791,15 @@ export namespace Prisma { resetTokenExpiry?: Date | string | null createdAt?: Date | string updatedAt?: Date | string - sessions?: SessionCreateNestedManyWithoutUserInput - notes?: NoteCreateNestedManyWithoutUserInput - labels?: LabelCreateNestedManyWithoutUserInput - notebooks?: NotebookCreateNestedManyWithoutUserInput - receivedShares?: NoteShareCreateNestedManyWithoutUserInput - sentShares?: NoteShareCreateNestedManyWithoutSharerInput aiFeedback?: AiFeedbackCreateNestedManyWithoutUserInput - aiSettings?: UserAISettingsCreateNestedOneWithoutUserInput + labels?: LabelCreateNestedManyWithoutUserInput memoryEchoInsights?: MemoryEchoInsightCreateNestedManyWithoutUserInput + notes?: NoteCreateNestedManyWithoutUserInput + sentShares?: NoteShareCreateNestedManyWithoutSharerInput + receivedShares?: NoteShareCreateNestedManyWithoutUserInput + notebooks?: NotebookCreateNestedManyWithoutUserInput + sessions?: SessionCreateNestedManyWithoutUserInput + aiSettings?: UserAISettingsCreateNestedOneWithoutUserInput } export type UserUncheckedCreateWithoutAccountsInput = { @@ -19815,15 +19815,15 @@ export namespace Prisma { resetTokenExpiry?: Date | string | null createdAt?: Date | string updatedAt?: Date | string - sessions?: SessionUncheckedCreateNestedManyWithoutUserInput - notes?: NoteUncheckedCreateNestedManyWithoutUserInput - labels?: LabelUncheckedCreateNestedManyWithoutUserInput - notebooks?: NotebookUncheckedCreateNestedManyWithoutUserInput - receivedShares?: NoteShareUncheckedCreateNestedManyWithoutUserInput - sentShares?: NoteShareUncheckedCreateNestedManyWithoutSharerInput aiFeedback?: AiFeedbackUncheckedCreateNestedManyWithoutUserInput - aiSettings?: UserAISettingsUncheckedCreateNestedOneWithoutUserInput + labels?: LabelUncheckedCreateNestedManyWithoutUserInput memoryEchoInsights?: MemoryEchoInsightUncheckedCreateNestedManyWithoutUserInput + notes?: NoteUncheckedCreateNestedManyWithoutUserInput + sentShares?: NoteShareUncheckedCreateNestedManyWithoutSharerInput + receivedShares?: NoteShareUncheckedCreateNestedManyWithoutUserInput + notebooks?: NotebookUncheckedCreateNestedManyWithoutUserInput + sessions?: SessionUncheckedCreateNestedManyWithoutUserInput + aiSettings?: UserAISettingsUncheckedCreateNestedOneWithoutUserInput } export type UserCreateOrConnectWithoutAccountsInput = { @@ -19855,15 +19855,15 @@ export namespace Prisma { resetTokenExpiry?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - sessions?: SessionUpdateManyWithoutUserNestedInput - notes?: NoteUpdateManyWithoutUserNestedInput - labels?: LabelUpdateManyWithoutUserNestedInput - notebooks?: NotebookUpdateManyWithoutUserNestedInput - receivedShares?: NoteShareUpdateManyWithoutUserNestedInput - sentShares?: NoteShareUpdateManyWithoutSharerNestedInput aiFeedback?: AiFeedbackUpdateManyWithoutUserNestedInput - aiSettings?: UserAISettingsUpdateOneWithoutUserNestedInput + labels?: LabelUpdateManyWithoutUserNestedInput memoryEchoInsights?: MemoryEchoInsightUpdateManyWithoutUserNestedInput + notes?: NoteUpdateManyWithoutUserNestedInput + sentShares?: NoteShareUpdateManyWithoutSharerNestedInput + receivedShares?: NoteShareUpdateManyWithoutUserNestedInput + notebooks?: NotebookUpdateManyWithoutUserNestedInput + sessions?: SessionUpdateManyWithoutUserNestedInput + aiSettings?: UserAISettingsUpdateOneWithoutUserNestedInput } export type UserUncheckedUpdateWithoutAccountsInput = { @@ -19879,15 +19879,15 @@ export namespace Prisma { resetTokenExpiry?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - sessions?: SessionUncheckedUpdateManyWithoutUserNestedInput - notes?: NoteUncheckedUpdateManyWithoutUserNestedInput - labels?: LabelUncheckedUpdateManyWithoutUserNestedInput - notebooks?: NotebookUncheckedUpdateManyWithoutUserNestedInput - receivedShares?: NoteShareUncheckedUpdateManyWithoutUserNestedInput - sentShares?: NoteShareUncheckedUpdateManyWithoutSharerNestedInput aiFeedback?: AiFeedbackUncheckedUpdateManyWithoutUserNestedInput - aiSettings?: UserAISettingsUncheckedUpdateOneWithoutUserNestedInput + labels?: LabelUncheckedUpdateManyWithoutUserNestedInput memoryEchoInsights?: MemoryEchoInsightUncheckedUpdateManyWithoutUserNestedInput + notes?: NoteUncheckedUpdateManyWithoutUserNestedInput + sentShares?: NoteShareUncheckedUpdateManyWithoutSharerNestedInput + receivedShares?: NoteShareUncheckedUpdateManyWithoutUserNestedInput + notebooks?: NotebookUncheckedUpdateManyWithoutUserNestedInput + sessions?: SessionUncheckedUpdateManyWithoutUserNestedInput + aiSettings?: UserAISettingsUncheckedUpdateOneWithoutUserNestedInput } export type UserCreateWithoutSessionsInput = { @@ -19904,14 +19904,14 @@ export namespace Prisma { createdAt?: Date | string updatedAt?: Date | string accounts?: AccountCreateNestedManyWithoutUserInput - notes?: NoteCreateNestedManyWithoutUserInput - labels?: LabelCreateNestedManyWithoutUserInput - notebooks?: NotebookCreateNestedManyWithoutUserInput - receivedShares?: NoteShareCreateNestedManyWithoutUserInput - sentShares?: NoteShareCreateNestedManyWithoutSharerInput aiFeedback?: AiFeedbackCreateNestedManyWithoutUserInput - aiSettings?: UserAISettingsCreateNestedOneWithoutUserInput + labels?: LabelCreateNestedManyWithoutUserInput memoryEchoInsights?: MemoryEchoInsightCreateNestedManyWithoutUserInput + notes?: NoteCreateNestedManyWithoutUserInput + sentShares?: NoteShareCreateNestedManyWithoutSharerInput + receivedShares?: NoteShareCreateNestedManyWithoutUserInput + notebooks?: NotebookCreateNestedManyWithoutUserInput + aiSettings?: UserAISettingsCreateNestedOneWithoutUserInput } export type UserUncheckedCreateWithoutSessionsInput = { @@ -19928,14 +19928,14 @@ export namespace Prisma { createdAt?: Date | string updatedAt?: Date | string accounts?: AccountUncheckedCreateNestedManyWithoutUserInput - notes?: NoteUncheckedCreateNestedManyWithoutUserInput - labels?: LabelUncheckedCreateNestedManyWithoutUserInput - notebooks?: NotebookUncheckedCreateNestedManyWithoutUserInput - receivedShares?: NoteShareUncheckedCreateNestedManyWithoutUserInput - sentShares?: NoteShareUncheckedCreateNestedManyWithoutSharerInput aiFeedback?: AiFeedbackUncheckedCreateNestedManyWithoutUserInput - aiSettings?: UserAISettingsUncheckedCreateNestedOneWithoutUserInput + labels?: LabelUncheckedCreateNestedManyWithoutUserInput memoryEchoInsights?: MemoryEchoInsightUncheckedCreateNestedManyWithoutUserInput + notes?: NoteUncheckedCreateNestedManyWithoutUserInput + sentShares?: NoteShareUncheckedCreateNestedManyWithoutSharerInput + receivedShares?: NoteShareUncheckedCreateNestedManyWithoutUserInput + notebooks?: NotebookUncheckedCreateNestedManyWithoutUserInput + aiSettings?: UserAISettingsUncheckedCreateNestedOneWithoutUserInput } export type UserCreateOrConnectWithoutSessionsInput = { @@ -19968,14 +19968,14 @@ export namespace Prisma { createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string accounts?: AccountUpdateManyWithoutUserNestedInput - notes?: NoteUpdateManyWithoutUserNestedInput - labels?: LabelUpdateManyWithoutUserNestedInput - notebooks?: NotebookUpdateManyWithoutUserNestedInput - receivedShares?: NoteShareUpdateManyWithoutUserNestedInput - sentShares?: NoteShareUpdateManyWithoutSharerNestedInput aiFeedback?: AiFeedbackUpdateManyWithoutUserNestedInput - aiSettings?: UserAISettingsUpdateOneWithoutUserNestedInput + labels?: LabelUpdateManyWithoutUserNestedInput memoryEchoInsights?: MemoryEchoInsightUpdateManyWithoutUserNestedInput + notes?: NoteUpdateManyWithoutUserNestedInput + sentShares?: NoteShareUpdateManyWithoutSharerNestedInput + receivedShares?: NoteShareUpdateManyWithoutUserNestedInput + notebooks?: NotebookUpdateManyWithoutUserNestedInput + aiSettings?: UserAISettingsUpdateOneWithoutUserNestedInput } export type UserUncheckedUpdateWithoutSessionsInput = { @@ -19992,67 +19992,43 @@ export namespace Prisma { createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string accounts?: AccountUncheckedUpdateManyWithoutUserNestedInput - notes?: NoteUncheckedUpdateManyWithoutUserNestedInput - labels?: LabelUncheckedUpdateManyWithoutUserNestedInput - notebooks?: NotebookUncheckedUpdateManyWithoutUserNestedInput - receivedShares?: NoteShareUncheckedUpdateManyWithoutUserNestedInput - sentShares?: NoteShareUncheckedUpdateManyWithoutSharerNestedInput aiFeedback?: AiFeedbackUncheckedUpdateManyWithoutUserNestedInput - aiSettings?: UserAISettingsUncheckedUpdateOneWithoutUserNestedInput + labels?: LabelUncheckedUpdateManyWithoutUserNestedInput memoryEchoInsights?: MemoryEchoInsightUncheckedUpdateManyWithoutUserNestedInput + notes?: NoteUncheckedUpdateManyWithoutUserNestedInput + sentShares?: NoteShareUncheckedUpdateManyWithoutSharerNestedInput + receivedShares?: NoteShareUncheckedUpdateManyWithoutUserNestedInput + notebooks?: NotebookUncheckedUpdateManyWithoutUserNestedInput + aiSettings?: UserAISettingsUncheckedUpdateOneWithoutUserNestedInput } - export type UserCreateWithoutNotebooksInput = { + export type LabelCreateWithoutNotebookInput = { id?: string - name?: string | null - email: string - emailVerified?: Date | string | null - password?: string | null - role?: string - image?: string | null - theme?: string - resetToken?: string | null - resetTokenExpiry?: Date | string | null + name: string + color?: string createdAt?: Date | string updatedAt?: Date | string - accounts?: AccountCreateNestedManyWithoutUserInput - sessions?: SessionCreateNestedManyWithoutUserInput - notes?: NoteCreateNestedManyWithoutUserInput - labels?: LabelCreateNestedManyWithoutUserInput - receivedShares?: NoteShareCreateNestedManyWithoutUserInput - sentShares?: NoteShareCreateNestedManyWithoutSharerInput - aiFeedback?: AiFeedbackCreateNestedManyWithoutUserInput - aiSettings?: UserAISettingsCreateNestedOneWithoutUserInput - memoryEchoInsights?: MemoryEchoInsightCreateNestedManyWithoutUserInput + user?: UserCreateNestedOneWithoutLabelsInput + notes?: NoteCreateNestedManyWithoutLabelRelationsInput } - export type UserUncheckedCreateWithoutNotebooksInput = { + export type LabelUncheckedCreateWithoutNotebookInput = { id?: string - name?: string | null - email: string - emailVerified?: Date | string | null - password?: string | null - role?: string - image?: string | null - theme?: string - resetToken?: string | null - resetTokenExpiry?: Date | string | null + name: string + color?: string + userId?: string | null createdAt?: Date | string updatedAt?: Date | string - accounts?: AccountUncheckedCreateNestedManyWithoutUserInput - sessions?: SessionUncheckedCreateNestedManyWithoutUserInput - notes?: NoteUncheckedCreateNestedManyWithoutUserInput - labels?: LabelUncheckedCreateNestedManyWithoutUserInput - receivedShares?: NoteShareUncheckedCreateNestedManyWithoutUserInput - sentShares?: NoteShareUncheckedCreateNestedManyWithoutSharerInput - aiFeedback?: AiFeedbackUncheckedCreateNestedManyWithoutUserInput - aiSettings?: UserAISettingsUncheckedCreateNestedOneWithoutUserInput - memoryEchoInsights?: MemoryEchoInsightUncheckedCreateNestedManyWithoutUserInput + notes?: NoteUncheckedCreateNestedManyWithoutLabelRelationsInput } - export type UserCreateOrConnectWithoutNotebooksInput = { - where: UserWhereUniqueInput - create: XOR + export type LabelCreateOrConnectWithoutNotebookInput = { + where: LabelWhereUniqueInput + create: XOR + } + + export type LabelCreateManyNotebookInputEnvelope = { + data: LabelCreateManyNotebookInput | LabelCreateManyNotebookInput[] } export type NoteCreateWithoutNotebookInput = { @@ -20084,12 +20060,12 @@ export namespace Prisma { language?: string | null languageConfidence?: number | null lastAiAnalysis?: Date | string | null + aiFeedback?: AiFeedbackCreateNestedManyWithoutNoteInput + memoryEchoAsNote2?: MemoryEchoInsightCreateNestedManyWithoutNote2Input + memoryEchoAsNote1?: MemoryEchoInsightCreateNestedManyWithoutNote1Input user?: UserCreateNestedOneWithoutNotesInput shares?: NoteShareCreateNestedManyWithoutNoteInput labelRelations?: LabelCreateNestedManyWithoutNotesInput - aiFeedback?: AiFeedbackCreateNestedManyWithoutNoteInput - memoryEchoAsNote1?: MemoryEchoInsightCreateNestedManyWithoutNote1Input - memoryEchoAsNote2?: MemoryEchoInsightCreateNestedManyWithoutNote2Input } export type NoteUncheckedCreateWithoutNotebookInput = { @@ -20122,11 +20098,11 @@ export namespace Prisma { language?: string | null languageConfidence?: number | null lastAiAnalysis?: Date | string | null + aiFeedback?: AiFeedbackUncheckedCreateNestedManyWithoutNoteInput + memoryEchoAsNote2?: MemoryEchoInsightUncheckedCreateNestedManyWithoutNote2Input + memoryEchoAsNote1?: MemoryEchoInsightUncheckedCreateNestedManyWithoutNote1Input shares?: NoteShareUncheckedCreateNestedManyWithoutNoteInput labelRelations?: LabelUncheckedCreateNestedManyWithoutNotesInput - aiFeedback?: AiFeedbackUncheckedCreateNestedManyWithoutNoteInput - memoryEchoAsNote1?: MemoryEchoInsightUncheckedCreateNestedManyWithoutNote1Input - memoryEchoAsNote2?: MemoryEchoInsightUncheckedCreateNestedManyWithoutNote2Input } export type NoteCreateOrConnectWithoutNotebookInput = { @@ -20138,33 +20114,89 @@ export namespace Prisma { data: NoteCreateManyNotebookInput | NoteCreateManyNotebookInput[] } - export type LabelCreateWithoutNotebookInput = { + export type UserCreateWithoutNotebooksInput = { id?: string - name: string - color?: string + name?: string | null + email: string + emailVerified?: Date | string | null + password?: string | null + role?: string + image?: string | null + theme?: string + resetToken?: string | null + resetTokenExpiry?: Date | string | null createdAt?: Date | string updatedAt?: Date | string - notes?: NoteCreateNestedManyWithoutLabelRelationsInput - user?: UserCreateNestedOneWithoutLabelsInput + accounts?: AccountCreateNestedManyWithoutUserInput + aiFeedback?: AiFeedbackCreateNestedManyWithoutUserInput + labels?: LabelCreateNestedManyWithoutUserInput + memoryEchoInsights?: MemoryEchoInsightCreateNestedManyWithoutUserInput + notes?: NoteCreateNestedManyWithoutUserInput + sentShares?: NoteShareCreateNestedManyWithoutSharerInput + receivedShares?: NoteShareCreateNestedManyWithoutUserInput + sessions?: SessionCreateNestedManyWithoutUserInput + aiSettings?: UserAISettingsCreateNestedOneWithoutUserInput } - export type LabelUncheckedCreateWithoutNotebookInput = { + export type UserUncheckedCreateWithoutNotebooksInput = { id?: string - name: string - color?: string - userId?: string | null + name?: string | null + email: string + emailVerified?: Date | string | null + password?: string | null + role?: string + image?: string | null + theme?: string + resetToken?: string | null + resetTokenExpiry?: Date | string | null createdAt?: Date | string updatedAt?: Date | string - notes?: NoteUncheckedCreateNestedManyWithoutLabelRelationsInput + accounts?: AccountUncheckedCreateNestedManyWithoutUserInput + aiFeedback?: AiFeedbackUncheckedCreateNestedManyWithoutUserInput + labels?: LabelUncheckedCreateNestedManyWithoutUserInput + memoryEchoInsights?: MemoryEchoInsightUncheckedCreateNestedManyWithoutUserInput + notes?: NoteUncheckedCreateNestedManyWithoutUserInput + sentShares?: NoteShareUncheckedCreateNestedManyWithoutSharerInput + receivedShares?: NoteShareUncheckedCreateNestedManyWithoutUserInput + sessions?: SessionUncheckedCreateNestedManyWithoutUserInput + aiSettings?: UserAISettingsUncheckedCreateNestedOneWithoutUserInput } - export type LabelCreateOrConnectWithoutNotebookInput = { + export type UserCreateOrConnectWithoutNotebooksInput = { + where: UserWhereUniqueInput + create: XOR + } + + export type LabelUpsertWithWhereUniqueWithoutNotebookInput = { where: LabelWhereUniqueInput + update: XOR create: XOR } - export type LabelCreateManyNotebookInputEnvelope = { - data: LabelCreateManyNotebookInput | LabelCreateManyNotebookInput[] + export type LabelUpdateWithWhereUniqueWithoutNotebookInput = { + where: LabelWhereUniqueInput + data: XOR + } + + export type LabelUpdateManyWithWhereWithoutNotebookInput = { + where: LabelScalarWhereInput + data: XOR + } + + export type NoteUpsertWithWhereUniqueWithoutNotebookInput = { + where: NoteWhereUniqueInput + update: XOR + create: XOR + } + + export type NoteUpdateWithWhereUniqueWithoutNotebookInput = { + where: NoteWhereUniqueInput + data: XOR + } + + export type NoteUpdateManyWithWhereWithoutNotebookInput = { + where: NoteScalarWhereInput + data: XOR } export type UserUpsertWithoutNotebooksInput = { @@ -20192,14 +20224,14 @@ export namespace Prisma { createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string accounts?: AccountUpdateManyWithoutUserNestedInput - sessions?: SessionUpdateManyWithoutUserNestedInput - notes?: NoteUpdateManyWithoutUserNestedInput - labels?: LabelUpdateManyWithoutUserNestedInput - receivedShares?: NoteShareUpdateManyWithoutUserNestedInput - sentShares?: NoteShareUpdateManyWithoutSharerNestedInput aiFeedback?: AiFeedbackUpdateManyWithoutUserNestedInput - aiSettings?: UserAISettingsUpdateOneWithoutUserNestedInput + labels?: LabelUpdateManyWithoutUserNestedInput memoryEchoInsights?: MemoryEchoInsightUpdateManyWithoutUserNestedInput + notes?: NoteUpdateManyWithoutUserNestedInput + sentShares?: NoteShareUpdateManyWithoutSharerNestedInput + receivedShares?: NoteShareUpdateManyWithoutUserNestedInput + sessions?: SessionUpdateManyWithoutUserNestedInput + aiSettings?: UserAISettingsUpdateOneWithoutUserNestedInput } export type UserUncheckedUpdateWithoutNotebooksInput = { @@ -20216,46 +20248,67 @@ export namespace Prisma { createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string accounts?: AccountUncheckedUpdateManyWithoutUserNestedInput - sessions?: SessionUncheckedUpdateManyWithoutUserNestedInput - notes?: NoteUncheckedUpdateManyWithoutUserNestedInput - labels?: LabelUncheckedUpdateManyWithoutUserNestedInput - receivedShares?: NoteShareUncheckedUpdateManyWithoutUserNestedInput - sentShares?: NoteShareUncheckedUpdateManyWithoutSharerNestedInput aiFeedback?: AiFeedbackUncheckedUpdateManyWithoutUserNestedInput - aiSettings?: UserAISettingsUncheckedUpdateOneWithoutUserNestedInput + labels?: LabelUncheckedUpdateManyWithoutUserNestedInput memoryEchoInsights?: MemoryEchoInsightUncheckedUpdateManyWithoutUserNestedInput + notes?: NoteUncheckedUpdateManyWithoutUserNestedInput + sentShares?: NoteShareUncheckedUpdateManyWithoutSharerNestedInput + receivedShares?: NoteShareUncheckedUpdateManyWithoutUserNestedInput + sessions?: SessionUncheckedUpdateManyWithoutUserNestedInput + aiSettings?: UserAISettingsUncheckedUpdateOneWithoutUserNestedInput } - export type NoteUpsertWithWhereUniqueWithoutNotebookInput = { - where: NoteWhereUniqueInput - update: XOR - create: XOR + export type UserCreateWithoutLabelsInput = { + id?: string + name?: string | null + email: string + emailVerified?: Date | string | null + password?: string | null + role?: string + image?: string | null + theme?: string + resetToken?: string | null + resetTokenExpiry?: Date | string | null + createdAt?: Date | string + updatedAt?: Date | string + accounts?: AccountCreateNestedManyWithoutUserInput + aiFeedback?: AiFeedbackCreateNestedManyWithoutUserInput + memoryEchoInsights?: MemoryEchoInsightCreateNestedManyWithoutUserInput + notes?: NoteCreateNestedManyWithoutUserInput + sentShares?: NoteShareCreateNestedManyWithoutSharerInput + receivedShares?: NoteShareCreateNestedManyWithoutUserInput + notebooks?: NotebookCreateNestedManyWithoutUserInput + sessions?: SessionCreateNestedManyWithoutUserInput + aiSettings?: UserAISettingsCreateNestedOneWithoutUserInput } - export type NoteUpdateWithWhereUniqueWithoutNotebookInput = { - where: NoteWhereUniqueInput - data: XOR + export type UserUncheckedCreateWithoutLabelsInput = { + id?: string + name?: string | null + email: string + emailVerified?: Date | string | null + password?: string | null + role?: string + image?: string | null + theme?: string + resetToken?: string | null + resetTokenExpiry?: Date | string | null + createdAt?: Date | string + updatedAt?: Date | string + accounts?: AccountUncheckedCreateNestedManyWithoutUserInput + aiFeedback?: AiFeedbackUncheckedCreateNestedManyWithoutUserInput + memoryEchoInsights?: MemoryEchoInsightUncheckedCreateNestedManyWithoutUserInput + notes?: NoteUncheckedCreateNestedManyWithoutUserInput + sentShares?: NoteShareUncheckedCreateNestedManyWithoutSharerInput + receivedShares?: NoteShareUncheckedCreateNestedManyWithoutUserInput + notebooks?: NotebookUncheckedCreateNestedManyWithoutUserInput + sessions?: SessionUncheckedCreateNestedManyWithoutUserInput + aiSettings?: UserAISettingsUncheckedCreateNestedOneWithoutUserInput } - export type NoteUpdateManyWithWhereWithoutNotebookInput = { - where: NoteScalarWhereInput - data: XOR - } - - export type LabelUpsertWithWhereUniqueWithoutNotebookInput = { - where: LabelWhereUniqueInput - update: XOR - create: XOR - } - - export type LabelUpdateWithWhereUniqueWithoutNotebookInput = { - where: LabelWhereUniqueInput - data: XOR - } - - export type LabelUpdateManyWithWhereWithoutNotebookInput = { - where: LabelScalarWhereInput - data: XOR + export type UserCreateOrConnectWithoutLabelsInput = { + where: UserWhereUniqueInput + create: XOR } export type NotebookCreateWithoutLabelsInput = { @@ -20266,8 +20319,8 @@ export namespace Prisma { order: number createdAt?: Date | string updatedAt?: Date | string - user: UserCreateNestedOneWithoutNotebooksInput notes?: NoteCreateNestedManyWithoutNotebookInput + user: UserCreateNestedOneWithoutNotebooksInput } export type NotebookUncheckedCreateWithoutLabelsInput = { @@ -20316,12 +20369,12 @@ export namespace Prisma { language?: string | null languageConfidence?: number | null lastAiAnalysis?: Date | string | null + aiFeedback?: AiFeedbackCreateNestedManyWithoutNoteInput + memoryEchoAsNote2?: MemoryEchoInsightCreateNestedManyWithoutNote2Input + memoryEchoAsNote1?: MemoryEchoInsightCreateNestedManyWithoutNote1Input + notebook?: NotebookCreateNestedOneWithoutNotesInput user?: UserCreateNestedOneWithoutNotesInput shares?: NoteShareCreateNestedManyWithoutNoteInput - notebook?: NotebookCreateNestedOneWithoutNotesInput - aiFeedback?: AiFeedbackCreateNestedManyWithoutNoteInput - memoryEchoAsNote1?: MemoryEchoInsightCreateNestedManyWithoutNote1Input - memoryEchoAsNote2?: MemoryEchoInsightCreateNestedManyWithoutNote2Input } export type NoteUncheckedCreateWithoutLabelRelationsInput = { @@ -20355,10 +20408,10 @@ export namespace Prisma { language?: string | null languageConfidence?: number | null lastAiAnalysis?: Date | string | null - shares?: NoteShareUncheckedCreateNestedManyWithoutNoteInput aiFeedback?: AiFeedbackUncheckedCreateNestedManyWithoutNoteInput - memoryEchoAsNote1?: MemoryEchoInsightUncheckedCreateNestedManyWithoutNote1Input memoryEchoAsNote2?: MemoryEchoInsightUncheckedCreateNestedManyWithoutNote2Input + memoryEchoAsNote1?: MemoryEchoInsightUncheckedCreateNestedManyWithoutNote1Input + shares?: NoteShareUncheckedCreateNestedManyWithoutNoteInput } export type NoteCreateOrConnectWithoutLabelRelationsInput = { @@ -20366,57 +20419,63 @@ export namespace Prisma { create: XOR } - export type UserCreateWithoutLabelsInput = { - id?: string - name?: string | null - email: string - emailVerified?: Date | string | null - password?: string | null - role?: string - image?: string | null - theme?: string - resetToken?: string | null - resetTokenExpiry?: Date | string | null - createdAt?: Date | string - updatedAt?: Date | string - accounts?: AccountCreateNestedManyWithoutUserInput - sessions?: SessionCreateNestedManyWithoutUserInput - notes?: NoteCreateNestedManyWithoutUserInput - notebooks?: NotebookCreateNestedManyWithoutUserInput - receivedShares?: NoteShareCreateNestedManyWithoutUserInput - sentShares?: NoteShareCreateNestedManyWithoutSharerInput - aiFeedback?: AiFeedbackCreateNestedManyWithoutUserInput - aiSettings?: UserAISettingsCreateNestedOneWithoutUserInput - memoryEchoInsights?: MemoryEchoInsightCreateNestedManyWithoutUserInput - } - - export type UserUncheckedCreateWithoutLabelsInput = { - id?: string - name?: string | null - email: string - emailVerified?: Date | string | null - password?: string | null - role?: string - image?: string | null - theme?: string - resetToken?: string | null - resetTokenExpiry?: Date | string | null - createdAt?: Date | string - updatedAt?: Date | string - accounts?: AccountUncheckedCreateNestedManyWithoutUserInput - sessions?: SessionUncheckedCreateNestedManyWithoutUserInput - notes?: NoteUncheckedCreateNestedManyWithoutUserInput - notebooks?: NotebookUncheckedCreateNestedManyWithoutUserInput - receivedShares?: NoteShareUncheckedCreateNestedManyWithoutUserInput - sentShares?: NoteShareUncheckedCreateNestedManyWithoutSharerInput - aiFeedback?: AiFeedbackUncheckedCreateNestedManyWithoutUserInput - aiSettings?: UserAISettingsUncheckedCreateNestedOneWithoutUserInput - memoryEchoInsights?: MemoryEchoInsightUncheckedCreateNestedManyWithoutUserInput - } - - export type UserCreateOrConnectWithoutLabelsInput = { - where: UserWhereUniqueInput + export type UserUpsertWithoutLabelsInput = { + update: XOR create: XOR + where?: UserWhereInput + } + + export type UserUpdateToOneWithWhereWithoutLabelsInput = { + where?: UserWhereInput + data: XOR + } + + export type UserUpdateWithoutLabelsInput = { + id?: StringFieldUpdateOperationsInput | string + name?: NullableStringFieldUpdateOperationsInput | string | null + email?: StringFieldUpdateOperationsInput | string + emailVerified?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null + password?: NullableStringFieldUpdateOperationsInput | string | null + role?: StringFieldUpdateOperationsInput | string + image?: NullableStringFieldUpdateOperationsInput | string | null + theme?: StringFieldUpdateOperationsInput | string + resetToken?: NullableStringFieldUpdateOperationsInput | string | null + resetTokenExpiry?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null + createdAt?: DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string + accounts?: AccountUpdateManyWithoutUserNestedInput + aiFeedback?: AiFeedbackUpdateManyWithoutUserNestedInput + memoryEchoInsights?: MemoryEchoInsightUpdateManyWithoutUserNestedInput + notes?: NoteUpdateManyWithoutUserNestedInput + sentShares?: NoteShareUpdateManyWithoutSharerNestedInput + receivedShares?: NoteShareUpdateManyWithoutUserNestedInput + notebooks?: NotebookUpdateManyWithoutUserNestedInput + sessions?: SessionUpdateManyWithoutUserNestedInput + aiSettings?: UserAISettingsUpdateOneWithoutUserNestedInput + } + + export type UserUncheckedUpdateWithoutLabelsInput = { + id?: StringFieldUpdateOperationsInput | string + name?: NullableStringFieldUpdateOperationsInput | string | null + email?: StringFieldUpdateOperationsInput | string + emailVerified?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null + password?: NullableStringFieldUpdateOperationsInput | string | null + role?: StringFieldUpdateOperationsInput | string + image?: NullableStringFieldUpdateOperationsInput | string | null + theme?: StringFieldUpdateOperationsInput | string + resetToken?: NullableStringFieldUpdateOperationsInput | string | null + resetTokenExpiry?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null + createdAt?: DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string + accounts?: AccountUncheckedUpdateManyWithoutUserNestedInput + aiFeedback?: AiFeedbackUncheckedUpdateManyWithoutUserNestedInput + memoryEchoInsights?: MemoryEchoInsightUncheckedUpdateManyWithoutUserNestedInput + notes?: NoteUncheckedUpdateManyWithoutUserNestedInput + sentShares?: NoteShareUncheckedUpdateManyWithoutSharerNestedInput + receivedShares?: NoteShareUncheckedUpdateManyWithoutUserNestedInput + notebooks?: NotebookUncheckedUpdateManyWithoutUserNestedInput + sessions?: SessionUncheckedUpdateManyWithoutUserNestedInput + aiSettings?: UserAISettingsUncheckedUpdateOneWithoutUserNestedInput } export type NotebookUpsertWithoutLabelsInput = { @@ -20438,8 +20497,8 @@ export namespace Prisma { order?: IntFieldUpdateOperationsInput | number createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - user?: UserUpdateOneRequiredWithoutNotebooksNestedInput notes?: NoteUpdateManyWithoutNotebookNestedInput + user?: UserUpdateOneRequiredWithoutNotebooksNestedInput } export type NotebookUncheckedUpdateWithoutLabelsInput = { @@ -20470,205 +20529,6 @@ export namespace Prisma { data: XOR } - export type UserUpsertWithoutLabelsInput = { - update: XOR - create: XOR - where?: UserWhereInput - } - - export type UserUpdateToOneWithWhereWithoutLabelsInput = { - where?: UserWhereInput - data: XOR - } - - export type UserUpdateWithoutLabelsInput = { - id?: StringFieldUpdateOperationsInput | string - name?: NullableStringFieldUpdateOperationsInput | string | null - email?: StringFieldUpdateOperationsInput | string - emailVerified?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - password?: NullableStringFieldUpdateOperationsInput | string | null - role?: StringFieldUpdateOperationsInput | string - image?: NullableStringFieldUpdateOperationsInput | string | null - theme?: StringFieldUpdateOperationsInput | string - resetToken?: NullableStringFieldUpdateOperationsInput | string | null - resetTokenExpiry?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - accounts?: AccountUpdateManyWithoutUserNestedInput - sessions?: SessionUpdateManyWithoutUserNestedInput - notes?: NoteUpdateManyWithoutUserNestedInput - notebooks?: NotebookUpdateManyWithoutUserNestedInput - receivedShares?: NoteShareUpdateManyWithoutUserNestedInput - sentShares?: NoteShareUpdateManyWithoutSharerNestedInput - aiFeedback?: AiFeedbackUpdateManyWithoutUserNestedInput - aiSettings?: UserAISettingsUpdateOneWithoutUserNestedInput - memoryEchoInsights?: MemoryEchoInsightUpdateManyWithoutUserNestedInput - } - - export type UserUncheckedUpdateWithoutLabelsInput = { - id?: StringFieldUpdateOperationsInput | string - name?: NullableStringFieldUpdateOperationsInput | string | null - email?: StringFieldUpdateOperationsInput | string - emailVerified?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - password?: NullableStringFieldUpdateOperationsInput | string | null - role?: StringFieldUpdateOperationsInput | string - image?: NullableStringFieldUpdateOperationsInput | string | null - theme?: StringFieldUpdateOperationsInput | string - resetToken?: NullableStringFieldUpdateOperationsInput | string | null - resetTokenExpiry?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - accounts?: AccountUncheckedUpdateManyWithoutUserNestedInput - sessions?: SessionUncheckedUpdateManyWithoutUserNestedInput - notes?: NoteUncheckedUpdateManyWithoutUserNestedInput - notebooks?: NotebookUncheckedUpdateManyWithoutUserNestedInput - receivedShares?: NoteShareUncheckedUpdateManyWithoutUserNestedInput - sentShares?: NoteShareUncheckedUpdateManyWithoutSharerNestedInput - aiFeedback?: AiFeedbackUncheckedUpdateManyWithoutUserNestedInput - aiSettings?: UserAISettingsUncheckedUpdateOneWithoutUserNestedInput - memoryEchoInsights?: MemoryEchoInsightUncheckedUpdateManyWithoutUserNestedInput - } - - export type UserCreateWithoutNotesInput = { - id?: string - name?: string | null - email: string - emailVerified?: Date | string | null - password?: string | null - role?: string - image?: string | null - theme?: string - resetToken?: string | null - resetTokenExpiry?: Date | string | null - createdAt?: Date | string - updatedAt?: Date | string - accounts?: AccountCreateNestedManyWithoutUserInput - sessions?: SessionCreateNestedManyWithoutUserInput - labels?: LabelCreateNestedManyWithoutUserInput - notebooks?: NotebookCreateNestedManyWithoutUserInput - receivedShares?: NoteShareCreateNestedManyWithoutUserInput - sentShares?: NoteShareCreateNestedManyWithoutSharerInput - aiFeedback?: AiFeedbackCreateNestedManyWithoutUserInput - aiSettings?: UserAISettingsCreateNestedOneWithoutUserInput - memoryEchoInsights?: MemoryEchoInsightCreateNestedManyWithoutUserInput - } - - export type UserUncheckedCreateWithoutNotesInput = { - id?: string - name?: string | null - email: string - emailVerified?: Date | string | null - password?: string | null - role?: string - image?: string | null - theme?: string - resetToken?: string | null - resetTokenExpiry?: Date | string | null - createdAt?: Date | string - updatedAt?: Date | string - accounts?: AccountUncheckedCreateNestedManyWithoutUserInput - sessions?: SessionUncheckedCreateNestedManyWithoutUserInput - labels?: LabelUncheckedCreateNestedManyWithoutUserInput - notebooks?: NotebookUncheckedCreateNestedManyWithoutUserInput - receivedShares?: NoteShareUncheckedCreateNestedManyWithoutUserInput - sentShares?: NoteShareUncheckedCreateNestedManyWithoutSharerInput - aiFeedback?: AiFeedbackUncheckedCreateNestedManyWithoutUserInput - aiSettings?: UserAISettingsUncheckedCreateNestedOneWithoutUserInput - memoryEchoInsights?: MemoryEchoInsightUncheckedCreateNestedManyWithoutUserInput - } - - export type UserCreateOrConnectWithoutNotesInput = { - where: UserWhereUniqueInput - create: XOR - } - - export type NoteShareCreateWithoutNoteInput = { - id?: string - status?: string - permission?: string - notifiedAt?: Date | string | null - respondedAt?: Date | string | null - createdAt?: Date | string - updatedAt?: Date | string - user: UserCreateNestedOneWithoutReceivedSharesInput - sharer: UserCreateNestedOneWithoutSentSharesInput - } - - export type NoteShareUncheckedCreateWithoutNoteInput = { - id?: string - userId: string - sharedBy: string - status?: string - permission?: string - notifiedAt?: Date | string | null - respondedAt?: Date | string | null - createdAt?: Date | string - updatedAt?: Date | string - } - - export type NoteShareCreateOrConnectWithoutNoteInput = { - where: NoteShareWhereUniqueInput - create: XOR - } - - export type NoteShareCreateManyNoteInputEnvelope = { - data: NoteShareCreateManyNoteInput | NoteShareCreateManyNoteInput[] - } - - export type NotebookCreateWithoutNotesInput = { - id?: string - name: string - icon?: string | null - color?: string | null - order: number - createdAt?: Date | string - updatedAt?: Date | string - user: UserCreateNestedOneWithoutNotebooksInput - labels?: LabelCreateNestedManyWithoutNotebookInput - } - - export type NotebookUncheckedCreateWithoutNotesInput = { - id?: string - name: string - icon?: string | null - color?: string | null - order: number - userId: string - createdAt?: Date | string - updatedAt?: Date | string - labels?: LabelUncheckedCreateNestedManyWithoutNotebookInput - } - - export type NotebookCreateOrConnectWithoutNotesInput = { - where: NotebookWhereUniqueInput - create: XOR - } - - export type LabelCreateWithoutNotesInput = { - id?: string - name: string - color?: string - createdAt?: Date | string - updatedAt?: Date | string - notebook?: NotebookCreateNestedOneWithoutLabelsInput - user?: UserCreateNestedOneWithoutLabelsInput - } - - export type LabelUncheckedCreateWithoutNotesInput = { - id?: string - name: string - color?: string - notebookId?: string | null - userId?: string | null - createdAt?: Date | string - updatedAt?: Date | string - } - - export type LabelCreateOrConnectWithoutNotesInput = { - where: LabelWhereUniqueInput - create: XOR - } - export type AiFeedbackCreateWithoutNoteInput = { id?: string feedbackType: string @@ -20700,6 +20560,39 @@ export namespace Prisma { data: AiFeedbackCreateManyNoteInput | AiFeedbackCreateManyNoteInput[] } + export type MemoryEchoInsightCreateWithoutNote2Input = { + id?: string + similarityScore: number + insight: string + insightDate?: Date | string + viewed?: boolean + feedback?: string | null + dismissed?: boolean + user?: UserCreateNestedOneWithoutMemoryEchoInsightsInput + note1: NoteCreateNestedOneWithoutMemoryEchoAsNote1Input + } + + export type MemoryEchoInsightUncheckedCreateWithoutNote2Input = { + id?: string + userId?: string | null + note1Id: string + similarityScore: number + insight: string + insightDate?: Date | string + viewed?: boolean + feedback?: string | null + dismissed?: boolean + } + + export type MemoryEchoInsightCreateOrConnectWithoutNote2Input = { + where: MemoryEchoInsightWhereUniqueInput + create: XOR + } + + export type MemoryEchoInsightCreateManyNote2InputEnvelope = { + data: MemoryEchoInsightCreateManyNote2Input | MemoryEchoInsightCreateManyNote2Input[] + } + export type MemoryEchoInsightCreateWithoutNote1Input = { id?: string similarityScore: number @@ -20708,8 +20601,8 @@ export namespace Prisma { viewed?: boolean feedback?: string | null dismissed?: boolean - note2: NoteCreateNestedOneWithoutMemoryEchoAsNote2Input user?: UserCreateNestedOneWithoutMemoryEchoInsightsInput + note2: NoteCreateNestedOneWithoutMemoryEchoAsNote2Input } export type MemoryEchoInsightUncheckedCreateWithoutNote1Input = { @@ -20733,37 +20626,227 @@ export namespace Prisma { data: MemoryEchoInsightCreateManyNote1Input | MemoryEchoInsightCreateManyNote1Input[] } - export type MemoryEchoInsightCreateWithoutNote2Input = { + export type NotebookCreateWithoutNotesInput = { id?: string - similarityScore: number - insight: string - insightDate?: Date | string - viewed?: boolean - feedback?: string | null - dismissed?: boolean - note1: NoteCreateNestedOneWithoutMemoryEchoAsNote1Input - user?: UserCreateNestedOneWithoutMemoryEchoInsightsInput + name: string + icon?: string | null + color?: string | null + order: number + createdAt?: Date | string + updatedAt?: Date | string + labels?: LabelCreateNestedManyWithoutNotebookInput + user: UserCreateNestedOneWithoutNotebooksInput } - export type MemoryEchoInsightUncheckedCreateWithoutNote2Input = { + export type NotebookUncheckedCreateWithoutNotesInput = { id?: string + name: string + icon?: string | null + color?: string | null + order: number + userId: string + createdAt?: Date | string + updatedAt?: Date | string + labels?: LabelUncheckedCreateNestedManyWithoutNotebookInput + } + + export type NotebookCreateOrConnectWithoutNotesInput = { + where: NotebookWhereUniqueInput + create: XOR + } + + export type UserCreateWithoutNotesInput = { + id?: string + name?: string | null + email: string + emailVerified?: Date | string | null + password?: string | null + role?: string + image?: string | null + theme?: string + resetToken?: string | null + resetTokenExpiry?: Date | string | null + createdAt?: Date | string + updatedAt?: Date | string + accounts?: AccountCreateNestedManyWithoutUserInput + aiFeedback?: AiFeedbackCreateNestedManyWithoutUserInput + labels?: LabelCreateNestedManyWithoutUserInput + memoryEchoInsights?: MemoryEchoInsightCreateNestedManyWithoutUserInput + sentShares?: NoteShareCreateNestedManyWithoutSharerInput + receivedShares?: NoteShareCreateNestedManyWithoutUserInput + notebooks?: NotebookCreateNestedManyWithoutUserInput + sessions?: SessionCreateNestedManyWithoutUserInput + aiSettings?: UserAISettingsCreateNestedOneWithoutUserInput + } + + export type UserUncheckedCreateWithoutNotesInput = { + id?: string + name?: string | null + email: string + emailVerified?: Date | string | null + password?: string | null + role?: string + image?: string | null + theme?: string + resetToken?: string | null + resetTokenExpiry?: Date | string | null + createdAt?: Date | string + updatedAt?: Date | string + accounts?: AccountUncheckedCreateNestedManyWithoutUserInput + aiFeedback?: AiFeedbackUncheckedCreateNestedManyWithoutUserInput + labels?: LabelUncheckedCreateNestedManyWithoutUserInput + memoryEchoInsights?: MemoryEchoInsightUncheckedCreateNestedManyWithoutUserInput + sentShares?: NoteShareUncheckedCreateNestedManyWithoutSharerInput + receivedShares?: NoteShareUncheckedCreateNestedManyWithoutUserInput + notebooks?: NotebookUncheckedCreateNestedManyWithoutUserInput + sessions?: SessionUncheckedCreateNestedManyWithoutUserInput + aiSettings?: UserAISettingsUncheckedCreateNestedOneWithoutUserInput + } + + export type UserCreateOrConnectWithoutNotesInput = { + where: UserWhereUniqueInput + create: XOR + } + + export type NoteShareCreateWithoutNoteInput = { + id?: string + status?: string + permission?: string + notifiedAt?: Date | string | null + respondedAt?: Date | string | null + createdAt?: Date | string + updatedAt?: Date | string + sharer: UserCreateNestedOneWithoutSentSharesInput + user: UserCreateNestedOneWithoutReceivedSharesInput + } + + export type NoteShareUncheckedCreateWithoutNoteInput = { + id?: string + userId: string + sharedBy: string + status?: string + permission?: string + notifiedAt?: Date | string | null + respondedAt?: Date | string | null + createdAt?: Date | string + updatedAt?: Date | string + } + + export type NoteShareCreateOrConnectWithoutNoteInput = { + where: NoteShareWhereUniqueInput + create: XOR + } + + export type NoteShareCreateManyNoteInputEnvelope = { + data: NoteShareCreateManyNoteInput | NoteShareCreateManyNoteInput[] + } + + export type LabelCreateWithoutNotesInput = { + id?: string + name: string + color?: string + createdAt?: Date | string + updatedAt?: Date | string + user?: UserCreateNestedOneWithoutLabelsInput + notebook?: NotebookCreateNestedOneWithoutLabelsInput + } + + export type LabelUncheckedCreateWithoutNotesInput = { + id?: string + name: string + color?: string + notebookId?: string | null userId?: string | null - note1Id: string - similarityScore: number - insight: string - insightDate?: Date | string - viewed?: boolean - feedback?: string | null - dismissed?: boolean + createdAt?: Date | string + updatedAt?: Date | string } - export type MemoryEchoInsightCreateOrConnectWithoutNote2Input = { + export type LabelCreateOrConnectWithoutNotesInput = { + where: LabelWhereUniqueInput + create: XOR + } + + export type AiFeedbackUpsertWithWhereUniqueWithoutNoteInput = { + where: AiFeedbackWhereUniqueInput + update: XOR + create: XOR + } + + export type AiFeedbackUpdateWithWhereUniqueWithoutNoteInput = { + where: AiFeedbackWhereUniqueInput + data: XOR + } + + export type AiFeedbackUpdateManyWithWhereWithoutNoteInput = { + where: AiFeedbackScalarWhereInput + data: XOR + } + + export type MemoryEchoInsightUpsertWithWhereUniqueWithoutNote2Input = { where: MemoryEchoInsightWhereUniqueInput + update: XOR create: XOR } - export type MemoryEchoInsightCreateManyNote2InputEnvelope = { - data: MemoryEchoInsightCreateManyNote2Input | MemoryEchoInsightCreateManyNote2Input[] + export type MemoryEchoInsightUpdateWithWhereUniqueWithoutNote2Input = { + where: MemoryEchoInsightWhereUniqueInput + data: XOR + } + + export type MemoryEchoInsightUpdateManyWithWhereWithoutNote2Input = { + where: MemoryEchoInsightScalarWhereInput + data: XOR + } + + export type MemoryEchoInsightUpsertWithWhereUniqueWithoutNote1Input = { + where: MemoryEchoInsightWhereUniqueInput + update: XOR + create: XOR + } + + export type MemoryEchoInsightUpdateWithWhereUniqueWithoutNote1Input = { + where: MemoryEchoInsightWhereUniqueInput + data: XOR + } + + export type MemoryEchoInsightUpdateManyWithWhereWithoutNote1Input = { + where: MemoryEchoInsightScalarWhereInput + data: XOR + } + + export type NotebookUpsertWithoutNotesInput = { + update: XOR + create: XOR + where?: NotebookWhereInput + } + + export type NotebookUpdateToOneWithWhereWithoutNotesInput = { + where?: NotebookWhereInput + data: XOR + } + + export type NotebookUpdateWithoutNotesInput = { + id?: StringFieldUpdateOperationsInput | string + name?: StringFieldUpdateOperationsInput | string + icon?: NullableStringFieldUpdateOperationsInput | string | null + color?: NullableStringFieldUpdateOperationsInput | string | null + order?: IntFieldUpdateOperationsInput | number + createdAt?: DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string + labels?: LabelUpdateManyWithoutNotebookNestedInput + user?: UserUpdateOneRequiredWithoutNotebooksNestedInput + } + + export type NotebookUncheckedUpdateWithoutNotesInput = { + id?: StringFieldUpdateOperationsInput | string + name?: StringFieldUpdateOperationsInput | string + icon?: NullableStringFieldUpdateOperationsInput | string | null + color?: NullableStringFieldUpdateOperationsInput | string | null + order?: IntFieldUpdateOperationsInput | number + userId?: StringFieldUpdateOperationsInput | string + createdAt?: DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string + labels?: LabelUncheckedUpdateManyWithoutNotebookNestedInput } export type UserUpsertWithoutNotesInput = { @@ -20791,14 +20874,14 @@ export namespace Prisma { createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string accounts?: AccountUpdateManyWithoutUserNestedInput - sessions?: SessionUpdateManyWithoutUserNestedInput - labels?: LabelUpdateManyWithoutUserNestedInput - notebooks?: NotebookUpdateManyWithoutUserNestedInput - receivedShares?: NoteShareUpdateManyWithoutUserNestedInput - sentShares?: NoteShareUpdateManyWithoutSharerNestedInput aiFeedback?: AiFeedbackUpdateManyWithoutUserNestedInput - aiSettings?: UserAISettingsUpdateOneWithoutUserNestedInput + labels?: LabelUpdateManyWithoutUserNestedInput memoryEchoInsights?: MemoryEchoInsightUpdateManyWithoutUserNestedInput + sentShares?: NoteShareUpdateManyWithoutSharerNestedInput + receivedShares?: NoteShareUpdateManyWithoutUserNestedInput + notebooks?: NotebookUpdateManyWithoutUserNestedInput + sessions?: SessionUpdateManyWithoutUserNestedInput + aiSettings?: UserAISettingsUpdateOneWithoutUserNestedInput } export type UserUncheckedUpdateWithoutNotesInput = { @@ -20815,14 +20898,14 @@ export namespace Prisma { createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string accounts?: AccountUncheckedUpdateManyWithoutUserNestedInput - sessions?: SessionUncheckedUpdateManyWithoutUserNestedInput - labels?: LabelUncheckedUpdateManyWithoutUserNestedInput - notebooks?: NotebookUncheckedUpdateManyWithoutUserNestedInput - receivedShares?: NoteShareUncheckedUpdateManyWithoutUserNestedInput - sentShares?: NoteShareUncheckedUpdateManyWithoutSharerNestedInput aiFeedback?: AiFeedbackUncheckedUpdateManyWithoutUserNestedInput - aiSettings?: UserAISettingsUncheckedUpdateOneWithoutUserNestedInput + labels?: LabelUncheckedUpdateManyWithoutUserNestedInput memoryEchoInsights?: MemoryEchoInsightUncheckedUpdateManyWithoutUserNestedInput + sentShares?: NoteShareUncheckedUpdateManyWithoutSharerNestedInput + receivedShares?: NoteShareUncheckedUpdateManyWithoutUserNestedInput + notebooks?: NotebookUncheckedUpdateManyWithoutUserNestedInput + sessions?: SessionUncheckedUpdateManyWithoutUserNestedInput + aiSettings?: UserAISettingsUncheckedUpdateOneWithoutUserNestedInput } export type NoteShareUpsertWithWhereUniqueWithoutNoteInput = { @@ -20841,41 +20924,6 @@ export namespace Prisma { data: XOR } - export type NotebookUpsertWithoutNotesInput = { - update: XOR - create: XOR - where?: NotebookWhereInput - } - - export type NotebookUpdateToOneWithWhereWithoutNotesInput = { - where?: NotebookWhereInput - data: XOR - } - - export type NotebookUpdateWithoutNotesInput = { - id?: StringFieldUpdateOperationsInput | string - name?: StringFieldUpdateOperationsInput | string - icon?: NullableStringFieldUpdateOperationsInput | string | null - color?: NullableStringFieldUpdateOperationsInput | string | null - order?: IntFieldUpdateOperationsInput | number - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - user?: UserUpdateOneRequiredWithoutNotebooksNestedInput - labels?: LabelUpdateManyWithoutNotebookNestedInput - } - - export type NotebookUncheckedUpdateWithoutNotesInput = { - id?: StringFieldUpdateOperationsInput | string - name?: StringFieldUpdateOperationsInput | string - icon?: NullableStringFieldUpdateOperationsInput | string | null - color?: NullableStringFieldUpdateOperationsInput | string | null - order?: IntFieldUpdateOperationsInput | number - userId?: StringFieldUpdateOperationsInput | string - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - labels?: LabelUncheckedUpdateManyWithoutNotebookNestedInput - } - export type LabelUpsertWithWhereUniqueWithoutNotesInput = { where: LabelWhereUniqueInput update: XOR @@ -20892,52 +20940,110 @@ export namespace Prisma { data: XOR } - export type AiFeedbackUpsertWithWhereUniqueWithoutNoteInput = { - where: AiFeedbackWhereUniqueInput - update: XOR - create: XOR + export type UserCreateWithoutSentSharesInput = { + id?: string + name?: string | null + email: string + emailVerified?: Date | string | null + password?: string | null + role?: string + image?: string | null + theme?: string + resetToken?: string | null + resetTokenExpiry?: Date | string | null + createdAt?: Date | string + updatedAt?: Date | string + accounts?: AccountCreateNestedManyWithoutUserInput + aiFeedback?: AiFeedbackCreateNestedManyWithoutUserInput + labels?: LabelCreateNestedManyWithoutUserInput + memoryEchoInsights?: MemoryEchoInsightCreateNestedManyWithoutUserInput + notes?: NoteCreateNestedManyWithoutUserInput + receivedShares?: NoteShareCreateNestedManyWithoutUserInput + notebooks?: NotebookCreateNestedManyWithoutUserInput + sessions?: SessionCreateNestedManyWithoutUserInput + aiSettings?: UserAISettingsCreateNestedOneWithoutUserInput } - export type AiFeedbackUpdateWithWhereUniqueWithoutNoteInput = { - where: AiFeedbackWhereUniqueInput - data: XOR + export type UserUncheckedCreateWithoutSentSharesInput = { + id?: string + name?: string | null + email: string + emailVerified?: Date | string | null + password?: string | null + role?: string + image?: string | null + theme?: string + resetToken?: string | null + resetTokenExpiry?: Date | string | null + createdAt?: Date | string + updatedAt?: Date | string + accounts?: AccountUncheckedCreateNestedManyWithoutUserInput + aiFeedback?: AiFeedbackUncheckedCreateNestedManyWithoutUserInput + labels?: LabelUncheckedCreateNestedManyWithoutUserInput + memoryEchoInsights?: MemoryEchoInsightUncheckedCreateNestedManyWithoutUserInput + notes?: NoteUncheckedCreateNestedManyWithoutUserInput + receivedShares?: NoteShareUncheckedCreateNestedManyWithoutUserInput + notebooks?: NotebookUncheckedCreateNestedManyWithoutUserInput + sessions?: SessionUncheckedCreateNestedManyWithoutUserInput + aiSettings?: UserAISettingsUncheckedCreateNestedOneWithoutUserInput } - export type AiFeedbackUpdateManyWithWhereWithoutNoteInput = { - where: AiFeedbackScalarWhereInput - data: XOR + export type UserCreateOrConnectWithoutSentSharesInput = { + where: UserWhereUniqueInput + create: XOR } - export type MemoryEchoInsightUpsertWithWhereUniqueWithoutNote1Input = { - where: MemoryEchoInsightWhereUniqueInput - update: XOR - create: XOR + export type UserCreateWithoutReceivedSharesInput = { + id?: string + name?: string | null + email: string + emailVerified?: Date | string | null + password?: string | null + role?: string + image?: string | null + theme?: string + resetToken?: string | null + resetTokenExpiry?: Date | string | null + createdAt?: Date | string + updatedAt?: Date | string + accounts?: AccountCreateNestedManyWithoutUserInput + aiFeedback?: AiFeedbackCreateNestedManyWithoutUserInput + labels?: LabelCreateNestedManyWithoutUserInput + memoryEchoInsights?: MemoryEchoInsightCreateNestedManyWithoutUserInput + notes?: NoteCreateNestedManyWithoutUserInput + sentShares?: NoteShareCreateNestedManyWithoutSharerInput + notebooks?: NotebookCreateNestedManyWithoutUserInput + sessions?: SessionCreateNestedManyWithoutUserInput + aiSettings?: UserAISettingsCreateNestedOneWithoutUserInput } - export type MemoryEchoInsightUpdateWithWhereUniqueWithoutNote1Input = { - where: MemoryEchoInsightWhereUniqueInput - data: XOR + export type UserUncheckedCreateWithoutReceivedSharesInput = { + id?: string + name?: string | null + email: string + emailVerified?: Date | string | null + password?: string | null + role?: string + image?: string | null + theme?: string + resetToken?: string | null + resetTokenExpiry?: Date | string | null + createdAt?: Date | string + updatedAt?: Date | string + accounts?: AccountUncheckedCreateNestedManyWithoutUserInput + aiFeedback?: AiFeedbackUncheckedCreateNestedManyWithoutUserInput + labels?: LabelUncheckedCreateNestedManyWithoutUserInput + memoryEchoInsights?: MemoryEchoInsightUncheckedCreateNestedManyWithoutUserInput + notes?: NoteUncheckedCreateNestedManyWithoutUserInput + sentShares?: NoteShareUncheckedCreateNestedManyWithoutSharerInput + notebooks?: NotebookUncheckedCreateNestedManyWithoutUserInput + sessions?: SessionUncheckedCreateNestedManyWithoutUserInput + aiSettings?: UserAISettingsUncheckedCreateNestedOneWithoutUserInput } - export type MemoryEchoInsightUpdateManyWithWhereWithoutNote1Input = { - where: MemoryEchoInsightScalarWhereInput - data: XOR - } - - export type MemoryEchoInsightUpsertWithWhereUniqueWithoutNote2Input = { - where: MemoryEchoInsightWhereUniqueInput - update: XOR - create: XOR - } - - export type MemoryEchoInsightUpdateWithWhereUniqueWithoutNote2Input = { - where: MemoryEchoInsightWhereUniqueInput - data: XOR - } - - export type MemoryEchoInsightUpdateManyWithWhereWithoutNote2Input = { - where: MemoryEchoInsightScalarWhereInput - data: XOR + export type UserCreateOrConnectWithoutReceivedSharesInput = { + where: UserWhereUniqueInput + create: XOR } export type NoteCreateWithoutSharesInput = { @@ -20969,12 +21075,12 @@ export namespace Prisma { language?: string | null languageConfidence?: number | null lastAiAnalysis?: Date | string | null - user?: UserCreateNestedOneWithoutNotesInput - notebook?: NotebookCreateNestedOneWithoutNotesInput - labelRelations?: LabelCreateNestedManyWithoutNotesInput aiFeedback?: AiFeedbackCreateNestedManyWithoutNoteInput - memoryEchoAsNote1?: MemoryEchoInsightCreateNestedManyWithoutNote1Input memoryEchoAsNote2?: MemoryEchoInsightCreateNestedManyWithoutNote2Input + memoryEchoAsNote1?: MemoryEchoInsightCreateNestedManyWithoutNote1Input + notebook?: NotebookCreateNestedOneWithoutNotesInput + user?: UserCreateNestedOneWithoutNotesInput + labelRelations?: LabelCreateNestedManyWithoutNotesInput } export type NoteUncheckedCreateWithoutSharesInput = { @@ -21008,10 +21114,10 @@ export namespace Prisma { language?: string | null languageConfidence?: number | null lastAiAnalysis?: Date | string | null - labelRelations?: LabelUncheckedCreateNestedManyWithoutNotesInput aiFeedback?: AiFeedbackUncheckedCreateNestedManyWithoutNoteInput - memoryEchoAsNote1?: MemoryEchoInsightUncheckedCreateNestedManyWithoutNote1Input memoryEchoAsNote2?: MemoryEchoInsightUncheckedCreateNestedManyWithoutNote2Input + memoryEchoAsNote1?: MemoryEchoInsightUncheckedCreateNestedManyWithoutNote1Input + labelRelations?: LabelUncheckedCreateNestedManyWithoutNotesInput } export type NoteCreateOrConnectWithoutSharesInput = { @@ -21019,110 +21125,122 @@ export namespace Prisma { create: XOR } - export type UserCreateWithoutReceivedSharesInput = { - id?: string - name?: string | null - email: string - emailVerified?: Date | string | null - password?: string | null - role?: string - image?: string | null - theme?: string - resetToken?: string | null - resetTokenExpiry?: Date | string | null - createdAt?: Date | string - updatedAt?: Date | string - accounts?: AccountCreateNestedManyWithoutUserInput - sessions?: SessionCreateNestedManyWithoutUserInput - notes?: NoteCreateNestedManyWithoutUserInput - labels?: LabelCreateNestedManyWithoutUserInput - notebooks?: NotebookCreateNestedManyWithoutUserInput - sentShares?: NoteShareCreateNestedManyWithoutSharerInput - aiFeedback?: AiFeedbackCreateNestedManyWithoutUserInput - aiSettings?: UserAISettingsCreateNestedOneWithoutUserInput - memoryEchoInsights?: MemoryEchoInsightCreateNestedManyWithoutUserInput - } - - export type UserUncheckedCreateWithoutReceivedSharesInput = { - id?: string - name?: string | null - email: string - emailVerified?: Date | string | null - password?: string | null - role?: string - image?: string | null - theme?: string - resetToken?: string | null - resetTokenExpiry?: Date | string | null - createdAt?: Date | string - updatedAt?: Date | string - accounts?: AccountUncheckedCreateNestedManyWithoutUserInput - sessions?: SessionUncheckedCreateNestedManyWithoutUserInput - notes?: NoteUncheckedCreateNestedManyWithoutUserInput - labels?: LabelUncheckedCreateNestedManyWithoutUserInput - notebooks?: NotebookUncheckedCreateNestedManyWithoutUserInput - sentShares?: NoteShareUncheckedCreateNestedManyWithoutSharerInput - aiFeedback?: AiFeedbackUncheckedCreateNestedManyWithoutUserInput - aiSettings?: UserAISettingsUncheckedCreateNestedOneWithoutUserInput - memoryEchoInsights?: MemoryEchoInsightUncheckedCreateNestedManyWithoutUserInput - } - - export type UserCreateOrConnectWithoutReceivedSharesInput = { - where: UserWhereUniqueInput - create: XOR - } - - export type UserCreateWithoutSentSharesInput = { - id?: string - name?: string | null - email: string - emailVerified?: Date | string | null - password?: string | null - role?: string - image?: string | null - theme?: string - resetToken?: string | null - resetTokenExpiry?: Date | string | null - createdAt?: Date | string - updatedAt?: Date | string - accounts?: AccountCreateNestedManyWithoutUserInput - sessions?: SessionCreateNestedManyWithoutUserInput - notes?: NoteCreateNestedManyWithoutUserInput - labels?: LabelCreateNestedManyWithoutUserInput - notebooks?: NotebookCreateNestedManyWithoutUserInput - receivedShares?: NoteShareCreateNestedManyWithoutUserInput - aiFeedback?: AiFeedbackCreateNestedManyWithoutUserInput - aiSettings?: UserAISettingsCreateNestedOneWithoutUserInput - memoryEchoInsights?: MemoryEchoInsightCreateNestedManyWithoutUserInput - } - - export type UserUncheckedCreateWithoutSentSharesInput = { - id?: string - name?: string | null - email: string - emailVerified?: Date | string | null - password?: string | null - role?: string - image?: string | null - theme?: string - resetToken?: string | null - resetTokenExpiry?: Date | string | null - createdAt?: Date | string - updatedAt?: Date | string - accounts?: AccountUncheckedCreateNestedManyWithoutUserInput - sessions?: SessionUncheckedCreateNestedManyWithoutUserInput - notes?: NoteUncheckedCreateNestedManyWithoutUserInput - labels?: LabelUncheckedCreateNestedManyWithoutUserInput - notebooks?: NotebookUncheckedCreateNestedManyWithoutUserInput - receivedShares?: NoteShareUncheckedCreateNestedManyWithoutUserInput - aiFeedback?: AiFeedbackUncheckedCreateNestedManyWithoutUserInput - aiSettings?: UserAISettingsUncheckedCreateNestedOneWithoutUserInput - memoryEchoInsights?: MemoryEchoInsightUncheckedCreateNestedManyWithoutUserInput - } - - export type UserCreateOrConnectWithoutSentSharesInput = { - where: UserWhereUniqueInput + export type UserUpsertWithoutSentSharesInput = { + update: XOR create: XOR + where?: UserWhereInput + } + + export type UserUpdateToOneWithWhereWithoutSentSharesInput = { + where?: UserWhereInput + data: XOR + } + + export type UserUpdateWithoutSentSharesInput = { + id?: StringFieldUpdateOperationsInput | string + name?: NullableStringFieldUpdateOperationsInput | string | null + email?: StringFieldUpdateOperationsInput | string + emailVerified?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null + password?: NullableStringFieldUpdateOperationsInput | string | null + role?: StringFieldUpdateOperationsInput | string + image?: NullableStringFieldUpdateOperationsInput | string | null + theme?: StringFieldUpdateOperationsInput | string + resetToken?: NullableStringFieldUpdateOperationsInput | string | null + resetTokenExpiry?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null + createdAt?: DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string + accounts?: AccountUpdateManyWithoutUserNestedInput + aiFeedback?: AiFeedbackUpdateManyWithoutUserNestedInput + labels?: LabelUpdateManyWithoutUserNestedInput + memoryEchoInsights?: MemoryEchoInsightUpdateManyWithoutUserNestedInput + notes?: NoteUpdateManyWithoutUserNestedInput + receivedShares?: NoteShareUpdateManyWithoutUserNestedInput + notebooks?: NotebookUpdateManyWithoutUserNestedInput + sessions?: SessionUpdateManyWithoutUserNestedInput + aiSettings?: UserAISettingsUpdateOneWithoutUserNestedInput + } + + export type UserUncheckedUpdateWithoutSentSharesInput = { + id?: StringFieldUpdateOperationsInput | string + name?: NullableStringFieldUpdateOperationsInput | string | null + email?: StringFieldUpdateOperationsInput | string + emailVerified?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null + password?: NullableStringFieldUpdateOperationsInput | string | null + role?: StringFieldUpdateOperationsInput | string + image?: NullableStringFieldUpdateOperationsInput | string | null + theme?: StringFieldUpdateOperationsInput | string + resetToken?: NullableStringFieldUpdateOperationsInput | string | null + resetTokenExpiry?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null + createdAt?: DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string + accounts?: AccountUncheckedUpdateManyWithoutUserNestedInput + aiFeedback?: AiFeedbackUncheckedUpdateManyWithoutUserNestedInput + labels?: LabelUncheckedUpdateManyWithoutUserNestedInput + memoryEchoInsights?: MemoryEchoInsightUncheckedUpdateManyWithoutUserNestedInput + notes?: NoteUncheckedUpdateManyWithoutUserNestedInput + receivedShares?: NoteShareUncheckedUpdateManyWithoutUserNestedInput + notebooks?: NotebookUncheckedUpdateManyWithoutUserNestedInput + sessions?: SessionUncheckedUpdateManyWithoutUserNestedInput + aiSettings?: UserAISettingsUncheckedUpdateOneWithoutUserNestedInput + } + + export type UserUpsertWithoutReceivedSharesInput = { + update: XOR + create: XOR + where?: UserWhereInput + } + + export type UserUpdateToOneWithWhereWithoutReceivedSharesInput = { + where?: UserWhereInput + data: XOR + } + + export type UserUpdateWithoutReceivedSharesInput = { + id?: StringFieldUpdateOperationsInput | string + name?: NullableStringFieldUpdateOperationsInput | string | null + email?: StringFieldUpdateOperationsInput | string + emailVerified?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null + password?: NullableStringFieldUpdateOperationsInput | string | null + role?: StringFieldUpdateOperationsInput | string + image?: NullableStringFieldUpdateOperationsInput | string | null + theme?: StringFieldUpdateOperationsInput | string + resetToken?: NullableStringFieldUpdateOperationsInput | string | null + resetTokenExpiry?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null + createdAt?: DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string + accounts?: AccountUpdateManyWithoutUserNestedInput + aiFeedback?: AiFeedbackUpdateManyWithoutUserNestedInput + labels?: LabelUpdateManyWithoutUserNestedInput + memoryEchoInsights?: MemoryEchoInsightUpdateManyWithoutUserNestedInput + notes?: NoteUpdateManyWithoutUserNestedInput + sentShares?: NoteShareUpdateManyWithoutSharerNestedInput + notebooks?: NotebookUpdateManyWithoutUserNestedInput + sessions?: SessionUpdateManyWithoutUserNestedInput + aiSettings?: UserAISettingsUpdateOneWithoutUserNestedInput + } + + export type UserUncheckedUpdateWithoutReceivedSharesInput = { + id?: StringFieldUpdateOperationsInput | string + name?: NullableStringFieldUpdateOperationsInput | string | null + email?: StringFieldUpdateOperationsInput | string + emailVerified?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null + password?: NullableStringFieldUpdateOperationsInput | string | null + role?: StringFieldUpdateOperationsInput | string + image?: NullableStringFieldUpdateOperationsInput | string | null + theme?: StringFieldUpdateOperationsInput | string + resetToken?: NullableStringFieldUpdateOperationsInput | string | null + resetTokenExpiry?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null + createdAt?: DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string + accounts?: AccountUncheckedUpdateManyWithoutUserNestedInput + aiFeedback?: AiFeedbackUncheckedUpdateManyWithoutUserNestedInput + labels?: LabelUncheckedUpdateManyWithoutUserNestedInput + memoryEchoInsights?: MemoryEchoInsightUncheckedUpdateManyWithoutUserNestedInput + notes?: NoteUncheckedUpdateManyWithoutUserNestedInput + sentShares?: NoteShareUncheckedUpdateManyWithoutSharerNestedInput + notebooks?: NotebookUncheckedUpdateManyWithoutUserNestedInput + sessions?: SessionUncheckedUpdateManyWithoutUserNestedInput + aiSettings?: UserAISettingsUncheckedUpdateOneWithoutUserNestedInput } export type NoteUpsertWithoutSharesInput = { @@ -21165,12 +21283,12 @@ export namespace Prisma { language?: NullableStringFieldUpdateOperationsInput | string | null languageConfidence?: NullableFloatFieldUpdateOperationsInput | number | null lastAiAnalysis?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - user?: UserUpdateOneWithoutNotesNestedInput - notebook?: NotebookUpdateOneWithoutNotesNestedInput - labelRelations?: LabelUpdateManyWithoutNotesNestedInput aiFeedback?: AiFeedbackUpdateManyWithoutNoteNestedInput - memoryEchoAsNote1?: MemoryEchoInsightUpdateManyWithoutNote1NestedInput memoryEchoAsNote2?: MemoryEchoInsightUpdateManyWithoutNote2NestedInput + memoryEchoAsNote1?: MemoryEchoInsightUpdateManyWithoutNote1NestedInput + notebook?: NotebookUpdateOneWithoutNotesNestedInput + user?: UserUpdateOneWithoutNotesNestedInput + labelRelations?: LabelUpdateManyWithoutNotesNestedInput } export type NoteUncheckedUpdateWithoutSharesInput = { @@ -21204,128 +21322,63 @@ export namespace Prisma { language?: NullableStringFieldUpdateOperationsInput | string | null languageConfidence?: NullableFloatFieldUpdateOperationsInput | number | null lastAiAnalysis?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - labelRelations?: LabelUncheckedUpdateManyWithoutNotesNestedInput aiFeedback?: AiFeedbackUncheckedUpdateManyWithoutNoteNestedInput - memoryEchoAsNote1?: MemoryEchoInsightUncheckedUpdateManyWithoutNote1NestedInput memoryEchoAsNote2?: MemoryEchoInsightUncheckedUpdateManyWithoutNote2NestedInput + memoryEchoAsNote1?: MemoryEchoInsightUncheckedUpdateManyWithoutNote1NestedInput + labelRelations?: LabelUncheckedUpdateManyWithoutNotesNestedInput } - export type UserUpsertWithoutReceivedSharesInput = { - update: XOR - create: XOR - where?: UserWhereInput + export type UserCreateWithoutAiFeedbackInput = { + id?: string + name?: string | null + email: string + emailVerified?: Date | string | null + password?: string | null + role?: string + image?: string | null + theme?: string + resetToken?: string | null + resetTokenExpiry?: Date | string | null + createdAt?: Date | string + updatedAt?: Date | string + accounts?: AccountCreateNestedManyWithoutUserInput + labels?: LabelCreateNestedManyWithoutUserInput + memoryEchoInsights?: MemoryEchoInsightCreateNestedManyWithoutUserInput + notes?: NoteCreateNestedManyWithoutUserInput + sentShares?: NoteShareCreateNestedManyWithoutSharerInput + receivedShares?: NoteShareCreateNestedManyWithoutUserInput + notebooks?: NotebookCreateNestedManyWithoutUserInput + sessions?: SessionCreateNestedManyWithoutUserInput + aiSettings?: UserAISettingsCreateNestedOneWithoutUserInput } - export type UserUpdateToOneWithWhereWithoutReceivedSharesInput = { - where?: UserWhereInput - data: XOR + export type UserUncheckedCreateWithoutAiFeedbackInput = { + id?: string + name?: string | null + email: string + emailVerified?: Date | string | null + password?: string | null + role?: string + image?: string | null + theme?: string + resetToken?: string | null + resetTokenExpiry?: Date | string | null + createdAt?: Date | string + updatedAt?: Date | string + accounts?: AccountUncheckedCreateNestedManyWithoutUserInput + labels?: LabelUncheckedCreateNestedManyWithoutUserInput + memoryEchoInsights?: MemoryEchoInsightUncheckedCreateNestedManyWithoutUserInput + notes?: NoteUncheckedCreateNestedManyWithoutUserInput + sentShares?: NoteShareUncheckedCreateNestedManyWithoutSharerInput + receivedShares?: NoteShareUncheckedCreateNestedManyWithoutUserInput + notebooks?: NotebookUncheckedCreateNestedManyWithoutUserInput + sessions?: SessionUncheckedCreateNestedManyWithoutUserInput + aiSettings?: UserAISettingsUncheckedCreateNestedOneWithoutUserInput } - export type UserUpdateWithoutReceivedSharesInput = { - id?: StringFieldUpdateOperationsInput | string - name?: NullableStringFieldUpdateOperationsInput | string | null - email?: StringFieldUpdateOperationsInput | string - emailVerified?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - password?: NullableStringFieldUpdateOperationsInput | string | null - role?: StringFieldUpdateOperationsInput | string - image?: NullableStringFieldUpdateOperationsInput | string | null - theme?: StringFieldUpdateOperationsInput | string - resetToken?: NullableStringFieldUpdateOperationsInput | string | null - resetTokenExpiry?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - accounts?: AccountUpdateManyWithoutUserNestedInput - sessions?: SessionUpdateManyWithoutUserNestedInput - notes?: NoteUpdateManyWithoutUserNestedInput - labels?: LabelUpdateManyWithoutUserNestedInput - notebooks?: NotebookUpdateManyWithoutUserNestedInput - sentShares?: NoteShareUpdateManyWithoutSharerNestedInput - aiFeedback?: AiFeedbackUpdateManyWithoutUserNestedInput - aiSettings?: UserAISettingsUpdateOneWithoutUserNestedInput - memoryEchoInsights?: MemoryEchoInsightUpdateManyWithoutUserNestedInput - } - - export type UserUncheckedUpdateWithoutReceivedSharesInput = { - id?: StringFieldUpdateOperationsInput | string - name?: NullableStringFieldUpdateOperationsInput | string | null - email?: StringFieldUpdateOperationsInput | string - emailVerified?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - password?: NullableStringFieldUpdateOperationsInput | string | null - role?: StringFieldUpdateOperationsInput | string - image?: NullableStringFieldUpdateOperationsInput | string | null - theme?: StringFieldUpdateOperationsInput | string - resetToken?: NullableStringFieldUpdateOperationsInput | string | null - resetTokenExpiry?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - accounts?: AccountUncheckedUpdateManyWithoutUserNestedInput - sessions?: SessionUncheckedUpdateManyWithoutUserNestedInput - notes?: NoteUncheckedUpdateManyWithoutUserNestedInput - labels?: LabelUncheckedUpdateManyWithoutUserNestedInput - notebooks?: NotebookUncheckedUpdateManyWithoutUserNestedInput - sentShares?: NoteShareUncheckedUpdateManyWithoutSharerNestedInput - aiFeedback?: AiFeedbackUncheckedUpdateManyWithoutUserNestedInput - aiSettings?: UserAISettingsUncheckedUpdateOneWithoutUserNestedInput - memoryEchoInsights?: MemoryEchoInsightUncheckedUpdateManyWithoutUserNestedInput - } - - export type UserUpsertWithoutSentSharesInput = { - update: XOR - create: XOR - where?: UserWhereInput - } - - export type UserUpdateToOneWithWhereWithoutSentSharesInput = { - where?: UserWhereInput - data: XOR - } - - export type UserUpdateWithoutSentSharesInput = { - id?: StringFieldUpdateOperationsInput | string - name?: NullableStringFieldUpdateOperationsInput | string | null - email?: StringFieldUpdateOperationsInput | string - emailVerified?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - password?: NullableStringFieldUpdateOperationsInput | string | null - role?: StringFieldUpdateOperationsInput | string - image?: NullableStringFieldUpdateOperationsInput | string | null - theme?: StringFieldUpdateOperationsInput | string - resetToken?: NullableStringFieldUpdateOperationsInput | string | null - resetTokenExpiry?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - accounts?: AccountUpdateManyWithoutUserNestedInput - sessions?: SessionUpdateManyWithoutUserNestedInput - notes?: NoteUpdateManyWithoutUserNestedInput - labels?: LabelUpdateManyWithoutUserNestedInput - notebooks?: NotebookUpdateManyWithoutUserNestedInput - receivedShares?: NoteShareUpdateManyWithoutUserNestedInput - aiFeedback?: AiFeedbackUpdateManyWithoutUserNestedInput - aiSettings?: UserAISettingsUpdateOneWithoutUserNestedInput - memoryEchoInsights?: MemoryEchoInsightUpdateManyWithoutUserNestedInput - } - - export type UserUncheckedUpdateWithoutSentSharesInput = { - id?: StringFieldUpdateOperationsInput | string - name?: NullableStringFieldUpdateOperationsInput | string | null - email?: StringFieldUpdateOperationsInput | string - emailVerified?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - password?: NullableStringFieldUpdateOperationsInput | string | null - role?: StringFieldUpdateOperationsInput | string - image?: NullableStringFieldUpdateOperationsInput | string | null - theme?: StringFieldUpdateOperationsInput | string - resetToken?: NullableStringFieldUpdateOperationsInput | string | null - resetTokenExpiry?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - accounts?: AccountUncheckedUpdateManyWithoutUserNestedInput - sessions?: SessionUncheckedUpdateManyWithoutUserNestedInput - notes?: NoteUncheckedUpdateManyWithoutUserNestedInput - labels?: LabelUncheckedUpdateManyWithoutUserNestedInput - notebooks?: NotebookUncheckedUpdateManyWithoutUserNestedInput - receivedShares?: NoteShareUncheckedUpdateManyWithoutUserNestedInput - aiFeedback?: AiFeedbackUncheckedUpdateManyWithoutUserNestedInput - aiSettings?: UserAISettingsUncheckedUpdateOneWithoutUserNestedInput - memoryEchoInsights?: MemoryEchoInsightUncheckedUpdateManyWithoutUserNestedInput + export type UserCreateOrConnectWithoutAiFeedbackInput = { + where: UserWhereUniqueInput + create: XOR } export type NoteCreateWithoutAiFeedbackInput = { @@ -21357,12 +21410,12 @@ export namespace Prisma { language?: string | null languageConfidence?: number | null lastAiAnalysis?: Date | string | null + memoryEchoAsNote2?: MemoryEchoInsightCreateNestedManyWithoutNote2Input + memoryEchoAsNote1?: MemoryEchoInsightCreateNestedManyWithoutNote1Input + notebook?: NotebookCreateNestedOneWithoutNotesInput user?: UserCreateNestedOneWithoutNotesInput shares?: NoteShareCreateNestedManyWithoutNoteInput - notebook?: NotebookCreateNestedOneWithoutNotesInput labelRelations?: LabelCreateNestedManyWithoutNotesInput - memoryEchoAsNote1?: MemoryEchoInsightCreateNestedManyWithoutNote1Input - memoryEchoAsNote2?: MemoryEchoInsightCreateNestedManyWithoutNote2Input } export type NoteUncheckedCreateWithoutAiFeedbackInput = { @@ -21396,10 +21449,10 @@ export namespace Prisma { language?: string | null languageConfidence?: number | null lastAiAnalysis?: Date | string | null + memoryEchoAsNote2?: MemoryEchoInsightUncheckedCreateNestedManyWithoutNote2Input + memoryEchoAsNote1?: MemoryEchoInsightUncheckedCreateNestedManyWithoutNote1Input shares?: NoteShareUncheckedCreateNestedManyWithoutNoteInput labelRelations?: LabelUncheckedCreateNestedManyWithoutNotesInput - memoryEchoAsNote1?: MemoryEchoInsightUncheckedCreateNestedManyWithoutNote1Input - memoryEchoAsNote2?: MemoryEchoInsightUncheckedCreateNestedManyWithoutNote2Input } export type NoteCreateOrConnectWithoutAiFeedbackInput = { @@ -21407,57 +21460,63 @@ export namespace Prisma { create: XOR } - export type UserCreateWithoutAiFeedbackInput = { - id?: string - name?: string | null - email: string - emailVerified?: Date | string | null - password?: string | null - role?: string - image?: string | null - theme?: string - resetToken?: string | null - resetTokenExpiry?: Date | string | null - createdAt?: Date | string - updatedAt?: Date | string - accounts?: AccountCreateNestedManyWithoutUserInput - sessions?: SessionCreateNestedManyWithoutUserInput - notes?: NoteCreateNestedManyWithoutUserInput - labels?: LabelCreateNestedManyWithoutUserInput - notebooks?: NotebookCreateNestedManyWithoutUserInput - receivedShares?: NoteShareCreateNestedManyWithoutUserInput - sentShares?: NoteShareCreateNestedManyWithoutSharerInput - aiSettings?: UserAISettingsCreateNestedOneWithoutUserInput - memoryEchoInsights?: MemoryEchoInsightCreateNestedManyWithoutUserInput - } - - export type UserUncheckedCreateWithoutAiFeedbackInput = { - id?: string - name?: string | null - email: string - emailVerified?: Date | string | null - password?: string | null - role?: string - image?: string | null - theme?: string - resetToken?: string | null - resetTokenExpiry?: Date | string | null - createdAt?: Date | string - updatedAt?: Date | string - accounts?: AccountUncheckedCreateNestedManyWithoutUserInput - sessions?: SessionUncheckedCreateNestedManyWithoutUserInput - notes?: NoteUncheckedCreateNestedManyWithoutUserInput - labels?: LabelUncheckedCreateNestedManyWithoutUserInput - notebooks?: NotebookUncheckedCreateNestedManyWithoutUserInput - receivedShares?: NoteShareUncheckedCreateNestedManyWithoutUserInput - sentShares?: NoteShareUncheckedCreateNestedManyWithoutSharerInput - aiSettings?: UserAISettingsUncheckedCreateNestedOneWithoutUserInput - memoryEchoInsights?: MemoryEchoInsightUncheckedCreateNestedManyWithoutUserInput - } - - export type UserCreateOrConnectWithoutAiFeedbackInput = { - where: UserWhereUniqueInput + export type UserUpsertWithoutAiFeedbackInput = { + update: XOR create: XOR + where?: UserWhereInput + } + + export type UserUpdateToOneWithWhereWithoutAiFeedbackInput = { + where?: UserWhereInput + data: XOR + } + + export type UserUpdateWithoutAiFeedbackInput = { + id?: StringFieldUpdateOperationsInput | string + name?: NullableStringFieldUpdateOperationsInput | string | null + email?: StringFieldUpdateOperationsInput | string + emailVerified?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null + password?: NullableStringFieldUpdateOperationsInput | string | null + role?: StringFieldUpdateOperationsInput | string + image?: NullableStringFieldUpdateOperationsInput | string | null + theme?: StringFieldUpdateOperationsInput | string + resetToken?: NullableStringFieldUpdateOperationsInput | string | null + resetTokenExpiry?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null + createdAt?: DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string + accounts?: AccountUpdateManyWithoutUserNestedInput + labels?: LabelUpdateManyWithoutUserNestedInput + memoryEchoInsights?: MemoryEchoInsightUpdateManyWithoutUserNestedInput + notes?: NoteUpdateManyWithoutUserNestedInput + sentShares?: NoteShareUpdateManyWithoutSharerNestedInput + receivedShares?: NoteShareUpdateManyWithoutUserNestedInput + notebooks?: NotebookUpdateManyWithoutUserNestedInput + sessions?: SessionUpdateManyWithoutUserNestedInput + aiSettings?: UserAISettingsUpdateOneWithoutUserNestedInput + } + + export type UserUncheckedUpdateWithoutAiFeedbackInput = { + id?: StringFieldUpdateOperationsInput | string + name?: NullableStringFieldUpdateOperationsInput | string | null + email?: StringFieldUpdateOperationsInput | string + emailVerified?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null + password?: NullableStringFieldUpdateOperationsInput | string | null + role?: StringFieldUpdateOperationsInput | string + image?: NullableStringFieldUpdateOperationsInput | string | null + theme?: StringFieldUpdateOperationsInput | string + resetToken?: NullableStringFieldUpdateOperationsInput | string | null + resetTokenExpiry?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null + createdAt?: DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string + accounts?: AccountUncheckedUpdateManyWithoutUserNestedInput + labels?: LabelUncheckedUpdateManyWithoutUserNestedInput + memoryEchoInsights?: MemoryEchoInsightUncheckedUpdateManyWithoutUserNestedInput + notes?: NoteUncheckedUpdateManyWithoutUserNestedInput + sentShares?: NoteShareUncheckedUpdateManyWithoutSharerNestedInput + receivedShares?: NoteShareUncheckedUpdateManyWithoutUserNestedInput + notebooks?: NotebookUncheckedUpdateManyWithoutUserNestedInput + sessions?: SessionUncheckedUpdateManyWithoutUserNestedInput + aiSettings?: UserAISettingsUncheckedUpdateOneWithoutUserNestedInput } export type NoteUpsertWithoutAiFeedbackInput = { @@ -21500,12 +21559,12 @@ export namespace Prisma { language?: NullableStringFieldUpdateOperationsInput | string | null languageConfidence?: NullableFloatFieldUpdateOperationsInput | number | null lastAiAnalysis?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null + memoryEchoAsNote2?: MemoryEchoInsightUpdateManyWithoutNote2NestedInput + memoryEchoAsNote1?: MemoryEchoInsightUpdateManyWithoutNote1NestedInput + notebook?: NotebookUpdateOneWithoutNotesNestedInput user?: UserUpdateOneWithoutNotesNestedInput shares?: NoteShareUpdateManyWithoutNoteNestedInput - notebook?: NotebookUpdateOneWithoutNotesNestedInput labelRelations?: LabelUpdateManyWithoutNotesNestedInput - memoryEchoAsNote1?: MemoryEchoInsightUpdateManyWithoutNote1NestedInput - memoryEchoAsNote2?: MemoryEchoInsightUpdateManyWithoutNote2NestedInput } export type NoteUncheckedUpdateWithoutAiFeedbackInput = { @@ -21539,148 +21598,63 @@ export namespace Prisma { language?: NullableStringFieldUpdateOperationsInput | string | null languageConfidence?: NullableFloatFieldUpdateOperationsInput | number | null lastAiAnalysis?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null + memoryEchoAsNote2?: MemoryEchoInsightUncheckedUpdateManyWithoutNote2NestedInput + memoryEchoAsNote1?: MemoryEchoInsightUncheckedUpdateManyWithoutNote1NestedInput shares?: NoteShareUncheckedUpdateManyWithoutNoteNestedInput labelRelations?: LabelUncheckedUpdateManyWithoutNotesNestedInput - memoryEchoAsNote1?: MemoryEchoInsightUncheckedUpdateManyWithoutNote1NestedInput - memoryEchoAsNote2?: MemoryEchoInsightUncheckedUpdateManyWithoutNote2NestedInput } - export type UserUpsertWithoutAiFeedbackInput = { - update: XOR - create: XOR - where?: UserWhereInput - } - - export type UserUpdateToOneWithWhereWithoutAiFeedbackInput = { - where?: UserWhereInput - data: XOR - } - - export type UserUpdateWithoutAiFeedbackInput = { - id?: StringFieldUpdateOperationsInput | string - name?: NullableStringFieldUpdateOperationsInput | string | null - email?: StringFieldUpdateOperationsInput | string - emailVerified?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - password?: NullableStringFieldUpdateOperationsInput | string | null - role?: StringFieldUpdateOperationsInput | string - image?: NullableStringFieldUpdateOperationsInput | string | null - theme?: StringFieldUpdateOperationsInput | string - resetToken?: NullableStringFieldUpdateOperationsInput | string | null - resetTokenExpiry?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - accounts?: AccountUpdateManyWithoutUserNestedInput - sessions?: SessionUpdateManyWithoutUserNestedInput - notes?: NoteUpdateManyWithoutUserNestedInput - labels?: LabelUpdateManyWithoutUserNestedInput - notebooks?: NotebookUpdateManyWithoutUserNestedInput - receivedShares?: NoteShareUpdateManyWithoutUserNestedInput - sentShares?: NoteShareUpdateManyWithoutSharerNestedInput - aiSettings?: UserAISettingsUpdateOneWithoutUserNestedInput - memoryEchoInsights?: MemoryEchoInsightUpdateManyWithoutUserNestedInput - } - - export type UserUncheckedUpdateWithoutAiFeedbackInput = { - id?: StringFieldUpdateOperationsInput | string - name?: NullableStringFieldUpdateOperationsInput | string | null - email?: StringFieldUpdateOperationsInput | string - emailVerified?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - password?: NullableStringFieldUpdateOperationsInput | string | null - role?: StringFieldUpdateOperationsInput | string - image?: NullableStringFieldUpdateOperationsInput | string | null - theme?: StringFieldUpdateOperationsInput | string - resetToken?: NullableStringFieldUpdateOperationsInput | string | null - resetTokenExpiry?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - accounts?: AccountUncheckedUpdateManyWithoutUserNestedInput - sessions?: SessionUncheckedUpdateManyWithoutUserNestedInput - notes?: NoteUncheckedUpdateManyWithoutUserNestedInput - labels?: LabelUncheckedUpdateManyWithoutUserNestedInput - notebooks?: NotebookUncheckedUpdateManyWithoutUserNestedInput - receivedShares?: NoteShareUncheckedUpdateManyWithoutUserNestedInput - sentShares?: NoteShareUncheckedUpdateManyWithoutSharerNestedInput - aiSettings?: UserAISettingsUncheckedUpdateOneWithoutUserNestedInput - memoryEchoInsights?: MemoryEchoInsightUncheckedUpdateManyWithoutUserNestedInput - } - - export type NoteCreateWithoutMemoryEchoAsNote1Input = { + export type UserCreateWithoutMemoryEchoInsightsInput = { id?: string - title?: string | null - content: string - color?: string - isPinned?: boolean - isArchived?: boolean - type?: string - checkItems?: string | null - labels?: string | null - images?: string | null - links?: string | null - reminder?: Date | string | null - isReminderDone?: boolean - reminderRecurrence?: string | null - reminderLocation?: string | null - isMarkdown?: boolean - size?: string - embedding?: string | null - sharedWith?: string | null - order?: number + name?: string | null + email: string + emailVerified?: Date | string | null + password?: string | null + role?: string + image?: string | null + theme?: string + resetToken?: string | null + resetTokenExpiry?: Date | string | null createdAt?: Date | string updatedAt?: Date | string - autoGenerated?: boolean | null - aiProvider?: string | null - aiConfidence?: number | null - language?: string | null - languageConfidence?: number | null - lastAiAnalysis?: Date | string | null - user?: UserCreateNestedOneWithoutNotesInput - shares?: NoteShareCreateNestedManyWithoutNoteInput - notebook?: NotebookCreateNestedOneWithoutNotesInput - labelRelations?: LabelCreateNestedManyWithoutNotesInput - aiFeedback?: AiFeedbackCreateNestedManyWithoutNoteInput - memoryEchoAsNote2?: MemoryEchoInsightCreateNestedManyWithoutNote2Input + accounts?: AccountCreateNestedManyWithoutUserInput + aiFeedback?: AiFeedbackCreateNestedManyWithoutUserInput + labels?: LabelCreateNestedManyWithoutUserInput + notes?: NoteCreateNestedManyWithoutUserInput + sentShares?: NoteShareCreateNestedManyWithoutSharerInput + receivedShares?: NoteShareCreateNestedManyWithoutUserInput + notebooks?: NotebookCreateNestedManyWithoutUserInput + sessions?: SessionCreateNestedManyWithoutUserInput + aiSettings?: UserAISettingsCreateNestedOneWithoutUserInput } - export type NoteUncheckedCreateWithoutMemoryEchoAsNote1Input = { + export type UserUncheckedCreateWithoutMemoryEchoInsightsInput = { id?: string - title?: string | null - content: string - color?: string - isPinned?: boolean - isArchived?: boolean - type?: string - checkItems?: string | null - labels?: string | null - images?: string | null - links?: string | null - reminder?: Date | string | null - isReminderDone?: boolean - reminderRecurrence?: string | null - reminderLocation?: string | null - isMarkdown?: boolean - size?: string - embedding?: string | null - sharedWith?: string | null - userId?: string | null - order?: number - notebookId?: string | null + name?: string | null + email: string + emailVerified?: Date | string | null + password?: string | null + role?: string + image?: string | null + theme?: string + resetToken?: string | null + resetTokenExpiry?: Date | string | null createdAt?: Date | string updatedAt?: Date | string - autoGenerated?: boolean | null - aiProvider?: string | null - aiConfidence?: number | null - language?: string | null - languageConfidence?: number | null - lastAiAnalysis?: Date | string | null - shares?: NoteShareUncheckedCreateNestedManyWithoutNoteInput - labelRelations?: LabelUncheckedCreateNestedManyWithoutNotesInput - aiFeedback?: AiFeedbackUncheckedCreateNestedManyWithoutNoteInput - memoryEchoAsNote2?: MemoryEchoInsightUncheckedCreateNestedManyWithoutNote2Input + accounts?: AccountUncheckedCreateNestedManyWithoutUserInput + aiFeedback?: AiFeedbackUncheckedCreateNestedManyWithoutUserInput + labels?: LabelUncheckedCreateNestedManyWithoutUserInput + notes?: NoteUncheckedCreateNestedManyWithoutUserInput + sentShares?: NoteShareUncheckedCreateNestedManyWithoutSharerInput + receivedShares?: NoteShareUncheckedCreateNestedManyWithoutUserInput + notebooks?: NotebookUncheckedCreateNestedManyWithoutUserInput + sessions?: SessionUncheckedCreateNestedManyWithoutUserInput + aiSettings?: UserAISettingsUncheckedCreateNestedOneWithoutUserInput } - export type NoteCreateOrConnectWithoutMemoryEchoAsNote1Input = { - where: NoteWhereUniqueInput - create: XOR + export type UserCreateOrConnectWithoutMemoryEchoInsightsInput = { + where: UserWhereUniqueInput + create: XOR } export type NoteCreateWithoutMemoryEchoAsNote2Input = { @@ -21712,12 +21686,12 @@ export namespace Prisma { language?: string | null languageConfidence?: number | null lastAiAnalysis?: Date | string | null - user?: UserCreateNestedOneWithoutNotesInput - shares?: NoteShareCreateNestedManyWithoutNoteInput - notebook?: NotebookCreateNestedOneWithoutNotesInput - labelRelations?: LabelCreateNestedManyWithoutNotesInput aiFeedback?: AiFeedbackCreateNestedManyWithoutNoteInput memoryEchoAsNote1?: MemoryEchoInsightCreateNestedManyWithoutNote1Input + notebook?: NotebookCreateNestedOneWithoutNotesInput + user?: UserCreateNestedOneWithoutNotesInput + shares?: NoteShareCreateNestedManyWithoutNoteInput + labelRelations?: LabelCreateNestedManyWithoutNotesInput } export type NoteUncheckedCreateWithoutMemoryEchoAsNote2Input = { @@ -21751,10 +21725,10 @@ export namespace Prisma { language?: string | null languageConfidence?: number | null lastAiAnalysis?: Date | string | null - shares?: NoteShareUncheckedCreateNestedManyWithoutNoteInput - labelRelations?: LabelUncheckedCreateNestedManyWithoutNotesInput aiFeedback?: AiFeedbackUncheckedCreateNestedManyWithoutNoteInput memoryEchoAsNote1?: MemoryEchoInsightUncheckedCreateNestedManyWithoutNote1Input + shares?: NoteShareUncheckedCreateNestedManyWithoutNoteInput + labelRelations?: LabelUncheckedCreateNestedManyWithoutNotesInput } export type NoteCreateOrConnectWithoutMemoryEchoAsNote2Input = { @@ -21762,142 +21736,142 @@ export namespace Prisma { create: XOR } - export type UserCreateWithoutMemoryEchoInsightsInput = { + export type NoteCreateWithoutMemoryEchoAsNote1Input = { id?: string - name?: string | null - email: string - emailVerified?: Date | string | null - password?: string | null - role?: string - image?: string | null - theme?: string - resetToken?: string | null - resetTokenExpiry?: Date | string | null + title?: string | null + content: string + color?: string + isPinned?: boolean + isArchived?: boolean + type?: string + checkItems?: string | null + labels?: string | null + images?: string | null + links?: string | null + reminder?: Date | string | null + isReminderDone?: boolean + reminderRecurrence?: string | null + reminderLocation?: string | null + isMarkdown?: boolean + size?: string + embedding?: string | null + sharedWith?: string | null + order?: number createdAt?: Date | string updatedAt?: Date | string - accounts?: AccountCreateNestedManyWithoutUserInput - sessions?: SessionCreateNestedManyWithoutUserInput - notes?: NoteCreateNestedManyWithoutUserInput - labels?: LabelCreateNestedManyWithoutUserInput - notebooks?: NotebookCreateNestedManyWithoutUserInput - receivedShares?: NoteShareCreateNestedManyWithoutUserInput - sentShares?: NoteShareCreateNestedManyWithoutSharerInput - aiFeedback?: AiFeedbackCreateNestedManyWithoutUserInput - aiSettings?: UserAISettingsCreateNestedOneWithoutUserInput + autoGenerated?: boolean | null + aiProvider?: string | null + aiConfidence?: number | null + language?: string | null + languageConfidence?: number | null + lastAiAnalysis?: Date | string | null + aiFeedback?: AiFeedbackCreateNestedManyWithoutNoteInput + memoryEchoAsNote2?: MemoryEchoInsightCreateNestedManyWithoutNote2Input + notebook?: NotebookCreateNestedOneWithoutNotesInput + user?: UserCreateNestedOneWithoutNotesInput + shares?: NoteShareCreateNestedManyWithoutNoteInput + labelRelations?: LabelCreateNestedManyWithoutNotesInput } - export type UserUncheckedCreateWithoutMemoryEchoInsightsInput = { + export type NoteUncheckedCreateWithoutMemoryEchoAsNote1Input = { id?: string - name?: string | null - email: string - emailVerified?: Date | string | null - password?: string | null - role?: string - image?: string | null - theme?: string - resetToken?: string | null - resetTokenExpiry?: Date | string | null + title?: string | null + content: string + color?: string + isPinned?: boolean + isArchived?: boolean + type?: string + checkItems?: string | null + labels?: string | null + images?: string | null + links?: string | null + reminder?: Date | string | null + isReminderDone?: boolean + reminderRecurrence?: string | null + reminderLocation?: string | null + isMarkdown?: boolean + size?: string + embedding?: string | null + sharedWith?: string | null + userId?: string | null + order?: number + notebookId?: string | null createdAt?: Date | string updatedAt?: Date | string - accounts?: AccountUncheckedCreateNestedManyWithoutUserInput - sessions?: SessionUncheckedCreateNestedManyWithoutUserInput - notes?: NoteUncheckedCreateNestedManyWithoutUserInput - labels?: LabelUncheckedCreateNestedManyWithoutUserInput - notebooks?: NotebookUncheckedCreateNestedManyWithoutUserInput - receivedShares?: NoteShareUncheckedCreateNestedManyWithoutUserInput - sentShares?: NoteShareUncheckedCreateNestedManyWithoutSharerInput - aiFeedback?: AiFeedbackUncheckedCreateNestedManyWithoutUserInput - aiSettings?: UserAISettingsUncheckedCreateNestedOneWithoutUserInput + autoGenerated?: boolean | null + aiProvider?: string | null + aiConfidence?: number | null + language?: string | null + languageConfidence?: number | null + lastAiAnalysis?: Date | string | null + aiFeedback?: AiFeedbackUncheckedCreateNestedManyWithoutNoteInput + memoryEchoAsNote2?: MemoryEchoInsightUncheckedCreateNestedManyWithoutNote2Input + shares?: NoteShareUncheckedCreateNestedManyWithoutNoteInput + labelRelations?: LabelUncheckedCreateNestedManyWithoutNotesInput } - export type UserCreateOrConnectWithoutMemoryEchoInsightsInput = { - where: UserWhereUniqueInput - create: XOR - } - - export type NoteUpsertWithoutMemoryEchoAsNote1Input = { - update: XOR + export type NoteCreateOrConnectWithoutMemoryEchoAsNote1Input = { + where: NoteWhereUniqueInput create: XOR - where?: NoteWhereInput } - export type NoteUpdateToOneWithWhereWithoutMemoryEchoAsNote1Input = { - where?: NoteWhereInput - data: XOR + export type UserUpsertWithoutMemoryEchoInsightsInput = { + update: XOR + create: XOR + where?: UserWhereInput } - export type NoteUpdateWithoutMemoryEchoAsNote1Input = { + export type UserUpdateToOneWithWhereWithoutMemoryEchoInsightsInput = { + where?: UserWhereInput + data: XOR + } + + export type UserUpdateWithoutMemoryEchoInsightsInput = { id?: StringFieldUpdateOperationsInput | string - title?: NullableStringFieldUpdateOperationsInput | string | null - content?: StringFieldUpdateOperationsInput | string - color?: StringFieldUpdateOperationsInput | string - isPinned?: BoolFieldUpdateOperationsInput | boolean - isArchived?: BoolFieldUpdateOperationsInput | boolean - type?: StringFieldUpdateOperationsInput | string - checkItems?: NullableStringFieldUpdateOperationsInput | string | null - labels?: NullableStringFieldUpdateOperationsInput | string | null - images?: NullableStringFieldUpdateOperationsInput | string | null - links?: NullableStringFieldUpdateOperationsInput | string | null - reminder?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - isReminderDone?: BoolFieldUpdateOperationsInput | boolean - reminderRecurrence?: NullableStringFieldUpdateOperationsInput | string | null - reminderLocation?: NullableStringFieldUpdateOperationsInput | string | null - isMarkdown?: BoolFieldUpdateOperationsInput | boolean - size?: StringFieldUpdateOperationsInput | string - embedding?: NullableStringFieldUpdateOperationsInput | string | null - sharedWith?: NullableStringFieldUpdateOperationsInput | string | null - order?: IntFieldUpdateOperationsInput | number + name?: NullableStringFieldUpdateOperationsInput | string | null + email?: StringFieldUpdateOperationsInput | string + emailVerified?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null + password?: NullableStringFieldUpdateOperationsInput | string | null + role?: StringFieldUpdateOperationsInput | string + image?: NullableStringFieldUpdateOperationsInput | string | null + theme?: StringFieldUpdateOperationsInput | string + resetToken?: NullableStringFieldUpdateOperationsInput | string | null + resetTokenExpiry?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - autoGenerated?: NullableBoolFieldUpdateOperationsInput | boolean | null - aiProvider?: NullableStringFieldUpdateOperationsInput | string | null - aiConfidence?: NullableIntFieldUpdateOperationsInput | number | null - language?: NullableStringFieldUpdateOperationsInput | string | null - languageConfidence?: NullableFloatFieldUpdateOperationsInput | number | null - lastAiAnalysis?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - user?: UserUpdateOneWithoutNotesNestedInput - shares?: NoteShareUpdateManyWithoutNoteNestedInput - notebook?: NotebookUpdateOneWithoutNotesNestedInput - labelRelations?: LabelUpdateManyWithoutNotesNestedInput - aiFeedback?: AiFeedbackUpdateManyWithoutNoteNestedInput - memoryEchoAsNote2?: MemoryEchoInsightUpdateManyWithoutNote2NestedInput + accounts?: AccountUpdateManyWithoutUserNestedInput + aiFeedback?: AiFeedbackUpdateManyWithoutUserNestedInput + labels?: LabelUpdateManyWithoutUserNestedInput + notes?: NoteUpdateManyWithoutUserNestedInput + sentShares?: NoteShareUpdateManyWithoutSharerNestedInput + receivedShares?: NoteShareUpdateManyWithoutUserNestedInput + notebooks?: NotebookUpdateManyWithoutUserNestedInput + sessions?: SessionUpdateManyWithoutUserNestedInput + aiSettings?: UserAISettingsUpdateOneWithoutUserNestedInput } - export type NoteUncheckedUpdateWithoutMemoryEchoAsNote1Input = { + export type UserUncheckedUpdateWithoutMemoryEchoInsightsInput = { id?: StringFieldUpdateOperationsInput | string - title?: NullableStringFieldUpdateOperationsInput | string | null - content?: StringFieldUpdateOperationsInput | string - color?: StringFieldUpdateOperationsInput | string - isPinned?: BoolFieldUpdateOperationsInput | boolean - isArchived?: BoolFieldUpdateOperationsInput | boolean - type?: StringFieldUpdateOperationsInput | string - checkItems?: NullableStringFieldUpdateOperationsInput | string | null - labels?: NullableStringFieldUpdateOperationsInput | string | null - images?: NullableStringFieldUpdateOperationsInput | string | null - links?: NullableStringFieldUpdateOperationsInput | string | null - reminder?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - isReminderDone?: BoolFieldUpdateOperationsInput | boolean - reminderRecurrence?: NullableStringFieldUpdateOperationsInput | string | null - reminderLocation?: NullableStringFieldUpdateOperationsInput | string | null - isMarkdown?: BoolFieldUpdateOperationsInput | boolean - size?: StringFieldUpdateOperationsInput | string - embedding?: NullableStringFieldUpdateOperationsInput | string | null - sharedWith?: NullableStringFieldUpdateOperationsInput | string | null - userId?: NullableStringFieldUpdateOperationsInput | string | null - order?: IntFieldUpdateOperationsInput | number - notebookId?: NullableStringFieldUpdateOperationsInput | string | null + name?: NullableStringFieldUpdateOperationsInput | string | null + email?: StringFieldUpdateOperationsInput | string + emailVerified?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null + password?: NullableStringFieldUpdateOperationsInput | string | null + role?: StringFieldUpdateOperationsInput | string + image?: NullableStringFieldUpdateOperationsInput | string | null + theme?: StringFieldUpdateOperationsInput | string + resetToken?: NullableStringFieldUpdateOperationsInput | string | null + resetTokenExpiry?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - autoGenerated?: NullableBoolFieldUpdateOperationsInput | boolean | null - aiProvider?: NullableStringFieldUpdateOperationsInput | string | null - aiConfidence?: NullableIntFieldUpdateOperationsInput | number | null - language?: NullableStringFieldUpdateOperationsInput | string | null - languageConfidence?: NullableFloatFieldUpdateOperationsInput | number | null - lastAiAnalysis?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - shares?: NoteShareUncheckedUpdateManyWithoutNoteNestedInput - labelRelations?: LabelUncheckedUpdateManyWithoutNotesNestedInput - aiFeedback?: AiFeedbackUncheckedUpdateManyWithoutNoteNestedInput - memoryEchoAsNote2?: MemoryEchoInsightUncheckedUpdateManyWithoutNote2NestedInput + accounts?: AccountUncheckedUpdateManyWithoutUserNestedInput + aiFeedback?: AiFeedbackUncheckedUpdateManyWithoutUserNestedInput + labels?: LabelUncheckedUpdateManyWithoutUserNestedInput + notes?: NoteUncheckedUpdateManyWithoutUserNestedInput + sentShares?: NoteShareUncheckedUpdateManyWithoutSharerNestedInput + receivedShares?: NoteShareUncheckedUpdateManyWithoutUserNestedInput + notebooks?: NotebookUncheckedUpdateManyWithoutUserNestedInput + sessions?: SessionUncheckedUpdateManyWithoutUserNestedInput + aiSettings?: UserAISettingsUncheckedUpdateOneWithoutUserNestedInput } export type NoteUpsertWithoutMemoryEchoAsNote2Input = { @@ -21940,12 +21914,12 @@ export namespace Prisma { language?: NullableStringFieldUpdateOperationsInput | string | null languageConfidence?: NullableFloatFieldUpdateOperationsInput | number | null lastAiAnalysis?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - user?: UserUpdateOneWithoutNotesNestedInput - shares?: NoteShareUpdateManyWithoutNoteNestedInput - notebook?: NotebookUpdateOneWithoutNotesNestedInput - labelRelations?: LabelUpdateManyWithoutNotesNestedInput aiFeedback?: AiFeedbackUpdateManyWithoutNoteNestedInput memoryEchoAsNote1?: MemoryEchoInsightUpdateManyWithoutNote1NestedInput + notebook?: NotebookUpdateOneWithoutNotesNestedInput + user?: UserUpdateOneWithoutNotesNestedInput + shares?: NoteShareUpdateManyWithoutNoteNestedInput + labelRelations?: LabelUpdateManyWithoutNotesNestedInput } export type NoteUncheckedUpdateWithoutMemoryEchoAsNote2Input = { @@ -21979,69 +21953,95 @@ export namespace Prisma { language?: NullableStringFieldUpdateOperationsInput | string | null languageConfidence?: NullableFloatFieldUpdateOperationsInput | number | null lastAiAnalysis?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - shares?: NoteShareUncheckedUpdateManyWithoutNoteNestedInput - labelRelations?: LabelUncheckedUpdateManyWithoutNotesNestedInput aiFeedback?: AiFeedbackUncheckedUpdateManyWithoutNoteNestedInput memoryEchoAsNote1?: MemoryEchoInsightUncheckedUpdateManyWithoutNote1NestedInput + shares?: NoteShareUncheckedUpdateManyWithoutNoteNestedInput + labelRelations?: LabelUncheckedUpdateManyWithoutNotesNestedInput } - export type UserUpsertWithoutMemoryEchoInsightsInput = { - update: XOR - create: XOR - where?: UserWhereInput + export type NoteUpsertWithoutMemoryEchoAsNote1Input = { + update: XOR + create: XOR + where?: NoteWhereInput } - export type UserUpdateToOneWithWhereWithoutMemoryEchoInsightsInput = { - where?: UserWhereInput - data: XOR + export type NoteUpdateToOneWithWhereWithoutMemoryEchoAsNote1Input = { + where?: NoteWhereInput + data: XOR } - export type UserUpdateWithoutMemoryEchoInsightsInput = { + export type NoteUpdateWithoutMemoryEchoAsNote1Input = { id?: StringFieldUpdateOperationsInput | string - name?: NullableStringFieldUpdateOperationsInput | string | null - email?: StringFieldUpdateOperationsInput | string - emailVerified?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - password?: NullableStringFieldUpdateOperationsInput | string | null - role?: StringFieldUpdateOperationsInput | string - image?: NullableStringFieldUpdateOperationsInput | string | null - theme?: StringFieldUpdateOperationsInput | string - resetToken?: NullableStringFieldUpdateOperationsInput | string | null - resetTokenExpiry?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null + title?: NullableStringFieldUpdateOperationsInput | string | null + content?: StringFieldUpdateOperationsInput | string + color?: StringFieldUpdateOperationsInput | string + isPinned?: BoolFieldUpdateOperationsInput | boolean + isArchived?: BoolFieldUpdateOperationsInput | boolean + type?: StringFieldUpdateOperationsInput | string + checkItems?: NullableStringFieldUpdateOperationsInput | string | null + labels?: NullableStringFieldUpdateOperationsInput | string | null + images?: NullableStringFieldUpdateOperationsInput | string | null + links?: NullableStringFieldUpdateOperationsInput | string | null + reminder?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null + isReminderDone?: BoolFieldUpdateOperationsInput | boolean + reminderRecurrence?: NullableStringFieldUpdateOperationsInput | string | null + reminderLocation?: NullableStringFieldUpdateOperationsInput | string | null + isMarkdown?: BoolFieldUpdateOperationsInput | boolean + size?: StringFieldUpdateOperationsInput | string + embedding?: NullableStringFieldUpdateOperationsInput | string | null + sharedWith?: NullableStringFieldUpdateOperationsInput | string | null + order?: IntFieldUpdateOperationsInput | number createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - accounts?: AccountUpdateManyWithoutUserNestedInput - sessions?: SessionUpdateManyWithoutUserNestedInput - notes?: NoteUpdateManyWithoutUserNestedInput - labels?: LabelUpdateManyWithoutUserNestedInput - notebooks?: NotebookUpdateManyWithoutUserNestedInput - receivedShares?: NoteShareUpdateManyWithoutUserNestedInput - sentShares?: NoteShareUpdateManyWithoutSharerNestedInput - aiFeedback?: AiFeedbackUpdateManyWithoutUserNestedInput - aiSettings?: UserAISettingsUpdateOneWithoutUserNestedInput + autoGenerated?: NullableBoolFieldUpdateOperationsInput | boolean | null + aiProvider?: NullableStringFieldUpdateOperationsInput | string | null + aiConfidence?: NullableIntFieldUpdateOperationsInput | number | null + language?: NullableStringFieldUpdateOperationsInput | string | null + languageConfidence?: NullableFloatFieldUpdateOperationsInput | number | null + lastAiAnalysis?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null + aiFeedback?: AiFeedbackUpdateManyWithoutNoteNestedInput + memoryEchoAsNote2?: MemoryEchoInsightUpdateManyWithoutNote2NestedInput + notebook?: NotebookUpdateOneWithoutNotesNestedInput + user?: UserUpdateOneWithoutNotesNestedInput + shares?: NoteShareUpdateManyWithoutNoteNestedInput + labelRelations?: LabelUpdateManyWithoutNotesNestedInput } - export type UserUncheckedUpdateWithoutMemoryEchoInsightsInput = { + export type NoteUncheckedUpdateWithoutMemoryEchoAsNote1Input = { id?: StringFieldUpdateOperationsInput | string - name?: NullableStringFieldUpdateOperationsInput | string | null - email?: StringFieldUpdateOperationsInput | string - emailVerified?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - password?: NullableStringFieldUpdateOperationsInput | string | null - role?: StringFieldUpdateOperationsInput | string - image?: NullableStringFieldUpdateOperationsInput | string | null - theme?: StringFieldUpdateOperationsInput | string - resetToken?: NullableStringFieldUpdateOperationsInput | string | null - resetTokenExpiry?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null + title?: NullableStringFieldUpdateOperationsInput | string | null + content?: StringFieldUpdateOperationsInput | string + color?: StringFieldUpdateOperationsInput | string + isPinned?: BoolFieldUpdateOperationsInput | boolean + isArchived?: BoolFieldUpdateOperationsInput | boolean + type?: StringFieldUpdateOperationsInput | string + checkItems?: NullableStringFieldUpdateOperationsInput | string | null + labels?: NullableStringFieldUpdateOperationsInput | string | null + images?: NullableStringFieldUpdateOperationsInput | string | null + links?: NullableStringFieldUpdateOperationsInput | string | null + reminder?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null + isReminderDone?: BoolFieldUpdateOperationsInput | boolean + reminderRecurrence?: NullableStringFieldUpdateOperationsInput | string | null + reminderLocation?: NullableStringFieldUpdateOperationsInput | string | null + isMarkdown?: BoolFieldUpdateOperationsInput | boolean + size?: StringFieldUpdateOperationsInput | string + embedding?: NullableStringFieldUpdateOperationsInput | string | null + sharedWith?: NullableStringFieldUpdateOperationsInput | string | null + userId?: NullableStringFieldUpdateOperationsInput | string | null + order?: IntFieldUpdateOperationsInput | number + notebookId?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - accounts?: AccountUncheckedUpdateManyWithoutUserNestedInput - sessions?: SessionUncheckedUpdateManyWithoutUserNestedInput - notes?: NoteUncheckedUpdateManyWithoutUserNestedInput - labels?: LabelUncheckedUpdateManyWithoutUserNestedInput - notebooks?: NotebookUncheckedUpdateManyWithoutUserNestedInput - receivedShares?: NoteShareUncheckedUpdateManyWithoutUserNestedInput - sentShares?: NoteShareUncheckedUpdateManyWithoutSharerNestedInput - aiFeedback?: AiFeedbackUncheckedUpdateManyWithoutUserNestedInput - aiSettings?: UserAISettingsUncheckedUpdateOneWithoutUserNestedInput + autoGenerated?: NullableBoolFieldUpdateOperationsInput | boolean | null + aiProvider?: NullableStringFieldUpdateOperationsInput | string | null + aiConfidence?: NullableIntFieldUpdateOperationsInput | number | null + language?: NullableStringFieldUpdateOperationsInput | string | null + languageConfidence?: NullableFloatFieldUpdateOperationsInput | number | null + lastAiAnalysis?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null + aiFeedback?: AiFeedbackUncheckedUpdateManyWithoutNoteNestedInput + memoryEchoAsNote2?: MemoryEchoInsightUncheckedUpdateManyWithoutNote2NestedInput + shares?: NoteShareUncheckedUpdateManyWithoutNoteNestedInput + labelRelations?: LabelUncheckedUpdateManyWithoutNotesNestedInput } export type UserCreateWithoutAiSettingsInput = { @@ -22058,14 +22058,14 @@ export namespace Prisma { createdAt?: Date | string updatedAt?: Date | string accounts?: AccountCreateNestedManyWithoutUserInput - sessions?: SessionCreateNestedManyWithoutUserInput - notes?: NoteCreateNestedManyWithoutUserInput - labels?: LabelCreateNestedManyWithoutUserInput - notebooks?: NotebookCreateNestedManyWithoutUserInput - receivedShares?: NoteShareCreateNestedManyWithoutUserInput - sentShares?: NoteShareCreateNestedManyWithoutSharerInput aiFeedback?: AiFeedbackCreateNestedManyWithoutUserInput + labels?: LabelCreateNestedManyWithoutUserInput memoryEchoInsights?: MemoryEchoInsightCreateNestedManyWithoutUserInput + notes?: NoteCreateNestedManyWithoutUserInput + sentShares?: NoteShareCreateNestedManyWithoutSharerInput + receivedShares?: NoteShareCreateNestedManyWithoutUserInput + notebooks?: NotebookCreateNestedManyWithoutUserInput + sessions?: SessionCreateNestedManyWithoutUserInput } export type UserUncheckedCreateWithoutAiSettingsInput = { @@ -22082,14 +22082,14 @@ export namespace Prisma { createdAt?: Date | string updatedAt?: Date | string accounts?: AccountUncheckedCreateNestedManyWithoutUserInput - sessions?: SessionUncheckedCreateNestedManyWithoutUserInput - notes?: NoteUncheckedCreateNestedManyWithoutUserInput - labels?: LabelUncheckedCreateNestedManyWithoutUserInput - notebooks?: NotebookUncheckedCreateNestedManyWithoutUserInput - receivedShares?: NoteShareUncheckedCreateNestedManyWithoutUserInput - sentShares?: NoteShareUncheckedCreateNestedManyWithoutSharerInput aiFeedback?: AiFeedbackUncheckedCreateNestedManyWithoutUserInput + labels?: LabelUncheckedCreateNestedManyWithoutUserInput memoryEchoInsights?: MemoryEchoInsightUncheckedCreateNestedManyWithoutUserInput + notes?: NoteUncheckedCreateNestedManyWithoutUserInput + sentShares?: NoteShareUncheckedCreateNestedManyWithoutSharerInput + receivedShares?: NoteShareUncheckedCreateNestedManyWithoutUserInput + notebooks?: NotebookUncheckedCreateNestedManyWithoutUserInput + sessions?: SessionUncheckedCreateNestedManyWithoutUserInput } export type UserCreateOrConnectWithoutAiSettingsInput = { @@ -22122,14 +22122,14 @@ export namespace Prisma { createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string accounts?: AccountUpdateManyWithoutUserNestedInput - sessions?: SessionUpdateManyWithoutUserNestedInput - notes?: NoteUpdateManyWithoutUserNestedInput - labels?: LabelUpdateManyWithoutUserNestedInput - notebooks?: NotebookUpdateManyWithoutUserNestedInput - receivedShares?: NoteShareUpdateManyWithoutUserNestedInput - sentShares?: NoteShareUpdateManyWithoutSharerNestedInput aiFeedback?: AiFeedbackUpdateManyWithoutUserNestedInput + labels?: LabelUpdateManyWithoutUserNestedInput memoryEchoInsights?: MemoryEchoInsightUpdateManyWithoutUserNestedInput + notes?: NoteUpdateManyWithoutUserNestedInput + sentShares?: NoteShareUpdateManyWithoutSharerNestedInput + receivedShares?: NoteShareUpdateManyWithoutUserNestedInput + notebooks?: NotebookUpdateManyWithoutUserNestedInput + sessions?: SessionUpdateManyWithoutUserNestedInput } export type UserUncheckedUpdateWithoutAiSettingsInput = { @@ -22146,14 +22146,14 @@ export namespace Prisma { createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string accounts?: AccountUncheckedUpdateManyWithoutUserNestedInput - sessions?: SessionUncheckedUpdateManyWithoutUserNestedInput - notes?: NoteUncheckedUpdateManyWithoutUserNestedInput - labels?: LabelUncheckedUpdateManyWithoutUserNestedInput - notebooks?: NotebookUncheckedUpdateManyWithoutUserNestedInput - receivedShares?: NoteShareUncheckedUpdateManyWithoutUserNestedInput - sentShares?: NoteShareUncheckedUpdateManyWithoutSharerNestedInput aiFeedback?: AiFeedbackUncheckedUpdateManyWithoutUserNestedInput + labels?: LabelUncheckedUpdateManyWithoutUserNestedInput memoryEchoInsights?: MemoryEchoInsightUncheckedUpdateManyWithoutUserNestedInput + notes?: NoteUncheckedUpdateManyWithoutUserNestedInput + sentShares?: NoteShareUncheckedUpdateManyWithoutSharerNestedInput + receivedShares?: NoteShareUncheckedUpdateManyWithoutUserNestedInput + notebooks?: NotebookUncheckedUpdateManyWithoutUserNestedInput + sessions?: SessionUncheckedUpdateManyWithoutUserNestedInput } export type AccountCreateManyUserInput = { @@ -22171,13 +22171,38 @@ export namespace Prisma { updatedAt?: Date | string } - export type SessionCreateManyUserInput = { - sessionToken: string - expires: Date | string + export type AiFeedbackCreateManyUserInput = { + id?: string + noteId: string + feedbackType: string + feature: string + originalContent: string + correctedContent?: string | null + metadata?: string | null + createdAt?: Date | string + } + + export type LabelCreateManyUserInput = { + id?: string + name: string + color?: string + notebookId?: string | null createdAt?: Date | string updatedAt?: Date | string } + export type MemoryEchoInsightCreateManyUserInput = { + id?: string + note1Id: string + note2Id: string + similarityScore: number + insight: string + insightDate?: Date | string + viewed?: boolean + feedback?: string | null + dismissed?: boolean + } + export type NoteCreateManyUserInput = { id?: string title?: string | null @@ -22210,21 +22235,14 @@ export namespace Prisma { lastAiAnalysis?: Date | string | null } - export type LabelCreateManyUserInput = { + export type NoteShareCreateManySharerInput = { id?: string - name: string - color?: string - notebookId?: string | null - createdAt?: Date | string - updatedAt?: Date | string - } - - export type NotebookCreateManyUserInput = { - id?: string - name: string - icon?: string | null - color?: string | null - order: number + noteId: string + userId: string + status?: string + permission?: string + notifiedAt?: Date | string | null + respondedAt?: Date | string | null createdAt?: Date | string updatedAt?: Date | string } @@ -22241,39 +22259,21 @@ export namespace Prisma { updatedAt?: Date | string } - export type NoteShareCreateManySharerInput = { + export type NotebookCreateManyUserInput = { id?: string - noteId: string - userId: string - status?: string - permission?: string - notifiedAt?: Date | string | null - respondedAt?: Date | string | null + name: string + icon?: string | null + color?: string | null + order: number createdAt?: Date | string updatedAt?: Date | string } - export type AiFeedbackCreateManyUserInput = { - id?: string - noteId: string - feedbackType: string - feature: string - originalContent: string - correctedContent?: string | null - metadata?: string | null + export type SessionCreateManyUserInput = { + sessionToken: string + expires: Date | string createdAt?: Date | string - } - - export type MemoryEchoInsightCreateManyUserInput = { - id?: string - note1Id: string - note2Id: string - similarityScore: number - insight: string - insightDate?: Date | string - viewed?: boolean - feedback?: string | null - dismissed?: boolean + updatedAt?: Date | string } export type AccountUpdateWithoutUserInput = { @@ -22321,25 +22321,102 @@ export namespace Prisma { updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } - export type SessionUpdateWithoutUserInput = { - sessionToken?: StringFieldUpdateOperationsInput | string - expires?: DateTimeFieldUpdateOperationsInput | Date | string + export type AiFeedbackUpdateWithoutUserInput = { + id?: StringFieldUpdateOperationsInput | string + feedbackType?: StringFieldUpdateOperationsInput | string + feature?: StringFieldUpdateOperationsInput | string + originalContent?: StringFieldUpdateOperationsInput | string + correctedContent?: NullableStringFieldUpdateOperationsInput | string | null + metadata?: NullableStringFieldUpdateOperationsInput | string | null + createdAt?: DateTimeFieldUpdateOperationsInput | Date | string + note?: NoteUpdateOneRequiredWithoutAiFeedbackNestedInput + } + + export type AiFeedbackUncheckedUpdateWithoutUserInput = { + id?: StringFieldUpdateOperationsInput | string + noteId?: StringFieldUpdateOperationsInput | string + feedbackType?: StringFieldUpdateOperationsInput | string + feature?: StringFieldUpdateOperationsInput | string + originalContent?: StringFieldUpdateOperationsInput | string + correctedContent?: NullableStringFieldUpdateOperationsInput | string | null + metadata?: NullableStringFieldUpdateOperationsInput | string | null + createdAt?: DateTimeFieldUpdateOperationsInput | Date | string + } + + export type AiFeedbackUncheckedUpdateManyWithoutUserInput = { + id?: StringFieldUpdateOperationsInput | string + noteId?: StringFieldUpdateOperationsInput | string + feedbackType?: StringFieldUpdateOperationsInput | string + feature?: StringFieldUpdateOperationsInput | string + originalContent?: StringFieldUpdateOperationsInput | string + correctedContent?: NullableStringFieldUpdateOperationsInput | string | null + metadata?: NullableStringFieldUpdateOperationsInput | string | null + createdAt?: DateTimeFieldUpdateOperationsInput | Date | string + } + + export type LabelUpdateWithoutUserInput = { + id?: StringFieldUpdateOperationsInput | string + name?: StringFieldUpdateOperationsInput | string + color?: StringFieldUpdateOperationsInput | string + createdAt?: DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string + notebook?: NotebookUpdateOneWithoutLabelsNestedInput + notes?: NoteUpdateManyWithoutLabelRelationsNestedInput + } + + export type LabelUncheckedUpdateWithoutUserInput = { + id?: StringFieldUpdateOperationsInput | string + name?: StringFieldUpdateOperationsInput | string + color?: StringFieldUpdateOperationsInput | string + notebookId?: NullableStringFieldUpdateOperationsInput | string | null + createdAt?: DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string + notes?: NoteUncheckedUpdateManyWithoutLabelRelationsNestedInput + } + + export type LabelUncheckedUpdateManyWithoutUserInput = { + id?: StringFieldUpdateOperationsInput | string + name?: StringFieldUpdateOperationsInput | string + color?: StringFieldUpdateOperationsInput | string + notebookId?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } - export type SessionUncheckedUpdateWithoutUserInput = { - sessionToken?: StringFieldUpdateOperationsInput | string - expires?: DateTimeFieldUpdateOperationsInput | Date | string - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string + export type MemoryEchoInsightUpdateWithoutUserInput = { + id?: StringFieldUpdateOperationsInput | string + similarityScore?: FloatFieldUpdateOperationsInput | number + insight?: StringFieldUpdateOperationsInput | string + insightDate?: DateTimeFieldUpdateOperationsInput | Date | string + viewed?: BoolFieldUpdateOperationsInput | boolean + feedback?: NullableStringFieldUpdateOperationsInput | string | null + dismissed?: BoolFieldUpdateOperationsInput | boolean + note2?: NoteUpdateOneRequiredWithoutMemoryEchoAsNote2NestedInput + note1?: NoteUpdateOneRequiredWithoutMemoryEchoAsNote1NestedInput } - export type SessionUncheckedUpdateManyWithoutUserInput = { - sessionToken?: StringFieldUpdateOperationsInput | string - expires?: DateTimeFieldUpdateOperationsInput | Date | string - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string + export type MemoryEchoInsightUncheckedUpdateWithoutUserInput = { + id?: StringFieldUpdateOperationsInput | string + note1Id?: StringFieldUpdateOperationsInput | string + note2Id?: StringFieldUpdateOperationsInput | string + similarityScore?: FloatFieldUpdateOperationsInput | number + insight?: StringFieldUpdateOperationsInput | string + insightDate?: DateTimeFieldUpdateOperationsInput | Date | string + viewed?: BoolFieldUpdateOperationsInput | boolean + feedback?: NullableStringFieldUpdateOperationsInput | string | null + dismissed?: BoolFieldUpdateOperationsInput | boolean + } + + export type MemoryEchoInsightUncheckedUpdateManyWithoutUserInput = { + id?: StringFieldUpdateOperationsInput | string + note1Id?: StringFieldUpdateOperationsInput | string + note2Id?: StringFieldUpdateOperationsInput | string + similarityScore?: FloatFieldUpdateOperationsInput | number + insight?: StringFieldUpdateOperationsInput | string + insightDate?: DateTimeFieldUpdateOperationsInput | Date | string + viewed?: BoolFieldUpdateOperationsInput | boolean + feedback?: NullableStringFieldUpdateOperationsInput | string | null + dismissed?: BoolFieldUpdateOperationsInput | boolean } export type NoteUpdateWithoutUserInput = { @@ -22371,12 +22448,12 @@ export namespace Prisma { language?: NullableStringFieldUpdateOperationsInput | string | null languageConfidence?: NullableFloatFieldUpdateOperationsInput | number | null lastAiAnalysis?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - shares?: NoteShareUpdateManyWithoutNoteNestedInput - notebook?: NotebookUpdateOneWithoutNotesNestedInput - labelRelations?: LabelUpdateManyWithoutNotesNestedInput aiFeedback?: AiFeedbackUpdateManyWithoutNoteNestedInput - memoryEchoAsNote1?: MemoryEchoInsightUpdateManyWithoutNote1NestedInput memoryEchoAsNote2?: MemoryEchoInsightUpdateManyWithoutNote2NestedInput + memoryEchoAsNote1?: MemoryEchoInsightUpdateManyWithoutNote1NestedInput + notebook?: NotebookUpdateOneWithoutNotesNestedInput + shares?: NoteShareUpdateManyWithoutNoteNestedInput + labelRelations?: LabelUpdateManyWithoutNotesNestedInput } export type NoteUncheckedUpdateWithoutUserInput = { @@ -22409,11 +22486,11 @@ export namespace Prisma { language?: NullableStringFieldUpdateOperationsInput | string | null languageConfidence?: NullableFloatFieldUpdateOperationsInput | number | null lastAiAnalysis?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null + aiFeedback?: AiFeedbackUncheckedUpdateManyWithoutNoteNestedInput + memoryEchoAsNote2?: MemoryEchoInsightUncheckedUpdateManyWithoutNote2NestedInput + memoryEchoAsNote1?: MemoryEchoInsightUncheckedUpdateManyWithoutNote1NestedInput shares?: NoteShareUncheckedUpdateManyWithoutNoteNestedInput labelRelations?: LabelUncheckedUpdateManyWithoutNotesNestedInput - aiFeedback?: AiFeedbackUncheckedUpdateManyWithoutNoteNestedInput - memoryEchoAsNote1?: MemoryEchoInsightUncheckedUpdateManyWithoutNote1NestedInput - memoryEchoAsNote2?: MemoryEchoInsightUncheckedUpdateManyWithoutNote2NestedInput } export type NoteUncheckedUpdateManyWithoutUserInput = { @@ -22448,105 +22525,6 @@ export namespace Prisma { lastAiAnalysis?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null } - export type LabelUpdateWithoutUserInput = { - id?: StringFieldUpdateOperationsInput | string - name?: StringFieldUpdateOperationsInput | string - color?: StringFieldUpdateOperationsInput | string - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - notebook?: NotebookUpdateOneWithoutLabelsNestedInput - notes?: NoteUpdateManyWithoutLabelRelationsNestedInput - } - - export type LabelUncheckedUpdateWithoutUserInput = { - id?: StringFieldUpdateOperationsInput | string - name?: StringFieldUpdateOperationsInput | string - color?: StringFieldUpdateOperationsInput | string - notebookId?: NullableStringFieldUpdateOperationsInput | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - notes?: NoteUncheckedUpdateManyWithoutLabelRelationsNestedInput - } - - export type LabelUncheckedUpdateManyWithoutUserInput = { - id?: StringFieldUpdateOperationsInput | string - name?: StringFieldUpdateOperationsInput | string - color?: StringFieldUpdateOperationsInput | string - notebookId?: NullableStringFieldUpdateOperationsInput | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type NotebookUpdateWithoutUserInput = { - id?: StringFieldUpdateOperationsInput | string - name?: StringFieldUpdateOperationsInput | string - icon?: NullableStringFieldUpdateOperationsInput | string | null - color?: NullableStringFieldUpdateOperationsInput | string | null - order?: IntFieldUpdateOperationsInput | number - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - notes?: NoteUpdateManyWithoutNotebookNestedInput - labels?: LabelUpdateManyWithoutNotebookNestedInput - } - - export type NotebookUncheckedUpdateWithoutUserInput = { - id?: StringFieldUpdateOperationsInput | string - name?: StringFieldUpdateOperationsInput | string - icon?: NullableStringFieldUpdateOperationsInput | string | null - color?: NullableStringFieldUpdateOperationsInput | string | null - order?: IntFieldUpdateOperationsInput | number - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - notes?: NoteUncheckedUpdateManyWithoutNotebookNestedInput - labels?: LabelUncheckedUpdateManyWithoutNotebookNestedInput - } - - export type NotebookUncheckedUpdateManyWithoutUserInput = { - id?: StringFieldUpdateOperationsInput | string - name?: StringFieldUpdateOperationsInput | string - icon?: NullableStringFieldUpdateOperationsInput | string | null - color?: NullableStringFieldUpdateOperationsInput | string | null - order?: IntFieldUpdateOperationsInput | number - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type NoteShareUpdateWithoutUserInput = { - id?: StringFieldUpdateOperationsInput | string - status?: StringFieldUpdateOperationsInput | string - permission?: StringFieldUpdateOperationsInput | string - notifiedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - respondedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - note?: NoteUpdateOneRequiredWithoutSharesNestedInput - sharer?: UserUpdateOneRequiredWithoutSentSharesNestedInput - } - - export type NoteShareUncheckedUpdateWithoutUserInput = { - id?: StringFieldUpdateOperationsInput | string - noteId?: StringFieldUpdateOperationsInput | string - sharedBy?: StringFieldUpdateOperationsInput | string - status?: StringFieldUpdateOperationsInput | string - permission?: StringFieldUpdateOperationsInput | string - notifiedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - respondedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type NoteShareUncheckedUpdateManyWithoutUserInput = { - id?: StringFieldUpdateOperationsInput | string - noteId?: StringFieldUpdateOperationsInput | string - sharedBy?: StringFieldUpdateOperationsInput | string - status?: StringFieldUpdateOperationsInput | string - permission?: StringFieldUpdateOperationsInput | string - notifiedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - respondedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - export type NoteShareUpdateWithoutSharerInput = { id?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string @@ -22555,8 +22533,8 @@ export namespace Prisma { respondedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - note?: NoteUpdateOneRequiredWithoutSharesNestedInput user?: UserUpdateOneRequiredWithoutReceivedSharesNestedInput + note?: NoteUpdateOneRequiredWithoutSharesNestedInput } export type NoteShareUncheckedUpdateWithoutSharerInput = { @@ -22583,73 +22561,104 @@ export namespace Prisma { updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } - export type AiFeedbackUpdateWithoutUserInput = { + export type NoteShareUpdateWithoutUserInput = { id?: StringFieldUpdateOperationsInput | string - feedbackType?: StringFieldUpdateOperationsInput | string - feature?: StringFieldUpdateOperationsInput | string - originalContent?: StringFieldUpdateOperationsInput | string - correctedContent?: NullableStringFieldUpdateOperationsInput | string | null - metadata?: NullableStringFieldUpdateOperationsInput | string | null + status?: StringFieldUpdateOperationsInput | string + permission?: StringFieldUpdateOperationsInput | string + notifiedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null + respondedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - note?: NoteUpdateOneRequiredWithoutAiFeedbackNestedInput + updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string + sharer?: UserUpdateOneRequiredWithoutSentSharesNestedInput + note?: NoteUpdateOneRequiredWithoutSharesNestedInput } - export type AiFeedbackUncheckedUpdateWithoutUserInput = { + export type NoteShareUncheckedUpdateWithoutUserInput = { id?: StringFieldUpdateOperationsInput | string noteId?: StringFieldUpdateOperationsInput | string - feedbackType?: StringFieldUpdateOperationsInput | string - feature?: StringFieldUpdateOperationsInput | string - originalContent?: StringFieldUpdateOperationsInput | string - correctedContent?: NullableStringFieldUpdateOperationsInput | string | null - metadata?: NullableStringFieldUpdateOperationsInput | string | null + sharedBy?: StringFieldUpdateOperationsInput | string + status?: StringFieldUpdateOperationsInput | string + permission?: StringFieldUpdateOperationsInput | string + notifiedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null + respondedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } - export type AiFeedbackUncheckedUpdateManyWithoutUserInput = { + export type NoteShareUncheckedUpdateManyWithoutUserInput = { id?: StringFieldUpdateOperationsInput | string noteId?: StringFieldUpdateOperationsInput | string - feedbackType?: StringFieldUpdateOperationsInput | string - feature?: StringFieldUpdateOperationsInput | string - originalContent?: StringFieldUpdateOperationsInput | string - correctedContent?: NullableStringFieldUpdateOperationsInput | string | null - metadata?: NullableStringFieldUpdateOperationsInput | string | null + sharedBy?: StringFieldUpdateOperationsInput | string + status?: StringFieldUpdateOperationsInput | string + permission?: StringFieldUpdateOperationsInput | string + notifiedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null + respondedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } - export type MemoryEchoInsightUpdateWithoutUserInput = { + export type NotebookUpdateWithoutUserInput = { id?: StringFieldUpdateOperationsInput | string - similarityScore?: FloatFieldUpdateOperationsInput | number - insight?: StringFieldUpdateOperationsInput | string - insightDate?: DateTimeFieldUpdateOperationsInput | Date | string - viewed?: BoolFieldUpdateOperationsInput | boolean - feedback?: NullableStringFieldUpdateOperationsInput | string | null - dismissed?: BoolFieldUpdateOperationsInput | boolean - note1?: NoteUpdateOneRequiredWithoutMemoryEchoAsNote1NestedInput - note2?: NoteUpdateOneRequiredWithoutMemoryEchoAsNote2NestedInput + name?: StringFieldUpdateOperationsInput | string + icon?: NullableStringFieldUpdateOperationsInput | string | null + color?: NullableStringFieldUpdateOperationsInput | string | null + order?: IntFieldUpdateOperationsInput | number + createdAt?: DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string + labels?: LabelUpdateManyWithoutNotebookNestedInput + notes?: NoteUpdateManyWithoutNotebookNestedInput } - export type MemoryEchoInsightUncheckedUpdateWithoutUserInput = { + export type NotebookUncheckedUpdateWithoutUserInput = { id?: StringFieldUpdateOperationsInput | string - note1Id?: StringFieldUpdateOperationsInput | string - note2Id?: StringFieldUpdateOperationsInput | string - similarityScore?: FloatFieldUpdateOperationsInput | number - insight?: StringFieldUpdateOperationsInput | string - insightDate?: DateTimeFieldUpdateOperationsInput | Date | string - viewed?: BoolFieldUpdateOperationsInput | boolean - feedback?: NullableStringFieldUpdateOperationsInput | string | null - dismissed?: BoolFieldUpdateOperationsInput | boolean + name?: StringFieldUpdateOperationsInput | string + icon?: NullableStringFieldUpdateOperationsInput | string | null + color?: NullableStringFieldUpdateOperationsInput | string | null + order?: IntFieldUpdateOperationsInput | number + createdAt?: DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string + labels?: LabelUncheckedUpdateManyWithoutNotebookNestedInput + notes?: NoteUncheckedUpdateManyWithoutNotebookNestedInput } - export type MemoryEchoInsightUncheckedUpdateManyWithoutUserInput = { + export type NotebookUncheckedUpdateManyWithoutUserInput = { id?: StringFieldUpdateOperationsInput | string - note1Id?: StringFieldUpdateOperationsInput | string - note2Id?: StringFieldUpdateOperationsInput | string - similarityScore?: FloatFieldUpdateOperationsInput | number - insight?: StringFieldUpdateOperationsInput | string - insightDate?: DateTimeFieldUpdateOperationsInput | Date | string - viewed?: BoolFieldUpdateOperationsInput | boolean - feedback?: NullableStringFieldUpdateOperationsInput | string | null - dismissed?: BoolFieldUpdateOperationsInput | boolean + name?: StringFieldUpdateOperationsInput | string + icon?: NullableStringFieldUpdateOperationsInput | string | null + color?: NullableStringFieldUpdateOperationsInput | string | null + order?: IntFieldUpdateOperationsInput | number + createdAt?: DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string + } + + export type SessionUpdateWithoutUserInput = { + sessionToken?: StringFieldUpdateOperationsInput | string + expires?: DateTimeFieldUpdateOperationsInput | Date | string + createdAt?: DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string + } + + export type SessionUncheckedUpdateWithoutUserInput = { + sessionToken?: StringFieldUpdateOperationsInput | string + expires?: DateTimeFieldUpdateOperationsInput | Date | string + createdAt?: DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string + } + + export type SessionUncheckedUpdateManyWithoutUserInput = { + sessionToken?: StringFieldUpdateOperationsInput | string + expires?: DateTimeFieldUpdateOperationsInput | Date | string + createdAt?: DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string + } + + export type LabelCreateManyNotebookInput = { + id?: string + name: string + color?: string + userId?: string | null + createdAt?: Date | string + updatedAt?: Date | string } export type NoteCreateManyNotebookInput = { @@ -22684,13 +22693,33 @@ export namespace Prisma { lastAiAnalysis?: Date | string | null } - export type LabelCreateManyNotebookInput = { - id?: string - name: string - color?: string - userId?: string | null - createdAt?: Date | string - updatedAt?: Date | string + export type LabelUpdateWithoutNotebookInput = { + id?: StringFieldUpdateOperationsInput | string + name?: StringFieldUpdateOperationsInput | string + color?: StringFieldUpdateOperationsInput | string + createdAt?: DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string + user?: UserUpdateOneWithoutLabelsNestedInput + notes?: NoteUpdateManyWithoutLabelRelationsNestedInput + } + + export type LabelUncheckedUpdateWithoutNotebookInput = { + id?: StringFieldUpdateOperationsInput | string + name?: StringFieldUpdateOperationsInput | string + color?: StringFieldUpdateOperationsInput | string + userId?: NullableStringFieldUpdateOperationsInput | string | null + createdAt?: DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string + notes?: NoteUncheckedUpdateManyWithoutLabelRelationsNestedInput + } + + export type LabelUncheckedUpdateManyWithoutNotebookInput = { + id?: StringFieldUpdateOperationsInput | string + name?: StringFieldUpdateOperationsInput | string + color?: StringFieldUpdateOperationsInput | string + userId?: NullableStringFieldUpdateOperationsInput | string | null + createdAt?: DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type NoteUpdateWithoutNotebookInput = { @@ -22722,12 +22751,12 @@ export namespace Prisma { language?: NullableStringFieldUpdateOperationsInput | string | null languageConfidence?: NullableFloatFieldUpdateOperationsInput | number | null lastAiAnalysis?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null + aiFeedback?: AiFeedbackUpdateManyWithoutNoteNestedInput + memoryEchoAsNote2?: MemoryEchoInsightUpdateManyWithoutNote2NestedInput + memoryEchoAsNote1?: MemoryEchoInsightUpdateManyWithoutNote1NestedInput user?: UserUpdateOneWithoutNotesNestedInput shares?: NoteShareUpdateManyWithoutNoteNestedInput labelRelations?: LabelUpdateManyWithoutNotesNestedInput - aiFeedback?: AiFeedbackUpdateManyWithoutNoteNestedInput - memoryEchoAsNote1?: MemoryEchoInsightUpdateManyWithoutNote1NestedInput - memoryEchoAsNote2?: MemoryEchoInsightUpdateManyWithoutNote2NestedInput } export type NoteUncheckedUpdateWithoutNotebookInput = { @@ -22760,11 +22789,11 @@ export namespace Prisma { language?: NullableStringFieldUpdateOperationsInput | string | null languageConfidence?: NullableFloatFieldUpdateOperationsInput | number | null lastAiAnalysis?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null + aiFeedback?: AiFeedbackUncheckedUpdateManyWithoutNoteNestedInput + memoryEchoAsNote2?: MemoryEchoInsightUncheckedUpdateManyWithoutNote2NestedInput + memoryEchoAsNote1?: MemoryEchoInsightUncheckedUpdateManyWithoutNote1NestedInput shares?: NoteShareUncheckedUpdateManyWithoutNoteNestedInput labelRelations?: LabelUncheckedUpdateManyWithoutNotesNestedInput - aiFeedback?: AiFeedbackUncheckedUpdateManyWithoutNoteNestedInput - memoryEchoAsNote1?: MemoryEchoInsightUncheckedUpdateManyWithoutNote1NestedInput - memoryEchoAsNote2?: MemoryEchoInsightUncheckedUpdateManyWithoutNote2NestedInput } export type NoteUncheckedUpdateManyWithoutNotebookInput = { @@ -22799,35 +22828,6 @@ export namespace Prisma { lastAiAnalysis?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null } - export type LabelUpdateWithoutNotebookInput = { - id?: StringFieldUpdateOperationsInput | string - name?: StringFieldUpdateOperationsInput | string - color?: StringFieldUpdateOperationsInput | string - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - notes?: NoteUpdateManyWithoutLabelRelationsNestedInput - user?: UserUpdateOneWithoutLabelsNestedInput - } - - export type LabelUncheckedUpdateWithoutNotebookInput = { - id?: StringFieldUpdateOperationsInput | string - name?: StringFieldUpdateOperationsInput | string - color?: StringFieldUpdateOperationsInput | string - userId?: NullableStringFieldUpdateOperationsInput | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - notes?: NoteUncheckedUpdateManyWithoutLabelRelationsNestedInput - } - - export type LabelUncheckedUpdateManyWithoutNotebookInput = { - id?: StringFieldUpdateOperationsInput | string - name?: StringFieldUpdateOperationsInput | string - color?: StringFieldUpdateOperationsInput | string - userId?: NullableStringFieldUpdateOperationsInput | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - export type NoteUpdateWithoutLabelRelationsInput = { id?: StringFieldUpdateOperationsInput | string title?: NullableStringFieldUpdateOperationsInput | string | null @@ -22857,12 +22857,12 @@ export namespace Prisma { language?: NullableStringFieldUpdateOperationsInput | string | null languageConfidence?: NullableFloatFieldUpdateOperationsInput | number | null lastAiAnalysis?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null + aiFeedback?: AiFeedbackUpdateManyWithoutNoteNestedInput + memoryEchoAsNote2?: MemoryEchoInsightUpdateManyWithoutNote2NestedInput + memoryEchoAsNote1?: MemoryEchoInsightUpdateManyWithoutNote1NestedInput + notebook?: NotebookUpdateOneWithoutNotesNestedInput user?: UserUpdateOneWithoutNotesNestedInput shares?: NoteShareUpdateManyWithoutNoteNestedInput - notebook?: NotebookUpdateOneWithoutNotesNestedInput - aiFeedback?: AiFeedbackUpdateManyWithoutNoteNestedInput - memoryEchoAsNote1?: MemoryEchoInsightUpdateManyWithoutNote1NestedInput - memoryEchoAsNote2?: MemoryEchoInsightUpdateManyWithoutNote2NestedInput } export type NoteUncheckedUpdateWithoutLabelRelationsInput = { @@ -22896,10 +22896,10 @@ export namespace Prisma { language?: NullableStringFieldUpdateOperationsInput | string | null languageConfidence?: NullableFloatFieldUpdateOperationsInput | number | null lastAiAnalysis?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - shares?: NoteShareUncheckedUpdateManyWithoutNoteNestedInput aiFeedback?: AiFeedbackUncheckedUpdateManyWithoutNoteNestedInput - memoryEchoAsNote1?: MemoryEchoInsightUncheckedUpdateManyWithoutNote1NestedInput memoryEchoAsNote2?: MemoryEchoInsightUncheckedUpdateManyWithoutNote2NestedInput + memoryEchoAsNote1?: MemoryEchoInsightUncheckedUpdateManyWithoutNote1NestedInput + shares?: NoteShareUncheckedUpdateManyWithoutNoteNestedInput } export type NoteUncheckedUpdateManyWithoutLabelRelationsInput = { @@ -22935,18 +22935,6 @@ export namespace Prisma { lastAiAnalysis?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null } - export type NoteShareCreateManyNoteInput = { - id?: string - userId: string - sharedBy: string - status?: string - permission?: string - notifiedAt?: Date | string | null - respondedAt?: Date | string | null - createdAt?: Date | string - updatedAt?: Date | string - } - export type AiFeedbackCreateManyNoteInput = { id?: string userId?: string | null @@ -22958,18 +22946,6 @@ export namespace Prisma { createdAt?: Date | string } - export type MemoryEchoInsightCreateManyNote1Input = { - id?: string - userId?: string | null - note2Id: string - similarityScore: number - insight: string - insightDate?: Date | string - viewed?: boolean - feedback?: string | null - dismissed?: boolean - } - export type MemoryEchoInsightCreateManyNote2Input = { id?: string userId?: string | null @@ -22982,70 +22958,28 @@ export namespace Prisma { dismissed?: boolean } - export type NoteShareUpdateWithoutNoteInput = { - id?: StringFieldUpdateOperationsInput | string - status?: StringFieldUpdateOperationsInput | string - permission?: StringFieldUpdateOperationsInput | string - notifiedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - respondedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - user?: UserUpdateOneRequiredWithoutReceivedSharesNestedInput - sharer?: UserUpdateOneRequiredWithoutSentSharesNestedInput + export type MemoryEchoInsightCreateManyNote1Input = { + id?: string + userId?: string | null + note2Id: string + similarityScore: number + insight: string + insightDate?: Date | string + viewed?: boolean + feedback?: string | null + dismissed?: boolean } - export type NoteShareUncheckedUpdateWithoutNoteInput = { - id?: StringFieldUpdateOperationsInput | string - userId?: StringFieldUpdateOperationsInput | string - sharedBy?: StringFieldUpdateOperationsInput | string - status?: StringFieldUpdateOperationsInput | string - permission?: StringFieldUpdateOperationsInput | string - notifiedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - respondedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type NoteShareUncheckedUpdateManyWithoutNoteInput = { - id?: StringFieldUpdateOperationsInput | string - userId?: StringFieldUpdateOperationsInput | string - sharedBy?: StringFieldUpdateOperationsInput | string - status?: StringFieldUpdateOperationsInput | string - permission?: StringFieldUpdateOperationsInput | string - notifiedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - respondedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type LabelUpdateWithoutNotesInput = { - id?: StringFieldUpdateOperationsInput | string - name?: StringFieldUpdateOperationsInput | string - color?: StringFieldUpdateOperationsInput | string - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - notebook?: NotebookUpdateOneWithoutLabelsNestedInput - user?: UserUpdateOneWithoutLabelsNestedInput - } - - export type LabelUncheckedUpdateWithoutNotesInput = { - id?: StringFieldUpdateOperationsInput | string - name?: StringFieldUpdateOperationsInput | string - color?: StringFieldUpdateOperationsInput | string - notebookId?: NullableStringFieldUpdateOperationsInput | string | null - userId?: NullableStringFieldUpdateOperationsInput | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type LabelUncheckedUpdateManyWithoutNotesInput = { - id?: StringFieldUpdateOperationsInput | string - name?: StringFieldUpdateOperationsInput | string - color?: StringFieldUpdateOperationsInput | string - notebookId?: NullableStringFieldUpdateOperationsInput | string | null - userId?: NullableStringFieldUpdateOperationsInput | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string + export type NoteShareCreateManyNoteInput = { + id?: string + userId: string + sharedBy: string + status?: string + permission?: string + notifiedAt?: Date | string | null + respondedAt?: Date | string | null + createdAt?: Date | string + updatedAt?: Date | string } export type AiFeedbackUpdateWithoutNoteInput = { @@ -23081,6 +23015,42 @@ export namespace Prisma { createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } + export type MemoryEchoInsightUpdateWithoutNote2Input = { + id?: StringFieldUpdateOperationsInput | string + similarityScore?: FloatFieldUpdateOperationsInput | number + insight?: StringFieldUpdateOperationsInput | string + insightDate?: DateTimeFieldUpdateOperationsInput | Date | string + viewed?: BoolFieldUpdateOperationsInput | boolean + feedback?: NullableStringFieldUpdateOperationsInput | string | null + dismissed?: BoolFieldUpdateOperationsInput | boolean + user?: UserUpdateOneWithoutMemoryEchoInsightsNestedInput + note1?: NoteUpdateOneRequiredWithoutMemoryEchoAsNote1NestedInput + } + + export type MemoryEchoInsightUncheckedUpdateWithoutNote2Input = { + id?: StringFieldUpdateOperationsInput | string + userId?: NullableStringFieldUpdateOperationsInput | string | null + note1Id?: StringFieldUpdateOperationsInput | string + similarityScore?: FloatFieldUpdateOperationsInput | number + insight?: StringFieldUpdateOperationsInput | string + insightDate?: DateTimeFieldUpdateOperationsInput | Date | string + viewed?: BoolFieldUpdateOperationsInput | boolean + feedback?: NullableStringFieldUpdateOperationsInput | string | null + dismissed?: BoolFieldUpdateOperationsInput | boolean + } + + export type MemoryEchoInsightUncheckedUpdateManyWithoutNote2Input = { + id?: StringFieldUpdateOperationsInput | string + userId?: NullableStringFieldUpdateOperationsInput | string | null + note1Id?: StringFieldUpdateOperationsInput | string + similarityScore?: FloatFieldUpdateOperationsInput | number + insight?: StringFieldUpdateOperationsInput | string + insightDate?: DateTimeFieldUpdateOperationsInput | Date | string + viewed?: BoolFieldUpdateOperationsInput | boolean + feedback?: NullableStringFieldUpdateOperationsInput | string | null + dismissed?: BoolFieldUpdateOperationsInput | boolean + } + export type MemoryEchoInsightUpdateWithoutNote1Input = { id?: StringFieldUpdateOperationsInput | string similarityScore?: FloatFieldUpdateOperationsInput | number @@ -23089,8 +23059,8 @@ export namespace Prisma { viewed?: BoolFieldUpdateOperationsInput | boolean feedback?: NullableStringFieldUpdateOperationsInput | string | null dismissed?: BoolFieldUpdateOperationsInput | boolean - note2?: NoteUpdateOneRequiredWithoutMemoryEchoAsNote2NestedInput user?: UserUpdateOneWithoutMemoryEchoInsightsNestedInput + note2?: NoteUpdateOneRequiredWithoutMemoryEchoAsNote2NestedInput } export type MemoryEchoInsightUncheckedUpdateWithoutNote1Input = { @@ -23117,40 +23087,70 @@ export namespace Prisma { dismissed?: BoolFieldUpdateOperationsInput | boolean } - export type MemoryEchoInsightUpdateWithoutNote2Input = { + export type NoteShareUpdateWithoutNoteInput = { id?: StringFieldUpdateOperationsInput | string - similarityScore?: FloatFieldUpdateOperationsInput | number - insight?: StringFieldUpdateOperationsInput | string - insightDate?: DateTimeFieldUpdateOperationsInput | Date | string - viewed?: BoolFieldUpdateOperationsInput | boolean - feedback?: NullableStringFieldUpdateOperationsInput | string | null - dismissed?: BoolFieldUpdateOperationsInput | boolean - note1?: NoteUpdateOneRequiredWithoutMemoryEchoAsNote1NestedInput - user?: UserUpdateOneWithoutMemoryEchoInsightsNestedInput + status?: StringFieldUpdateOperationsInput | string + permission?: StringFieldUpdateOperationsInput | string + notifiedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null + respondedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null + createdAt?: DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string + sharer?: UserUpdateOneRequiredWithoutSentSharesNestedInput + user?: UserUpdateOneRequiredWithoutReceivedSharesNestedInput } - export type MemoryEchoInsightUncheckedUpdateWithoutNote2Input = { + export type NoteShareUncheckedUpdateWithoutNoteInput = { id?: StringFieldUpdateOperationsInput | string - userId?: NullableStringFieldUpdateOperationsInput | string | null - note1Id?: StringFieldUpdateOperationsInput | string - similarityScore?: FloatFieldUpdateOperationsInput | number - insight?: StringFieldUpdateOperationsInput | string - insightDate?: DateTimeFieldUpdateOperationsInput | Date | string - viewed?: BoolFieldUpdateOperationsInput | boolean - feedback?: NullableStringFieldUpdateOperationsInput | string | null - dismissed?: BoolFieldUpdateOperationsInput | boolean + userId?: StringFieldUpdateOperationsInput | string + sharedBy?: StringFieldUpdateOperationsInput | string + status?: StringFieldUpdateOperationsInput | string + permission?: StringFieldUpdateOperationsInput | string + notifiedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null + respondedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null + createdAt?: DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } - export type MemoryEchoInsightUncheckedUpdateManyWithoutNote2Input = { + export type NoteShareUncheckedUpdateManyWithoutNoteInput = { id?: StringFieldUpdateOperationsInput | string + userId?: StringFieldUpdateOperationsInput | string + sharedBy?: StringFieldUpdateOperationsInput | string + status?: StringFieldUpdateOperationsInput | string + permission?: StringFieldUpdateOperationsInput | string + notifiedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null + respondedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null + createdAt?: DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string + } + + export type LabelUpdateWithoutNotesInput = { + id?: StringFieldUpdateOperationsInput | string + name?: StringFieldUpdateOperationsInput | string + color?: StringFieldUpdateOperationsInput | string + createdAt?: DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string + user?: UserUpdateOneWithoutLabelsNestedInput + notebook?: NotebookUpdateOneWithoutLabelsNestedInput + } + + export type LabelUncheckedUpdateWithoutNotesInput = { + id?: StringFieldUpdateOperationsInput | string + name?: StringFieldUpdateOperationsInput | string + color?: StringFieldUpdateOperationsInput | string + notebookId?: NullableStringFieldUpdateOperationsInput | string | null userId?: NullableStringFieldUpdateOperationsInput | string | null - note1Id?: StringFieldUpdateOperationsInput | string - similarityScore?: FloatFieldUpdateOperationsInput | number - insight?: StringFieldUpdateOperationsInput | string - insightDate?: DateTimeFieldUpdateOperationsInput | Date | string - viewed?: BoolFieldUpdateOperationsInput | boolean - feedback?: NullableStringFieldUpdateOperationsInput | string | null - dismissed?: BoolFieldUpdateOperationsInput | boolean + createdAt?: DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string + } + + export type LabelUncheckedUpdateManyWithoutNotesInput = { + id?: StringFieldUpdateOperationsInput | string + name?: StringFieldUpdateOperationsInput | string + color?: StringFieldUpdateOperationsInput | string + notebookId?: NullableStringFieldUpdateOperationsInput | string | null + userId?: NullableStringFieldUpdateOperationsInput | string | null + createdAt?: DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } diff --git a/keep-notes/prisma/client-generated/index.js b/keep-notes/prisma/client-generated/index.js index edd3747..cf5911e 100644 --- a/keep-notes/prisma/client-generated/index.js +++ b/keep-notes/prisma/client-generated/index.js @@ -320,8 +320,8 @@ const config = { } } }, - "inlineSchema": "// This is your Prisma schema file,\n// learn more about it in the docs: https://pris.ly/d/prisma-schema\n\ngenerator client {\n provider = \"prisma-client-js\"\n output = \"./client-generated\"\n binaryTargets = [\"debian-openssl-1.1.x\", \"native\"]\n}\n\ndatasource db {\n provider = \"sqlite\"\n url = env(\"DATABASE_URL\")\n}\n\nmodel User {\n id String @id @default(cuid())\n name String?\n email String @unique\n emailVerified DateTime?\n password String? // Hashed password\n role String @default(\"USER\") // \"USER\" or \"ADMIN\"\n image String?\n theme String @default(\"light\")\n resetToken String? @unique\n resetTokenExpiry DateTime?\n accounts Account[]\n sessions Session[]\n notes Note[]\n labels Label[]\n notebooks Notebook[] // NEW: Relation to notebooks\n receivedShares NoteShare[] @relation(\"ReceivedShares\")\n sentShares NoteShare[] @relation(\"SentShares\")\n\n // Phase 1 AI Relations\n aiFeedback AiFeedback[]\n aiSettings UserAISettings?\n memoryEchoInsights MemoryEchoInsight[]\n\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n}\n\nmodel Account {\n userId String\n type String\n provider String\n providerAccountId String\n refresh_token String?\n access_token String?\n expires_at Int?\n token_type String?\n scope String?\n id_token String?\n session_state String?\n\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n\n user User @relation(fields: [userId], references: [id], onDelete: Cascade)\n\n @@id([provider, providerAccountId])\n}\n\nmodel Session {\n sessionToken String @unique\n userId String\n expires DateTime\n user User @relation(fields: [userId], references: [id], onDelete: Cascade)\n\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n}\n\nmodel VerificationToken {\n identifier String\n token String\n expires DateTime\n\n @@id([identifier, token])\n}\n\n// NEW: Notebook model for organizing notes\nmodel Notebook {\n id String @id @default(cuid())\n name String\n icon String? // Emoji or icon name\n color String? // Hex color for personalization\n order Int // Manual order for drag & drop\n userId String\n user User @relation(fields: [userId], references: [id], onDelete: Cascade)\n notes Note[] // Notes can belong to a notebook\n labels Label[] // Labels are contextual to this notebook\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n\n @@index([userId, order])\n @@index([userId])\n}\n\nmodel Label {\n id String @id @default(cuid())\n name String\n color String @default(\"gray\")\n notebookId String? // TEMPORARY: Optional for migration, will be required later\n notebook Notebook? @relation(fields: [notebookId], references: [id], onDelete: Cascade)\n notes Note[] // NEW: Many-to-many relation with notes\n userId String? // DEPRECATED: Kept for migration, will be removed after migration\n user User? @relation(fields: [userId], references: [id], onDelete: Cascade)\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n\n @@unique([notebookId, name]) // NEW: Labels are unique within a notebook (ignored if notebookId is null)\n @@index([notebookId])\n @@index([userId]) // DEPRECATED: Keep for now, remove after migration\n}\n\nmodel Note {\n id String @id @default(cuid())\n title String?\n content String\n color String @default(\"default\")\n isPinned Boolean @default(false)\n isArchived Boolean @default(false)\n type String @default(\"text\") // \"text\" or \"checklist\"\n checkItems String? // For checklist items stored as JSON string\n labels String? // Array of label names stored as JSON string (DEPRECATED)\n images String? // Array of image URLs stored as JSON string\n links String? // Array of link metadata stored as JSON string\n reminder DateTime? // Reminder date and time\n isReminderDone Boolean @default(false)\n reminderRecurrence String? // \"none\", \"daily\", \"weekly\", \"monthly\", \"custom\"\n reminderLocation String? // Location for location-based reminders\n isMarkdown Boolean @default(false) // Whether content uses Markdown\n size String @default(\"small\") // \"small\", \"medium\", \"large\"\n embedding String? // Vector embeddings stored as JSON string for semantic search\n sharedWith String? // Array of user IDs (collaborators) stored as JSON string\n userId String? // Owner of the note\n user User? @relation(fields: [userId], references: [id], onDelete: Cascade)\n shares NoteShare[] // All share records for this note\n order Int @default(0)\n\n // NEW: Notebook relation (optional - null = \"Notes générales\" / Inbox)\n notebookId String? // NULL = note is in general notes\n notebook Notebook? @relation(fields: [notebookId], references: [id], onDelete: SetNull)\n\n // NEW: Many-to-many relation with labels\n labelRelations Label[] // Uses implicit _NoteToLabel junction table\n\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n\n // Phase 1 AI Extensions\n autoGenerated Boolean? // True if title/content was AI-generated\n aiProvider String? // 'openai' | 'ollama'\n aiConfidence Int? // 0-100 (collected Phase 1, UI Phase 3)\n language String? // ISO 639-1: 'fr', 'en', 'es', 'de', 'fa'\n languageConfidence Float? // 0.0-1.0\n lastAiAnalysis DateTime? // Timestamp of last AI analysis\n\n // Relations for Phase 1 AI\n aiFeedback AiFeedback[]\n memoryEchoAsNote1 MemoryEchoInsight[] @relation(\"EchoNote1\")\n memoryEchoAsNote2 MemoryEchoInsight[] @relation(\"EchoNote2\")\n\n @@index([isPinned])\n @@index([isArchived])\n @@index([order])\n @@index([reminder])\n @@index([userId])\n @@index([userId, notebookId]) // NEW: For filtering notes by notebook\n}\n\nmodel NoteShare {\n id String @id @default(cuid())\n noteId String\n note Note @relation(fields: [noteId], references: [id], onDelete: Cascade)\n userId String\n user User @relation(\"ReceivedShares\", fields: [userId], references: [id], onDelete: Cascade)\n sharedBy String // User ID who shared the note\n sharer User @relation(\"SentShares\", fields: [sharedBy], references: [id], onDelete: Cascade)\n status String @default(\"pending\") // \"pending\", \"accepted\", \"declined\", \"removed\"\n permission String @default(\"view\") // \"view\", \"comment\", \"edit\"\n notifiedAt DateTime?\n respondedAt DateTime?\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n\n @@unique([noteId, userId])\n @@index([userId])\n @@index([status])\n @@index([sharedBy])\n}\n\nmodel SystemConfig {\n key String @id\n value String\n}\n\n// Phase 1 MVP AI Models\n\nmodel AiFeedback {\n id String @id @default(cuid())\n noteId String\n userId String?\n feedbackType String // 'thumbs_up' | 'thumbs_down' | 'correction'\n feature String // 'title_suggestion' | 'memory_echo' | 'semantic_search' | 'paragraph_refactor'\n originalContent String // JSON string of AI-generated content\n correctedContent String? // User's modified version\n metadata String? // JSON string for additional data (provider, model, timestamp)\n createdAt DateTime @default(now())\n\n note Note @relation(fields: [noteId], references: [id], onDelete: Cascade)\n user User? @relation(fields: [userId], references: [id], onDelete: Cascade)\n\n @@index([noteId])\n @@index([userId])\n @@index([feature])\n}\n\nmodel MemoryEchoInsight {\n id String @id @default(cuid())\n userId String?\n note1Id String\n note2Id String\n similarityScore Float\n insight String // AI-generated explanation of the connection\n insightDate DateTime @default(now())\n viewed Boolean @default(false)\n feedback String? // 'thumbs_up' | 'thumbs_down'\n dismissed Boolean @default(false) // User dismissed this connection\n\n note1 Note @relation(\"EchoNote1\", fields: [note1Id], references: [id], onDelete: Cascade)\n note2 Note @relation(\"EchoNote2\", fields: [note2Id], references: [id], onDelete: Cascade)\n user User? @relation(fields: [userId], references: [id], onDelete: Cascade)\n\n @@unique([userId, insightDate])\n @@index([userId, insightDate])\n @@index([userId, dismissed]) // For filtering dismissed connections\n}\n\nmodel UserAISettings {\n userId String @id\n\n // Feature Flags (granular ON/OFF)\n titleSuggestions Boolean @default(true)\n semanticSearch Boolean @default(true)\n paragraphRefactor Boolean @default(true)\n memoryEcho Boolean @default(true)\n\n // Configuration\n memoryEchoFrequency String @default(\"daily\") // 'daily' | 'weekly' | 'custom'\n aiProvider String @default(\"auto\") // 'auto' | 'openai' | 'ollama'\n preferredLanguage String @default(\"auto\") // 'auto' | 'en' | 'fr' | 'es' | 'de' | 'fa' | 'it' | 'pt' | 'ru' | 'zh' | 'ja' | 'ko' | 'ar' | 'hi' | 'nl' | 'pl'\n fontSize String @default(\"medium\") // 'small' | 'medium' | 'large' | 'extra-large'\n demoMode Boolean @default(false) // Demo mode for testing Memory Echo\n\n // Relation\n user User @relation(fields: [userId], references: [id], onDelete: Cascade)\n\n // Indexes for analytics\n @@index([memoryEcho])\n @@index([aiProvider])\n @@index([memoryEchoFrequency])\n @@index([preferredLanguage])\n}\n", - "inlineSchemaHash": "ae4e60997fb32227785be8abc02a406d65b24fd1e7099d80c851da7a935260e2", + "inlineSchema": "generator client {\n provider = \"prisma-client-js\"\n output = \"./client-generated\"\n binaryTargets = [\"debian-openssl-1.1.x\", \"native\"]\n}\n\ndatasource db {\n provider = \"sqlite\"\n url = env(\"DATABASE_URL\")\n}\n\nmodel User {\n id String @id @default(cuid())\n name String?\n email String @unique\n emailVerified DateTime?\n password String?\n role String @default(\"USER\")\n image String?\n theme String @default(\"light\")\n resetToken String? @unique\n resetTokenExpiry DateTime?\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n accounts Account[]\n aiFeedback AiFeedback[]\n labels Label[]\n memoryEchoInsights MemoryEchoInsight[]\n notes Note[]\n sentShares NoteShare[] @relation(\"SentShares\")\n receivedShares NoteShare[] @relation(\"ReceivedShares\")\n notebooks Notebook[]\n sessions Session[]\n aiSettings UserAISettings?\n}\n\nmodel Account {\n userId String\n type String\n provider String\n providerAccountId String\n refresh_token String?\n access_token String?\n expires_at Int?\n token_type String?\n scope String?\n id_token String?\n session_state String?\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n user User @relation(fields: [userId], references: [id], onDelete: Cascade)\n\n @@id([provider, providerAccountId])\n}\n\nmodel Session {\n sessionToken String @unique\n userId String\n expires DateTime\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n user User @relation(fields: [userId], references: [id], onDelete: Cascade)\n}\n\nmodel VerificationToken {\n identifier String\n token String\n expires DateTime\n\n @@id([identifier, token])\n}\n\nmodel Notebook {\n id String @id @default(cuid())\n name String\n icon String?\n color String?\n order Int\n userId String\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n labels Label[]\n notes Note[]\n user User @relation(fields: [userId], references: [id], onDelete: Cascade)\n\n @@index([userId, order])\n @@index([userId])\n}\n\nmodel Label {\n id String @id @default(cuid())\n name String\n color String @default(\"gray\")\n notebookId String?\n userId String?\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n user User? @relation(fields: [userId], references: [id], onDelete: Cascade)\n notebook Notebook? @relation(fields: [notebookId], references: [id], onDelete: Cascade)\n notes Note[] @relation(\"LabelToNote\")\n\n @@unique([notebookId, name])\n @@index([notebookId])\n @@index([userId])\n}\n\nmodel Note {\n id String @id @default(cuid())\n title String?\n content String\n color String @default(\"default\")\n isPinned Boolean @default(false)\n isArchived Boolean @default(false)\n type String @default(\"text\")\n checkItems String?\n labels String?\n images String?\n links String?\n reminder DateTime?\n isReminderDone Boolean @default(false)\n reminderRecurrence String?\n reminderLocation String?\n isMarkdown Boolean @default(false)\n size String @default(\"small\")\n embedding String?\n sharedWith String?\n userId String?\n order Int @default(0)\n notebookId String?\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n autoGenerated Boolean?\n aiProvider String?\n aiConfidence Int?\n language String?\n languageConfidence Float?\n lastAiAnalysis DateTime?\n aiFeedback AiFeedback[]\n memoryEchoAsNote2 MemoryEchoInsight[] @relation(\"EchoNote2\")\n memoryEchoAsNote1 MemoryEchoInsight[] @relation(\"EchoNote1\")\n notebook Notebook? @relation(fields: [notebookId], references: [id])\n user User? @relation(fields: [userId], references: [id], onDelete: Cascade)\n shares NoteShare[]\n labelRelations Label[] @relation(\"LabelToNote\")\n\n @@index([isPinned])\n @@index([isArchived])\n @@index([order])\n @@index([reminder])\n @@index([userId])\n @@index([userId, notebookId])\n}\n\nmodel NoteShare {\n id String @id @default(cuid())\n noteId String\n userId String\n sharedBy String\n status String @default(\"pending\")\n permission String @default(\"view\")\n notifiedAt DateTime?\n respondedAt DateTime?\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n sharer User @relation(\"SentShares\", fields: [sharedBy], references: [id], onDelete: Cascade)\n user User @relation(\"ReceivedShares\", fields: [userId], references: [id], onDelete: Cascade)\n note Note @relation(fields: [noteId], references: [id], onDelete: Cascade)\n\n @@unique([noteId, userId])\n @@index([userId])\n @@index([status])\n @@index([sharedBy])\n}\n\nmodel SystemConfig {\n key String @id\n value String\n}\n\nmodel AiFeedback {\n id String @id @default(cuid())\n noteId String\n userId String?\n feedbackType String\n feature String\n originalContent String\n correctedContent String?\n metadata String?\n createdAt DateTime @default(now())\n user User? @relation(fields: [userId], references: [id], onDelete: Cascade)\n note Note @relation(fields: [noteId], references: [id], onDelete: Cascade)\n\n @@index([noteId])\n @@index([userId])\n @@index([feature])\n}\n\nmodel MemoryEchoInsight {\n id String @id @default(cuid())\n userId String?\n note1Id String\n note2Id String\n similarityScore Float\n insight String\n insightDate DateTime @default(now())\n viewed Boolean @default(false)\n feedback String?\n dismissed Boolean @default(false)\n user User? @relation(fields: [userId], references: [id], onDelete: Cascade)\n note2 Note @relation(\"EchoNote2\", fields: [note2Id], references: [id], onDelete: Cascade)\n note1 Note @relation(\"EchoNote1\", fields: [note1Id], references: [id], onDelete: Cascade)\n\n @@unique([userId, insightDate])\n @@index([userId, insightDate])\n @@index([userId, dismissed])\n}\n\nmodel UserAISettings {\n userId String @id\n titleSuggestions Boolean @default(true)\n semanticSearch Boolean @default(true)\n paragraphRefactor Boolean @default(true)\n memoryEcho Boolean @default(true)\n memoryEchoFrequency String @default(\"daily\")\n aiProvider String @default(\"auto\")\n preferredLanguage String @default(\"auto\")\n fontSize String @default(\"medium\")\n demoMode Boolean @default(false)\n user User @relation(fields: [userId], references: [id], onDelete: Cascade)\n\n @@index([memoryEcho])\n @@index([aiProvider])\n @@index([memoryEchoFrequency])\n @@index([preferredLanguage])\n}\n", + "inlineSchemaHash": "4079921d971a2680359f4be0f9d9995aed4306a037ee478ba417e803ddcce2e1", "copyEngine": true } @@ -342,7 +342,7 @@ if (!fs.existsSync(path.join(__dirname, 'schema.prisma'))) { config.isBundled = true } -config.runtimeDataModel = JSON.parse("{\"models\":{\"User\":{\"dbName\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":{\"name\":\"cuid\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"name\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"email\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":true,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"emailVerified\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"password\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"role\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":\"USER\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"image\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"theme\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":\"light\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"resetToken\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":true,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"resetTokenExpiry\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"accounts\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Account\",\"relationName\":\"AccountToUser\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"sessions\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Session\",\"relationName\":\"SessionToUser\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"notes\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Note\",\"relationName\":\"NoteToUser\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"labels\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Label\",\"relationName\":\"LabelToUser\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"notebooks\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Notebook\",\"relationName\":\"NotebookToUser\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"receivedShares\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"NoteShare\",\"relationName\":\"ReceivedShares\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"sentShares\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"NoteShare\",\"relationName\":\"SentShares\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"aiFeedback\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"AiFeedback\",\"relationName\":\"AiFeedbackToUser\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"aiSettings\",\"kind\":\"object\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"UserAISettings\",\"relationName\":\"UserToUserAISettings\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"memoryEchoInsights\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"MemoryEchoInsight\",\"relationName\":\"MemoryEchoInsightToUser\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":true}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"Account\":{\"dbName\":null,\"fields\":[{\"name\":\"userId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"type\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"provider\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"providerAccountId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"refresh_token\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"access_token\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"expires_at\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Int\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"token_type\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"scope\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"id_token\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"session_state\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":true},{\"name\":\"user\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"User\",\"relationName\":\"AccountToUser\",\"relationFromFields\":[\"userId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":{\"name\":null,\"fields\":[\"provider\",\"providerAccountId\"]},\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"Session\":{\"dbName\":null,\"fields\":[{\"name\":\"sessionToken\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":true,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"userId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"expires\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"user\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"User\",\"relationName\":\"SessionToUser\",\"relationFromFields\":[\"userId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":true}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"VerificationToken\":{\"dbName\":null,\"fields\":[{\"name\":\"identifier\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"token\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"expires\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":{\"name\":null,\"fields\":[\"identifier\",\"token\"]},\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"Notebook\":{\"dbName\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":{\"name\":\"cuid\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"name\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"icon\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"color\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"order\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Int\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"userId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"user\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"User\",\"relationName\":\"NotebookToUser\",\"relationFromFields\":[\"userId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"notes\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Note\",\"relationName\":\"NoteToNotebook\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"labels\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Label\",\"relationName\":\"LabelToNotebook\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":true}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"Label\":{\"dbName\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":{\"name\":\"cuid\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"name\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"color\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":\"gray\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"notebookId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"notebook\",\"kind\":\"object\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Notebook\",\"relationName\":\"LabelToNotebook\",\"relationFromFields\":[\"notebookId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"notes\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Note\",\"relationName\":\"LabelToNote\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"userId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"user\",\"kind\":\"object\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"User\",\"relationName\":\"LabelToUser\",\"relationFromFields\":[\"userId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":true}],\"primaryKey\":null,\"uniqueFields\":[[\"notebookId\",\"name\"]],\"uniqueIndexes\":[{\"name\":null,\"fields\":[\"notebookId\",\"name\"]}],\"isGenerated\":false},\"Note\":{\"dbName\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":{\"name\":\"cuid\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"title\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"content\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"color\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":\"default\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"isPinned\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"default\":false,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"isArchived\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"default\":false,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"type\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":\"text\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"checkItems\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"labels\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"images\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"links\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"reminder\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"isReminderDone\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"default\":false,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"reminderRecurrence\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"reminderLocation\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"isMarkdown\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"default\":false,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"size\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":\"small\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"embedding\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"sharedWith\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"userId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"user\",\"kind\":\"object\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"User\",\"relationName\":\"NoteToUser\",\"relationFromFields\":[\"userId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"shares\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"NoteShare\",\"relationName\":\"NoteToNoteShare\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"order\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Int\",\"default\":0,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"notebookId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"notebook\",\"kind\":\"object\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Notebook\",\"relationName\":\"NoteToNotebook\",\"relationFromFields\":[\"notebookId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"SetNull\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"labelRelations\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Label\",\"relationName\":\"LabelToNote\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":true},{\"name\":\"autoGenerated\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Boolean\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"aiProvider\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"aiConfidence\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Int\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"language\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"languageConfidence\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Float\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"lastAiAnalysis\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"aiFeedback\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"AiFeedback\",\"relationName\":\"AiFeedbackToNote\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"memoryEchoAsNote1\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"MemoryEchoInsight\",\"relationName\":\"EchoNote1\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"memoryEchoAsNote2\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"MemoryEchoInsight\",\"relationName\":\"EchoNote2\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"NoteShare\":{\"dbName\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":{\"name\":\"cuid\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"noteId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"note\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Note\",\"relationName\":\"NoteToNoteShare\",\"relationFromFields\":[\"noteId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"userId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"user\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"User\",\"relationName\":\"ReceivedShares\",\"relationFromFields\":[\"userId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"sharedBy\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"sharer\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"User\",\"relationName\":\"SentShares\",\"relationFromFields\":[\"sharedBy\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"status\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":\"pending\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"permission\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":\"view\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"notifiedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"respondedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":true}],\"primaryKey\":null,\"uniqueFields\":[[\"noteId\",\"userId\"]],\"uniqueIndexes\":[{\"name\":null,\"fields\":[\"noteId\",\"userId\"]}],\"isGenerated\":false},\"SystemConfig\":{\"dbName\":null,\"fields\":[{\"name\":\"key\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"value\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"AiFeedback\":{\"dbName\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":{\"name\":\"cuid\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"noteId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"userId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"feedbackType\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"feature\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"originalContent\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"correctedContent\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"metadata\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"note\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Note\",\"relationName\":\"AiFeedbackToNote\",\"relationFromFields\":[\"noteId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"user\",\"kind\":\"object\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"User\",\"relationName\":\"AiFeedbackToUser\",\"relationFromFields\":[\"userId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"MemoryEchoInsight\":{\"dbName\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":{\"name\":\"cuid\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"userId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"note1Id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"note2Id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"similarityScore\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Float\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"insight\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"insightDate\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"viewed\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"default\":false,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"feedback\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"dismissed\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"default\":false,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"note1\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Note\",\"relationName\":\"EchoNote1\",\"relationFromFields\":[\"note1Id\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"note2\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Note\",\"relationName\":\"EchoNote2\",\"relationFromFields\":[\"note2Id\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"user\",\"kind\":\"object\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"User\",\"relationName\":\"MemoryEchoInsightToUser\",\"relationFromFields\":[\"userId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[[\"userId\",\"insightDate\"]],\"uniqueIndexes\":[{\"name\":null,\"fields\":[\"userId\",\"insightDate\"]}],\"isGenerated\":false},\"UserAISettings\":{\"dbName\":null,\"fields\":[{\"name\":\"userId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"titleSuggestions\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"default\":true,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"semanticSearch\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"default\":true,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"paragraphRefactor\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"default\":true,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"memoryEcho\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"default\":true,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"memoryEchoFrequency\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":\"daily\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"aiProvider\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":\"auto\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"preferredLanguage\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":\"auto\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"fontSize\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":\"medium\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"demoMode\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"default\":false,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"user\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"User\",\"relationName\":\"UserToUserAISettings\",\"relationFromFields\":[\"userId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false}},\"enums\":{},\"types\":{}}") +config.runtimeDataModel = JSON.parse("{\"models\":{\"User\":{\"dbName\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":{\"name\":\"cuid\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"name\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"email\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":true,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"emailVerified\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"password\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"role\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":\"USER\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"image\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"theme\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":\"light\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"resetToken\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":true,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"resetTokenExpiry\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":true},{\"name\":\"accounts\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Account\",\"relationName\":\"AccountToUser\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"aiFeedback\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"AiFeedback\",\"relationName\":\"AiFeedbackToUser\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"labels\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Label\",\"relationName\":\"LabelToUser\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"memoryEchoInsights\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"MemoryEchoInsight\",\"relationName\":\"MemoryEchoInsightToUser\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"notes\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Note\",\"relationName\":\"NoteToUser\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"sentShares\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"NoteShare\",\"relationName\":\"SentShares\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"receivedShares\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"NoteShare\",\"relationName\":\"ReceivedShares\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"notebooks\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Notebook\",\"relationName\":\"NotebookToUser\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"sessions\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Session\",\"relationName\":\"SessionToUser\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"aiSettings\",\"kind\":\"object\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"UserAISettings\",\"relationName\":\"UserToUserAISettings\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"Account\":{\"dbName\":null,\"fields\":[{\"name\":\"userId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"type\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"provider\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"providerAccountId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"refresh_token\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"access_token\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"expires_at\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Int\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"token_type\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"scope\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"id_token\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"session_state\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":true},{\"name\":\"user\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"User\",\"relationName\":\"AccountToUser\",\"relationFromFields\":[\"userId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":{\"name\":null,\"fields\":[\"provider\",\"providerAccountId\"]},\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"Session\":{\"dbName\":null,\"fields\":[{\"name\":\"sessionToken\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":true,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"userId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"expires\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":true},{\"name\":\"user\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"User\",\"relationName\":\"SessionToUser\",\"relationFromFields\":[\"userId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"VerificationToken\":{\"dbName\":null,\"fields\":[{\"name\":\"identifier\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"token\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"expires\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":{\"name\":null,\"fields\":[\"identifier\",\"token\"]},\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"Notebook\":{\"dbName\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":{\"name\":\"cuid\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"name\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"icon\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"color\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"order\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Int\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"userId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":true},{\"name\":\"labels\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Label\",\"relationName\":\"LabelToNotebook\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"notes\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Note\",\"relationName\":\"NoteToNotebook\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"user\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"User\",\"relationName\":\"NotebookToUser\",\"relationFromFields\":[\"userId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"Label\":{\"dbName\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":{\"name\":\"cuid\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"name\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"color\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":\"gray\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"notebookId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"userId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":true},{\"name\":\"user\",\"kind\":\"object\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"User\",\"relationName\":\"LabelToUser\",\"relationFromFields\":[\"userId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"notebook\",\"kind\":\"object\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Notebook\",\"relationName\":\"LabelToNotebook\",\"relationFromFields\":[\"notebookId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"notes\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Note\",\"relationName\":\"LabelToNote\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[[\"notebookId\",\"name\"]],\"uniqueIndexes\":[{\"name\":null,\"fields\":[\"notebookId\",\"name\"]}],\"isGenerated\":false},\"Note\":{\"dbName\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":{\"name\":\"cuid\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"title\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"content\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"color\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":\"default\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"isPinned\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"default\":false,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"isArchived\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"default\":false,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"type\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":\"text\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"checkItems\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"labels\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"images\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"links\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"reminder\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"isReminderDone\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"default\":false,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"reminderRecurrence\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"reminderLocation\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"isMarkdown\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"default\":false,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"size\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":\"small\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"embedding\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"sharedWith\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"userId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"order\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Int\",\"default\":0,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"notebookId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":true},{\"name\":\"autoGenerated\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Boolean\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"aiProvider\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"aiConfidence\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Int\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"language\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"languageConfidence\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Float\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"lastAiAnalysis\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"aiFeedback\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"AiFeedback\",\"relationName\":\"AiFeedbackToNote\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"memoryEchoAsNote2\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"MemoryEchoInsight\",\"relationName\":\"EchoNote2\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"memoryEchoAsNote1\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"MemoryEchoInsight\",\"relationName\":\"EchoNote1\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"notebook\",\"kind\":\"object\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Notebook\",\"relationName\":\"NoteToNotebook\",\"relationFromFields\":[\"notebookId\"],\"relationToFields\":[\"id\"],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"user\",\"kind\":\"object\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"User\",\"relationName\":\"NoteToUser\",\"relationFromFields\":[\"userId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"shares\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"NoteShare\",\"relationName\":\"NoteToNoteShare\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"labelRelations\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Label\",\"relationName\":\"LabelToNote\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"NoteShare\":{\"dbName\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":{\"name\":\"cuid\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"noteId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"userId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"sharedBy\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"status\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":\"pending\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"permission\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":\"view\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"notifiedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"respondedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":true},{\"name\":\"sharer\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"User\",\"relationName\":\"SentShares\",\"relationFromFields\":[\"sharedBy\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"user\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"User\",\"relationName\":\"ReceivedShares\",\"relationFromFields\":[\"userId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"note\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Note\",\"relationName\":\"NoteToNoteShare\",\"relationFromFields\":[\"noteId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[[\"noteId\",\"userId\"]],\"uniqueIndexes\":[{\"name\":null,\"fields\":[\"noteId\",\"userId\"]}],\"isGenerated\":false},\"SystemConfig\":{\"dbName\":null,\"fields\":[{\"name\":\"key\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"value\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"AiFeedback\":{\"dbName\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":{\"name\":\"cuid\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"noteId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"userId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"feedbackType\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"feature\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"originalContent\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"correctedContent\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"metadata\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"user\",\"kind\":\"object\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"User\",\"relationName\":\"AiFeedbackToUser\",\"relationFromFields\":[\"userId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"note\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Note\",\"relationName\":\"AiFeedbackToNote\",\"relationFromFields\":[\"noteId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"MemoryEchoInsight\":{\"dbName\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":{\"name\":\"cuid\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"userId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"note1Id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"note2Id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"similarityScore\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Float\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"insight\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"insightDate\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"viewed\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"default\":false,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"feedback\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"dismissed\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"default\":false,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"user\",\"kind\":\"object\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"User\",\"relationName\":\"MemoryEchoInsightToUser\",\"relationFromFields\":[\"userId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"note2\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Note\",\"relationName\":\"EchoNote2\",\"relationFromFields\":[\"note2Id\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"note1\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Note\",\"relationName\":\"EchoNote1\",\"relationFromFields\":[\"note1Id\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[[\"userId\",\"insightDate\"]],\"uniqueIndexes\":[{\"name\":null,\"fields\":[\"userId\",\"insightDate\"]}],\"isGenerated\":false},\"UserAISettings\":{\"dbName\":null,\"fields\":[{\"name\":\"userId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"titleSuggestions\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"default\":true,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"semanticSearch\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"default\":true,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"paragraphRefactor\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"default\":true,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"memoryEcho\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"default\":true,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"memoryEchoFrequency\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":\"daily\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"aiProvider\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":\"auto\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"preferredLanguage\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":\"auto\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"fontSize\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":\"medium\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"demoMode\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"default\":false,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"user\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"User\",\"relationName\":\"UserToUserAISettings\",\"relationFromFields\":[\"userId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false}},\"enums\":{},\"types\":{}}") defineDmmfProperty(exports.Prisma, config.runtimeDataModel) config.engineWasm = undefined diff --git a/keep-notes/prisma/client-generated/package.json b/keep-notes/prisma/client-generated/package.json index 43c1980..1738c42 100644 --- a/keep-notes/prisma/client-generated/package.json +++ b/keep-notes/prisma/client-generated/package.json @@ -1,5 +1,5 @@ { - "name": "prisma-client-62aaff0ff1302a5b1470021854f34bb9a9c1219fe39a7ee39aa626bd83e22eae", + "name": "prisma-client-46efe72656f1c393bbd99fdd6d2d34037b30f693f014757faf08aec1d9319858", "main": "index.js", "types": "index.d.ts", "browser": "index-browser.js", diff --git a/keep-notes/prisma/client-generated/schema.prisma b/keep-notes/prisma/client-generated/schema.prisma index d5d797e..4a06553 100644 --- a/keep-notes/prisma/client-generated/schema.prisma +++ b/keep-notes/prisma/client-generated/schema.prisma @@ -1,6 +1,3 @@ -// This is your Prisma schema file, -// learn more about it in the docs: https://pris.ly/d/prisma-schema - generator client { provider = "prisma-client-js" output = "./client-generated" @@ -13,31 +10,28 @@ datasource db { } model User { - id String @id @default(cuid()) - name String? - email String @unique - emailVerified DateTime? - password String? // Hashed password - role String @default("USER") // "USER" or "ADMIN" - image String? - theme String @default("light") - resetToken String? @unique - resetTokenExpiry DateTime? - accounts Account[] - sessions Session[] - notes Note[] - labels Label[] - notebooks Notebook[] // NEW: Relation to notebooks - receivedShares NoteShare[] @relation("ReceivedShares") - sentShares NoteShare[] @relation("SentShares") - - // Phase 1 AI Relations + id String @id @default(cuid()) + name String? + email String @unique + emailVerified DateTime? + password String? + role String @default("USER") + image String? + theme String @default("light") + resetToken String? @unique + resetTokenExpiry DateTime? + createdAt DateTime @default(now()) + updatedAt DateTime @updatedAt + accounts Account[] aiFeedback AiFeedback[] - aiSettings UserAISettings? + labels Label[] memoryEchoInsights MemoryEchoInsight[] - - createdAt DateTime @default(now()) - updatedAt DateTime @updatedAt + notes Note[] + sentShares NoteShare[] @relation("SentShares") + receivedShares NoteShare[] @relation("ReceivedShares") + notebooks Notebook[] + sessions Session[] + aiSettings UserAISettings? } model Account { @@ -52,11 +46,9 @@ model Account { scope String? id_token String? session_state String? - - createdAt DateTime @default(now()) - updatedAt DateTime @updatedAt - - user User @relation(fields: [userId], references: [id], onDelete: Cascade) + createdAt DateTime @default(now()) + updatedAt DateTime @updatedAt + user User @relation(fields: [userId], references: [id], onDelete: Cascade) @@id([provider, providerAccountId]) } @@ -65,10 +57,9 @@ model Session { sessionToken String @unique userId String expires DateTime + createdAt DateTime @default(now()) + updatedAt DateTime @updatedAt user User @relation(fields: [userId], references: [id], onDelete: Cascade) - - createdAt DateTime @default(now()) - updatedAt DateTime @updatedAt } model VerificationToken { @@ -79,19 +70,18 @@ model VerificationToken { @@id([identifier, token]) } -// NEW: Notebook model for organizing notes model Notebook { id String @id @default(cuid()) name String - icon String? // Emoji or icon name - color String? // Hex color for personalization - order Int // Manual order for drag & drop + icon String? + color String? + order Int userId String - user User @relation(fields: [userId], references: [id], onDelete: Cascade) - notes Note[] // Notes can belong to a notebook - labels Label[] // Labels are contextual to this notebook createdAt DateTime @default(now()) updatedAt DateTime @updatedAt + labels Label[] + notes Note[] + user User @relation(fields: [userId], references: [id], onDelete: Cascade) @@index([userId, order]) @@index([userId]) @@ -101,89 +91,80 @@ model Label { id String @id @default(cuid()) name String color String @default("gray") - notebookId String? // TEMPORARY: Optional for migration, will be required later - notebook Notebook? @relation(fields: [notebookId], references: [id], onDelete: Cascade) - notes Note[] // NEW: Many-to-many relation with notes - userId String? // DEPRECATED: Kept for migration, will be removed after migration - user User? @relation(fields: [userId], references: [id], onDelete: Cascade) + notebookId String? + userId String? createdAt DateTime @default(now()) updatedAt DateTime @updatedAt + user User? @relation(fields: [userId], references: [id], onDelete: Cascade) + notebook Notebook? @relation(fields: [notebookId], references: [id], onDelete: Cascade) + notes Note[] @relation("LabelToNote") - @@unique([notebookId, name]) // NEW: Labels are unique within a notebook (ignored if notebookId is null) + @@unique([notebookId, name]) @@index([notebookId]) - @@index([userId]) // DEPRECATED: Keep for now, remove after migration + @@index([userId]) } model Note { - id String @id @default(cuid()) + id String @id @default(cuid()) title String? content String - color String @default("default") - isPinned Boolean @default(false) - isArchived Boolean @default(false) - type String @default("text") // "text" or "checklist" - checkItems String? // For checklist items stored as JSON string - labels String? // Array of label names stored as JSON string (DEPRECATED) - images String? // Array of image URLs stored as JSON string - links String? // Array of link metadata stored as JSON string - reminder DateTime? // Reminder date and time - isReminderDone Boolean @default(false) - reminderRecurrence String? // "none", "daily", "weekly", "monthly", "custom" - reminderLocation String? // Location for location-based reminders - isMarkdown Boolean @default(false) // Whether content uses Markdown - size String @default("small") // "small", "medium", "large" - embedding String? // Vector embeddings stored as JSON string for semantic search - sharedWith String? // Array of user IDs (collaborators) stored as JSON string - userId String? // Owner of the note - user User? @relation(fields: [userId], references: [id], onDelete: Cascade) - shares NoteShare[] // All share records for this note - order Int @default(0) - - // NEW: Notebook relation (optional - null = "Notes générales" / Inbox) - notebookId String? // NULL = note is in general notes - notebook Notebook? @relation(fields: [notebookId], references: [id], onDelete: SetNull) - - // NEW: Many-to-many relation with labels - labelRelations Label[] // Uses implicit _NoteToLabel junction table - - createdAt DateTime @default(now()) - updatedAt DateTime @updatedAt - - // Phase 1 AI Extensions - autoGenerated Boolean? // True if title/content was AI-generated - aiProvider String? // 'openai' | 'ollama' - aiConfidence Int? // 0-100 (collected Phase 1, UI Phase 3) - language String? // ISO 639-1: 'fr', 'en', 'es', 'de', 'fa' - languageConfidence Float? // 0.0-1.0 - lastAiAnalysis DateTime? // Timestamp of last AI analysis - - // Relations for Phase 1 AI - aiFeedback AiFeedback[] - memoryEchoAsNote1 MemoryEchoInsight[] @relation("EchoNote1") - memoryEchoAsNote2 MemoryEchoInsight[] @relation("EchoNote2") + color String @default("default") + isPinned Boolean @default(false) + isArchived Boolean @default(false) + type String @default("text") + checkItems String? + labels String? + images String? + links String? + reminder DateTime? + isReminderDone Boolean @default(false) + reminderRecurrence String? + reminderLocation String? + isMarkdown Boolean @default(false) + size String @default("small") + embedding String? + sharedWith String? + userId String? + order Int @default(0) + notebookId String? + createdAt DateTime @default(now()) + updatedAt DateTime @updatedAt + autoGenerated Boolean? + aiProvider String? + aiConfidence Int? + language String? + languageConfidence Float? + lastAiAnalysis DateTime? + aiFeedback AiFeedback[] + memoryEchoAsNote2 MemoryEchoInsight[] @relation("EchoNote2") + memoryEchoAsNote1 MemoryEchoInsight[] @relation("EchoNote1") + notebook Notebook? @relation(fields: [notebookId], references: [id]) + user User? @relation(fields: [userId], references: [id], onDelete: Cascade) + shares NoteShare[] + labelRelations Label[] @relation("LabelToNote") @@index([isPinned]) @@index([isArchived]) @@index([order]) @@index([reminder]) @@index([userId]) - @@index([userId, notebookId]) // NEW: For filtering notes by notebook + @@index([userId, notebookId]) } model NoteShare { id String @id @default(cuid()) noteId String - note Note @relation(fields: [noteId], references: [id], onDelete: Cascade) userId String - user User @relation("ReceivedShares", fields: [userId], references: [id], onDelete: Cascade) - sharedBy String // User ID who shared the note - sharer User @relation("SentShares", fields: [sharedBy], references: [id], onDelete: Cascade) - status String @default("pending") // "pending", "accepted", "declined", "removed" - permission String @default("view") // "view", "comment", "edit" + sharedBy String + status String @default("pending") + permission String @default("view") notifiedAt DateTime? respondedAt DateTime? createdAt DateTime @default(now()) updatedAt DateTime @updatedAt + sharer User @relation("SentShares", fields: [sharedBy], references: [id], onDelete: Cascade) + user User @relation("ReceivedShares", fields: [userId], references: [id], onDelete: Cascade) + note Note @relation(fields: [noteId], references: [id], onDelete: Cascade) @@unique([noteId, userId]) @@index([userId]) @@ -196,21 +177,18 @@ model SystemConfig { value String } -// Phase 1 MVP AI Models - model AiFeedback { id String @id @default(cuid()) noteId String userId String? - feedbackType String // 'thumbs_up' | 'thumbs_down' | 'correction' - feature String // 'title_suggestion' | 'memory_echo' | 'semantic_search' | 'paragraph_refactor' - originalContent String // JSON string of AI-generated content - correctedContent String? // User's modified version - metadata String? // JSON string for additional data (provider, model, timestamp) + feedbackType String + feature String + originalContent String + correctedContent String? + metadata String? createdAt DateTime @default(now()) - - note Note @relation(fields: [noteId], references: [id], onDelete: Cascade) - user User? @relation(fields: [userId], references: [id], onDelete: Cascade) + user User? @relation(fields: [userId], references: [id], onDelete: Cascade) + note Note @relation(fields: [noteId], references: [id], onDelete: Cascade) @@index([noteId]) @@index([userId]) @@ -223,41 +201,33 @@ model MemoryEchoInsight { note1Id String note2Id String similarityScore Float - insight String // AI-generated explanation of the connection + insight String insightDate DateTime @default(now()) viewed Boolean @default(false) - feedback String? // 'thumbs_up' | 'thumbs_down' - dismissed Boolean @default(false) // User dismissed this connection - - note1 Note @relation("EchoNote1", fields: [note1Id], references: [id], onDelete: Cascade) - note2 Note @relation("EchoNote2", fields: [note2Id], references: [id], onDelete: Cascade) - user User? @relation(fields: [userId], references: [id], onDelete: Cascade) + feedback String? + dismissed Boolean @default(false) + user User? @relation(fields: [userId], references: [id], onDelete: Cascade) + note2 Note @relation("EchoNote2", fields: [note2Id], references: [id], onDelete: Cascade) + note1 Note @relation("EchoNote1", fields: [note1Id], references: [id], onDelete: Cascade) @@unique([userId, insightDate]) @@index([userId, insightDate]) - @@index([userId, dismissed]) // For filtering dismissed connections + @@index([userId, dismissed]) } model UserAISettings { - userId String @id + userId String @id + titleSuggestions Boolean @default(true) + semanticSearch Boolean @default(true) + paragraphRefactor Boolean @default(true) + memoryEcho Boolean @default(true) + memoryEchoFrequency String @default("daily") + aiProvider String @default("auto") + preferredLanguage String @default("auto") + fontSize String @default("medium") + demoMode Boolean @default(false) + user User @relation(fields: [userId], references: [id], onDelete: Cascade) - // Feature Flags (granular ON/OFF) - titleSuggestions Boolean @default(true) - semanticSearch Boolean @default(true) - paragraphRefactor Boolean @default(true) - memoryEcho Boolean @default(true) - - // Configuration - memoryEchoFrequency String @default("daily") // 'daily' | 'weekly' | 'custom' - aiProvider String @default("auto") // 'auto' | 'openai' | 'ollama' - preferredLanguage String @default("auto") // 'auto' | 'en' | 'fr' | 'es' | 'de' | 'fa' | 'it' | 'pt' | 'ru' | 'zh' | 'ja' | 'ko' | 'ar' | 'hi' | 'nl' | 'pl' - fontSize String @default("medium") // 'small' | 'medium' | 'large' | 'extra-large' - demoMode Boolean @default(false) // Demo mode for testing Memory Echo - - // Relation - user User @relation(fields: [userId], references: [id], onDelete: Cascade) - - // Indexes for analytics @@index([memoryEcho]) @@index([aiProvider]) @@index([memoryEchoFrequency]) diff --git a/keep-notes/prisma/schema.prisma b/keep-notes/prisma/schema.prisma index b56acdd..4a06553 100644 --- a/keep-notes/prisma/schema.prisma +++ b/keep-notes/prisma/schema.prisma @@ -1,9 +1,6 @@ -// This is your Prisma schema file, -// learn more about it in the docs: https://pris.ly/d/prisma-schema - generator client { - provider = "prisma-client-js" - output = "./client-generated" + provider = "prisma-client-js" + output = "./client-generated" binaryTargets = ["debian-openssl-1.1.x", "native"] } @@ -13,31 +10,28 @@ datasource db { } model User { - id String @id @default(cuid()) - name String? - email String @unique - emailVerified DateTime? - password String? // Hashed password - role String @default("USER") // "USER" or "ADMIN" - image String? - theme String @default("light") - resetToken String? @unique - resetTokenExpiry DateTime? - accounts Account[] - sessions Session[] - notes Note[] - labels Label[] - notebooks Notebook[] // NEW: Relation to notebooks - receivedShares NoteShare[] @relation("ReceivedShares") - sentShares NoteShare[] @relation("SentShares") - - // Phase 1 AI Relations - aiFeedback AiFeedback[] - aiSettings UserAISettings? + id String @id @default(cuid()) + name String? + email String @unique + emailVerified DateTime? + password String? + role String @default("USER") + image String? + theme String @default("light") + resetToken String? @unique + resetTokenExpiry DateTime? + createdAt DateTime @default(now()) + updatedAt DateTime @updatedAt + accounts Account[] + aiFeedback AiFeedback[] + labels Label[] memoryEchoInsights MemoryEchoInsight[] - - createdAt DateTime @default(now()) - updatedAt DateTime @updatedAt + notes Note[] + sentShares NoteShare[] @relation("SentShares") + receivedShares NoteShare[] @relation("ReceivedShares") + notebooks Notebook[] + sessions Session[] + aiSettings UserAISettings? } model Account { @@ -52,138 +46,125 @@ model Account { scope String? id_token String? session_state String? - - createdAt DateTime @default(now()) - updatedAt DateTime @updatedAt - - user User @relation(fields: [userId], references: [id], onDelete: Cascade) - + createdAt DateTime @default(now()) + updatedAt DateTime @updatedAt + user User @relation(fields: [userId], references: [id], onDelete: Cascade) + @@id([provider, providerAccountId]) } - + model Session { sessionToken String @unique userId String expires DateTime + createdAt DateTime @default(now()) + updatedAt DateTime @updatedAt user User @relation(fields: [userId], references: [id], onDelete: Cascade) - - createdAt DateTime @default(now()) - updatedAt DateTime @updatedAt } - + model VerificationToken { identifier String token String expires DateTime - + @@id([identifier, token]) } -// NEW: Notebook model for organizing notes model Notebook { id String @id @default(cuid()) name String - icon String? // Emoji or icon name - color String? // Hex color for personalization - order Int // Manual order for drag & drop + icon String? + color String? + order Int userId String - user User @relation(fields: [userId], references: [id], onDelete: Cascade) - notes Note[] // Notes can belong to a notebook - labels Label[] // Labels are contextual to this notebook createdAt DateTime @default(now()) updatedAt DateTime @updatedAt + labels Label[] + notes Note[] + user User @relation(fields: [userId], references: [id], onDelete: Cascade) @@index([userId, order]) @@index([userId]) } model Label { - id String @id @default(cuid()) - name String - color String @default("gray") - notebookId String? // TEMPORARY: Optional for migration, will be required later - notebook Notebook? @relation(fields: [notebookId], references: [id], onDelete: Cascade) - notes Note[] // NEW: Many-to-many relation with notes - userId String? // DEPRECATED: Kept for migration, will be removed after migration - user User? @relation(fields: [userId], references: [id], onDelete: Cascade) - createdAt DateTime @default(now()) - updatedAt DateTime @updatedAt + id String @id @default(cuid()) + name String + color String @default("gray") + notebookId String? + userId String? + createdAt DateTime @default(now()) + updatedAt DateTime @updatedAt + user User? @relation(fields: [userId], references: [id], onDelete: Cascade) + notebook Notebook? @relation(fields: [notebookId], references: [id], onDelete: Cascade) + notes Note[] @relation("LabelToNote") - @@unique([notebookId, name]) // NEW: Labels are unique within a notebook (ignored if notebookId is null) + @@unique([notebookId, name]) @@index([notebookId]) - @@index([userId]) // DEPRECATED: Keep for now, remove after migration + @@index([userId]) } model Note { - id String @id @default(cuid()) - title String? - content String - color String @default("default") - isPinned Boolean @default(false) - isArchived Boolean @default(false) - type String @default("text") // "text" or "checklist" - checkItems String? // For checklist items stored as JSON string - labels String? // Array of label names stored as JSON string (DEPRECATED) - images String? // Array of image URLs stored as JSON string - links String? // Array of link metadata stored as JSON string - reminder DateTime? // Reminder date and time - isReminderDone Boolean @default(false) - reminderRecurrence String? // "none", "daily", "weekly", "monthly", "custom" - reminderLocation String? // Location for location-based reminders - isMarkdown Boolean @default(false) // Whether content uses Markdown - size String @default("small") // "small", "medium", "large" - embedding String? // Vector embeddings stored as JSON string for semantic search - sharedWith String? // Array of user IDs (collaborators) stored as JSON string - userId String? // Owner of the note - user User? @relation(fields: [userId], references: [id], onDelete: Cascade) - shares NoteShare[] // All share records for this note - order Int @default(0) - - // NEW: Notebook relation (optional - null = "Notes générales" / Inbox) - notebookId String? // NULL = note is in general notes - notebook Notebook? @relation(fields: [notebookId], references: [id], onDelete: SetNull) - - // NEW: Many-to-many relation with labels - labelRelations Label[] // Uses implicit _NoteToLabel junction table - - createdAt DateTime @default(now()) - updatedAt DateTime @updatedAt - - // Phase 1 AI Extensions - autoGenerated Boolean? // True if title/content was AI-generated - aiProvider String? // 'openai' | 'ollama' - aiConfidence Int? // 0-100 (collected Phase 1, UI Phase 3) - language String? // ISO 639-1: 'fr', 'en', 'es', 'de', 'fa' - languageConfidence Float? // 0.0-1.0 - lastAiAnalysis DateTime? // Timestamp of last AI analysis - - // Relations for Phase 1 AI - aiFeedback AiFeedback[] - memoryEchoAsNote1 MemoryEchoInsight[] @relation("EchoNote1") - memoryEchoAsNote2 MemoryEchoInsight[] @relation("EchoNote2") + id String @id @default(cuid()) + title String? + content String + color String @default("default") + isPinned Boolean @default(false) + isArchived Boolean @default(false) + type String @default("text") + checkItems String? + labels String? + images String? + links String? + reminder DateTime? + isReminderDone Boolean @default(false) + reminderRecurrence String? + reminderLocation String? + isMarkdown Boolean @default(false) + size String @default("small") + embedding String? + sharedWith String? + userId String? + order Int @default(0) + notebookId String? + createdAt DateTime @default(now()) + updatedAt DateTime @updatedAt + autoGenerated Boolean? + aiProvider String? + aiConfidence Int? + language String? + languageConfidence Float? + lastAiAnalysis DateTime? + aiFeedback AiFeedback[] + memoryEchoAsNote2 MemoryEchoInsight[] @relation("EchoNote2") + memoryEchoAsNote1 MemoryEchoInsight[] @relation("EchoNote1") + notebook Notebook? @relation(fields: [notebookId], references: [id]) + user User? @relation(fields: [userId], references: [id], onDelete: Cascade) + shares NoteShare[] + labelRelations Label[] @relation("LabelToNote") @@index([isPinned]) @@index([isArchived]) @@index([order]) @@index([reminder]) @@index([userId]) - @@index([userId, notebookId]) // NEW: For filtering notes by notebook + @@index([userId, notebookId]) } model NoteShare { id String @id @default(cuid()) noteId String - note Note @relation(fields: [noteId], references: [id], onDelete: Cascade) userId String - user User @relation("ReceivedShares", fields: [userId], references: [id], onDelete: Cascade) - sharedBy String // User ID who shared the note - sharer User @relation("SentShares", fields: [sharedBy], references: [id], onDelete: Cascade) - status String @default("pending") // "pending", "accepted", "declined", "removed" - permission String @default("view") // "view", "comment", "edit" + sharedBy String + status String @default("pending") + permission String @default("view") notifiedAt DateTime? respondedAt DateTime? createdAt DateTime @default(now()) updatedAt DateTime @updatedAt + sharer User @relation("SentShares", fields: [sharedBy], references: [id], onDelete: Cascade) + user User @relation("ReceivedShares", fields: [userId], references: [id], onDelete: Cascade) + note Note @relation(fields: [noteId], references: [id], onDelete: Cascade) @@unique([noteId, userId]) @@index([userId]) @@ -196,21 +177,18 @@ model SystemConfig { value String } -// Phase 1 MVP AI Models - model AiFeedback { - id String @id @default(cuid()) - noteId String - userId String? - feedbackType String // 'thumbs_up' | 'thumbs_down' | 'correction' - feature String // 'title_suggestion' | 'memory_echo' | 'semantic_search' | 'paragraph_refactor' - originalContent String // JSON string of AI-generated content - correctedContent String? // User's modified version - metadata String? // JSON string for additional data (provider, model, timestamp) - createdAt DateTime @default(now()) - - note Note @relation(fields: [noteId], references: [id], onDelete: Cascade) - user User? @relation(fields: [userId], references: [id], onDelete: Cascade) + id String @id @default(cuid()) + noteId String + userId String? + feedbackType String + feature String + originalContent String + correctedContent String? + metadata String? + createdAt DateTime @default(now()) + user User? @relation(fields: [userId], references: [id], onDelete: Cascade) + note Note @relation(fields: [noteId], references: [id], onDelete: Cascade) @@index([noteId]) @@index([userId]) @@ -218,46 +196,38 @@ model AiFeedback { } model MemoryEchoInsight { - id String @id @default(cuid()) + id String @id @default(cuid()) userId String? note1Id String note2Id String similarityScore Float - insight String // AI-generated explanation of the connection - insightDate DateTime @default(now()) - viewed Boolean @default(false) - feedback String? // 'thumbs_up' | 'thumbs_down' - dismissed Boolean @default(false) // User dismissed this connection - - note1 Note @relation("EchoNote1", fields: [note1Id], references: [id], onDelete: Cascade) - note2 Note @relation("EchoNote2", fields: [note2Id], references: [id], onDelete: Cascade) - user User? @relation(fields: [userId], references: [id], onDelete: Cascade) + insight String + insightDate DateTime @default(now()) + viewed Boolean @default(false) + feedback String? + dismissed Boolean @default(false) + user User? @relation(fields: [userId], references: [id], onDelete: Cascade) + note2 Note @relation("EchoNote2", fields: [note2Id], references: [id], onDelete: Cascade) + note1 Note @relation("EchoNote1", fields: [note1Id], references: [id], onDelete: Cascade) @@unique([userId, insightDate]) @@index([userId, insightDate]) - @@index([userId, dismissed]) // For filtering dismissed connections + @@index([userId, dismissed]) } model UserAISettings { - userId String @id + userId String @id + titleSuggestions Boolean @default(true) + semanticSearch Boolean @default(true) + paragraphRefactor Boolean @default(true) + memoryEcho Boolean @default(true) + memoryEchoFrequency String @default("daily") + aiProvider String @default("auto") + preferredLanguage String @default("auto") + fontSize String @default("medium") + demoMode Boolean @default(false) + user User @relation(fields: [userId], references: [id], onDelete: Cascade) - // Feature Flags (granular ON/OFF) - titleSuggestions Boolean @default(true) - semanticSearch Boolean @default(true) - paragraphRefactor Boolean @default(true) - memoryEcho Boolean @default(true) - - // Configuration - memoryEchoFrequency String @default("daily") // 'daily' | 'weekly' | 'custom' - aiProvider String @default("auto") // 'auto' | 'openai' | 'ollama' - preferredLanguage String @default("auto") // 'auto' | 'en' | 'fr' | 'es' | 'de' | 'fa' | 'it' | 'pt' | 'ru' | 'zh' | 'ja' | 'ko' | 'ar' | 'hi' | 'nl' | 'pl' - fontSize String @default("medium") // 'small' | 'medium' | 'large' | 'extra-large' - demoMode Boolean @default(false) // Demo mode for testing Memory Echo - - // Relation - user User @relation(fields: [userId], references: [id], onDelete: Cascade) - - // Indexes for analytics @@index([memoryEcho]) @@index([aiProvider]) @@index([memoryEchoFrequency]) diff --git a/keep-notes/scripts/debug-config.ts b/keep-notes/scripts/debug-config.ts new file mode 100644 index 0000000..a6daf64 --- /dev/null +++ b/keep-notes/scripts/debug-config.ts @@ -0,0 +1,41 @@ +import prisma from '../lib/prisma' + +async function debugConfig() { + console.log('=== System Configuration Debug ===\n') + + const configs = await prisma.systemConfig.findMany() + + console.log(`Total configs in DB: ${configs.length}\n`) + + // Group by category + const aiConfigs = configs.filter(c => c.key.startsWith('AI_')) + const ollamaConfigs = configs.filter(c => c.key.includes('OLLAMA')) + const openaiConfigs = configs.filter(c => c.key.includes('OPENAI')) + + console.log('=== AI Provider Configs ===') + aiConfigs.forEach(c => { + console.log(`${c.key}: "${c.value}"`) + }) + + console.log('\n=== Ollama Configs ===') + ollamaConfigs.forEach(c => { + console.log(`${c.key}: "${c.value}"`) + }) + + console.log('\n=== OpenAI Configs ===') + openaiConfigs.forEach(c => { + console.log(`${c.key}: "${c.value}"`) + }) + + console.log('\n=== All Configs ===') + configs.forEach(c => { + console.log(`${c.key}: "${c.value}"`) + }) +} + +debugConfig() + .then(() => process.exit(0)) + .catch((err) => { + console.error(err) + process.exit(1) + })