feat: MVP-4 Sprint 3 - Version history

- Add NoteVersion model for storing note snapshots
- Add versions API (list, create, get, restore)
- Add version history UI dialog in note detail page
- Create version snapshot before each note update
This commit is contained in:
2026-03-22 17:42:47 -03:00
parent e57927e37d
commit 9ed7d8acec
7 changed files with 315 additions and 0 deletions

View File

@@ -78,3 +78,13 @@ model NoteCoUsage {
@@index([fromNoteId])
@@index([toNoteId])
}
model NoteVersion {
id String @id @default(cuid())
noteId String
title String
content String
createdAt DateTime @default(now())
@@index([noteId, createdAt])
}