mo_sys_code.cs 1.8 KB

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