feat(automatic-backup-to-usb) - done v1
This commit is contained in:
@@ -29,6 +29,7 @@ model User {
|
||||
insuranceCredentials InsuranceCredential[]
|
||||
updatedPayments Payment[] @relation("PaymentUpdatedBy")
|
||||
backups DatabaseBackup[]
|
||||
backupDestinations BackupDestination[]
|
||||
notifications Notification[]
|
||||
cloudFolders CloudFolder[]
|
||||
cloudFiles CloudFile[]
|
||||
@@ -301,6 +302,7 @@ enum PaymentMethod {
|
||||
OTHER
|
||||
}
|
||||
|
||||
// Database management page
|
||||
model DatabaseBackup {
|
||||
id Int @id @default(autoincrement())
|
||||
userId Int
|
||||
@@ -312,6 +314,16 @@ model DatabaseBackup {
|
||||
@@index([createdAt])
|
||||
}
|
||||
|
||||
model BackupDestination {
|
||||
id Int @id @default(autoincrement())
|
||||
userId Int
|
||||
path String
|
||||
isActive Boolean @default(true)
|
||||
createdAt DateTime @default(now())
|
||||
|
||||
user User @relation(fields: [userId], references: [id])
|
||||
}
|
||||
|
||||
model Notification {
|
||||
id Int @id @default(autoincrement())
|
||||
userId Int
|
||||
|
||||
Reference in New Issue
Block a user