23 lines
1.1 KiB
C#
23 lines
1.1 KiB
C#
namespace UtopiaCanteenSystem.Models;
|
|
|
|
/// <summary>
|
|
/// Meal timing window from production hrms.meal_schedule. id is bigint; location_site_id displayed as normalized string (e.g. "02").
|
|
/// </summary>
|
|
public class MealSchedule
|
|
{
|
|
public long Id { get; set; }
|
|
/// <summary>Raw meal_name from hrms.meal_schedule (e.g. \"Sehri\", \"Iftari\", \"Tea\", \"Dinner\").</summary>
|
|
public string MealName { get; set; } = string.Empty;
|
|
/// <summary>Site identifier (matches ScanRecord.SiteId / config).</summary>
|
|
public string LocationSiteId { get; set; } = string.Empty;
|
|
/// <summary>Session type: 0=Breakfast, 1=Lunch, 2=Tea, 3=Dinner (MealSession enum value).</summary>
|
|
public int MealSession { get; set; }
|
|
/// <summary>Window start time, stored as "HH:mm:ss".</summary>
|
|
public string StartTime { get; set; } = string.Empty;
|
|
/// <summary>Window end time, stored as "HH:mm:ss".</summary>
|
|
public string EndTime { get; set; } = string.Empty;
|
|
public bool IsActive { get; set; }
|
|
public DateTime CreatedAt { get; set; }
|
|
public DateTime UpdatedAt { get; set; }
|
|
}
|