namespace Admin.NET.Plugin.AiDOP.Entity.S0.Sales; /// /// 客户主数据(复刻 CustMaster) /// [SugarTable("CustMaster", "客户主数据(复刻 CustMaster)")] [SugarIndex("uk_CustMaster_factory_cust", nameof(FactoryRefId), OrderByType.Asc, nameof(Cust), OrderByType.Asc, IsUnique = true)] public class AdoS0CustMaster { [SugarColumn(ColumnName = "rec_id", ColumnDescription = "主键", IsPrimaryKey = true, IsIdentity = true, ColumnDataType = "bigint")] public long Id { get; set; } [SugarColumn(ColumnName = "company_ref_id", ColumnDescription = "关联公司 ID", ColumnDataType = "bigint")] public long CompanyRefId { get; set; } [SugarColumn(ColumnName = "factory_ref_id", ColumnDescription = "关联工厂 ID", ColumnDataType = "bigint")] public long FactoryRefId { get; set; } [SugarColumn(ColumnName = "domain_code", ColumnDescription = "工厂域编码", Length = 50, IsNullable = true)] public string? DomainCode { get; set; } [SugarColumn(ColumnName = "cust", ColumnDescription = "客户编码", Length = 100)] public string Cust { get; set; } = string.Empty; [SugarColumn(ColumnName = "sort_name", ColumnDescription = "客户简称", Length = 200, IsNullable = true)] public string? SortName { get; set; } [SugarColumn(ColumnName = "curr", ColumnDescription = "币种", Length = 20, IsNullable = true)] public string? Curr { get; set; } [SugarColumn(ColumnName = "slspsn1", ColumnDescription = "主销售员", Length = 100, IsNullable = true)] public string? Slspsn1 { get; set; } [SugarColumn(ColumnName = "slspsn2", ColumnDescription = "备用销售员", Length = 100, IsNullable = true)] public string? Slspsn2 { get; set; } [SugarColumn(ColumnName = "ship_to", ColumnDescription = "发至", Length = 200, IsNullable = true)] public string? ShipTo { get; set; } [SugarColumn(ColumnName = "tax_class", ColumnDescription = "税类型", Length = 50, IsNullable = true)] public string? TaxClass { get; set; } [SugarColumn(ColumnName = "tax_in", ColumnDescription = "是否含税", ColumnDataType = "boolean")] public bool TaxIn { get; set; } = true; [SugarColumn(ColumnName = "cust_class", ColumnDescription = "客户级别", Length = 50, IsNullable = true)] public string? CustClass { get; set; } [SugarColumn(ColumnName = "remarks", ColumnDescription = "备注", Length = 1000, IsNullable = true)] public string? Remarks { get; set; } [SugarColumn(ColumnName = "is_active", ColumnDescription = "是否启用", ColumnDataType = "boolean")] public bool IsActive { get; set; } = true; [SugarColumn(ColumnName = "is_confirm", ColumnDescription = "是否确认", ColumnDataType = "boolean")] public bool IsConfirm { get; set; } [SugarColumn(ColumnName = "create_user", ColumnDescription = "创建人", Length = 100, IsNullable = true)] public string? CreateUser { get; set; } [SugarColumn(ColumnName = "create_time", ColumnDescription = "创建时间")] public DateTime CreateTime { get; set; } = DateTime.Now; [SugarColumn(ColumnName = "update_user", ColumnDescription = "更新人", Length = 100, IsNullable = true)] public string? UpdateUser { get; set; } [SugarColumn(ColumnName = "update_time", ColumnDescription = "更新时间", IsNullable = true)] public DateTime? UpdateTime { get; set; } }