SHA256
- 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.
27 lines
842 B
C#
27 lines
842 B
C#
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; }
|
|
} |