mo_sys_code_pre.cs 1.5 KB

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