Files
TakeoutSaaS.AdminApi/src/Domain/TakeoutSaaS.Domain/Stores/Entities/StorePickupSlot.cs
2026-02-04 10:46:32 +08:00

61 lines
1.4 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
using System.ComponentModel.DataAnnotations;
using TakeoutSaaS.Shared.Abstractions.Entities;
namespace TakeoutSaaS.Domain.Stores.Entities;
/// <summary>
/// 门店自提档期。
/// </summary>
public sealed class StorePickupSlot : MultiTenantEntityBase
{
/// <summary>
/// 门店标识。
/// </summary>
public long StoreId { get; set; }
/// <summary>
/// 档期名称。
/// </summary>
public string Name { get; set; } = string.Empty;
/// <summary>
/// 当天开始时间UTC
/// </summary>
public TimeSpan StartTime { get; set; }
/// <summary>
/// 当天结束时间UTC
/// </summary>
public TimeSpan EndTime { get; set; }
/// <summary>
/// 截单分钟(开始前多少分钟截止)。
/// </summary>
public int CutoffMinutes { get; set; } = 30;
/// <summary>
/// 容量(份数)。
/// </summary>
public int Capacity { get; set; }
/// <summary>
/// 已占用数量。
/// </summary>
public int ReservedCount { get; set; }
/// <summary>
/// 适用星期(逗号分隔 1-7
/// </summary>
public string Weekdays { get; set; } = "1,2,3,4,5,6,7";
/// <summary>
/// 是否启用。
/// </summary>
public bool IsEnabled { get; set; } = true;
/// <summary>
/// 并发控制字段(映射到 PostgreSQL xmin
/// </summary>
public uint RowVersion { get; set; }
}