using SqlSugar; using Volo.Abp.Auditing; using Volo.Abp.Domain.Entities; using Yi.Framework.Core.Data; namespace FoodLabeling.Domain.Entities; /// /// 门店/位置 /// [SugarTable("location")] public class LocationAggregateRoot : AggregateRoot, ISoftDelete, IAuditedObject, IOrderNum, IState { public LocationAggregateRoot() { } public LocationAggregateRoot(Guid id) { Id = id; } /// /// 主键 /// [SugarColumn(IsPrimaryKey = true)] public override Guid Id { get; protected set; } /// /// 逻辑删除 /// public bool IsDeleted { get; set; } /// /// 创建时间 /// public DateTime CreationTime { get; set; } = DateTime.Now; /// /// 创建者 /// public Guid? CreatorId { get; set; } /// /// 最后修改者 /// public Guid? LastModifierId { get; set; } /// /// 最后修改时间 /// public DateTime? LastModificationTime { get; set; } /// /// 排序 /// public int OrderNum { get; set; } = 0; /// /// 启用状态 /// public bool State { get; set; } = true; /// /// Partner(原型中的 Partner 下拉) /// public string? Partner { get; set; } /// /// Group(原型中的 Group 下拉) /// [SugarColumn(ColumnName = "GroupName")] public string? GroupName { get; set; } /// /// Location ID(业务编码) /// [SugarColumn(ColumnName = "LocationCode")] public string LocationCode { get; set; } = string.Empty; /// /// Location Name /// [SugarColumn(ColumnName = "LocationName")] public string LocationName { get; set; } = string.Empty; /// /// Street /// public string? Street { get; set; } /// /// City /// public string? City { get; set; } /// /// State(如 NY) /// [SugarColumn(ColumnName = "StateCode")] public string? StateCode { get; set; } /// /// Country /// public string? Country { get; set; } /// /// Zip Code /// [SugarColumn(ColumnName = "ZipCode")] public string? ZipCode { get; set; } /// /// Phone /// public string? Phone { get; set; } /// /// Email /// public string? Email { get; set; } /// /// Latitude /// public decimal? Latitude { get; set; } /// /// Longitude /// public decimal? Longitude { get; set; } /// /// 经营时间(自由文本,如 Mon–Fri 9:00 AM – 6:00 PM) /// [SugarColumn(ColumnName = "OperatingHours")] public string? OperatingHours { get; set; } }