feat(Notes): implement manual ordering for notes, add drag-and-drop functionality, and update related components for reordering
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
-- AlterTable Note - Add order column
|
||||
ALTER TABLE "Note" ADD COLUMN "order" INTEGER NOT NULL DEFAULT 0;
|
||||
|
||||
@@ -145,6 +145,7 @@ model Note {
|
||||
userId String
|
||||
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
|
||||
createdAt DateTime @default(now())
|
||||
updatedAt DateTime @updatedAt
|
||||
user User @relation(fields: [userId], references: [id], onDelete: Cascade)
|
||||
|
||||
Reference in New Issue
Block a user