StandardItemModelSet.cs 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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.Drawing;
  7. using System.Linq;
  8. using System.Text;
  9. using System.Threading.Tasks;
  10. namespace Business.Domain
  11. {
  12. /// <summary>
  13. /// 标准物料规格型号设置表
  14. /// </summary>
  15. [Comment("标准物料规格型号设置表")]
  16. [Index(nameof(Model), nameof(tenant_id), nameof(factory_id), IsUnique = true)]
  17. public class StandardItemModelSet
  18. {
  19. /// <summary>
  20. /// 主键
  21. /// </summary>
  22. [Comment("主键")]
  23. [Key]
  24. [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
  25. public long Id { get; set; }
  26. /// <summary>
  27. /// 规格型号
  28. /// </summary>
  29. [Comment("规格型号")]
  30. public string Model { get; set; }
  31. /// <summary>
  32. /// 物料编码
  33. /// </summary>
  34. [Comment("物料编码")]
  35. public string ItemNumber { get; set; }
  36. /// <summary>
  37. /// 集团id
  38. /// </summary>
  39. [Comment("集团id")]
  40. public long tenant_id { get; set; }
  41. /// <summary>
  42. /// 工厂id
  43. /// </summary>
  44. [Comment("工厂id")]
  45. public long factory_id { get; set; }
  46. /// <summary>
  47. /// 创建时间
  48. /// </summary>
  49. [Comment("创建时间")]
  50. public DateTime CreateTime { get; set; }
  51. }
  52. }