ProductionRecord.cs 832 B

123456789101112131415161718192021222324252627282930
  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. public DateTime Timestamp { get; set; } = DateTime.UtcNow;
  12. /// <summary>
  13. /// Category like "OK", "NG", etc.
  14. /// </summary>
  15. public string Category { get; set; }
  16. /// <summary>
  17. /// quantity for this record
  18. /// </summary>
  19. public int Quantity { get; set; }
  20. /// <summary>
  21. /// The user name of the operator who generated this record.
  22. /// </summary>
  23. [SugarColumn(Length = 255, IsNullable = true)]
  24. public string UserName { get; set; }
  25. }
  26. }