SHA256
StayExport Tracking - StayExportFile ExportDetails new type/format
- Added new class to unify and type the format of StayExportFile.ExportDetails field. Note: This database migration will set to null all StayExportFile.ExportDetails data. This is required to prevent exceptions due to new formatting.
This commit is contained in:
1 parent
cf62a0e55e
commit
54387a6346
15 files changed
+486
-35
No files matched your search
@@ -0,0 +1,27 @@
|
||||
using Somnia.GuestLog.Enums.Models;
|
||||
using Somnia.GuestLog.Infrastructure;
|
||||
|
||||
namespace Somnia.GuestLog.Models.Entities;
|
||||
|
||||
/// <summary>
|
||||
/// This class store details and extra information about the exported data of a StayExportFile.
|
||||
/// </summary>
|
||||
public class StayExportDetails : BaseEntity
|
||||
{
|
||||
public int? ExportedStayCount { get; set; }
|
||||
public int? StayErrorCount { get; set; }
|
||||
|
||||
public List<StayExportDetailsStayEntry> StayEntries { get; set; } = [];
|
||||
|
||||
public override string GetFullKey() => DbConsts.PK_NotApply;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Export details for each exported stayEntry in a StayExportFile.
|
||||
/// </summary>
|
||||
public class StayExportDetailsStayEntry
|
||||
{
|
||||
public required long StayEntryId { get; set; }
|
||||
public required StayExportDetailsStayEntryResult ExportResult { get; set; }
|
||||
public string? Details { get; set; }
|
||||
}
|
||||
Reference in new issue
Block a user