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
committed by mosiur rahman
parent 854b4ecee6
commit e567ee02d1
3 changed files with 404 additions and 27 deletions

View File

@@ -20,12 +20,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 {
@@ -52,7 +56,7 @@ const backupSchema = new mongoose.Schema<IBackup>({
projectURL: String,
volumeName: String,
volumeURL: String,
day: String
backupDay: Array<IDay>
},
{
toJSON: { virtuals: true },