PhotoCaptureRecord.cs 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. using SqlSugar;
  2. using System;
  3. namespace TeamAAS_VP.Models
  4. {
  5. [SugarTable("PhotoCaptureRecord")]
  6. public class PhotoCaptureRecord
  7. {
  8. [SugarColumn(IsPrimaryKey = true)]
  9. public Guid Id { get; set; } = Guid.NewGuid();
  10. /// <summary>
  11. /// 拍照时间
  12. /// </summary>
  13. public DateTime CaptureTime { get; set; } = DateTime.UtcNow;
  14. /// <summary>
  15. /// 配方名
  16. /// </summary>
  17. [SugarColumn(Length = 255, IsNullable = true)]
  18. public string RecipeName { get; set; }
  19. /// <summary>
  20. /// 产品序列号
  21. /// </summary>
  22. [SugarColumn(Length = 255, IsNullable = true)]
  23. public string ProductSN { get; set; }
  24. /// <summary>
  25. /// 相机名
  26. /// </summary>
  27. [SugarColumn(Length = 255, IsNullable = true)]
  28. public string CameraName { get; set; }
  29. /// <summary>
  30. /// 流程名
  31. /// </summary>
  32. [SugarColumn(Length = 255, IsNullable = true)]
  33. public string ProcessName { get; set; }
  34. /// <summary>
  35. /// 是否成功
  36. /// </summary>
  37. public bool IsSuccess { get; set; }
  38. /// <summary>
  39. /// 机器人拍照位置
  40. /// </summary>
  41. public string RobotPosition { get; set; }
  42. /// <summary>
  43. /// 像素坐标
  44. /// </summary>
  45. public string PixelPosition { get; set; }
  46. /// <summary>
  47. /// 绝对坐标
  48. /// </summary>
  49. public string AbsolutePosition { get; set; }
  50. /// <summary>
  51. /// 图片路径
  52. /// </summary>
  53. [SugarColumn(Length = 1000, IsNullable = true)]
  54. public string ImagePath { get; set; }
  55. /// <summary>
  56. /// 备注
  57. /// </summary>
  58. [SugarColumn(Length = 1000, IsNullable = true)]
  59. public string Remarks { get; set; }
  60. /// <summary>
  61. /// 当前的操作员名称
  62. /// </summary>
  63. [SugarColumn(Length = 255, IsNullable = true)]
  64. public string OperatorName { get; set; }
  65. }
  66. }