ProductionRecord.cs 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. using System;
  2. using SqlSugar;
  3. namespace TeamAAS_VP.Models
  4. {
  5. [SugarTable("ProductionRecord")]
  6. public class ProductionRecord
  7. {
  8. [SugarColumn(IsPrimaryKey = true)]
  9. public Guid Id { get; set; } = Guid.NewGuid();
  10. public string ProductName { get; set; }
  11. /// <summary>
  12. /// ²úÆ·±àºÅ
  13. /// </summary>
  14. [SugarColumn(Length = 255, IsNullable = true)]
  15. public string ProductCode { get; set; }
  16. /// <summary>
  17. /// É豸ID
  18. /// </summary>
  19. public int DeviceId { get; set; }
  20. /// <summary>
  21. /// É豸±àºÅ
  22. /// </summary>
  23. [SugarColumn(Length = 255, IsNullable = true)]
  24. public string DeviceName { get; set; }
  25. public DateTime Timestamp { get; set; } = DateTime.UtcNow;
  26. /// <summary>
  27. /// Category like "OK", "NG", etc.
  28. /// </summary>
  29. public string Category { get; set; }
  30. /// <summary>
  31. /// quantity for this record
  32. /// </summary>
  33. public int Quantity { get; set; }
  34. /// <summary>
  35. /// The user name of the operator who generated this record.
  36. /// </summary>
  37. [SugarColumn(Length = 255, IsNullable = true)]
  38. public string UserName { get; set; }
  39. public string Remark { get; set; }
  40. }
  41. }