SHA256
feat StayExport - Added ExportDetails for StayExports
Store a new field ('ExportDetails') with export details. This is a JSON field in DB that can store information about the export depending on the format provider used.
Changes:
- Updated models and created required migrations.
- Show field in StayExport list.
This commit is contained in:
@@ -13,6 +13,8 @@ public class StayExportFileDTO
|
||||
public StayExportFileResult? ExportResult { get; set; }
|
||||
|
||||
public string? ExportedPath { get; set; }
|
||||
|
||||
public string? ExportDetails { get; set; }
|
||||
|
||||
|
||||
public DateTime? ExportTime { get; set; }
|
||||
|
||||
@@ -17,6 +17,11 @@ public class StayExportFile : BaseEntity
|
||||
/// </summary>
|
||||
public string? ExportedPath { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// A JSON column to store details about the exported file.
|
||||
/// This details can contain information about errors, which stays where included, etc.
|
||||
/// </summary>
|
||||
public string? ExportDetails { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Date/Time when export file was generated.
|
||||
|
||||
@@ -67,6 +67,7 @@ internal static class EntityMapping
|
||||
ExportParams = exportParamsDto,
|
||||
ExportResult = entity.ExportResult,
|
||||
ExportedPath = entity.ExportedPath,
|
||||
ExportDetails = entity.ExportDetails,
|
||||
ExportTime = entity.ExportTime,
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user