package jnpf.util; import jnpf.constant.TableFieldsNameConst; /** * 流程设计 * * @author JNPF开发平台组 * @version V3.4.2 * @copyright 引迈信息技术有限公司 * @date 2023/1/13 15:50:25 */ public enum TableFeildsEnum { FID(TableFieldsNameConst.F_ID , "主键", "50","varchar" ,true,"NOT NULL",false), TENANTID(TableFieldsNameConst.F_TENANT_ID , "租户id", "50","varchar" ,true,"NOT NULL",false), VERSION(TableFieldsNameConst.F_VERSION , "乐观锁", "20","int" ,false,"NULL",false), FLOWTASKID(TableFieldsNameConst.F_FLOW_TASK_ID , "流程任务主键", "50","varchar" ,false,"NULL",false), FLOWID(TableFieldsNameConst.F_FLOW_ID , "流程id", "50","varchar" ,false,"NULL",false), DELETEMARK(TableFieldsNameConst.F_DELETE_MARK , "删除标志", "20","int" ,false,"NULL",false), DELETETIME(TableFieldsNameConst.F_DELETE_TIME , "删除时间", "0","datetime" ,false,"NULL",false), DELETEUSERID(TableFieldsNameConst.F_DELETE_USER_ID , "删除用户", "50","varchar" ,false,"NULL",false), FOREIGN(TableFieldsNameConst.F_FOREIGN_ID , "外键", "50","varchar" ,false,"NULL",false), FLOWSTATE(TableFieldsNameConst.F_FLOW_STATE , "流程任务状态", "11","int" ,false,"NULL",false); /** * 字段名 */ protected String field; /** * 注释 */ protected String comment; /** * 数据长度 (n,m) 或 (n) */ protected String length; /** * 数据类型 */ protected String dataType; /** * 是否主键 */ protected Boolean isPrimaryKey; /** * 是否非空 * (允空非空及0与1较容易混淆,故使用标识传作参数) */ protected String nullSign; /** * 是否自增 */ protected Boolean isAutoIncrement; TableFeildsEnum(String field, String comment, String length, String dataType, Boolean isPrimaryKey, String nullSign, Boolean isAutoIncrement) { this.field = field; this.comment = comment; this.length = length; this.dataType = dataType; this.isPrimaryKey = isPrimaryKey; this.nullSign = nullSign; this.isAutoIncrement = isAutoIncrement; } public String getLength() { return length; } public void setLength(String length) { this.length = length; } public String getDataType() { return dataType; } public void setDataType(String dataType) { this.dataType = dataType; } public String getField() { return field; } public void setField(String field) { this.field = field; } public Boolean getPrimaryKey() { return isPrimaryKey; } public void setPrimaryKey(Boolean primaryKey) { isPrimaryKey = primaryKey; } public String getNullSign() { return nullSign; } public void setNullSign(String nullSign) { this.nullSign = nullSign; } public Boolean getAutoIncrement() { return isAutoIncrement; } public void setAutoIncrement(Boolean autoIncrement) { isAutoIncrement = autoIncrement; } public String getComment() { return comment; } public void setComment(String comment) { this.comment = comment; } }