feat: add configurable backup time for local and USB backups

Replace hardcoded 8 PM / 9 PM backup schedules with user-selectable
hour dropdowns. Adds autoBackupHour and usbBackupHour fields to User
model. Cron jobs now check every hour against the configured time.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
ff
2026-06-24 23:37:34 -04:00
parent 5e881c9ff7
commit 70b5e2ba47
5 changed files with 74 additions and 76 deletions

View File

@@ -23,7 +23,9 @@ model User {
username String @unique
password String
autoBackupEnabled Boolean @default(true)
autoBackupHour Int @default(20)
usbBackupEnabled Boolean @default(false)
usbBackupHour Int @default(21)
patients Patient[]
appointments Appointment[]
staff Staff[]