using TakeoutSaaS.Shared.Abstractions.Entities;

namespace TakeoutSaaS.Domain.Stores.Entities;

/// <summary>
/// 门店配送范围配置。
/// </summary>
public sealed class StoreDeliveryZone : MultiTenantEntityBase
{
    /// <summary>
    /// 门店标识。
    /// </summary>
    public long StoreId { get; set; }

    /// <summary>
    /// 区域名称。
    /// </summary>
    public string ZoneName { get; set; } = string.Empty;

    /// <summary>
    /// GeoJSON 表示的多边形范围。
    /// </summary>
    public string PolygonGeoJson { get; set; } = string.Empty;

    /// <summary>
    /// 起送价。
    /// </summary>
    public decimal? MinimumOrderAmount { get; set; }

    /// <summary>
    /// 配送费。
    /// </summary>
    public decimal? DeliveryFee { get; set; }

    /// <summary>
    /// 预计送达分钟。
    /// </summary>
    public int? EstimatedMinutes { get; set; }

    /// <summary>
    /// 区域颜色。
    /// </summary>
    public string? Color { get; set; }

    /// <summary>
    /// 优先级（数值越小越优先）。
    /// </summary>
    public int Priority { get; set; } = 100;

    /// <summary>
    /// 排序值。
    /// </summary>
    public int SortOrder { get; set; } = 100;
}
