GenTableColumnEntity.java 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  1. /*
  2. * Copyright (c) 2021-2025, LXQ All rights reserved.
  3. *
  4. * Redistribution and use in source and binary forms, with or without
  5. * modification, are permitted provided that the following conditions are met:
  6. *
  7. * Redistributions of source code must retain the above copyright notice,
  8. * this list of conditions and the following disclaimer.
  9. * Redistributions in binary form must reproduce the above copyright
  10. * notice, this list of conditions and the following disclaimer in the
  11. * documentation and/or other materials provided with the distribution.
  12. * Neither the name of the com developer nor the names of its
  13. * contributors may be used to endorse or promote products derived from
  14. * this software without specific prior written permission.
  15. * Author: LXQ (609827073@qq.com)
  16. */
  17. package com.kxs.codegen.biz.entity;
  18. import com.baomidou.mybatisplus.annotation.*;
  19. import com.baomidou.mybatisplus.extension.activerecord.Model;
  20. import lombok.Data;
  21. import lombok.EqualsAndHashCode;
  22. /**
  23. * @author LXQ
  24. * @date 2023-02-06
  25. *
  26. * 记录表字段的配置信息
  27. */
  28. @Data
  29. @TableName("gen_table_column")
  30. @EqualsAndHashCode(callSuper = true)
  31. public class GenTableColumnEntity extends Model<GenDatasourceConf> {
  32. private static final long serialVersionUID = 1L;
  33. /**
  34. * 主键
  35. */
  36. @TableId(type = IdType.ASSIGN_ID)
  37. private Long id;
  38. /**
  39. * 数据源名
  40. */
  41. private String dsName;
  42. /**
  43. * 表名称
  44. */
  45. private String tableName;
  46. /**
  47. * 字段名称
  48. */
  49. private String fieldName;
  50. /**
  51. * 排序
  52. */
  53. private Integer sort;
  54. /**
  55. * 字段类型
  56. */
  57. private String fieldType;
  58. /**
  59. * 字段说明
  60. */
  61. private String fieldComment;
  62. /**
  63. * 属性名
  64. */
  65. private String attrName;
  66. /**
  67. * 属性类型
  68. */
  69. private String attrType;
  70. /**
  71. * 属性包名
  72. */
  73. private String packageName;
  74. /**
  75. * 自动填充
  76. */
  77. private String autoFill;
  78. /**
  79. * 主键 0:否 1:是
  80. */
  81. private String primaryPk;
  82. /**
  83. * 基类字段 0:否 1:是
  84. */
  85. private String baseField;
  86. /**
  87. * 表单项 0:否 1:是
  88. */
  89. private String formItem;
  90. /**
  91. * 表单必填 0:否 1:是
  92. */
  93. private String formRequired;
  94. /**
  95. * 表单类型
  96. */
  97. private String formType;
  98. /**
  99. * 表单效验
  100. */
  101. private String formValidator;
  102. /**
  103. * 列表项 0:否 1:是
  104. */
  105. private String gridItem;
  106. /**
  107. * 列表排序 0:否 1:是
  108. */
  109. private String gridSort;
  110. /**
  111. * 查询项 0:否 1:是
  112. */
  113. private String queryItem;
  114. /**
  115. * 查询方式
  116. */
  117. private String queryType;
  118. /**
  119. * 查询表单类型
  120. */
  121. private String queryFormType;
  122. /**
  123. * 字段字典类型
  124. */
  125. @TableField(updateStrategy = FieldStrategy.IGNORED)
  126. private String fieldDict;
  127. }