AdoOrder.cs 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. namespace Admin.NET.Plugin.AiDOP.Entity;
  2. /// <summary>
  3. /// Demo 订单表(与 Gitee Ai-DOP Demo 表名 ado_orders 对齐,便于数据迁移)
  4. /// </summary>
  5. [SugarTable("ado_orders", "AiDOP Demo 订单")]
  6. public class AdoOrder
  7. {
  8. [SugarColumn(ColumnDescription = "主键", IsPrimaryKey = true, IsIdentity = true, ColumnDataType = "integer")]
  9. public long Id { get; set; }
  10. [SugarColumn(ColumnDescription = "订单号", Length = 50)]
  11. public string OrderNo { get; set; } = string.Empty;
  12. [SugarColumn(ColumnDescription = "客户Id", IsNullable = true)]
  13. public long? CustomerId { get; set; }
  14. [SugarColumn(ColumnDescription = "客户名称", Length = 200)]
  15. public string CustomerName { get; set; } = string.Empty;
  16. [SugarColumn(ColumnDescription = "产品Id", IsNullable = true)]
  17. public long? ProductId { get; set; }
  18. [SugarColumn(ColumnDescription = "产品名称", Length = 200)]
  19. public string Product { get; set; } = string.Empty;
  20. [SugarColumn(ColumnDescription = "数量")]
  21. public int Quantity { get; set; }
  22. [SugarColumn(ColumnDescription = "单价", DecimalDigits = 4)]
  23. public decimal UnitPrice { get; set; }
  24. [SugarColumn(ColumnDescription = "金额", DecimalDigits = 4)]
  25. public decimal Amount { get; set; }
  26. [SugarColumn(ColumnDescription = "状态", Length = 50)]
  27. public string Status { get; set; } = "待处理";
  28. [SugarColumn(ColumnDescription = "交货日期", IsNullable = true)]
  29. public DateTime? DeliveryDate { get; set; }
  30. [SugarColumn(ColumnDescription = "备注", Length = 1000, IsNullable = true)]
  31. public string? Remark { get; set; }
  32. [SugarColumn(ColumnDescription = "创建时间")]
  33. public DateTime CreatedTime { get; set; }
  34. [SugarColumn(ColumnDescription = "更新时间", IsNullable = true)]
  35. public DateTime? UpdatedTime { get; set; }
  36. [SugarColumn(ColumnDescription = "创建人", Length = 100, IsNullable = true)]
  37. public string? CreatedBy { get; set; }
  38. }