namespace Admin.NET.Plugin.AiDOP.Order;
///
/// 销售订单变更表(crm_seorder_change)
///
[SugarTable("crm_seorder_change", "销售订单变更表")]
public class SeOrderChange
{
[SugarColumn(ColumnName = "Id", IsPrimaryKey = true, IsIdentity = false)]
public long Id { get; set; }
[SugarColumn(ColumnName = "seorder_id")]
public long SeOrderId { get; set; }
[SugarColumn(ColumnName = "bill_no", Length = 64)]
public string? BillNo { get; set; }
/// 1=销售 2=计划
[SugarColumn(ColumnName = "order_type")]
public int? OrderType { get; set; }
[SugarColumn(ColumnName = "custom_id")]
public long? CustomId { get; set; }
[SugarColumn(ColumnName = "custom_no", Length = 64)]
public string? CustomNo { get; set; }
[SugarColumn(ColumnName = "custom_name", Length = 128)]
public string? CustomName { get; set; }
[SugarColumn(ColumnName = "date")]
public DateTime? Date { get; set; }
[SugarColumn(ColumnName = "custom_level")]
public int? CustomLevel { get; set; }
[SugarColumn(ColumnName = "urgent")]
public int? Urgent { get; set; }
[SugarColumn(ColumnName = "bill_from", Length = 128)]
public string? BillFrom { get; set; }
[SugarColumn(ColumnName = "country", Length = 64)]
public string? Country { get; set; }
[SugarColumn(ColumnName = "rdate")]
public DateTime? RDate { get; set; }
/// 变更原因:客户原因 / 公司原因
[SugarColumn(ColumnName = "change_Reason", Length = 64)]
public string? ChangeReason { get; set; }
/// 变更要求:变更订单 / 取消订单
[SugarColumn(ColumnName = "change_Type", Length = 64)]
public string? ChangeType { get; set; }
[SugarColumn(ColumnName = "change_content", Length = 1024)]
public string? ChangeContent { get; set; }
[SugarColumn(ColumnName = "flowstate", Length = 64)]
public string? FlowState { get; set; }
[SugarColumn(ColumnName = "IsDeleted")]
public int IsDeleted { get; set; } = 0;
[SugarColumn(ColumnName = "create_by_name", Length = 64)]
public string? CreateByName { get; set; }
[SugarColumn(ColumnName = "create_time")]
public DateTime? CreateTime { get; set; }
[SugarColumn(ColumnName = "update_time")]
public DateTime? UpdateTime { get; set; }
[SugarColumn(ColumnName = "tenant_id")]
public long? TenantId { get; set; }
[SugarColumn(ColumnName = "factory_id")]
public long? FactoryId { get; set; }
}