feat: add BackupCard component and corresponding Backup model to enhance settings functionality and data management
This commit is contained in:
6
prisma/backup-settings.json
Normal file
6
prisma/backup-settings.json
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"enabled": true,
|
||||
"frequency": "hourly",
|
||||
"lastBackup": "2025-11-30T06:48:53.740Z",
|
||||
"nextBackup": "2025-11-30T07:00:00.000Z"
|
||||
}
|
||||
@@ -86,3 +86,14 @@ model Category {
|
||||
|
||||
@@index([parentId])
|
||||
}
|
||||
|
||||
model Backup {
|
||||
id String @id @default(cuid())
|
||||
filename String
|
||||
filePath String
|
||||
size Int // Size in bytes
|
||||
dataHash String? // Hash of the actual data (excluding Backup table)
|
||||
createdAt DateTime @default(now())
|
||||
|
||||
@@index([createdAt])
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user