namespace Admin.NET.Plugin.AiDOP.Entity.S0.Sales; /// /// 客户主数据(S0 Sales / sales_customer) /// [SugarTable("ado_s0_sales_customer", "S0 客户主数据")] [SugarIndex("uk_ado_s0_sales_customer_code", nameof(Code), OrderByType.Asc, true)] public class AdoS0Customer { [SugarColumn(ColumnDescription = "主键", IsPrimaryKey = true, IsIdentity = true, ColumnDataType = "bigint")] public long Id { get; set; } [SugarColumn(ColumnDescription = "关联公司 ID", ColumnDataType = "bigint")] public long CompanyRefId { get; set; } [SugarColumn(ColumnDescription = "关联工厂 ID", ColumnDataType = "bigint")] public long FactoryRefId { get; set; } [SugarColumn(ColumnDescription = "客户编码", Length = 100)] public string Code { get; set; } = string.Empty; [SugarColumn(ColumnDescription = "客户名称", Length = 200)] public string Name { get; set; } = string.Empty; [SugarColumn(ColumnDescription = "英文名称", Length = 200, IsNullable = true)] public string? NameEn { get; set; } [SugarColumn(ColumnDescription = "客户类型", Length = 50, IsNullable = true)] public string? CustomerType { get; set; } [SugarColumn(ColumnDescription = "联系人", Length = 100, IsNullable = true)] public string? ContactPerson { get; set; } [SugarColumn(ColumnDescription = "联系电话", Length = 50, IsNullable = true)] public string? ContactPhone { get; set; } [SugarColumn(ColumnDescription = "地址", Length = 500, IsNullable = true)] public string? Address { get; set; } [SugarColumn(ColumnDescription = "禁用状态", Length = 50)] public string ForbidStatus { get; set; } = "normal"; [SugarColumn(ColumnDescription = "币种", Length = 20, IsNullable = true)] public string? Currency { get; set; } [SugarColumn(ColumnDescription = "是否含税", ColumnDataType = "boolean")] public bool IsTaxIncluded { get; set; } = true; [SugarColumn(ColumnDescription = "主销售员", Length = 100, IsNullable = true)] public string? PrimarySales { get; set; } [SugarColumn(ColumnDescription = "备用销售员", Length = 100, IsNullable = true)] public string? BackupSales { get; set; } [SugarColumn(ColumnDescription = "客户等级")] public int CustomerLevel { get; set; } = 1; [SugarColumn(ColumnDescription = "备注", Length = 1000, IsNullable = true)] public string? Remark { get; set; } [SugarColumn(ColumnDescription = "启用", ColumnDataType = "boolean")] public bool IsEnabled { get; set; } = true; [SugarColumn(ColumnDescription = "创建时间")] public DateTime CreatedAt { get; set; } = DateTime.Now; [SugarColumn(ColumnDescription = "更新时间", IsNullable = true)] public DateTime? UpdatedAt { get; set; } }