feat: Implement database persistence and synchronization for user theme preferences

This commit is contained in:
2025-11-29 03:08:10 -05:00
parent a1c7b9223f
commit 03579bc625
6 changed files with 599 additions and 490 deletions

View File

@@ -29,6 +29,9 @@ export const users = createTable("user", (d) => ({
// Custom fields
prefersReducedMotion: d.boolean().default(false).notNull(),
animationSpeedMultiplier: d.real().default(1).notNull(),
colorTheme: d.varchar({ length: 50 }).default("slate").notNull(),
customColor: d.varchar({ length: 50 }),
theme: d.varchar({ length: 20 }).default("system").notNull(),
}));
export const usersRelations = relations(users, ({ many }) => ({