|
@@ -14,6 +14,7 @@ const pageBulkExportJobSchema = new Schema<PageBulkExportJobDocument>({
|
|
|
page: { type: Schema.Types.ObjectId, ref: 'Page', required: true },
|
|
page: { type: Schema.Types.ObjectId, ref: 'Page', required: true },
|
|
|
lastExportedPagePath: { type: String },
|
|
lastExportedPagePath: { type: String },
|
|
|
uploadId: { type: String, unique: true, sparse: true },
|
|
uploadId: { type: String, unique: true, sparse: true },
|
|
|
|
|
+ uploadKey: { type: String, unique: true, sparse: true },
|
|
|
format: { type: String, enum: Object.values(PageBulkExportFormat), required: true },
|
|
format: { type: String, enum: Object.values(PageBulkExportFormat), required: true },
|
|
|
completedAt: { type: Date },
|
|
completedAt: { type: Date },
|
|
|
attachment: { type: Schema.Types.ObjectId, ref: 'Attachment' },
|
|
attachment: { type: Schema.Types.ObjectId, ref: 'Attachment' },
|