feat(Notes): add favorite functionality to notes, allowing users to toggle favorites and filter notes accordingly

This commit is contained in:
Julien Froidefond
2026-01-12 10:52:44 +01:00
parent 31d01c2926
commit 75d31e86ac
9 changed files with 156 additions and 22 deletions

View File

@@ -0,0 +1,3 @@
-- AlterTable
ALTER TABLE "Note" ADD COLUMN "isFavorite" BOOLEAN NOT NULL DEFAULT 0;

View File

@@ -146,6 +146,7 @@ model Note {
taskId String? // Tâche associée à la note
folderId String? // Dossier contenant la note
order Int @default(0) // Ordre manuel de la note dans son dossier
isFavorite Boolean @default(false) // Note favorite
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
user User @relation(fields: [userId], references: [id], onDelete: Cascade)