ProductionRecord.cs 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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. /// <summary>
  40. /// 구鬧
  41. /// </summary>
  42. [SugarColumn(Length = 500, IsNullable = true)]
  43. public string Remark { get; set; }
  44. }
  45. }