sys_measure_unit.cs 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. using Business.Model;
  2. using Microsoft.EntityFrameworkCore;
  3. using System.ComponentModel;
  4. using System.ComponentModel.DataAnnotations;
  5. using Volo.Abp.Domain.Entities;
  6. namespace Bussiness.Model.SystemData
  7. {
  8. /// <summary>
  9. /// 计量单位信息表
  10. /// </summary>
  11. [Comment("计量单位信息表")]
  12. public class sys_measure_unit:Entity<long>
  13. {
  14. ///// <summary>
  15. ///// 主键id
  16. ///// </summary>
  17. //[Key]
  18. //[Comment("主键id")]
  19. //public long unit_id { get; set; }
  20. /// <summary>
  21. /// 单位名称
  22. /// </summary>
  23. [StringLength(50)]
  24. [Comment("单位名称")]
  25. public string? unit_name { get; set; }
  26. /// <summary>
  27. /// 单位编码
  28. /// </summary>
  29. [StringLength(50)]
  30. [Comment("单位编码")]
  31. public string? unit_code { get; set; }
  32. /// <summary>
  33. /// 是否是标准单位0-否,1是
  34. /// </summary>
  35. [Comment("是否是标准单位0-否,1是")]
  36. [DefaultValue(true)]
  37. public bool is_standard { get; set; }
  38. /// <summary>
  39. /// 状态:0-无效,1-有效
  40. /// </summary>
  41. [Comment("状态:0-无效,1-有效")]
  42. [DefaultValue(true)]
  43. public bool status { get; set; }
  44. }
  45. }