refactor: userpreferences are now in the DB

This commit is contained in:
Julien Froidefond
2025-09-17 08:30:36 +02:00
parent 4f137455f4
commit 14d300c682
24 changed files with 763 additions and 404 deletions

View File

@@ -0,0 +1,9 @@
-- CreateTable
CREATE TABLE "user_preferences" (
"id" TEXT NOT NULL PRIMARY KEY,
"kanbanFilters" JSONB,
"viewPreferences" JSONB,
"columnVisibility" JSONB,
"createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
"updatedAt" DATETIME NOT NULL
);

View File

@@ -84,3 +84,21 @@ model DailyCheckbox {
@@index([date])
@@map("daily_checkboxes")
}
model UserPreferences {
id String @id @default(cuid())
// Filtres Kanban (JSON)
kanbanFilters Json?
// Préférences de vue (JSON)
viewPreferences Json?
// Visibilité des colonnes (JSON)
columnVisibility Json?
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
@@map("user_preferences")
}