Lot2Lot3Model.cs 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. using SqlSugar;
  2. namespace EInk.Models
  3. {
  4. [SugarIndex("index_lot_id", nameof(lot_id), OrderByType.Asc)]
  5. [SugarIndex("index_product_id", nameof(product_id), OrderByType.Asc)]
  6. [SugarIndex("index_is_send", nameof(is_send), OrderByType.Asc)]
  7. [SugarTable("lot2lot3_info")]
  8. public class Lot2Lot3Model
  9. {
  10. [SugarColumn(ColumnName = "id", IsPrimaryKey = true, IsIdentity = true)]
  11. public long id { get; set; }
  12. [SugarColumn(ColumnName = "lot_id", ColumnDataType = StaticConfig.CodeFirst_BigString)]
  13. public string lot_id { get; set; }
  14. [SugarColumn(ColumnName = "product_no", ColumnDataType = StaticConfig.CodeFirst_BigString)]
  15. public string product_no { get; set; }
  16. [SugarColumn(ColumnName = "product_id")]
  17. public long product_id { get; set; }
  18. [SugarColumn(ColumnName = "is_send")]
  19. public int is_send { get; set; }
  20. [SugarColumn(ColumnName = "is_repeatupload")]
  21. public int is_repeatupload { get; set; }
  22. [SugarColumn(ColumnName = "create_time")]
  23. public DateTime create_time { get; set; }
  24. [SugarColumn(ColumnName = "send_time")]
  25. public DateTime send_time { get; set; }
  26. [SugarColumn(ColumnName = "operation_time")]
  27. public DateTime operation_time { get; set; }
  28. [SugarColumn(ColumnName = "content", ColumnDataType = StaticConfig.CodeFirst_BigString)]
  29. public string content { get; set; }
  30. }
  31. }