sys_code.cs 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. using Business.Model;
  2. using Microsoft.EntityFrameworkCore;
  3. using System.ComponentModel;
  4. using System.ComponentModel.DataAnnotations;
  5. using System.ComponentModel.DataAnnotations.Schema;
  6. using Volo.Abp.Domain.Entities;
  7. namespace Bussiness.Model.SystemData
  8. {
  9. /// <summary>
  10. /// 系统编码表
  11. /// </summary>
  12. [Comment("系统编码表")]
  13. public class sys_code:Entity<long>
  14. {
  15. ///// <summary>
  16. ///// 主键id
  17. ///// </summary>
  18. //[Key]
  19. //[Comment("主键id")]
  20. //public long sys_code_id { get; set; }
  21. /// <summary>
  22. /// 编码生成名称
  23. /// </summary>
  24. [StringLength(50)]
  25. [Required]
  26. [Comment("编码生成名称")]
  27. public string? code_name { get; set; }
  28. /// <summary>
  29. /// 编码生成规则
  30. /// </summary>
  31. [Required]
  32. [StringLength(50)]
  33. [Comment("编码生成规则")]
  34. public string? code_rule { get; set; }
  35. /// <summary>
  36. /// 编码生成时间
  37. /// </summary>
  38. [Required]
  39. [Comment("编码生成时间")]
  40. public DateTime? code_date { get; set; }
  41. /// <summary>
  42. /// 编码生成当前值
  43. /// </summary>
  44. [Required]
  45. [Comment("编码生成当前值")]
  46. public long? code_value { get; set; }
  47. /// <summary>
  48. /// 中文注释
  49. /// </summary>
  50. [StringLength(255)]
  51. [Comment("中文注释")]
  52. public string? chinese_name { get; set; }
  53. }
  54. }