MonthlyProdCapacityMain.cs 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. using Microsoft.EntityFrameworkCore;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.ComponentModel.DataAnnotations.Schema;
  5. using System.ComponentModel.DataAnnotations;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Threading.Tasks;
  9. namespace Business.Domain
  10. {
  11. /// <summary>
  12. /// 月度产能共识主表
  13. /// </summary>
  14. [Comment("月度产能共识主表")]
  15. [Index(nameof(Year), nameof(Month), nameof(ProdRange), nameof(Model), nameof(ProdLine), nameof(tenant_id), nameof(factory_id), IsUnique = true)]
  16. public class MonthlyProdCapacityMain
  17. {
  18. /// <summary>
  19. /// 主键
  20. /// </summary>
  21. [Comment("主键")]
  22. [Key]
  23. public long Id { get; set; }
  24. /// <summary>
  25. /// 年
  26. /// </summary>
  27. [Comment("年")]
  28. public int? Year { get; set; }
  29. /// <summary>
  30. /// 月
  31. /// </summary>
  32. [Comment("月")]
  33. public int? Month { get; set; }
  34. /// <summary>
  35. /// 产品系列
  36. /// </summary>
  37. [Comment("产品系列")]
  38. public string ProdRange { get; set; }
  39. /// <summary>
  40. /// 规格型号
  41. /// </summary>
  42. [Comment("规格型号")]
  43. public string Model { get; set; }
  44. /// <summary>
  45. /// 产品数量
  46. /// </summary>
  47. [Comment("产品数量")]
  48. public decimal? ProdQty { get; set; }
  49. /// <summary>
  50. /// 生产线
  51. /// </summary>
  52. [Comment("生产线")]
  53. public string ProdLine { get; set; }
  54. /// <summary>
  55. /// 产线生产数量
  56. /// </summary>
  57. [Comment("产线生产数量")]
  58. public decimal? Qty { get; set; }
  59. /// <summary>
  60. /// 集团id
  61. /// </summary>
  62. [Comment("集团id")]
  63. public long? tenant_id { get; set; }
  64. /// <summary>
  65. /// 工厂id
  66. /// </summary>
  67. [Comment("工厂id")]
  68. public long? factory_id { get; set; }
  69. /// <summary>
  70. /// 创建时间
  71. /// </summary>
  72. [Comment("创建时间")]
  73. public DateTime? CreateTime { get; set; }
  74. /// <summary>
  75. /// 整体需求计划版本号
  76. /// </summary>
  77. [Comment("整体需求计划版本号")]
  78. public string Version { get; set; }
  79. }
  80. }