sepehr 8d95f34fcc fix: Add debounced Undo/Redo system to avoid character-by-character history
- Add debounced state updates for title and content (500ms delay)
- Immediate UI updates with delayed history saving
- Prevent one-letter-per-undo issue
- Add cleanup for debounce timers on unmount
2026-01-04 14:28:11 +01:00

26 lines
616 B
Plaintext

generator client {
provider = "prisma-client-js"
output = "../node_modules/.prisma/client"
}
datasource db {
provider = "sqlite"
url = "file:../../keep-notes/prisma/dev.db"
}
model Note {
id String @id @default(cuid())
title String?
content String
color String @default("default")
type String @default("text")
checkItems String?
labels String?
images String?
isPinned Boolean @default(false)
isArchived Boolean @default(false)
order Int @default(0)
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
}