added the day with the backups and also added additional backups

This commit is contained in:
Mosiur Rahman
2025-01-07 11:20:10 +06:00
parent f5a86a0b5d
commit ca9696bf03
3 changed files with 404 additions and 27 deletions

View File

@@ -19,12 +19,16 @@ const headerSchema = new mongoose.Schema({
headerName: String
})
interface IDay {
day: string
}
interface IBackup {
projectName: string,
projectURL: string,
volumeName: string,
volumeURL: string,
day: string
backupDay: Array<IDay>
}
interface IUpdate {
@@ -51,7 +55,7 @@ const backupSchema = new mongoose.Schema<IBackup>({
projectURL: String,
volumeName: String,
volumeURL: String,
day: String
backupDay: Array<IDay>
},
{
toJSON: { virtuals: true },