FlPartnerDbEntity.cs 1.41 KB
using SqlSugar;

namespace FoodLabeling.Application.Services.DbModels;

/// <summary>
/// 合作伙伴主数据(Account Management / Partner,表 fl_partner)
/// </summary>
[SugarTable("fl_partner")]
public class FlPartnerDbEntity
{
    [SugarColumn(IsPrimaryKey = true)]
    public string Id { get; set; } = string.Empty;

    public bool IsDeleted { get; set; }

    public DateTime CreationTime { get; set; }

    public string? CreatorId { get; set; }

    public string? LastModifierId { get; set; }

    public DateTime? LastModificationTime { get; set; }

    /// <summary>
    /// 合作伙伴名称(公司名)
    /// </summary>
    public string PartnerName { get; set; } = string.Empty;

    /// <summary>
    /// 联系邮箱
    /// </summary>
    public string? ContactEmail { get; set; }

    /// <summary>
    /// 电话
    /// </summary>
    public string? PhoneNumber { get; set; }

    public string? Street { get; set; }

    public string? City { get; set; }

    /// <summary>
    /// 州/省代码(如 NY);勿与启用状态字段 <see cref="State"/> 混淆
    /// </summary>
    [SugarColumn(ColumnName = "StateCode")]
    public string? StateCode { get; set; }

    public string? Country { get; set; }

    [SugarColumn(ColumnName = "ZipCode")]
    public string? ZipCode { get; set; }

    /// <summary>
    /// 是否启用(对应 UI Active)
    /// </summary>
    public bool State { get; set; }
}