feat(notes): vues structurées tableau/kanban, flashcards et MCP robuste
Ajoute la base organisable par carnet (schéma, champs partagés, valeurs par note) avec activation guidée, tableau éditable, kanban et suppression de colonnes. Corrige le multiselect en vue tableau et enrichit sidebar, grille et i18n FR/EN. Inclut aussi les améliorations flashcards SM-2, l'audit consentement IA et la robustesse du serveur MCP (config, validation, rate-limit, métriques). Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -113,6 +113,7 @@ model Notebook {
|
||||
user User @relation(fields: [userId], references: [id], onDelete: Cascade)
|
||||
workflows Workflow[]
|
||||
flashcardDeck FlashcardDeck?
|
||||
schema NotebookSchema?
|
||||
|
||||
@@index([userId, order])
|
||||
@@index([userId])
|
||||
@@ -198,6 +199,7 @@ model Note {
|
||||
sourceLiveBlocks LiveBlockRef[] @relation("SourceLiveBlocks")
|
||||
targetLiveBlocks LiveBlockRef[] @relation("TargetLiveBlocks")
|
||||
flashcards Flashcard[]
|
||||
properties NoteProperty[]
|
||||
|
||||
@@index([isPinned])
|
||||
@@index([isArchived])
|
||||
@@ -859,6 +861,42 @@ model BridgeSuggestion {
|
||||
@@index([clusterAId, clusterBId])
|
||||
}
|
||||
|
||||
model NotebookSchema {
|
||||
id String @id @default(cuid())
|
||||
notebookId String @unique
|
||||
viewSettings String?
|
||||
createdAt DateTime @default(now())
|
||||
updatedAt DateTime @updatedAt
|
||||
notebook Notebook @relation(fields: [notebookId], references: [id], onDelete: Cascade)
|
||||
properties NotebookProperty[]
|
||||
}
|
||||
|
||||
model NotebookProperty {
|
||||
id String @id @default(cuid())
|
||||
schemaId String
|
||||
name String
|
||||
type String
|
||||
options String?
|
||||
position Int
|
||||
schema NotebookSchema @relation(fields: [schemaId], references: [id], onDelete: Cascade)
|
||||
noteValues NoteProperty[]
|
||||
|
||||
@@index([schemaId, position])
|
||||
}
|
||||
|
||||
model NoteProperty {
|
||||
id String @id @default(cuid())
|
||||
noteId String
|
||||
propertyId String
|
||||
value String?
|
||||
note Note @relation(fields: [noteId], references: [id], onDelete: Cascade)
|
||||
property NotebookProperty @relation(fields: [propertyId], references: [id], onDelete: Cascade)
|
||||
|
||||
@@unique([noteId, propertyId])
|
||||
@@index([noteId])
|
||||
@@index([propertyId])
|
||||
}
|
||||
|
||||
model FlashcardDeck {
|
||||
id String @id @default(cuid())
|
||||
userId String
|
||||
|
||||
Reference in New Issue
Block a user