{ "id": "E268FF1C-0171-4BED-94BF-973DD8D729BB", "profile": { "version": "0.0.2", "global": { "dbDialects": [ { "defKey": "MySQL", "defName": null, "icon": "\n \n \n \n \n ", "driverFiles": "mysql-connector-j-8.3.0.jar", "jdbcReferDriver": "com.mysql.cj.jdbc.Driver", "jdbcReferUrl": "jdbc:mysql://[ip]:[port]/[dbname]?characterEncoding=UTF-8&useSSL=false&useUnicode=true&serverTimezone=UTC", "tableCreate": "{{\r\n function getDict(dictItems) {\r\n if(dictItems == null || dictItems.length <= 0) {\r\n return '';\r\n }\r\n return ',' + dictItems.map(it => it.itemKey + '-->' + it.itemName).join('、');\r\n }\r\n \r\n let tableComment = (it.intro != null && it.intro.length > 0)? (it.defName + ';' + it.intro) : it.defName;\r\n}}DROP TABLE IF EXISTS {{=it.defKey}};\r\nCREATE TABLE {{=it.defKey}}\r\n(\r\n{{ pkList = [] ; }}\r\n{{~it.fields:field:index}}\r\n {{? field.primaryKey }}{{ pkList.push(field.defKey) }}{{?}}\r\n {{=field.defKey}} {{=field.dbDataType}}{{?field.dataLen>0}}{{='('}}{{=field.dataLen}}{{?field.numScale>0}}{{=','}}{{=field.numScale}}{{?}}{{=')'}}{{?}} {{= field.defaultValue ? 'DEFAULT' + ' ' + field.defaultValue : '' }} {{= field.notNull ? 'NOT NULL' : 'NULL' }} {{= field.autoIncrement ? 'AUTO_INCREMENT' : '' }} COMMENT '{{=field.intro ? field.defName + ';' + field.intro : field.defName}}{{=getDict(field.dictItems)}}'{{= index < it.fields.length-1 ? ',' : ( pkList.length>0 ? ',' :'' ) }}{{~}}\r\n{{? pkList.length >0 }}\r\n PRIMARY KEY ({{~pkList:pkName:i}}{{= pkName }}{{= i 0}}\nALTER TABLE {{= tableKey }} ADD PRIMARY KEY ({{~indexFields:field:i}}`{{= field.defKey }}`{{= i < indexFields.length-1 ? ',' : '' }}{{~}});\n{{?}}\n{{?}}\n{{? updateKeys.some((item) => item === 'defName' || item === 'intro') }}ALTER TABLE {{= tableKey }} COMMENT '{{=it.func.strJoin(defName, intro, \";\", true)}}'; {{?}}\n{{? updateKeys.some((item) => item === 'defKey') }}ALTER TABLE {{= schemaName }}{{=it.defKey}} RENAME TO {{= schemaName }}{{=defKey}};{{?}}\n", "tableDelete": "{{\n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\n const tableKey = `${schemaName}${it.defKey}`;\n}}\nDROP TABLE IF EXISTS {{= tableKey }};", "columnCreate": "{{\r\n let fieldsUpdate = it.fieldsUpdate;\r\n const computeLenAndNum = (dataLen, numScale, maxDataLen, maxNumScale) => {\r\n if(!dataLen || dataLen <= 0) {\r\n return '';\r\n }\r\n let currentDataLen = dataLen, currentNumScale = numScale;\r\n if(dataLen >= maxDataLen) {\r\n currentDataLen = maxDataLen;\r\n }\r\n if(!numScale || numScale <= 0) {\r\n return `(${currentDataLen},0)`;\r\n }\r\n if(currentNumScale > maxNumScale) {\r\n currentNumScale = maxNumScale\r\n }\r\n if(currentNumScale > currentDataLen && currentDataLen <= maxNumScale) {\r\n currentNumScale = currentDataLen;\r\n }\r\n return `(${currentDataLen},${currentNumScale})`;\r\n };\r\n const computeDefaultValue = (field) => {\r\n const { defaultValue, dbDataType, primaryKey } = field;\r\n if(!defaultValue) {\r\n return '';\r\n }\r\n if(dbDataType.toUpperCase().endsWith('BLOB') || \r\n dbDataType.toUpperCase().endsWith('GEOMETRY') || \r\n dbDataType.toUpperCase().endsWith('TEXT') || \r\n dbDataType.toUpperCase().endsWith('JSON')) {\r\n return '';\r\n } else if(dbDataType.toUpperCase() === 'ENUM' ||\r\n dbDataType.toUpperCase() === 'SET') {\r\n return ` DEFAULT \"${defaultValue}\"`;\r\n } else {\r\n return ` DEFAULT ${defaultValue}`;\r\n }\r\n };\r\n const computeDatatype = (field) => {\r\n const { dbDataType, dataLen, numScale, defaultValue } = field;\r\n if(!dbDataType) {\r\n return '';\r\n }\r\n if(dbDataType.toUpperCase() === 'VARCHAR' ||\r\n dbDataType.toUpperCase() === 'NVARCHAR' ||\r\n dbDataType.toUpperCase() === 'VARBINARY') {\r\n return `${dbDataType}(${dataLen ? dataLen : 128})`;\r\n } else if(dbDataType.toUpperCase() === 'DATE' ||\r\n dbDataType.toUpperCase() === 'YEAR' ||\r\n dbDataType.toUpperCase() === 'TINYTEXT' ||\r\n dbDataType.toUpperCase() === 'MEDIUMTEXT' ||\r\n dbDataType.toUpperCase() === 'LONGTEXT' ||\r\n dbDataType.toUpperCase() === 'TINYBLOB' ||\r\n dbDataType.toUpperCase() === 'MEDIUMBLOB' ||\r\n dbDataType.toUpperCase() === 'LONGBLOB' ||\r\n dbDataType.toUpperCase() === 'BOOLEAN' ||\r\n dbDataType.toUpperCase() === 'FLOAT' ||\r\n dbDataType.toUpperCase() === 'INT' ||\r\n dbDataType.toUpperCase() === 'JSON' ) {\r\n return dbDataType;\r\n } else if(dbDataType.toUpperCase() === 'ENUM' ||\r\n dbDataType.toUpperCase() === 'SET' ) {\r\n return `${dbDataType}(${defaultValue})`;\r\n } else if(dbDataType.toUpperCase() === 'TIME' ||\r\n dbDataType.toUpperCase() === 'DATETIME' ||\r\n dbDataType.toUpperCase() === 'TIMESTAMP') {\r\n return `${dbDataType}${(dataLen && dataLen >= 0 && dataLen <= 6) ? `(${dataLen})` : ''}`;\r\n } else if(dbDataType.toUpperCase() === 'DOUBLE') {\r\n return `${dbDataType}${computeLenAndNum(dataLen, numScale, 255, 30)}`;\r\n } else if(dbDataType.toUpperCase() === 'DECIMAL') {\r\n return `${dbDataType}${computeLenAndNum(dataLen, numScale, 65, 30)}`;\r\n } else if(dataLen && dataLen > 0) {\r\n return `${dbDataType}(${dataLen})`;\r\n }\r\n return `${dbDataType}`;\r\n };\r\n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\r\n const tableKey = `${schemaName}${it.defKey}`;\r\n}}\r\n{{~fieldsUpdate:field:index}}\r\nALTER TABLE {{= tableKey }} ADD COLUMN `{{=field.defKey}}` {{=computeDatatype(field)}} {{= field.notNull ? 'NOT NULL' : '' }}{{= field.autoIncrement ? ' AUTO_INCREMENT ' : '' }}{{= computeDefaultValue(field)}} {{? field.defName || field.intro }} COMMENT '{{=it.func.strJoin(field.defName, field.intro, \";\", true)}}'{{?}};\r\n{{~}}\r\n", "columnUpdate": "{{ \r\n let fieldsUpdate = it.fieldsUpdate;\r\n const computeLenAndNum = (dataLen, numScale, maxDataLen, maxNumScale) => {\r\n if(!dataLen || dataLen <= 0) {\r\n return '';\r\n }\r\n let currentDataLen = dataLen, currentNumScale = numScale;\r\n if(dataLen >= maxDataLen) {\r\n currentDataLen = maxDataLen;\r\n }\r\n if(!numScale || numScale <= 0) {\r\n return `(${currentDataLen},0)`;\r\n }\r\n if(currentNumScale > maxNumScale) {\r\n currentNumScale = maxNumScale\r\n }\r\n if(currentNumScale > currentDataLen && currentDataLen <= maxNumScale) {\r\n currentNumScale = currentDataLen;\r\n }\r\n return `(${currentDataLen},${currentNumScale})`;\r\n };\r\n const computeDefaultValue = (field) => {\r\n const { defaultValue, primaryKey } = field;\r\n const dbDataType = field.dbDataType ? field.dbDataType : '';\r\n if(!defaultValue) {\r\n return '';\r\n }\r\n if(dbDataType.toUpperCase().endsWith('BLOB') || \r\n dbDataType.toUpperCase().endsWith('GEOMETRY') || \r\n dbDataType.toUpperCase().endsWith('TEXT') || \r\n dbDataType.toUpperCase().endsWith('JSON')) {\r\n return '';\r\n } else if(dbDataType.toUpperCase() === 'ENUM' ||\r\n dbDataType.toUpperCase() === 'SET') {\r\n return `DEFAULT \"${defaultValue}\"`;\r\n } else {\r\n return `DEFAULT ${defaultValue}`;\r\n }\r\n };\r\n const computeDatatype = (field) => {\r\n const { dataLen, numScale, defaultValue } = field;\r\n const dbDataType = field.dbDataType ? field.dbDataType : '';\r\n if(!dbDataType) {\r\n return '';\r\n }\r\n if(dbDataType.toUpperCase() === 'VARCHAR' ||\r\n dbDataType.toUpperCase() === 'NVARCHAR' ||\r\n dbDataType.toUpperCase() === 'VARBINARY') {\r\n return `${dbDataType}(${dataLen ? dataLen : 128})`;\r\n } else if(dbDataType.toUpperCase() === 'DATE' ||\r\n dbDataType.toUpperCase() === 'YEAR' ||\r\n dbDataType.toUpperCase() === 'TINYTEXT' ||\r\n dbDataType.toUpperCase() === 'MEDIUMTEXT' ||\r\n dbDataType.toUpperCase() === 'LONGTEXT' ||\r\n dbDataType.toUpperCase() === 'TINYBLOB' ||\r\n dbDataType.toUpperCase() === 'MEDIUMBLOB' ||\r\n dbDataType.toUpperCase() === 'LONGBLOB' ||\r\n dbDataType.toUpperCase() === 'BOOLEAN' ||\r\n dbDataType.toUpperCase() === 'FLOAT' ||\r\n dbDataType.toUpperCase() === 'INT' ||\r\n dbDataType.toUpperCase() === 'JSON' ) {\r\n return dbDataType;\r\n } else if(dbDataType.toUpperCase() === 'ENUM' ||\r\n dbDataType.toUpperCase() === 'SET' ) {\r\n return `${dbDataType}(${defaultValue})`;\r\n } else if(dbDataType.toUpperCase() === 'TIME' ||\r\n dbDataType.toUpperCase() === 'DATETIME' ||\r\n dbDataType.toUpperCase() === 'TIMESTAMP') {\r\n return `${dbDataType}${(dataLen && dataLen >= 0 && dataLen <= 6) ? `(${dataLen})` : ''}`;\r\n } else if(dbDataType.toUpperCase() === 'DOUBLE') {\r\n return `${dbDataType}${computeLenAndNum(dataLen, numScale, 255, 30)}`;\r\n } else if(dbDataType.toUpperCase() === 'DECIMAL') {\r\n return `${dbDataType}${computeLenAndNum(dataLen, numScale, 65, 30)}`;\r\n } else if(dataLen && dataLen > 0) {\r\n return `${dbDataType}(${dataLen})`;\r\n }\r\n return `${dbDataType}`;\r\n };\r\n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\r\n const tableKey = `${schemaName}${it.defKey}`;\r\n}}\r\n{{~fieldsUpdate:field:index}}\r\n{{ \r\n let nextPrimaryKey = field.baseUpdate.next.primaryKey;\r\n let prePrimaryKey = field.baseUpdate.pre.primaryKey;\r\n let preDefKey = field.baseUpdate.pre.defKey;\r\n let updateKeys = field.baseUpdate.updateKeys.split(',');\r\n}}\r\n{{? updateKeys.includes('primaryKey') && updateKeys.includes('defaultValue')}}\r\nALTER TABLE {{= tableKey }} ALTER COLUMN `{{=field.defKey}}` SET DEFAULT {{=field.defaultValue}};\r\n{{?}}\r\n{{? updateKeys.some((item) => item === 'defKey' || item === 'dbDataType' || item === 'dataLen' || item === 'numScale' || item === 'intro' || item === 'defName' || item === 'notNull' || item === 'autoIncrement') }}\r\nALTER TABLE {{= tableKey }} {{? updateKeys.includes('defKey')}}CHANGE `{{=preDefKey}}` `{{=field.defKey}}` {{??}} MODIFY COLUMN `{{=field.defKey}}` {{?}} {{=computeDatatype(field)}} {{= field.notNull ? 'NOT NULL' : '' }}{{= field.autoIncrement ? ' AUTO_INCREMENT ' : '' }} {{= computeDefaultValue(field)}}{{? field.defName || field.intro }} COMMENT '{{=it.func.strJoin(field.defName, field.intro, \";\", true)}}'{{?}};\r\n{{?}}\r\n{{~}}\r\n", "columnDelete": "{{\n let fieldsUpdate = it.fieldsUpdate; \n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\n const tableKey = `${schemaName}${it.defKey}`;\n}}\n{{~fieldsUpdate:field:index}}\nALTER TABLE {{= tableKey }} DROP COLUMN {{=field.defKey}};\n{{~}}", "indexCreate": "{{\r\n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\r\n const tableKey = `${schemaName}${it.defKey}`;\r\n}}\r\n{{~it.indexes:row:index}}\r\n{{? row.fields.length > 0 && row.defKey}}\r\nCREATE {{? row.type.toUpperCase() === 'UNIQUE'}}{{=row.type}} {{?}}INDEX `{{=row.defKey}}` ON {{= tableKey }} (\r\n {{~row.fields:field:idx}}\r\n `{{=field.fieldDefKey}}` {{=field.sortType}}{{= idx < row.fields.length - 1 ? ',' : ''}}\r\n {{~}}\r\n){{? row.defName || row.intro }}COMMENT '{{=it.func.strJoin(row.defName, row.intro, \";\", true)}}'{{?}};\r\n{{?}}\r\n{{~}}\r\n", "indexUpdate": "{{ \n let indexesUpdate = it.indexesUpdate;\n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\n const tableKey = `${schemaName}${it.defKey}`;\n}}\n{{~indexesUpdate:row:index}}\n{{\n let updateKeys = row.baseUpdate.updateKeys.split(',');\n let preDefKey = row.baseUpdate.pre.defKey;\n}}\nALTER TABLE {{= tableKey }}\nDROP INDEX {{? updateKeys.includes('defKey')}}`{{=preDefKey}}` {{??}} `{{=row.defKey}}`{{?}}, \nADD {{? row.type.toUpperCase() === 'UNIQUE'}} {{=row.type}} {{?}} INDEX `{{=row.defKey}}`(\n {{~row.fields:field:idx}}\n `{{=field.fieldDefKey}}` {{=field.sortType}}{{= idx < row.fields.length - 1 ? ',' : ''}}\n {{~}}\n){{? row.defName || row.intro }}COMMENT '{{=it.func.strJoin(row.defName, row.intro, \";\", true)}}'{{?}};\n{{~}}", "indexDelete": "{{\r\n let indexesUpdate = it.indexesUpdate; \r\n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\r\n const tableKey = `${schemaName}${it.defKey}`;\r\n}}\r\n{{~indexesUpdate:index:i}}\r\nALTER TABLE {{= tableKey }} DROP INDEX {{=index.defKey}};\r\n{{~}}", "metaTableQuery": "SELECT\r\n null AS id,\r\n table_name AS def_key,\r\n table_comment AS def_name,\r\n table_schema AS schema_name\r\nFROM\r\n information_schema.tables\r\nWHERE table_type = 'BASE TABLE'\r\n and table_schema in (:schemaName)", "metaColumnQuery": "SELECT\n table_schema as schema_name,\n table_name AS tbl_def_key,\n ordinal_position as order_value,\n column_name AS def_key,\n column_comment AS def_name,\n '' AS intro,\n data_type AS db_data_type,\n IF(data_type = column_type or data_type = 'decimal', IF(data_type = 'decimal', CAST(SUBSTRING_INDEX(SUBSTRING_INDEX(COLUMN_TYPE, '(', -1), ',', 1) AS UNSIGNED), NULL),character_maximum_length) AS data_len,\n IF(data_type = column_type or data_type = 'decimal', IF(data_type = 'decimal', CAST(SUBSTRING_INDEX(SUBSTRING_INDEX(COLUMN_TYPE, ',', -1), ')', 1) AS UNSIGNED), NULL), numeric_scale ) AS num_scale,\n IF(column_key = 'PRI', 1, 0 ) AS primary_key,\n IF(is_nullable = 'YES', 0, 1 ) AS not_null,\n IF(extra = 'AUTO_INCREMENT', 1, 0 ) AS auto_increment,\n column_default AS default_value\nFROM\n information_schema.COLUMNS\nWHERE\n table_schema in (:schemaName)\n and CONCAT(table_schema, '.', table_name) in (:sysTableNames)\nORDER BY\n table_schema ASC,\n table_name ASC,\n ordinal_position ASC", "metaIndexQuery": "SELECT INDEX_SCHEMA AS SCHEMA_NAME,\r\n TABLE_NAME AS TBL_DEF_KEY,\r\n COLUMN_NAME AS COL_DEF_KEY,\r\n INDEX_COMMENT AS DEF_NAME,\r\n COMMENT AS INTRO,\r\n IF (NON_UNIQUE = 1, 'NORMAL', 'UNIQUE') AS TYPE,\r\n SEQ_IN_INDEX AS ORDER_VALUE,\r\n IF (COLLATION = 'A', 'ASC', 'DESC') AS SORT_TYPE,\r\n INDEX_NAME AS DEF_KEY FROM information_schema.STATISTICS\r\nWHERE INDEX_SCHEMA IN (:schemaName) AND CONCAT(INDEX_SCHEMA, '.', TABLE_NAME) IN (:sysTableNames) AND INDEX_NAME != 'PRIMARY'\r\nORDER BY INDEX_SCHEMA,TBL_DEF_KEY, DEF_KEY, ORDER_VALUE", "metaQueryCharset": null, "orderValue": 0, "isEnabled": 1, "id": "BPMCJTYLY2UAC" }, { "defKey": "Oracle", "defName": null, "icon": "\n \n \n \n \n ", "driverFiles": "ojdbc6-11.2.0.4.jar", "jdbcReferDriver": "oracle.jdbc.driver.OracleDriver", "jdbcReferUrl": "jdbc:oracle:thin:@//[ip]:[port]/helowin", "tableCreate": "{{\r\n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\r\n const tableKey = `${schemaName}${it.defKey}`;\r\n}}\r\nBEGIN\r\n EXECUTE IMMEDIATE 'DROP TABLE {{= tableKey }}';\r\nEXCEPTION\r\n WHEN OTHERS THEN\r\n IF SQLCODE != -942 THEN -- Table does not exist error\r\n RAISE;\r\n END IF;\r\nEND;\r\n/\r\n\r\nCREATE TABLE {{= tableKey }} (\r\n{{ pkList = [] ; }}\r\n{{~it.fields:field:index}}\r\n {{? field.primaryKey }}{{ pkList.push(field.defKey) }}{{?}}\r\n {{=field.defKey}} {{=field.dbDataType}}{{? \r\n field.dbDataType?.toUpperCase() === 'VARCHAR2'\r\n }} ({{=field.dataLen ? field.dataLen : 128}}) {{??\r\n field.dbDataType?.toUpperCase() === 'TIMESTAMP'\r\n }} {{? field.dataLen }} {{? field.dataLen >= 0 && field.dataLen <= 9}} ({{=field.dataLen}}) {{??}} (6) {{?}} {{?? }} (6) {{?}} {{??\r\n field.dbDataType?.toUpperCase() === 'INTEGER' ||\r\n field.dbDataType?.toUpperCase() === 'BINARY_DOUBLE' ||\r\n field.dbDataType?.toUpperCase() === 'DATE' ||\r\n field.dbDataType?.toUpperCase() === 'CLOB' ||\r\n field.dbDataType?.toUpperCase() === 'LONG' ||\r\n field.dbDataType?.toUpperCase() === 'NCLOB' ||\r\n field.dbDataType?.toUpperCase() === 'BLOB' \r\n }} {{??\r\n field.dbDataType?.toUpperCase() === 'FLOAT'\r\n }} {{? field.dataLen && field.dataLen >= 1 && field.dataLen <= 126}} ({{=field.dataLen}}) {{?}} {{?? \r\n field.dbDataType?.toUpperCase() === 'DECIMAL' ||\r\n field.dbDataType?.toUpperCase() === 'NUMBER' \r\n }}{{? field.dataLen && field.dataLen >= 1 && field.dataLen <= 38}}{{? field.numScale && field.numScale >= -84 && field.numScale <= 127}}({{=field.dataLen}},{{=field.numScale}}){{??}}({{=field.dataLen}}) {{?}}{{?}}{{?? \r\n field.dataLen && field.dataLen >= 0\r\n }}({{=field.dataLen}}){{?}}{{= field.autoIncrement ? '' : '' }}{{? field.defaultValue }} DEFAULT {{=field.defaultValue}} {{?}}{{=field.notNull?'NOT NULL' : '' }}{{= index < it.fields.length-1 ? ',' : ( pkList.length > 0 ? ',' : '' ) }} {{~}}\r\n{{? pkList.length > 0 }} \r\n PRIMARY KEY ({{~pkList:pkName:i}}{{= pkName }}{{= i < pkList.length-1 ? ',' : '' }}{{~}})\r\n{{?}}\r\n);\r\n\r\n{{? it.defName || it.intro }} \r\nCOMMENT ON TABLE {{= tableKey }} IS '{{=it.func.strJoin(it.defName, it.intro, \";\", true)}}';\r\n{{?}}\r\n\r\n{{~it.fields:field:index}}\r\n{{? field.defName || field.intro }}\r\nCOMMENT ON COLUMN {{= tableKey }}.{{=field.defKey}} IS '{{=it.func.strJoin(field.defName, field.intro, \";\", true)}}';\r\n{{?}}\r\n{{~}}\r\n$blankline", "tableUpdate": "{{\r\n let defKey = it.baseUpdate.next.defKey;\r\n let defName = it.baseUpdate.next.defName;\r\n let intro = it.baseUpdate.next.intro;\r\n let indexFields = it.indexFields;\r\n let isPrimaryKeyModified = it.isPrimaryKeyModified;\r\n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\r\n const tableKey = `${schemaName}${it.defKey}`;\r\n const updateKeys = it?.baseUpdate?.updateKeys?.split(\",\") || [];\r\n}}\r\n{{? isPrimaryKeyModified }}\r\nALTER TABLE {{= tableKey }} DROP PRIMARY KEY;\r\n{{? indexFields && indexFields.length > 0}}\r\nALTER TABLE {{= tableKey }} ADD CONSTRAINT {{=it.defKey}}_PRIMARY_KEY PRIMARY KEY ({{~indexFields:field:i}}{{= field.defKey }}{{= i < indexFields.length-1 ? ',' : '' }}{{~}});\r\n{{?}}\r\n{{?}}\r\n{{? updateKeys.some((item) => item === 'defName' || item === 'intro') }}\r\nCOMMENT ON TABLE {{= tableKey }} IS '{{=it.func.strJoin(defName, intro, \";\", true)}}'; \r\n{{?}}\r\n{{? updateKeys.some((item) => item === 'defKey') }}\r\nALTER TABLE {{= tableKey }} RENAME TO {{=defKey}};\r\n{{?}}", "tableDelete": "{{\r\n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\r\n const tableKey = `${schemaName}${it.defKey}`;\r\n}}\r\nBEGIN\r\n EXECUTE IMMEDIATE 'DROP TABLE {{= tableKey }}';\r\nEXCEPTION\r\n WHEN OTHERS THEN\r\n IF SQLCODE != -942 THEN -- Table does not exist error\r\n RAISE;\r\n END IF;\r\nEND;", "columnCreate": "{{\r\n let fieldsUpdate = it.fieldsUpdate;\r\n const computeDataLen = (dataLen, maxDataLen, defaultDataLen) => {\r\n if(!dataLen) {\r\n return defaultDataLen;\r\n }\r\n if(dataLen >= 0 && dataLen <= maxDataLen) {\r\n return dataLen;\r\n }\r\n return defaultDataLen;\r\n \r\n };\r\n const computeDatatype = (field) => {\r\n const { dbDataType, dataLen, numScale, defaultValue, autoIncrement } = field;\r\n if(!dbDataType) {\r\n return '';\r\n }\r\n if(dbDataType.toUpperCase() === 'VARCHAR2') {\r\n return `${dbDataType} (${dataLen ? dataLen : 128})`;\r\n } else if(dbDataType.toUpperCase() === 'TIMESTAMP') {\r\n return `${dbDataType} (${computeDataLen(dataLen, 9, 6)})`;\r\n } else if(dbDataType.toUpperCase() === 'INTEGER' ||\r\n dbDataType.toUpperCase() === 'BINARY_DOUBLE' ||\r\n dbDataType.toUpperCase() === 'DATE' ||\r\n dbDataType.toUpperCase() === 'CLOB' ||\r\n dbDataType.toUpperCase() === 'LONG' ||\r\n dbDataType.toUpperCase() === 'NCLOB' ||\r\n dbDataType.toUpperCase() === 'BLOB') {\r\n return dbDataType;\r\n } else if(dbDataType.toUpperCase() === 'FLOAT') {\r\n return `${dbDataType} ${(dataLen && dataLen >= 1 && dataLen <= 126) ? `(${dataLen})` : ''}`;\r\n } else if(dbDataType.toUpperCase() === 'DECIMAL' ||\r\n dbDataType.toUpperCase() === 'NUMBER') {\r\n return `${dbDataType} ${(dataLen && dataLen >= 1 && dataLen <= 38) ? ((numScale && numScale >= -84 && numScale <= 127) ? `(${dataLen},${numScale})` : `(${dataLen})`) : ''}`; \r\n } else if(dataLen && dataLen >= 0) {\r\n return `${dbDataType} (${dataLen})`\r\n }\r\n return dbDataType;\r\n \r\n };\r\n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\r\n const tableKey = `${schemaName}${it.defKey}`;\r\n}}\r\n{{~fieldsUpdate:field:index}}\r\n{{\r\n const finalDataType = computeDatatype(field);\r\n}}\r\nALTER TABLE {{= tableKey }} ADD {{= field.defKey }} {{= finalDataType }}{{? field.defaultValue}} DEFAULT {{=field.defaultValue}} {{?}}{{? field.notNull}} NOT NULL{{?}};\r\n{{? field.defName || field.intro }}\r\nCOMMENT ON COLUMN {{= tableKey }}.{{= field.defKey}} IS '{{=it.func.strJoin(field.defName, field.intro, \";\", true)}}';\r\n{{?}}\r\n{{~}}", "columnUpdate": "{{\r\n let fieldsUpdate = it.fieldsUpdate;\r\n let updateIndexData = it.updateIndexData;\r\n const computeDataLen = (dataLen, maxDataLen, defaultDataLen) => {\r\n if(!dataLen) {\r\n return defaultDataLen;\r\n }\r\n if(dataLen >= 0 && dataLen <= maxDataLen) {\r\n return dataLen;\r\n }\r\n return defaultDataLen;\r\n \r\n };\r\n const computeDatatype = (field) => {\r\n const { dbDataType, dataLen, numScale, defaultValue, autoIncrement } = field;\r\n if(!dbDataType) {\r\n return '';\r\n }\r\n if(dbDataType.toUpperCase() === 'VARCHAR2') {\r\n return `${dbDataType} (${dataLen ? dataLen : 128})`;\r\n } else if(dbDataType.toUpperCase() === 'TIMESTAMP') {\r\n return `${dbDataType} (${computeDataLen(dataLen, 9, 6)})`;\r\n } else if(dbDataType.toUpperCase() === 'INTEGER' ||\r\n dbDataType.toUpperCase() === 'BINARY_DOUBLE' ||\r\n dbDataType.toUpperCase() === 'DATE' ||\r\n dbDataType.toUpperCase() === 'CLOB' ||\r\n dbDataType.toUpperCase() === 'LONG' ||\r\n dbDataType.toUpperCase() === 'NCLOB' ||\r\n dbDataType.toUpperCase() === 'BLOB') {\r\n return dbDataType;\r\n } else if(dbDataType.toUpperCase() === 'FLOAT') {\r\n return `${dbDataType} ${(dataLen && dataLen >= 1 && dataLen <= 126) ? `(${dataLen})` : ''}`;\r\n } else if(dbDataType.toUpperCase() === 'DECIMAL' ||\r\n dbDataType.toUpperCase() === 'NUMBER') {\r\n return `${dbDataType} ${(dataLen && dataLen >= 1 && dataLen <= 38) ? ((numScale && numScale >= -84 && numScale <= 127) ? `(${dataLen},${numScale})` : `(${dataLen})`) : ''}`; \r\n } else if(dataLen && dataLen >= 0) {\r\n return `${dbDataType} (${dataLen})`\r\n }\r\n return dbDataType;\r\n \r\n };\r\n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\r\n const tableKey = `${schemaName}${it.defKey}`;\r\n}}\r\n{{~updateIndexData:updateIndex:index}}\r\n{{? updateIndex?.fieldsUpdate?.length > 0 }}\r\nBEGIN\r\n EXECUTE IMMEDIATE 'DROP INDEX {{= schemaName }}{{= updateIndex?.defKey }}';\r\nEXCEPTION\r\n WHEN OTHERS THEN\r\n IF SQLCODE!= -1418 THEN -- Index does not exist error\r\n RAISE;\r\n END IF;\r\nEND;\r\n{{?}}\r\n{{~}}\r\n{{~fieldsUpdate:field:index}}\r\n{{\r\n const updateKeys = field?.baseUpdate?.updateKeys?.split(\",\") || [];\r\n const finalDataType = computeDatatype(field);\r\n const preDefKey = field?.baseUpdate?.pre?.defKey;\r\n const nextDefKey = field?.baseUpdate?.next?.defKey;\r\n}}\r\n{{? updateKeys.includes('defKey') }}\r\nALTER TABLE {{= tableKey }} RENAME COLUMN {{= preDefKey}} TO {{= nextDefKey}};\r\n{{?}}\r\n{{? updateKeys.some((item) => item === 'dbDataType' || item === 'dataLen' || item === 'numScale') }}\r\nALTER TABLE {{= tableKey }} MODIFY {{=field.defKey}} {{=finalDataType}};\r\n{{?}}\r\n{{? updateKeys.includes('notNull') }}\r\nALTER TABLE {{= tableKey }} MODIFY {{=field.defKey}} {{? field.notNull }} NOT NULL {{??}} NULL {{?}};\r\n{{?}}\r\n{{? updateKeys.some((item) => item === 'defName' || item === 'intro') }}\r\nCOMMENT ON COLUMN {{= tableKey }}.{{= field.defKey}} IS '{{=it.func.strJoin(field.defName, field.intro, \";\", true)}}';\r\n{{?}}\r\n{{? updateKeys.includes('defaultValue') }}\r\nALTER TABLE {{= tableKey }} MODIFY {{=field.defKey}} DEFAULT {{=field.defaultValue}};\r\n{{?}}\r\n{{~}}", "columnDelete": "{{\r\n let fieldsUpdate = it.fieldsUpdate;\r\n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\r\n const tableKey = `${schemaName}${it.defKey}`;\r\n}}\r\n{{~fieldsUpdate:field:index}}\r\nALTER TABLE {{= tableKey }} DROP COLUMN {{=field.defKey}};\r\n{{~}}", "indexCreate": "{{\r\n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\r\n const tableKey = `${schemaName}${it.defKey}`;\r\n}}\r\n{{~it.indexes:row:index}}\r\n{{? row.fields.length > 0 && row.defKey}}\r\nCREATE {{? row.type.toUpperCase() === 'UNIQUE'}} {{=row.type}} {{?}} INDEX {{=row.defKey}} ON {{= tableKey }} (\r\n {{~row.fields:field:idx}}\r\n -- {{=field.fieldDefKey}} {{=field.sortType}}{{= idx < row.fields.length - 1 ? ',' : ''}}\r\n {{=field.fieldDefKey}} {{='ASC'}}{{= idx < row.fields.length - 1 ? ',' : ''}}\r\n {{~}}\r\n);\r\n{{?}}\r\n{{~}}", "indexUpdate": "{{ \n let indexesUpdate = it.indexesUpdate;\n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\n const tableKey = `${schemaName}${it.defKey}`;\n}}\n{{~indexesUpdate:row:index}}\n{{\n const updateKeys = row?.baseUpdate?.updateKeys?.split(\",\") || [];\n const fieldsUpdate = row.fieldsUpdate || [];\n const preDefKey = row?.baseUpdate?.pre?.defKey;\n \n}}\n{{? updateKeys.some((item) => item === 'defKey' || item === 'type') || fieldsUpdate.length > 0 }}\nBEGIN\n EXECUTE IMMEDIATE 'DROP INDEX {{= schemaName }}{{? preDefKey}}{{= preDefKey}}{{??}}{{=row.defKey}}{{?}}';\nEXCEPTION\n WHEN OTHERS THEN\n IF SQLCODE!= -1418 THEN -- Index does not exist error\n RAISE;\n END IF;\nEND;\n{{? row.fields.length > 0 && row.defKey}}\nCREATE {{? row.type.toUpperCase() === 'UNIQUE'}} {{=row.type}} {{?}} INDEX {{=row.defKey}} ON {{= tableKey }} (\n {{~row.fields:field:idx}}\n {{=field.fieldDefKey}} {{=field.sortType}}{{= idx < row.fields.length - 1 ? ',' : ''}}\n {{~}}\n);\n{{?}}\n{{?}}\n{{~}}", "indexDelete": "{{\r\n let indexesUpdate = it.indexesUpdate; \r\n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\r\n const tableKey = `${schemaName}${it.defKey}`;\r\n}}\r\n{{~indexesUpdate:row:i}}\r\nBEGIN\r\n EXECUTE IMMEDIATE 'DROP INDEX {{= schemaName }}{{=row.defKey}}';\r\nEXCEPTION\r\n WHEN OTHERS THEN\r\n IF SQLCODE!= -1418 THEN -- Index does not exist error\r\n RAISE;\r\n END IF;\r\nEND;\r\n{{~}}", "metaTableQuery": "SELECT\n\t\t'' as id,\n t.table_name AS def_key,\n c.comments AS def_name,\n t.OWNER AS schema_name\nFROM all_tables t left join all_tab_comments c on t.OWNER=c.OWNER and t.TABLE_NAME=c.TABLE_NAME\nwhere t.OWNER in (:schemaName) order by def_key", "metaColumnQuery": "SELECT\n col.owner AS schema_name,\n\tcol.table_name AS tbl_def_key,\n\tcol.column_id AS order_value,\n\tcol.column_name AS def_key,\n\tclc.comments AS def_name,\n\t'' AS intro,\n\tcol.data_type AS db_data_type,\n\tnvl(col.data_precision,col.data_length) AS data_len,\n\tcol.data_scale AS num_scale,\n\tdecode(col.nullable,'Y',0,1) AS not_null,\n\tCASE WHEN cc.constraint_name IS NOT NULL THEN 1 ELSE 0 END AS primary_key,\n\t'' AS auto_increment,\n\tcol.data_default AS default_value\nFROM\n\tall_tab_columns col LEFT JOIN all_col_comments clc ON col.OWNER = clc.OWNER AND col.table_name = clc.table_name AND col.column_name = clc.column_name \n\t LEFT JOIN (all_cons_columns cc JOIN all_constraints cs ON cc.constraint_name = cs.constraint_name AND cc.owner = cs.owner and cs.constraint_type = 'P') on col.owner=cc.owner and col.table_name=cc.table_name and col.column_name = cc.column_name\nWHERE\n\tcol.owner in (:schemaName)\n\tAND CONCAT(CONCAT(col.owner, '.') , col.table_name) in (:sysTableNames)\nORDER BY\n\tcol.owner ASC, col.table_name ASC,col.column_id ASC ", "metaIndexQuery": "SELECT i.owner AS schema_name,\r\n i.table_name AS TBL_DEF_KEY,\r\n ic.column_name AS COL_DEF_KEY,\r\n DATA_DEFAULT AS VIRTUAL_COL_DEF_KEY,\r\n i.index_name AS DEF_KEY,\r\n CASE\r\n WHEN i.uniqueness = 'UNIQUE' THEN 'UNIQUE'\r\n ELSE 'NORMAL'\r\n END AS TYPE,\r\n CASE\r\n WHEN ic.descend = 'DESC' THEN 'DESC'\r\n ELSE 'ASC'\r\n END AS SORT_TYPE,\r\n ic.column_position AS ORDER_VALUE,\r\n NULL AS INTRO -- Oracle does not have a direct equivalent for INDEX_COMMENT\r\nFROM all_indexes i\r\n LEFT JOIN all_ind_columns ic ON i.index_name = ic.index_name AND i.table_name = ic.table_name\r\n LEFT JOIN ALL_TAB_COLS co ON (co.table_name = i.table_name AND co.column_name = ic.column_name)\r\nWHERE i.owner in (:schemaName)\r\n AND CONCAT(CONCAT(i.owner, '.') , i.table_name) IN (:sysTableNames)\r\n AND co.owner in (:schemaName)\r\n -- AND NULLABLE = 'Y'\r\n AND GENERATED = 'N'--是否是自动生成\r\nORDER BY i.owner, i.table_name, i.index_name, ic.column_position", "metaQueryCharset": null, "orderValue": 1, "isEnabled": 0, "id": "BPMCJTYLY0UAC" }, { "defKey": "PostgreSQL", "defName": null, "icon": "\n \n \n \n \n ", "driverFiles": "postgresql-42.7.3.jar", "jdbcReferDriver": "org.postgresql.Driver", "jdbcReferUrl": "jdbc:postgresql://[ip]:[port]/[dbname]", "tableCreate": "{{\r\n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\r\n const tableKey = `${schemaName}${it.defKey}`;\r\n\r\n const dataTypeArray = [\r\n 'INT2',\r\n 'INT4',\r\n 'INT',\r\n 'INT8',\r\n 'SERIAL2',\r\n 'SERIAL4',\r\n 'SERIAL8',\r\n 'FLOAT4',\r\n 'FLOAT8',\r\n 'MONEY',\r\n 'TEXT',\r\n 'BYTEA',\r\n 'BOOLEAN',\r\n 'JSONB',\r\n 'JSON',\r\n 'DATE'\r\n ];\r\n\r\n function getDataType(field) {\r\n const { dbDataType, dataLen, numScale, defaultValue, autoIncrement } = field;\r\n if(!dbDataType) {\r\n return '';\r\n }\r\n if(autoIncrement) {\r\n return dbDataType.toUpperCase() === 'INT8' ? 'BIGSERIAL' : 'SERIAL';\r\n }\r\n if(dataTypeArray.includes(dbDataType.toUpperCase())) {\r\n return dbDataType;\r\n }\r\n if(dbDataType.toUpperCase() === 'DECIMAL') {\r\n if(dataLen && dataLen >= 1 && dataLen <= 1000) {\r\n if(numScale && numScale >= 0 && numScale <= dataLen) {\r\n return `${dbDataType}(${dataLen},${numScale})`;\r\n } else {\r\n return `${dbDataType}(${dataLen})`;\r\n }\r\n }\r\n return dbDataType;\r\n }\r\n if(dataLen && dataLen >= 0) {\r\n return `${dbDataType}(${dataLen})`;\r\n }\r\n return dbDataType;\r\n }\r\n\r\n function getConstraints(field) {\r\n let constraints = '';\r\n if (field.notNull) {\r\n constraints += ' NOT NULL';\r\n }\r\n if (field.defaultValue) {\r\n constraints += ` DEFAULT ${field.defaultValue}`;\r\n }\r\n return constraints;\r\n }\r\n}}\r\n\r\nDROP TABLE IF EXISTS {{= tableKey }};\r\n\r\nCREATE TABLE {{= tableKey }}(\r\n{{ pkList = [] ; }}\r\n{{~it.fields:field:index}}\r\n {{? field.primaryKey }}{{ pkList.push(field.defKey) }}{{?}}{{=field.defKey}} {{= getDataType(field) }}{{= getConstraints(field) }}{{= index < it.fields.length-1 || pkList.length>0 ? ',' : '' }}\r\n{{~}}\r\n{{? pkList.length > 0 }} PRIMARY KEY ({{= pkList.join(',')}}){{?}}\r\n);\r\n\r\n{{~it.fields:field:index}}\r\n{{? field.defName || field.intro }}\r\nCOMMENT ON COLUMN {{= tableKey }}.{{=field.defKey}} IS '{{=it.func.strJoin(field.defName, field.intro, \";\", true)}}';\r\n{{?}}\r\n{{~}}\r\n\r\n{{? it.defName || it.intro }}\r\nCOMMENT ON TABLE {{= tableKey }} IS '{{=it.func.strJoin(it.defName, it.intro, \";\", true)}}';\r\n{{?}}\r\n$blankline", "tableUpdate": "{{\r\n let defKey = it.baseUpdate.next.defKey;\r\n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\r\n const tableKey = `${schemaName}${it.defKey}`;\r\n let defName = it.baseUpdate.next.defName;\r\n let intro = it.baseUpdate.next.intro;\r\n let indexFields = it.indexFields;\r\n let isPrimaryKeyModified = it.isPrimaryKeyModified;\r\n const updateKeys = it?.baseUpdate?.updateKeys?.split(\",\") || [];\r\n}}\r\n{{? isPrimaryKeyModified }}\r\nDO $$\r\n DECLARE\r\n pk_constraint_name text;\r\n BEGIN\r\n SELECT constraint_name\r\n INTO pk_constraint_name\r\n FROM information_schema.table_constraints\r\n WHERE table_name = '{{=it.defKey}}' AND constraint_type = 'PRIMARY KEY'\r\n LIMIT 1;\r\n\r\n IF pk_constraint_name IS NOT NULL THEN\r\n EXECUTE 'ALTER TABLE {{= schemaName }}{{=it.defKey}} DROP CONSTRAINT ' || pk_constraint_name;\r\n ELSE\r\n RAISE NOTICE 'No primary key constraint found for the table.';\r\n END IF;\r\nEND $$;\r\n{{? indexFields && indexFields.length > 0}}\r\nALTER TABLE {{= tableKey }} ADD PRIMARY KEY ({{~indexFields:field:i}}\"{{= field.defKey }}\"{{= i < indexFields.length-1 ? ',' : '' }}{{~}});\r\n{{?}}\r\n{{?}}\r\n{{? updateKeys.some((item) => item === 'defName' || item === 'intro') }}COMMENT ON TABLE {{= tableKey }} IS '{{=it.func.strJoin(defName, intro, \";\", true)}}';{{?}}\r\n$blankline\r\n{{? updateKeys.some((item) => item === 'defKey') }}ALTER TABLE {{= tableKey }} RENAME TO {{=defKey}};{{?}}\r\n", "tableDelete": "{{\n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\n const tableKey = `${schemaName}${it.defKey}`;\n}}\nDROP TABLE IF EXISTS {{= tableKey }};\n$blankline", "columnCreate": "{{\n let fieldsUpdate = it.fieldsUpdate;\n const computeDatatype = (field) => {\n const { dbDataType, dataLen, numScale, defaultValue, autoIncrement } = field;\n if(!dbDataType) {\n return '';\n }\n if(autoIncrement) {\n return dbDataType.toUpperCase() === 'INT8' ? 'BIGSERIAL' : 'SERIAL';\n }\n if(dbDataType.toUpperCase() === 'INT2' ||\n dbDataType.toUpperCase() === 'INT4' ||\n dbDataType.toUpperCase() === 'INT' ||\n dbDataType.toUpperCase() === 'INT8' ||\n dbDataType.toUpperCase() === 'SERIAL2' ||\n dbDataType.toUpperCase() === 'SERIAL4' ||\n dbDataType.toUpperCase() === 'SERIAL8' ||\n dbDataType.toUpperCase() === 'FLOAT4' ||\n dbDataType.toUpperCase() === 'FLOAT8' ||\n dbDataType.toUpperCase() === 'MONEY' ||\n dbDataType.toUpperCase() === 'TEXT' ||\n dbDataType.toUpperCase() === 'BYTEA' ||\n dbDataType.toUpperCase() === 'BOOLEAN' ||\n dbDataType.toUpperCase() === 'JSONB' ||\n dbDataType.toUpperCase() === 'JSON' ||\n dbDataType.toUpperCase() === 'DATE') {\n return dbDataType;\n }\n if(dbDataType.toUpperCase() === 'DECIMAL') {\n if(dataLen && dataLen >= 1 && dataLen <= 1000) {\n if(numScale && numScale >= 0 && numScale <= dataLen) {\n return `${dbDataType}(${dataLen},${numScale})`;\n } else {\n return `${dbDataType}(${dataLen})`;\n }\n }\n return dbDataType;\n }\n if(dataLen && dataLen >= 0) {\n return `${dbDataType}(${dataLen})`;\n }\n return dbDataType;\n };\n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\n const tableKey = `${schemaName}${it.defKey}`;\n}}\n{{~fieldsUpdate:field:index}}\n{{\n const finalDataType = computeDatatype(field);\n}}\nALTER TABLE {{= tableKey }} ADD COLUMN {{= field.defKey }} {{= finalDataType }}{{? field.notNull }} NOT NULL{{?}};\n{{? field.defName || field.intro }}\nCOMMENT ON COLUMN {{= tableKey }}.{{= field.defKey}} IS '{{=it.func.strJoin(field.defName, field.intro, \";\", true)}}';\n{{?}}\n{{? field.defaultValue !== null && field.defaultValue !== undefined && field.defaultValue !== ''}}\nALTER TABLE {{= tableKey }} ALTER COLUMN {{= field.defKey}} SET DEFAULT {{=field.defaultValue}};\n{{?}}\n{{~}}", "columnUpdate": "{{\n let fieldsUpdate = it.fieldsUpdate;\n const computeDatatype = (field) => {\n const { dbDataType, dataLen, numScale, defaultValue, autoIncrement } = field;\n if(!dbDataType) {\n return '';\n }\n if(autoIncrement) {\n return dbDataType.toUpperCase() === 'INT8' ? 'BIGSERIAL' : 'SERIAL';\n }\n if(dbDataType.toUpperCase() === 'INT2' ||\n dbDataType.toUpperCase() === 'INT4' ||\n dbDataType.toUpperCase() === 'INT' ||\n dbDataType.toUpperCase() === 'INT8' ||\n dbDataType.toUpperCase() === 'SERIAL2' ||\n dbDataType.toUpperCase() === 'SERIAL4' ||\n dbDataType.toUpperCase() === 'SERIAL8' ||\n dbDataType.toUpperCase() === 'FLOAT4' ||\n dbDataType.toUpperCase() === 'FLOAT8' ||\n dbDataType.toUpperCase() === 'MONEY' ||\n dbDataType.toUpperCase() === 'TEXT' ||\n dbDataType.toUpperCase() === 'BYTEA' ||\n dbDataType.toUpperCase() === 'BOOLEAN' ||\n dbDataType.toUpperCase() === 'JSONB' ||\n dbDataType.toUpperCase() === 'JSON' ||\n dbDataType.toUpperCase() === 'DATE') {\n return dbDataType;\n }\n if(dbDataType.toUpperCase() === 'DECIMAL') {\n if(dataLen && dataLen >= 1 && dataLen <= 1000) {\n if(numScale && numScale >= 0 && numScale <= dataLen) {\n return `${dbDataType}(${dataLen},${numScale})`;\n } else {\n return `${dbDataType}(${dataLen})`;\n }\n }\n return dbDataType;\n }\n if(dataLen && dataLen >= 0) {\n return `${dbDataType}(${dataLen})`;\n }\n return dbDataType;\n };\n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\n const tableKey = `${schemaName}${it.defKey}`;\n}}\n{{~fieldsUpdate:field:index}}\n{{\n const updateKeys = field?.baseUpdate?.updateKeys?.split(\",\") || [];\n const finalDataType = computeDatatype(field);\n const preDefKey = field?.baseUpdate?.pre?.defKey;\n const nextDefKey = field?.baseUpdate?.next?.defKey;\n}}\n{{? updateKeys.includes('defKey') }}ALTER TABLE {{= tableKey }} RENAME COLUMN {{= preDefKey}} TO {{= nextDefKey}};{{?}}\n{{? updateKeys.some((item) => item === 'dbDataType' || item === 'dataLen' || item === 'numScale' || item === 'autoIncrement') }}\nALTER TABLE {{= tableKey }} ALTER COLUMN {{= field.defKey}} DROP default;\nALTER TABLE {{= tableKey }} ALTER COLUMN {{= field.defKey}} TYPE {{=finalDataType}} USING '{{= field.defKey}}'::{{=finalDataType}};\n{{?}}\n{{? updateKeys.includes('notNull') }}ALTER TABLE {{= tableKey }} ALTER COLUMN {{= field.defKey}}{{? field.notNull }} SET {{??}} DROP {{?}} NOT NULL;{{?}}\n{{? updateKeys.some((item) => item === 'defName' || item === 'intro') }}\nCOMMENT ON COLUMN {{= tableKey}}.{{= field.defKey}} IS '{{=it.func.strJoin(field.defName, field.intro, \";\", true)}}';\n{{?}}\n{{? updateKeys.includes('defaultValue') }}\nALTER TABLE {{= tableKey}} ALTER COLUMN {{= field.defKey}}{{? field.defaultValue }} SET DEFAULT {{=field.defaultValue}}{{??}} DROP default{{?}};\n{{?}}\n{{~}}", "columnDelete": "{{\n let fieldsUpdate = it.fieldsUpdate; \n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\n const tableKey = `${schemaName}${it.defKey}`;\n}}\n{{~fieldsUpdate:field:index}}\nALTER TABLE {{= tableKey }} DROP COLUMN {{=field.defKey}};\n{{~}}", "indexCreate": "{{\r\n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\r\n const tableKey = `${schemaName}${it.defKey}`;\r\n}}\r\n{{~it.indexes:row:index}}\r\n{{? row.fields.length > 0 && row.defKey}}\r\nCREATE {{? row.type.toUpperCase() === 'UNIQUE'}} {{=row.type}} {{?}}INDEX {{=row.defKey}} ON {{= tableKey }} (\r\n {{~row.fields:field:idx}}\r\n {{=field.fieldDefKey}} {{=field.sortType}}{{= idx < row.fields.length - 1 ? ',' : ''}}\r\n {{~}}\r\n);\r\n{{?}}\r\n{{? (row.defName || row.intro) && row.defKey && row.fields.length > 0}}\r\nCOMMENT ON INDEX {{= schemaName }}{{=row.defKey}} IS '{{=it.func.strJoin(row.defName, row.intro, \";\", true)}}';\r\n{{?}}\r\n{{~}}\r\n", "indexUpdate": "{{ \n let indexesUpdate = it.indexesUpdate;\n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\n const tableKey = `${schemaName}${it.defKey}`;\n}}\n{{~indexesUpdate:row:index}}\n{{\n const updateKeys = row?.baseUpdate?.updateKeys?.split(\",\") || [];\n const fieldsUpdate = row.fieldsUpdate || [];\n const preDefKey = row?.baseUpdate?.pre?.defKey;\n \n}}\n{{? updateKeys.some((item) => item === 'defKey' || item === 'type') || fieldsUpdate.length > 0 }}\nDROP INDEX IF EXISTS {{= schemaName }}{{? preDefKey}}{{= preDefKey}}{{??}}{{=row.defKey}}{{?}};\n{{? row.fields.length > 0 && row.defKey}}\nCREATE {{? row.type.toUpperCase() === 'UNIQUE'}} {{=row.type}}{{?}} INDEX {{=row.defKey}} ON {{= tableKey }}(\n {{~row.fields:field:idx}}\n {{=field.fieldDefKey}} {{=field.sortType}}{{= idx < row.fields.length - 1 ? ',' : ''}}\n {{~}}\n);\n{{?}}\n{{? (row.defName || row.intro) && row.defKey && row.fields.length > 0}}\nCOMMENT ON INDEX {{= schemaName }}{{=row.defKey}} IS '{{=it.func.strJoin(row.defName, row.intro, \";\", true)}}';\n{{?}}\n{{??}}\n{{? updateKeys.some((item) => item === 'defName' || item === 'intro') && row.fields.length > 0}}\nCOMMENT ON INDEX {{= schemaName }}{{=row.defKey}} IS '{{=it.func.strJoin(row.defName, row.intro, \";\", true)}}';\n{{?}}\n{{?}}\n{{~}}", "indexDelete": "{{\n let indexesUpdate = it.indexesUpdate; \n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\n const tableKey = `${schemaName}${it.defKey}`;\n}}\n{{~indexesUpdate:row:i}}\nDROP INDEX IF EXISTS {{= schemaName }}{{=row.defKey}};\n{{~}}", "metaTableQuery": "SELECT\r\n tb.TABLE_NAME as def_key,\r\n d.description as def_name,\r\n tb.table_schema as schema_name\r\nFROM\r\n information_schema.tables tb\r\n JOIN pg_class C ON C.relname = tb.TABLE_NAME\r\n JOIN pg_namespace n ON tb.table_schema = n.nspname AND c.relnamespace = n.oid\r\n LEFT JOIN pg_description d ON d.objoid = C.oid\r\n AND d.objsubid = '0'\r\nWHERE\r\n tb.table_schema IN (:schemaName)\r\nORDER BY\r\n\ttb.table_schema asc", "metaColumnQuery": "SELECT\r\n col.table_schema as schema_name,\r\n col.TABLE_NAME AS tbl_def_key,\r\n col.ordinal_position AS order_value,\r\n col.COLUMN_NAME AS def_key,\r\n d.description AS def_name,\r\n\t\t'' AS intro,\r\n col.udt_name AS db_data_type,\r\n\t\tCASE WHEN col.character_maximum_length IS NULL AND col.numeric_precision IS NOT NULL THEN col.numeric_precision\r\n\t\t ELSE col.character_maximum_length\r\n\t\tEND AS data_len,\r\n\t\tCASE WHEN col.numeric_precision IS NOT NULL THEN (CASE WHEN col.numeric_scale = 0 THEN NULL ELSE col.numeric_scale END)\r\n\t\t\t\tELSE NULL\r\n\t\tEND AS num_scale,\r\n CASE WHEN kc.column_name IS NOT NULL THEN 1 ELSE 0 END AS primary_key,\r\n CASE WHEN col.IS_NULLABLE = 'NO' THEN 1 ELSE 0 END AS not_null,\r\n CASE WHEN col.COLUMN_DEFAULT LIKE 'nextval%' THEN 1 ELSE 0 END AS auto_increment,\r\n\t\tsubstr(col.column_default,0,strpos(col.column_default, concat('::',col.data_type))) AS default_value\r\nFROM\r\n information_schema.COLUMNS col LEFT JOIN (information_schema.key_column_usage kc LEFT JOIN information_schema.table_constraints tc\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tON\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tkc.constraint_name = tc.constraint_name\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tand tc.constraint_type = 'PRIMARY KEY'\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tand kc.table_schema=tc.table_schema\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tand kc.table_name=tc.table_schema\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t) ON\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcol.TABLE_NAME = kc.table_name\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAND col.COLUMN_NAME = kc.column_name AND kc.table_schema = col.table_schema\r\nLEFT JOIN pg_class C ON C.relname = col.TABLE_NAME\r\nLEFT JOIN pg_namespace n ON col.table_schema = n.nspname AND c.relnamespace = n.oid\r\nLEFT JOIN pg_description d ON d.objoid = C.oid AND d.objsubid = col.ordinal_position\r\nWHERE\r\n col.table_schema IN (:schemaName)\r\n AND nspName IN (:schemaName)\r\n AND CONCAT(col.table_schema, '.', col.TABLE_NAME) IN (:sysTableNames)\r\nORDER BY\r\n\tcol.table_schema asc, col.TABLE_NAME asc,col.ordinal_position ASC\r\n", "metaIndexQuery": "SELECT ns.nspname AS schema_name, \r\n t.relname AS tbl_def_key,\r\n a.attname AS col_def_key,\r\n d.description AS def_name,\r\n '' AS intro,\r\n CASE\r\n WHEN ix.indoption[array_position(ix.indkey, a.attnum) - 1] & 1 = 0 THEN 'ASC'\r\n ELSE 'DESC'\r\n END AS sort_type,\r\n CASE\r\n WHEN ix.indisunique THEN 'UNIQUE'\r\n ELSE 'NORMAL'\r\n END AS type,\r\n array_position(ix.indkey, a.attnum) AS order_value,\r\n idx.relname AS def_key\r\nFROM pg_class t\r\n JOIN\r\n pg_namespace ns ON ns.oid = t.relnamespace\r\n JOIN\r\n pg_index ix ON t.oid = ix.indrelid\r\n JOIN\r\n pg_class idx ON ix.indexrelid = idx.oid\r\n JOIN\r\n unnest(ix.indkey) WITH ORDINALITY AS key_col(attnum, ord) ON true\r\n JOIN\r\n pg_attribute a ON t.oid = a.attrelid AND a.attnum = key_col.attnum\r\n LEFT JOIN\r\n pg_description d ON idx.oid = d.objoid\r\nWHERE ns.nspname IN (:schemaName)\r\n AND CONCAT(ns.nspname, '.', t.relname) IN (:sysTableNames)\r\n AND indisprimary = false \r\nORDER BY ns.nspname asc, tbl_def_key, def_key", "metaQueryCharset": null, "orderValue": 2, "isEnabled": 0, "id": "BPMCJTYLF1UAC" }, { "defKey": "SQLServer", "defName": null, "icon": "", "driverFiles": "mssql-jdbc-12.6.2.jre11.jar", "jdbcReferDriver": "com.microsoft.sqlserver.jdbc.SQLServerDriver", "jdbcReferUrl": "jdbc:sqlserver://[ip]:[port];databaseName=[databaseName];encrypt=true;trustServerCertificate=true", "tableCreate": "{{\r\n let schemaName = it.schemaName ? `${it.schemaName}` : 'dbo';\r\n const tableKey = `${schemaName}.${it.defKey}`;\r\n\r\n const dataTypeArray = [\r\n 'TINYINT',\r\n 'SMALLINT',\r\n 'INT',\r\n 'BIGINT',\r\n 'REAL',\r\n 'DATE',\r\n 'DATETIME',\r\n 'TIMESTAMP',\r\n 'MONEY',\r\n 'BIT',\r\n 'TEXT'\r\n ];\r\n\r\n function getDataType(field) {\r\n const { dbDataType, dataLen, numScale, defaultValue, autoIncrement } = field;\r\n if(!dbDataType) {\r\n return '';\r\n }\r\n if(autoIncrement) {\r\n return dbDataType.toUpperCase() === 'BIGINT' ? 'BIGINT IDENTITY(1,1)' : 'INT IDENTITY(1,1)';\r\n }\r\n if(dataTypeArray.includes(dbDataType.toUpperCase())) {\r\n return dbDataType;\r\n }\r\n if(dbDataType.toUpperCase() === 'DECIMAL') {\r\n if(dataLen && dataLen >= 1 && dataLen <= 38) {\r\n if(numScale && numScale >= 0 && numScale <= dataLen) {\r\n return `${dbDataType}(${dataLen},${numScale})`;\r\n } else {\r\n return `${dbDataType}(${dataLen})`;\r\n }\r\n }\r\n return dbDataType;\r\n }\r\n if(dbDataType.toUpperCase() === 'TIME' && dataLen && dataLen >= 1 && dataLen <= 7) {\r\n return `${dbDataType}(${dataLen})`;\r\n }\r\n if(dbDataType.toUpperCase() === 'FLOAT' && dataLen && dataLen >= 1 && dataLen <= 53) {\r\n return `${dbDataType}(${dataLen})`;\r\n }\r\n if(dataLen && dataLen >= 0) {\r\n return `${dbDataType}(${dataLen})`;\r\n }\r\n return dbDataType;\r\n }\r\n\r\n function getConstraints(field) {\r\n let constraints = '';\r\n if (field.notNull) {\r\n constraints += ' NOT NULL';\r\n }\r\n if (!field.notNull) {\r\n constraints += ' NULL';\r\n }\r\n if (field.defaultValue) {\r\n constraints += ` DEFAULT ${field.defaultValue}`;\r\n }\r\n return constraints;\r\n }\r\n}}\r\n\r\nIF OBJECT_ID('{{= tableKey }}','U') IS NOT NULL \r\n DROP TABLE {{= tableKey }};\r\n\r\nCREATE TABLE {{= tableKey }}(\r\n{{ pkList = [] ; }}\r\n{{~it.fields:field:index}}\r\n {{? field.primaryKey }}{{ pkList.push('[' + field.defKey + ']') }}{{?}} \r\n [{{=field.defKey}}] {{= getDataType(field) }}{{= getConstraints(field) }}{{= index < it.fields.length-1 || pkList.length>0 ? ',' : '' }} \r\n{{~}}\r\n{{? pkList.length > 0 }} PRIMARY KEY ({{= pkList.join(', ')}}){{?}}\r\n);\r\n\r\n{{~it.fields:field:index}}\r\n{{? field.defName || field.intro }}\r\nEXEC sp_addextendedproperty \r\n @name = N'MS_Description', \r\n @value = N'{{=it.func.strJoin(field.defName, field.intro, \";\", true)}}', \r\n @level0type = N'SCHEMA', @level0name = N'{{=schemaName}}', \r\n @level1type = N'TABLE', @level1name = N'{{=it.defKey}}', \r\n @level2type = N'COLUMN', @level2name = N'{{=field.defKey}}';\r\n{{?}}\r\n{{~}}\r\n\r\n{{? it.defName || it.intro }}\r\nEXEC sp_addextendedproperty \r\n @name = N'MS_Description', \r\n @value = N'{{=it.func.strJoin(it.defName, it.intro, \";\", true)}}', \r\n @level0type = N'SCHEMA', @level0name = N'{{=schemaName}}', \r\n @level1type = N'TABLE', @level1name = N'{{=it.defKey}}';\r\n{{?}}\r\n$blankline\r\n", "tableUpdate": "{{\r\n let defKey = it.baseUpdate.next.defKey;\r\n let defName = it.baseUpdate.next.defName;\r\n let intro = it.baseUpdate.next.intro;\r\n let indexFields = it.indexFields;\r\n let isPrimaryKeyModified = it.isPrimaryKeyModified;\r\n let schemaName = it.schemaName ? `${it.schemaName}` : 'dbo';\r\n const tableKey = `${schemaName}.${it.defKey}`;\r\n const updateKeys = it?.baseUpdate?.updateKeys?.split(\",\") || [];\r\n}}\r\n{{? isPrimaryKeyModified }}\r\nBEGIN\r\nDECLARE @constraint_name NVARCHAR(128);\r\nDECLARE @sql NVARCHAR(MAX);\r\n\r\nSELECT @constraint_name = name\r\nFROM sys.key_constraints\r\nWHERE type = 'PK'\r\n AND OBJECT_NAME(parent_object_id) = '{{=it.defKey}}' \r\n AND SCHEMA_NAME(schema_id) = '{{= schemaName }}';\r\n\r\nIF @constraint_name IS NOT NULL\r\n BEGIN\r\n SET @sql = 'ALTER TABLE {{= tableKey}} DROP CONSTRAINT ' + QUOTENAME(@constraint_name);\r\n EXEC sp_executesql @sql;\r\n END\r\nEND\r\n{{? indexFields && indexFields.length > 0}}\r\nALTER TABLE {{= tableKey }} ADD PRIMARY KEY ({{~indexFields:field:i}}{{= field.defKey }}{{= i < indexFields.length-1 ? ',' : '' }}{{~}});\r\n{{?}}\r\n{{?}}\r\n{{? updateKeys.some((item) => item === 'defName' || item === 'intro') }}\r\nEXEC sp_updateextendedproperty \r\n @name = N'MS_Description', \r\n @value = N'{{=it.func.strJoin(defName, intro, \";\", true)}}', \r\n @level0type = N'SCHEMA', @level0name = N'{{= schemaName }}', \r\n @level1type = N'TABLE', @level1name = N'{{=it.defKey}}';\r\n{{?}}\r\n$blankline\r\n{{? updateKeys.some((item) => item === 'defKey') }}EXEC sp_rename '{{= tableKey }}', '{{=defKey}}'; {{?}}", "tableDelete": "{{\r\n let schemaName = it.schemaName ? `${it.schemaName}` : 'dbo';\r\n const tableKey = `${schemaName}.${it.defKey}`;\r\n}}\r\nIF OBJECT_ID('{{= tableKey }}', 'U') IS NOT NULL \r\n DROP TABLE {{= tableKey }};", "columnCreate": "{{\n let fieldsUpdate = it.fieldsUpdate;\n const computeDatatype = (field) => {\n const { dbDataType, dataLen, numScale, defaultValue, autoIncrement } = field;\n if(!dbDataType) {\n return '';\n }\n if(autoIncrement) {\n return dbDataType.toUpperCase() === 'BIGINT' ? 'BIGINT IDENTITY(1,1)' : 'INT IDENTITY(1,1)';\n }\n if(dbDataType.toUpperCase() === 'TINYINT' ||\n dbDataType.toUpperCase() === 'SMALLINT' ||\n dbDataType.toUpperCase() === 'INT' ||\n dbDataType.toUpperCase() === 'BIGINT' ||\n dbDataType.toUpperCase() === 'REAL' ||\n dbDataType.toUpperCase() === 'DATE' ||\n dbDataType.toUpperCase() === 'DATETIME' ||\n dbDataType.toUpperCase() === 'TIMESTAMP' ||\n dbDataType.toUpperCase() === 'MONEY' ||\n dbDataType.toUpperCase() === 'BIT' ||\n dbDataType.toUpperCase() === 'TEXT') {\n return dbDataType; \n } else if(dbDataType.toUpperCase() === 'DECIMAL') {\n return `${dbDataType} ${(dataLen && dataLen >= 1 && dataLen <= 38) ? ((numScale && numScale >= 0 && numScale <= dataLen) ? `(${dataLen},${numScale})` : `(${dataLen})` ) : ''}`;\n } else if(dbDataType.toUpperCase() === 'TIME' ) {\n return `${dbDataType} ${(dataLen && dataLen >= 1 && dataLen <= 7) ? `(${dataLen})` : ''}`;\n } else if(dbDataType.toUpperCase() === 'FLOAT') {\n return `${dbDataType} ${(dataLen && dataLen >= 1 && dataLen <= 53) ? `(${dataLen})` : ''}`;\n } else if(dataLen && dataLen >= 0) {\n return `${dbDataType} (${dataLen})`;\n }\n return dbDataType;\n };\n let schemaName = it.schemaName ? `${it.schemaName}` : 'dbo';\n const tableKey = `${schemaName}.${it.defKey}`;\n}}\n{{~fieldsUpdate:field:index}}\n{{\n const finalDataType = computeDatatype(field);\n}}\nALTER TABLE {{= tableKey }} ADD {{= field.defKey}} {{= finalDataType}}{{? field.notNull}} NOT NULL{{?}}{{? field.defaultValue}} DEFAULT {{= field.defaultValue}}{{?}};\n{{? field.defName || field.intro }}\nEXEC sp_addextendedproperty \n @name = N'MS_Description', \n @value = N'{{=it.func.strJoin(field.defName, field.intro, \";\", true)}}', \n @level0type = N'SCHEMA', @level0name = N'{{= schemaName }}',\n @level1type = N'TABLE', @level1name = N'{{= it.defKey}}',\n @level2type = N'COLUMN', @level2name = N'{{= field.defKey}}';\n{{?}}\n{{~}}", "columnUpdate": "{{\n let fieldsUpdate = it.fieldsUpdate;\n const computeDatatype = (field) => {\n const { dbDataType, dataLen, numScale, defaultValue, autoIncrement } = field;\n if(!dbDataType) {\n return '';\n }\n if(autoIncrement) {\n return dbDataType.toUpperCase() === 'BIGINT' ? 'BIGINT IDENTITY(1,1)' : 'INT IDENTITY(1,1)';\n }\n if(dbDataType.toUpperCase() === 'TINYINT' ||\n dbDataType.toUpperCase() === 'SMALLINT' ||\n dbDataType.toUpperCase() === 'INT' ||\n dbDataType.toUpperCase() === 'BIGINT' ||\n dbDataType.toUpperCase() === 'REAL' ||\n dbDataType.toUpperCase() === 'DATE' ||\n dbDataType.toUpperCase() === 'DATETIME' ||\n dbDataType.toUpperCase() === 'TIMESTAMP' ||\n dbDataType.toUpperCase() === 'MONEY' ||\n dbDataType.toUpperCase() === 'BIT' ||\n dbDataType.toUpperCase() === 'TEXT') {\n return dbDataType; \n } else if(dbDataType.toUpperCase() === 'DECIMAL') {\n return `${dbDataType} ${(dataLen && dataLen >= 1 && dataLen <= 38) ? ((numScale && numScale >= 0 && numScale <= field.dataLen) ? `(${dataLen},${numScale})` : `(${dataLen})` ) : ''}`;\n } else if(dbDataType.toUpperCase() === 'TIME' ) {\n return `${dbDataType} ${(dataLen && dataLen >= 1 && dataLen <= 7) ? `(${dataLen})` : ''}`;\n } else if(dbDataType.toUpperCase() === 'FLOAT') {\n return `${dbDataType} ${(dataLen && dataLen >= 1 && dataLen <= 53) ? `(${dataLen})` : ''}`;\n } else if(dataLen && dataLen >= 0) {\n return `${dbDataType} (${dataLen})`;\n }\n return dbDataType;\n };\n let schemaName = it.schemaName ? `${it.schemaName}` : 'dbo';\n const tableKey = `${schemaName}.${it.defKey}`;\n let updateIndexData = it.updateIndexData;\n}}\n{{~updateIndexData:row:index}}\n{{? row?.fieldsUpdate?.length > 0 }}\nIF EXISTS (SELECT * FROM sys.indexes WHERE name = '{{=row.defKey}}' AND object_id = OBJECT_ID('{{= tableKey }}'))\n DROP INDEX {{=row.defKey}} ON {{= tableKey }};\n{{?}}\n{{~}}\n{{~fieldsUpdate:field:index}}\n{{\n const updateKeys = field?.baseUpdate?.updateKeys?.split(\",\") || [];\n const finalDataType = computeDatatype(field);\n const preDefKey = field?.baseUpdate?.pre?.defKey;\n const nextDefKey = field?.baseUpdate?.next?.defKey;\n}}\n{{? updateKeys.includes('defaultValue') }}\nBEGIN\n DECLARE @constraint_name NVARCHAR(255);\n\n SELECT @constraint_name = name\n FROM sys.default_constraints\n WHERE parent_object_id = OBJECT_ID('{{= tableKey }}') \n AND parent_column_id = (SELECT column_id FROM sys.columns WHERE object_id = OBJECT_ID('{{= tableKey }}') AND name = '{{= preDefKey }}');\n \n IF @constraint_name IS NOT NULL\n BEGIN\n EXEC('ALTER TABLE {{= tableKey }} DROP CONSTRAINT ' + @constraint_name);\n END\nEND\n{{?}}\n{{? updateKeys.includes('defKey') }}EXEC sp_rename '{{= tableKey }}.{{= preDefKey}}', '{{= nextDefKey}}', 'COLUMN';{{?}}\n{{? updateKeys.some((item) => item === 'dbDataType' || item === 'dataLen' || item === 'numScale' || item === 'notNull' || item === 'autoIncrement') }}\nALTER TABLE {{= tableKey }} ALTER COLUMN {{= field.defKey}} {{=finalDataType}}{{? field.notNull}} NOT NULL{{?}};\n{{?}}\n{{? updateKeys.includes('defaultValue') }}ALTER TABLE {{= tableKey }} ADD DEFAULT {{= field.defaultValue}} FOR {{= field.defKey}};{{?}}\n{{? updateKeys.some((item) => item === 'defName' || item === 'intro') }}\nEXEC sp_updateextendedproperty \n @name = N'MS_Description', \n @value = N'{{=it.func.strJoin(field.defName, field.intro, \";\", true)}}', \n @level0type = N'SCHEMA', @level0name = N'{{=schemaName}}', \n @level1type = N'TABLE', @level1name = N'{{=it.defKey}}', \n @level2type = N'COLUMN', @level2name = N'{{=field.defKey}}';\n{{?}}\n{{~}}", "columnDelete": "{{\r\n let fieldsUpdate = it.fieldsUpdate; \r\n let schemaName = it.schemaName ? `${it.schemaName}` : 'dbo';\r\n const tableKey = `${schemaName}.${it.defKey}`;\r\n}}\r\n{{~fieldsUpdate:field:index}}\r\nBEGIN\r\n DECLARE @constraint_name NVARCHAR(255);\r\n \r\n SELECT @constraint_name = name\r\n FROM sys.default_constraints\r\n WHERE parent_object_id = OBJECT_ID('{{= tableKey }}') \r\n AND parent_column_id = (SELECT column_id FROM sys.columns WHERE object_id = OBJECT_ID('{{= tableKey }}') AND name = '{{= field.defKey }}');\r\n \r\n IF @constraint_name IS NOT NULL\r\n EXEC('ALTER TABLE {{= tableKey }} DROP CONSTRAINT ' + @constraint_name);\r\n IF EXISTS (SELECT * FROM sys.columns WHERE name = '{{=field.defKey}}' AND object_id = OBJECT_ID('{{= tableKey }}'))\r\n ALTER TABLE {{= tableKey }} DROP COLUMN {{=field.defKey}};\r\nEND\r\n{{~}}", "indexCreate": "{{\r\n let schemaName = it.schemaName ? `${it.schemaName}` : 'dbo';\r\n const tableKey = `${schemaName}.${it.defKey}`;\r\n}}\r\n{{~it.indexes:row:index}}\r\n{{? row.fields.length > 0 && row.defKey}}\r\nCREATE {{? row.type.toUpperCase() === 'UNIQUE'}}{{=row.type}}{{?}} INDEX {{=row.defKey}} ON {{= tableKey }}(\r\n {{~row.fields:field:idx}}\r\n [{{=field.fieldDefKey}}] {{=field.sortType}}{{= idx < row.fields.length - 1 ? ',' : ''}}\r\n {{~}}\r\n);\r\n{{? row.defName || row.intro }}\r\nEXEC sp_addextendedproperty \r\n @name = N'MS_Description', \r\n @value = N'{{=it.func.strJoin(row.defName, row.intro, \";\", true)}}', \r\n @level0type = N'SCHEMA', @level0name = N'{{= schemaName }}', \r\n @level1type = N'TABLE', @level1name = N'{{= it.defKey }}', \r\n @level2type = N'INDEX', @level2name = N'{{= row.defKey }}';\r\n{{?}}\r\n{{?}}\r\n{{~}}\r\n", "indexUpdate": "{{ \n let indexesUpdate = it.indexesUpdate;\n let schemaName = it.schemaName ? `${it.schemaName}` : 'dbo';\n const tableKey = `${schemaName}.${it.defKey}`;\n}}\n{{~indexesUpdate:row:index}}\n{{\n const updateKeys = row?.baseUpdate?.updateKeys?.split(\",\") || [];\n const fieldsUpdate = row.fieldsUpdate || [];\n const preDefKey = row?.baseUpdate?.pre?.defKey;\n \n}}\n{{? updateKeys.some((item) => item === 'defKey' || item === 'type') || fieldsUpdate.length > 0 }}\nIF EXISTS (SELECT * FROM sys.indexes WHERE name = '{{= preDefKey}}' AND object_id = OBJECT_ID('{{=it.defKey}}'))\nBEGIN\n DROP INDEX {{= preDefKey}} ON {{= tableKey }};\nEND\nGO\n{{? row.fields.length > 0 && row.defKey}}\nCREATE {{? row.type.toUpperCase() === 'UNIQUE'}} {{=row.type}}{{?}} INDEX {{=row.defKey}} ON {{=it.defKey}} (\n {{~row.fields:field:idx}}\n [{{=field.fieldDefKey}}] {{=field.sortType}}{{= idx < row.fields.length - 1 ? ',' : ''}}\n {{~}}\n);\n{{? row.defName || row.intro }}\nEXEC sp_addextendedproperty \n @name = N'MS_Description', \n @value = N'{{=it.func.strJoin(row.defName, row.intro, \";\", true)}}', \n @level0type = N'SCHEMA', @level0name = N'{{= schemaName }}', \n @level1type = N'TABLE', @level1name = N'{{= it.defKey }}', \n @level2type = N'INDEX', @level2name = N'{{= row.defKey }}';\n{{?}}\n{{?}}\n{{?}}\n{{~}}", "indexDelete": "{{\r\n let indexesUpdate = it.indexesUpdate; \r\n let schemaName = it.schemaName ? `${it.schemaName}` : 'dbo';\r\n const tableKey = `${schemaName}.${it.defKey}`;\r\n}}\r\n{{~indexesUpdate:row:i}}\r\nIF EXISTS (SELECT * FROM sys.indexes WHERE name = '{{=row.defKey}}' AND object_id = OBJECT_ID('{{= tableKey }}'))\r\nBEGIN\r\n DROP INDEX {{=row.defKey}} ON {{= tableKey }};\r\nEND\r\nGO\r\n{{~}}", "metaTableQuery": "SELECT\n tab.name AS def_key,\n ep.value AS def_name,\n sch.name AS schema_name\nFROM sys.schemas sch JOIN sys.tables tab ON sch.schema_id = tab.schema_id\n LEFT JOIN sys.extended_properties ep ON tab.object_id = ep.major_id\n AND ep.minor_id = 0\n AND ep.name = 'MS_Description'\n AND ep.class = 1\nWHERE sch.name IN (:schemaName);", "metaColumnQuery": "SELECT\r\n schema_name = sch.name,\r\n tbl_def_key = tab.name,\r\n order_value = col.column_id,\r\n def_key = col.name,\r\n def_name = ep.value,\r\n intro = '',\r\n db_data_type = t.name,\r\n data_len = IIF(col.max_length = 0, null, col.max_length),\r\n num_scale = IIF(col.scale = 0, null, col.scale),\r\n primary_key = ISNULL((\r\n SELECT\r\n 1\r\n FROM\r\n information_schema.table_constraints AS tc,\r\n information_schema.key_column_usage AS kcu\r\n WHERE tc.constraint_name = kcu.constraint_name\r\n AND tc.constraint_type = 'PRIMARY KEY'\r\n AND tc.table_name = tab.name\r\n AND tc.CONSTRAINT_SCHEMA = sch.name\r\n AND kcu.column_name= col.name\r\n ),0),\r\n not_null= IIF(col.is_nullable = 1, 0, 1),\r\n auto_increment = is_identity,\r\n default_value = ISNULL(REPLACE(REPLACE(dc.definition,'(',''), ')',''),'') -- ISNULL(dc.definition, '')\r\nFROM\r\n sys.schemas sch\r\n INNER JOIN sys.tables tab\r\n ON sch.schema_id = tab.schema_id\r\n INNER JOIN sys.columns col\r\n ON tab.object_id = col.object_id\r\n LEFT JOIN sys.extended_properties ep\r\n ON tab.object_id = ep.major_id\r\n AND col.column_id = ep.minor_id\r\n AND ep.name = 'MS_Description'\r\n AND ep.class = 1\r\n LEFT JOIN sys.types t ON col.system_type_id = t.system_type_id AND col.user_type_id = t.user_type_id\r\n LEFT JOIN sys.default_constraints dc ON dc.object_id = col.default_object_id\r\nwhere sch.name IN (:schemaName) AND CONCAT(sch.name, '.', tab.name) IN (:sysTableNames)\r\nORDER BY sch.name,tbl_def_key, order_value", "metaIndexQuery": "SELECT\r\n sch.name AS schema_name,\r\n tab.name AS TBL_DEF_KEY,\r\n col.name AS COL_DEF_KEY,\r\n i.name AS DEF_KEY,\r\n ep.value AS def_name,\r\n IIF(i.is_unique = 1, 'UNIQUE', 'NORMAL') AS TYPE,\r\n IIF(ic.is_descending_key = 1, 'DESC', 'ASC') AS SORT_TYPE,\r\n ic.key_ordinal AS ORDER_VALUE,\r\n '' AS INTRO\r\nFROM\r\n sys.schemas sch LEFT JOIN sys.tables tab\r\n ON sch.schema_id = tab.schema_id\r\n LEFT JOIN sys.indexes i\r\n ON i.object_id = tab.object_id\r\n LEFT JOIN sys.index_columns ic\r\n ON i.object_id = ic.object_id AND i.index_id = ic.index_id\r\n LEFT JOIN sys.columns col\r\n ON ic.object_id = col.object_id AND ic.column_id = col.column_id\r\n LEFT JOIN sys.extended_properties ep\r\n ON tab.object_id = ep.major_id\r\n AND i.index_id = ep.minor_id\r\n AND ep.name = 'MS_Description'\r\n AND ep.class = 7\r\nWHERE sch.name in (:schemaName) AND CONCAT(sch.name, '.', tab.name) IN (:sysTableNames) AND is_primary_key = 0 AND i.type IN (1, 2)\r\nORDER BY sch.name,TBL_DEF_KEY, ORDER_VALUE\r\n", "metaQueryCharset": null, "orderValue": 3, "isEnabled": 0, "id": "BPMCJTYLF2UAC" }, { "defKey": "DB2", "defName": null, "icon": "\n \n \n \n \n ", "driverFiles": "db2jcc4.jar", "jdbcReferDriver": "com.ibm.db2.jcc.DB2Driver", "jdbcReferUrl": "jdbc:db2://[ip]:[port]/[schemaName]", "tableCreate": "{{\r\n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\r\n const tableKey = `${schemaName}${it.defKey}`;\r\n\r\n function getDataType(field) {\r\n const { dbDataType } = field;\r\n if(!dbDataType) {\r\n return '';\r\n }\r\n let dataType = dbDataType.toUpperCase();\r\n if(['NVARCHAR','VARCHAR'].includes(dataType)){\r\n dataType = `${dataType}(${field.dataLen ? field.dataLen : 128})`;\r\n return dataType;\r\n }else if(dataType=='CHAR'){\r\n dataType = field.dataLen && field.dataLen>=0 && field.dataLen <=255 ? `${dataType}(${field.dataLen})`:`${dataType}`;\r\n return dataType;\r\n }else if(dataType=='NCHAR'){\r\n dataType = field.dataLen && field.dataLen>=0 && field.dataLen <=63 ? `${dataType}(${field.dataLen})`:`${dataType}`;\r\n return dataType;\r\n }else if(dataType=='TIMESTAMP'){\r\n dataType = field.dataLen && field.dataLen>=0 && field.dataLen <=12 ? `${dataType}(${field.dataLen})`:`${dataType}`;\r\n return dataType;\r\n }else if(dataType=='DECIMAL'){\r\n return field.dataLen && field.dataLen >= 0 && field.dataLen <= 31 ? (field.numScale && field.numScale >= 0 && field.numScale <= field.dataLen ? `${dataType}(${field.dataLen},${field.numScale})` : `${dataType}(${field.dataLen})`) : `${dataType}`;\r\n }else if(['SMALLINT','INTEGER','BIGINT','DOUBLE','DATE','TIME','BOOLEAN','REAL'].includes(dataType)){\r\n return dataType;\r\n }\r\n else{\r\n if(field.dataLen){\r\n return `${dataType}(${field.dataLen})`;\r\n }\r\n else{\r\n return dataType; \r\n }\r\n }\r\n\r\n}\r\n function getFieldDefinition(field, index, fields) {\r\n const dataType = getDataType(field);\r\n const defaultNotNull = field.notNull ? ' NOT NULL' : '';\r\n const defaultAutoIncrement = field.autoIncrement ? ' GENERATED ALWAYS AS IDENTITY' : '';\r\n const defaultValue = field.defaultValue ? ` DEFAULT ${field.defaultValue}` : '';\r\n return `${dataType}${defaultNotNull}${defaultAutoIncrement}${defaultValue}${index < it.fields.length - 1 ? ',' : '' }`;\r\n }\r\n}}\r\nDROP TABLE IF EXISTS {{= tableKey }};\r\n\r\nCREATE TABLE {{= tableKey }}(\r\n{{ pkList = [] ; }}\r\n{{~it.fields:field:index}}\r\n {{? field.primaryKey }}{{ pkList.push(field.defKey) }}{{?}}\r\n {{=field.defKey}} {{= getFieldDefinition(field, index, it.fields) }}\r\n{{~}}\r\n{{? pkList.length >0 }}\r\n PRIMARY KEY ({{~pkList:pkName:i}}{{= pkName }}{{= i 0}}\r\nALTER TABLE {{= tableKey }} ADD PRIMARY KEY({{~indexFields:field:i}}{{= field.defKey }} {{= i < indexFields.length-1 ? ',' : '' }}{{~}});\r\n{{?}}\r\n{{?}}\r\n{{? updateKeys.some((item) => item === 'defName' || item === 'intro') }}COMMENT ON TABLE {{= tableKey }} IS '{{=it.func.strJoin(defName, intro, \";\", true)}}'; {{?}}\r\n$blankline\r\n{{? updateKeys.some((item) => item === 'defKey') }}RENAME TABLE {{= tableKey }} TO {{= defKey }};{{?}}\r\n", "tableDelete": "{{\r\n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\r\n const tableKey = `${schemaName}${it.defKey}`;\r\n}}\r\nDROP TABLE IF EXISTS {{= tableKey }};", "columnCreate": "{{\r\n let fieldsUpdate = it.fieldsUpdate;\r\n const computeDatatype = (field) => {\r\n const { dbDataType, dataLen, numScale, defaultValue, autoIncrement } = field;\r\n if(!dbDataType) {\r\n return '';\r\n }\r\n if(dbDataType.toUpperCase() === 'VARCHAR' ||\r\n dbDataType.toUpperCase() === 'NVARCHAR') {\r\n return `${dbDataType} (${dataLen ? dataLen : '128'})`; \r\n } else if(dbDataType.toUpperCase() === 'SMALLINT' ||\r\n dbDataType.toUpperCase() === 'INTEGER' ||\r\n dbDataType.toUpperCase() === 'BIGINT' ||\r\n dbDataType.toUpperCase() === 'REAL' ||\r\n dbDataType.toUpperCase() === 'DOUBLE' ||\r\n dbDataType.toUpperCase() === 'DATE' ||\r\n dbDataType.toUpperCase() === 'BOOLEAN' ||\r\n dbDataType.toUpperCase() === 'TIME' ) {\r\n return dbDataType;\r\n } else if(dbDataType.toUpperCase() === 'CHAR') {\r\n return `${dbDataType} ${(dataLen && dataLen > 0 && dataLen <= 255) ? `(${dataLen})` : ''}`;\r\n } else if(dbDataType.toUpperCase() === 'NCHAR') {\r\n return `${dbDataType} ${(dataLen && dataLen > 0 && dataLen <= 63) ? `(${dataLen})` : ''}`;\r\n } else if(dbDataType.toUpperCase() === 'TIMESTAMP') {\r\n return `${dbDataType} ${(dataLen && dataLen >= 0 && dataLen <= 12) ? `(${dataLen})` : ''}`;\r\n } else if(dbDataType.toUpperCase() === 'DECIMAL') {\r\n return `${dbDataType} ${(dataLen && dataLen > 0 && dataLen <= 31) ? ((numScale && numScale >= 0 && numScale <= dataLen) ? `(${dataLen},${numScale})` : `(${dataLen})` ) : ''}`;\r\n } else if(dataLen && dataLen >= 0) {\r\n return `${dbDataType} (${dataLen})`;\r\n }\r\n return dbDataType;\r\n };\r\n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\r\n const tableKey = `${schemaName}${it.defKey}`;\r\n}}\r\n{{~fieldsUpdate:field:index}}\r\n{{\r\n const finalDataType = computeDatatype(field);\r\n}}\r\nALTER TABLE {{= tableKey }} ADD {{= field.defKey}} {{= finalDataType}} {{? field.notNull}} NOT NULL{{?}}{{? field.defaultValue}} DEFAULT {{= field.defaultValue}}{{?}};\r\n{{? field.defName || field.intro }}\r\nCOMMENT ON COLUMN {{= tableKey }}.{{=field.defKey}} IS '{{=it.func.strJoin(field.defName, field.intro, \";\", true)}}';\r\n{{?}}\r\n{{~}}", "columnUpdate": "{{\r\n let fieldsUpdate = it.fieldsUpdate;\r\n let updateIndexData = it.updateIndexData;\r\n const computeDatatype = (field) => {\r\n const { dbDataType, dataLen, numScale, defaultValue, autoIncrement } = field;\r\n if(!dbDataType) {\r\n return '';\r\n }\r\n if(dbDataType.toUpperCase() === 'VARCHAR' ||\r\n dbDataType.toUpperCase() === 'NVARCHAR') {\r\n return `${dbDataType} (${dataLen ? dataLen : '128'})`; \r\n } else if(dbDataType.toUpperCase() === 'SMALLINT' ||\r\n dbDataType.toUpperCase() === 'INTEGER' ||\r\n dbDataType.toUpperCase() === 'BIGINT' ||\r\n dbDataType.toUpperCase() === 'REAL' ||\r\n dbDataType.toUpperCase() === 'DOUBLE' ||\r\n dbDataType.toUpperCase() === 'DATE' ||\r\n dbDataType.toUpperCase() === 'BOOLEAN' ||\r\n dbDataType.toUpperCase() === 'TIME' ) {\r\n return dbDataType;\r\n } else if(dbDataType.toUpperCase() === 'CHAR') {\r\n return `${dbDataType} ${(dataLen && dataLen > 0 && dataLen <= 255) ? `(${dataLen})` : ''}`;\r\n } else if(dbDataType.toUpperCase() === 'NCHAR') {\r\n return `${dbDataType} ${(dataLen && dataLen > 0 && dataLen <= 63) ? `(${dataLen})` : ''}`;\r\n } else if(dbDataType.toUpperCase() === 'TIMESTAMP') {\r\n return `${dbDataType} ${(dataLen && dataLen >= 0 && dataLen <= 12) ? `(${dataLen})` : ''}`;\r\n } else if(dbDataType.toUpperCase() === 'DECIMAL') {\r\n return `${dbDataType} ${(dataLen && dataLen > 0 && dataLen <= 31) ? ((numScale && numScale >= 0 && numScale <= dataLen) ? `(${dataLen},${numScale})` : `(${dataLen})` ) : ''}`;\r\n } else if(dataLen && dataLen >= 0) {\r\n return `${dbDataType} (${dataLen})`;\r\n }\r\n return dbDataType;\r\n };\r\n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\r\n const tableKey = `${schemaName}${it.defKey}`;\r\n}}\r\n{{~updateIndexData:row:index}}\r\n{{\r\n const fieldsUpdate = row.fieldsUpdate || [];\r\n const preDefKey = row?.baseUpdate?.pre?.defKey;\r\n}}\r\n{{? fieldsUpdate.length > 0 }}\r\nDROP INDEX {{= preDefKey ? preDefKey : row.defKey}};\r\n{{?}}\r\n{{~}}\r\n{{~fieldsUpdate:field:index}}\r\n{{\r\n const updateKeys = field?.baseUpdate?.updateKeys?.split(\",\") || [];\r\n const finalDataType = computeDatatype(field);\r\n const preDefKey = field?.baseUpdate?.pre?.defKey;\r\n const nextDefKey = field?.baseUpdate?.next?.defKey;\r\n}}\r\n{{? updateKeys.includes('defKey') }}ALTER TABLE {{= tableKey }} RENAME COLUMN {{= preDefKey }} TO {{= field.defKey }};{{?}}\r\n{{? updateKeys.some((item) => item === 'dbDataType' || item === 'dataLen' || item === 'numScale') }}\r\nALTER TABLE {{= tableKey }} ALTER COLUMN {{= field.defKey }} DROP DEFAULT;\r\nALTER TABLE {{= tableKey }} ALTER COLUMN {{= field.defKey }} SET DATA TYPE {{= finalDataType}};\r\n{{?}}\r\n{{? updateKeys.includes('defaultValue') }}ALTER TABLE {{= tableKey }} ALTER COLUMN {{= field.defKey }} {{? field.defaultValue }} SET {{??}} DROP {{?}} DEFAULT {{? field.defaultValue}} {{= field.defaultValue}} {{?}};{{?}}\r\n{{? updateKeys.includes('notNull') }}ALTER TABLE {{= tableKey }} ALTER COLUMN {{= field.defKey }} {{? field.notNull }} SET {{??}} DROP {{?}} NOT NULL;{{?}}\r\n{{? updateKeys.some((item) => item === 'defName' || item === 'intro') }}\r\nCOMMENT ON COLUMN {{= tableKey }}.{{=field.defKey}} IS '{{=it.func.strJoin(field.defName, field.intro, \";\", true)}}';\r\n{{?}}\r\n{{~}}", "columnDelete": "{{\n let fieldsUpdate = it.fieldsUpdate; \n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\n const tableKey = `${schemaName}${it.defKey}`;\n}}\n{{~fieldsUpdate:field:index}}\nALTER TABLE {{= tableKey }} DROP {{=field.defKey}};\n{{~}}", "indexCreate": "{{\r\n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\r\n const tableKey = `${schemaName}${it.defKey}`;\r\n}}\r\n{{~it.indexes:row:index}}\r\n{{? row?.fields?.length > 0 && row.defKey}}\r\nCREATE {{? row.type.toUpperCase() === 'UNIQUE'}}{{=row.type}}{{?}} INDEX {{=row.defKey}} ON {{= tableKey }} (\r\n {{~row.fields:field:idx}}\r\n {{=field.fieldDefKey}} {{=field.sortType}}{{= idx < row.fields.length - 1 ? ',' : ''}}\r\n {{~}}\r\n);\r\n{{? row.defName || row.intro }}\r\nCOMMENT ON INDEX {{=row.defKey}} IS '{{=it.func.strJoin(row.defName, row.intro, \";\", true)}}';\r\n{{?}}\r\n{{?}}\r\n{{~}}\r\n", "indexUpdate": "{{ \n let indexesUpdate = it.indexesUpdate;\n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\n const tableKey = `${schemaName}${it.defKey}`;\n}}\n{{~indexesUpdate:row:index}}\n{{\n const updateKeys = row?.baseUpdate?.updateKeys?.split(\",\") || [];\n const fieldsUpdate = row.fieldsUpdate || [];\n const preDefKey = row?.baseUpdate?.pre?.defKey;\n \n}}\n{{? updateKeys.some((item) => item === 'defKey' || item === 'type') || fieldsUpdate.length > 0 }}\nDROP INDEX {{= preDefKey ? preDefKey : row.defKey}};\n{{? row.fields.length > 0 && row.defKey}}\nCREATE {{? row.type.toUpperCase() === 'UNIQUE'}}{{=row.type}}{{?}} INDEX {{=row.defKey}} ON {{= tableKey }} (\n {{~row.fields:field:idx}}\n {{=field.fieldDefKey}} {{=field.sortType}}{{= idx < row.fields.length - 1 ? ',' : ''}}\n {{~}}\n);\n{{?}}\n{{? (row.defName || row.intro) && row.defKey && row.fields.length > 0}}\nCOMMENT ON INDEX {{= schemaName }}{{=row.defKey}} IS '{{=it.func.strJoin(row.defName, row.intro, \";\", true)}}';\n{{?}}\n{{?}}\n{{~}}", "indexDelete": "{{\n let indexesUpdate = it.indexesUpdate; \n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\n const tableKey = `${schemaName}${it.defKey}`;\n}}\n{{~indexesUpdate:row:i}}\nDROP INDEX {{=row.defKey}};\n{{~}}", "metaTableQuery": "SELECT NAME AS DEF_KEY,\r\n REMARKS AS DEF_NAME,\r\n TRIM(CREATOR) AS SCHEMA_NAME\r\nFROM SYSIBM.SYSTABLES\r\nWHERE TRIM(CREATOR) IN (:schemaName) AND TYPE = 'T'\r\nORDER BY CTIME ASC", "metaColumnQuery": "select\r\n TRIM(tbcreator) as SCHEMA_NAME,\r\n col.tbname as tbl_def_key,\r\n '' as intro,\r\n col.name as def_key,\r\n remarks as def_name,\r\n col.typename as db_data_type ,\r\n col.length as data_len,\r\n col.scale as num_scale,\r\n CASE WHEN col.keyseq IS NOT NULL THEN (\r\n CASE WHEN col.keyseq = 1 THEN 1 ELSE 0 END\r\n ) ELSE 0 END AS primary_key,\r\n CASE WHEN col.nulls = 'Y' THEN 0 ELSE 1 END AS not_null,\r\n col.default as default_value\r\nfrom sysibm.syscolumns col\r\nwhere TRIM(tbcreator) IN (:schemaName)\r\n and CONCAT(CONCAT(TRIM(tbcreator), '.'), TRIM(tbname)) IN (:sysTableNames)\r\norder by tbcreator,TBL_DEF_KEY, col.COLNO", "metaIndexQuery": "SELECT\r\n TRIM(i.TABSCHEMA) AS SCHEMA_NAME,\r\n i.TABNAME AS TBL_DEF_KEY,\r\n c.COLNAME AS COL_DEF_KEY,\r\n i.INDNAME AS DEF_KEY,\r\n i.REMARKS AS DEF_NAME,\r\n '' AS INTRO,\r\n CASE\r\n WHEN COLORDER = 'A' THEN 'ASC'\r\n ELSE 'DESC'\r\n END AS SORT_TYPE,\r\n CASE\r\n WHEN i.UNIQUERULE = 'U' THEN 'UNIQUE'\r\n ELSE 'NORMAL'\r\n END AS TYPE,\r\n c.COLSEQ AS ORDER_VALUE\r\nFROM\r\n SYSCAT.INDEXES i\r\n LEFT JOIN SYSCAT.INDEXCOLUSE c\r\n ON i.INDSCHEMA = c.INDSCHEMA AND i.INDNAME = c.INDNAME\r\nWHERE i.TABSCHEMA IN (:schemaName) AND CONCAT(CONCAT(TRIM(i.TABSCHEMA), '.'), TRIM(i.TABNAME)) IN (:sysTableNames) AND i.UNIQUERULE != 'P'\r\nORDER BY i.TABSCHEMA, TBL_DEF_KEY, c.COLSEQ", "metaQueryCharset": null, "orderValue": 4, "isEnabled": 0, "id": "BPQHC4PNE64AC" }, { "defKey": "SQLite", "defName": null, "icon": "\n \n \n \n \n ", "driverFiles": "sqlite-jdbc-3.49.1.0.jar", "jdbcReferDriver": "org.sqlite.JDBC", "jdbcReferUrl": "jdbc:sqlite:{xxx.db}", "tableCreate": "DROP TABLE IF EXISTS `{{=it.defKey}}`;\r\nCREATE TABLE `{{=it.defKey}}` (\r\n{{ pkList = [] ; }}\r\n{{~it.fields:field:index}}\r\n {{? field.primaryKey && field.autoIncrement}}\r\n `{{=field.defKey}}` INTEGER PRIMARY KEY AUTOINCREMENT{{= index < it.fields.length-1 ? ',' : '' }}\r\n {{??}}`{{=field.defKey}}` {{=field.dbDataType}}{{?field.dataLen>0}}{{='('}}{{=field.dataLen}}{{?field.numScale>0}}{{=','}}{{=field.numScale}}{{?}}{{=')'}}{{?}}{{= field.notNull ? ' NOT NULL' : '' }}{{= field.defaultValue ? it.func.join(' DEFAULT',field.defaultValue,' ') : '' }}{{= index < it.fields.length-1 ? ',' : '' }} {{?}}\r\n{{~}}\r\n);\r\n$blankline\r\n", "tableUpdate": "{{\r\n let defKey = it.baseUpdate.next.defKey;\r\n let indexFields = it.indexFields;\r\n let isPrimaryKeyModified = it.isPrimaryKeyModified;\r\n const tableKey = `${it.defKey}`;\r\n const updateKeys = it?.baseUpdate?.updateKeys?.split(\",\") || [];\r\n}}\r\n{{? updateKeys.some((item) => item === 'defKey') }}ALTER TABLE {{= tableKey }} RENAME TO {{=defKey}};{{?}}\r\n", "tableDelete": "{{\n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\n const tableKey = `${schemaName}${it.defKey}`;\n}}\nDROP TABLE IF EXISTS {{= tableKey }};", "columnCreate": "{{\r\n\r\n const computeDefaultValue = (field) => {\r\n const { defaultValue } = field;\r\n if(!defaultValue) {\r\n return '';\r\n }\r\n return `DEFAULT ${defaultValue}`;\r\n };\r\n \r\n const computeDatatype = (field) => {\r\n const { dbDataType, dataLen, numScale, defaultValue } = field;\r\n if(!dbDataType) {\r\n return '';\r\n }\r\n return `${dbDataType}`;\r\n };\r\n const tableKey = `${it.defKey}`;\r\n const fieldsUpdate = it.fieldsUpdate;\r\n}}\r\n{{~fieldsUpdate:field:index}}\r\nALTER TABLE {{= tableKey }} ADD COLUMN `{{=field.defKey}}` {{=computeDatatype(field)}} {{= field.notNull ? 'NOT NULL' : '' }} {{= computeDefaultValue(field)}};\r\n{{~}}", "columnUpdate": "{{\n const computeDatatype = (field) => {\n const { dbDataType, dataLen, numScale, defaultValue } = field;\n if(!dbDataType) {\n return '';\n }\n return `${dbDataType}`;\n };\n let fieldsUpdate = it.fieldsUpdate;\n const tableKey = `${it.defKey}`;\n}}\n{{~fieldsUpdate:field:index}}\n{{\n const updateKeys = field?.baseUpdate?.updateKeys?.split(\",\") || [];\n const finalDataType = computeDatatype(field);\n const preDefKey = field?.baseUpdate?.pre?.defKey;\n const nextDefKey = field?.baseUpdate?.next?.defKey;\n}}\nALTER TABLE {{= tableKey }} RENAME COLUMN {{= preDefKey || field.defKey}} {{= nextDefKey || field.defKey}} {{= finalDataType}};\n{{~}}", "columnDelete": "{{\n let fieldsUpdate = it.fieldsUpdate; \n const tableKey = `${it.defKey}`;\n}}\n{{~fieldsUpdate:field:index}}\nALTER TABLE {{= tableKey }} DROP COLUMN {{=field.defKey}};\n{{~}}", "indexCreate": "{{~it.indexes:row:index}}\r\n{{? row.fields.length > 0 && row.defKey}}\r\nCREATE INDEX {{=row.defKey}} ON {{=it.defKey}} (\r\n {{~row.fields:field:idx}}\r\n {{=field.fieldDefKey}} {{=field.sortType}}{{= idx < row.fields.length - 1 ? ',' : ''}}\r\n {{~}}\r\n);\r\n{{?}}\r\n{{~}}\r\n", "indexUpdate": "{{ \n let indexesUpdate = it.indexesUpdate;\n}}\n{{~indexesUpdate:row:index}}\n{{\n const updateKeys = row?.baseUpdate?.updateKeys?.split(\",\") || [];\n const fieldsUpdate = row.fieldsUpdate || [];\n const preDefKey = row?.baseUpdate?.pre?.defKey;\n \n}}\n{{? updateKeys.some((item) => item === 'defKey' || item === 'type') || fieldsUpdate.length > 0 }}\nDROP INDEX IF EXISTS {{? preDefKey}} {{= preDefKey}}{{??}} {{=row.defKey}}{{?}};\n{{? row.fields.length && row.fields.length === 1 && row.defKey}}\nCREATE INDEX {{=row.defKey}} ON {{=it.defKey}} (\n {{~row.fields:field:idx}}\n {{=field.fieldDefKey}} {{=field.sortType}}{{= idx < row.fields.length - 1 ? ',' : ''}}\n {{~}}\n);\n{{?}}\n{{?}}\n{{~}}", "indexDelete": "{{\n let indexesUpdate = it.indexesUpdate; \n}}\n{{~indexesUpdate:row:i}}\nDROP INDEX IF EXISTS {{=row.defKey}};\n{{~}}", "metaTableQuery": "SELECT tbl_name AS def_key\r\nfrom sqlite_master\r\nWHERE type = 'table';", "metaColumnQuery": "SELECT\r\n '' AS schema_name,\r\n tbl_name AS tbl_def_key,\r\n c.name AS def_key,\r\n CASE\r\n WHEN INSTR(c.type, '(') > 0 THEN SUBSTR(c.type, 1, INSTR(c.type, '(') - 1) ELSE c.type\r\n END AS db_data_type,\r\n c.`notnull` AS not_null,\r\n c.pk AS primary_key,\r\n c.dflt_value AS default_value,\r\n CASE\r\n WHEN INSTR(c.type, '(') > 0 THEN\r\n CASE \r\n WHEN INSTR(c.type, ',') > 0 THEN CAST(SUBSTR(c.type, INSTR(c.type, '(') + 1, INSTR(c.type, ',') - INSTR(c.type, '(') - 1) AS INTEGER)\r\n ELSE CAST(SUBSTR(c.type, INSTR(c.type, '(') + 1, INSTR(c.type, ')') - INSTR(c.type, '(') - 1) AS INTEGER) \r\n END ELSE NULL\r\n END AS data_len,\r\n CASE\r\n WHEN INSTR(c.type, ',') > 0 THEN CAST(SUBSTR(c.type, INSTR(c.type, ',') + 1, INSTR(c.type, ')') - INSTR(c.type, ',') - 1) AS INTEGER)\r\n ELSE NULL\r\n END AS num_scale\r\nFROM sqlite_master AS t,\r\n pragma_table_info(t.name) AS c\r\nWHERE t.type = 'table'\r\nORDER BY tbl_def_key ASC;", "metaIndexQuery": "WITH input AS (\r\n SELECT\r\n seqno,\r\n '' AS SCHEMA_NAME,\r\n t.tbl_name AS TBL_DEF_KEY,\r\n t.name AS DEF_KEY,\r\n c.name AS COL_DEF_KEY,\r\n '\"' || c.name || '\"' AS targetName,\r\n SUBSTR(t.sql, instr(t.sql , '(')) AS targetSQL\r\n FROM sqlite_master AS t,\r\n pragma_index_info(t.name) AS c\r\n WHERE t.type = 'index'\r\n),\r\npositions AS (\r\n SELECT\r\n *,\r\n INSTR(targetSQL, targetName) AS start_pos\r\n FROM input\r\n),\r\ndelimiters AS (\r\n SELECT\r\n *,\r\n INSTR(SUBSTR(targetSQL, start_pos), ',') AS comma_pos,\r\n INSTR(SUBSTR(targetSQL, start_pos), ')') AS paren_pos\r\n FROM positions\r\n),\r\nlimits AS (\r\n SELECT\r\n *,\r\n CASE\r\n WHEN comma_pos > 0 AND (paren_pos = 0 OR comma_pos < paren_pos) THEN comma_pos\r\n WHEN paren_pos > 0 THEN paren_pos\r\n ELSE LENGTH(SUBSTR(targetSQL, start_pos)) + 1\r\n END AS end_relative_pos\r\n FROM delimiters\r\n)\r\nSELECT \r\n SCHEMA_NAME,\r\n TBL_DEF_KEY,\r\n DEF_KEY,\r\n COL_DEF_KEY,\r\n CASE\r\n WHEN instr(SUBSTR(targetSQL, start_pos, end_relative_pos - 1), 'DESC') > 0 THEN 'DESC'\r\n WHEN instr(SUBSTR(targetSQL, start_pos, end_relative_pos - 1), 'ASC') > 0 THEN 'ASC'\r\n ELSE NULL\r\n END AS SORT_TYPE\r\nFROM limits\r\nORDER BY tbl_def_key ASC, DEF_KEY ASC, seqno ASC;", "metaQueryCharset": null, "orderValue": 5, "isEnabled": 0, "id": "BPQHDDPPE64AB" }, { "defKey": "GaussDB", "defName": null, "icon": "\n \n \n \n \n ", "driverFiles": "opengauss-jdbc-5.1.0.jar", "jdbcReferDriver": "org.postgresql.Driver", "jdbcReferUrl": "jdbc:postgresql://[ip]:[port]/[database]", "tableCreate": "{{\r\n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\r\n const tableKey = `${schemaName}${it.defKey}`;\r\n function addField(field, pkList) {\r\n let fieldStr = `${field.defKey} ${field.dbDataType}`;\r\n if (field.autoIncrement) {\r\n fieldStr =`${field.defKey}${field.dbDataType?.toUpperCase() === 'BIGINT' ? ' BIGSERIAL' : ' SERIAL'}`;\r\n } else {\r\n if (['CHAR', 'CHARACTER', 'NCHAR', 'VARCHAR', 'VARCHAR2', 'NVARCHAR2', 'CHARACTER VARYING'].includes(field.dbDataType?.toUpperCase())) {\r\n if (field.dataLen && field.dataLen >= 1) {\r\n fieldStr += `(${field.dataLen})`;\r\n }\r\n } else if (field.dbDataType?.toUpperCase() === 'TIMESTAMP') {\r\n if (field.dataLen && field.dataLen >= 0 && field.dataLen <= 6) {\r\n fieldStr += `(${field.dataLen})`;\r\n }\r\n } else if (field.dbDataType?.toUpperCase() === 'NUMERIC' || field.dbDataType?.toUpperCase() === 'DECIMAL') {\r\n if (field.dataLen && field.dataLen >= 1 && field.dataLen <= 1000) {\r\n if (field.numScale && field.numScale >= 0 && field.numScale <= field.dataLen) {\r\n fieldStr += `(${field.dataLen},${field.numScale})`;\r\n } else {\r\n fieldStr += `(${field.dataLen})`;\r\n }\r\n }\r\n }\r\n }\r\n if (field.notNull) {\r\n fieldStr += ' NOT NULL';\r\n }\r\n if (!field.notNull) {\r\n fieldStr += ' NULL';\r\n }\r\n if (field.defaultValue) {\r\n fieldStr += ` DEFAULT ${field.defaultValue}`;\r\n }\r\n if (field.primaryKey) {\r\n pkList.push(field.defKey);\r\n }\r\n return `${fieldStr}${index < it.fields.length - 1 || pkList.length > 0 ? ',' : ''}`;\r\n }\r\n}}\r\n\r\nDROP TABLE IF EXISTS {{= tableKey }};\r\n\r\nCREATE TABLE {{= tableKey }}(\r\n{{ pkList = [] ; }}\r\n{{~it.fields:field:index}}\r\n {{= addField(field, pkList) }}{{~}}{{? pkList.length > 0 }}\r\n PRIMARY KEY ({{= pkList.join(', ')}}) {{?}}\r\n);\r\n$blankline{{~it.fields:field:index}}{{? field.defName || field.intro }}COMMENT ON COLUMN {{= tableKey }}.{{=field.defKey}} IS '{{=it.func.strJoin(field.defName, field.intro, \";\", true)}}'\r\n{{?}}\r\n{{~}}\r\n\r\n{{? it.defName || it.intro }}\r\nCOMMENT ON TABLE {{= tableKey }} IS '{{=it.func.strJoin(it.defName, it.intro, \";\", true)}}';\r\n{{?}}", "tableUpdate": "{{\r\n let defKey = it.baseUpdate.next.defKey;\r\n let defName = it.baseUpdate.next.defName;\r\n let intro = it.baseUpdate.next.intro;\r\n let indexFields = it.indexFields;\r\n let isPrimaryKeyModified = it.isPrimaryKeyModified;\r\n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\r\n const tableKey = `${schemaName}${it.defKey}`;\r\n const updateKeys = it?.baseUpdate?.updateKeys?.split(\",\") || [];\r\n}}\r\n{{? isPrimaryKeyModified }}\r\nDO $$\r\n DECLARE\r\n pk_constraint_name text;\r\n BEGIN\r\n SELECT constraint_name\r\n INTO pk_constraint_name\r\n FROM information_schema.table_constraints\r\n WHERE table_name = '{{=it.defKey}}' AND constraint_type = 'PRIMARY KEY' {{? it.schemaName }} AND constraint_schema = '{{= it.schemaName }}' {{?}}\r\n LIMIT 1;\r\n\r\n IF pk_constraint_name IS NOT NULL THEN\r\n EXECUTE 'ALTER TABLE {{= tableKey }} DROP CONSTRAINT ' || pk_constraint_name;\r\n ELSE\r\n RAISE NOTICE 'No primary key constraint found for the table.';\r\n END IF;\r\nEND $$;\r\n{{? indexFields && indexFields.length > 0}}\r\nALTER TABLE {{= tableKey }} ADD PRIMARY KEY ({{~indexFields:field:i}}{{= field.defKey }}{{= i < indexFields.length-1 ? ',' : '' }}{{~}})\r\n{{?}}\r\n{{?}}\r\n{{? updateKeys.some((item) => item === 'defName' || item === 'intro') }}COMMENT ON TABLE {{= tableKey }} IS '{{=it.func.strJoin(defName, intro, \";\", true)}}'; {{?}}\r\n$blankline\r\n{{? updateKeys.some((item) => item === 'defKey') }}ALTER TABLE {{= tableKey }} RENAME TO {{=defKey}}; {{?}}\r\n", "tableDelete": "{{\n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\n const tableKey = `${schemaName}${it.defKey}`;\n}}\nDROP TABLE IF EXISTS {{= tableKey }};\n$blankline", "columnCreate": "{{\n let fieldsUpdate = it.fieldsUpdate;\n const computeDatatype = (field) => {\n const { dbDataType, dataLen, numScale, defaultValue, autoIncrement } = field;\n if(!dbDataType) {\n return '';\n }\n if(autoIncrement) {\n return dbDataType.toUpperCase() === 'BIGINT' ? 'BIGSERIAL' : 'SERIAL';\n }\n if(dbDataType.toUpperCase() === 'INT2' ||\n dbDataType.toUpperCase() === 'INT4' ||\n dbDataType.toUpperCase() === 'INT' ||\n dbDataType.toUpperCase() === 'INT8' ||\n dbDataType.toUpperCase() === 'SERIAL2' ||\n dbDataType.toUpperCase() === 'SERIAL4' ||\n dbDataType.toUpperCase() === 'SERIAL8' ||\n dbDataType.toUpperCase() === 'FLOAT4' ||\n dbDataType.toUpperCase() === 'FLOAT8' ||\n dbDataType.toUpperCase() === 'MONEY' ||\n dbDataType.toUpperCase() === 'TEXT' ||\n dbDataType.toUpperCase() === 'BYTEA' ||\n dbDataType.toUpperCase() === 'BOOLEAN' ||\n dbDataType.toUpperCase() === 'JSONB' ||\n dbDataType.toUpperCase() === 'JSON' ||\n dbDataType.toUpperCase() === 'DATE') {\n return dbDataType;\n }\n if(dbDataType.toUpperCase() === 'DECIMAL') {\n if(dataLen && dataLen >= 1 && dataLen <= 1000) {\n if(numScale && numScale >= 0 && numScale <= dataLen) {\n return `${dbDataType}(${dataLen},${numScale})`;\n } else {\n return `${dbDataType}(${dataLen})`;\n }\n }\n return dbDataType;\n }\n if(dataLen && dataLen >= 0) {\n return `${dbDataType}(${dataLen})`;\n }\n return dbDataType;\n };\n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\n const tableKey = `${schemaName}${it.defKey}`;\n}}\n{{~fieldsUpdate:field:index}}\n{{\n const finalDataType = computeDatatype(field);\n}}\nALTER TABLE {{= tableKey }} ADD COLUMN {{= field.defKey }} {{= finalDataType }} {{? field.notNull }} NOT NULL{{?}};\n{{? field.defName || field.intro }}\nCOMMENT ON COLUMN {{= tableKey }}.{{= field.defKey}} IS '{{=it.func.strJoin(field.defName, field.intro, \";\", true)}}';\n{{?}}\n{{? field.defaultValue !== null && field.defaultValue !== undefined && field.defaultValue !== ''}}\nALTER TABLE {{= tableKey }} ALTER COLUMN {{= field.defKey }} SET DEFAULT {{=field.defaultValue}};\n{{?}}\n{{~}}", "columnUpdate": "{{\n let fieldsUpdate = it.fieldsUpdate;\n const computeDatatype = (field) => {\n const { dbDataType, dataLen, numScale, defaultValue, autoIncrement } = field;\n if(!dbDataType) {\n return '';\n }\n if(autoIncrement) {\n return dbDataType.toUpperCase() === 'BIGINT' ? 'BIGSERIAL' : 'SERIAL';\n }\n if(dbDataType.toUpperCase() === 'INT2' ||\n dbDataType.toUpperCase() === 'INT4' ||\n dbDataType.toUpperCase() === 'INT' ||\n dbDataType.toUpperCase() === 'INT8' ||\n dbDataType.toUpperCase() === 'SERIAL2' ||\n dbDataType.toUpperCase() === 'SERIAL4' ||\n dbDataType.toUpperCase() === 'SERIAL8' ||\n dbDataType.toUpperCase() === 'FLOAT4' ||\n dbDataType.toUpperCase() === 'FLOAT8' ||\n dbDataType.toUpperCase() === 'MONEY' ||\n dbDataType.toUpperCase() === 'TEXT' ||\n dbDataType.toUpperCase() === 'BYTEA' ||\n dbDataType.toUpperCase() === 'BOOLEAN' ||\n dbDataType.toUpperCase() === 'JSONB' ||\n dbDataType.toUpperCase() === 'JSON' ||\n dbDataType.toUpperCase() === 'DATE') {\n return dbDataType;\n }\n if(dbDataType.toUpperCase() === 'DECIMAL') {\n if(dataLen && dataLen >= 1 && dataLen <= 1000) {\n if(numScale && numScale >= 0 && numScale <= dataLen) {\n return `${dbDataType}(${dataLen},${numScale})`;\n } else {\n return `${dbDataType}(${dataLen})`;\n }\n }\n return dbDataType;\n }\n if(dataLen && dataLen >= 0) {\n return `${dbDataType}(${dataLen})`;\n }\n return dbDataType;\n };\n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\n const tableKey = `${schemaName}${it.defKey}`;\n}}\n{{~fieldsUpdate:field:index}}\n{{\n const updateKeys = field?.baseUpdate?.updateKeys?.split(\",\") || [];\n const finalDataType = computeDatatype(field);\n const preDefKey = field?.baseUpdate?.pre?.defKey;\n const nextDefKey = field?.baseUpdate?.next?.defKey;\n}}\n{{? updateKeys.includes('defKey') }}ALTER TABLE {{= tableKey }} RENAME COLUMN {{= preDefKey}} TO {{= nextDefKey}};{{?}}\n{{? updateKeys.some((item) => item === 'dbDataType' || item === 'dataLen' || item === 'numScale' || item === 'autoIncrement') }}\nALTER TABLE {{= tableKey }} ALTER COLUMN {{= field.defKey}} TYPE {{=finalDataType}} USING \"{{= field.defKey}}\"::{{=finalDataType}};\n{{?}}\n{{? updateKeys.includes('notNull') }}ALTER TABLE {{= tableKey }} ALTER COLUMN {{= field.defKey}} {{? field.notNull }} SET {{??}} DROP {{?}} NOT NULL;{{?}}\n{{? updateKeys.some((item) => item === 'defName' || item === 'intro') }}\nCOMMENT ON COLUMN {{= tableKey }}.{{= field.defKey}} IS '{{=it.func.strJoin(field.defName, field.intro, \";\", true)}}';\n{{?}}\n{{? updateKeys.includes('defaultValue') }}\nALTER TABLE {{= tableKey }} ALTER COLUMN {{= field.defKey}} {{? field.defaultValue }} SET DEFAULT {{=field.defaultValue}} {{??}} DROP DEFAULT {{?}};\n{{?}}\n{{~}}", "columnDelete": "{{\n let fieldsUpdate = it.fieldsUpdate; \n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\n const tableKey = `${schemaName}${it.defKey}`;\n}}\n{{~fieldsUpdate:field:index}}ALTER TABLE {{= tableKey }} DROP COLUMN {{=field.defKey}};{{~}}", "indexCreate": "{{\r\n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\r\n const tableKey = `${schemaName}${it.defKey}`;\r\n}}\r\n{{~it.indexes:row:index}}\r\n{{? row.fields.length > 0 && row.defKey}}\r\nCREATE {{? row.type.toUpperCase() === 'UNIQUE'}}{{=row.type}}{{?}} INDEX {{=row.defKey}} ON {{= tableKey }}(\r\n {{~row.fields:field:idx}}\r\n {{=field.fieldDefKey}} {{=field.sortType}}{{= idx < row.fields.length - 1 ? ',' : ''}}\r\n {{~}}\r\n);\r\n{{?}}\r\n{{? (row.defName || row.intro) && row.defKey && row.fields.length > 0}}\r\nCOMMENT ON INDEX {{= schemaName }}{{=row.defKey}} IS '{{=it.func.strJoin(row.defName, row.intro, \";\", true)}}';\r\n{{?}}\r\n{{~}}\r\n", "indexUpdate": "{{ \n let indexesUpdate = it.indexesUpdate;\n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\n const tableKey = `${schemaName}${it.defKey}`;\n}}\n{{~indexesUpdate:row:index}}\n{{\n const updateKeys = row?.baseUpdate?.updateKeys?.split(\",\") || [];\n const fieldsUpdate = row.fieldsUpdate || [];\n const preDefKey = row?.baseUpdate?.pre?.defKey;\n \n}}\n{{? updateKeys.some((item) => item === 'defKey' || item === 'type') || fieldsUpdate.length > 0 }}\nDROP INDEX IF EXISTS {{= schemaName }}{{? preDefKey}}{{= preDefKey}}{{??}}{{=row.defKey}}{{?}};\n{{? row.fields.length > 0 && row.defKey}}\nCREATE {{? row.type.toUpperCase() === 'UNIQUE'}} {{=row.type}} {{?}} INDEX {{=row.defKey}} ON {{= tableKey }} (\n {{~row.fields:field:idx}}\n {{=field.fieldDefKey}} {{=field.sortType}}{{= idx < row.fields.length - 1 ? ',' : ''}}\n {{~}}\n);\n{{?}}\n{{? (row.defName || row.intro) && row.defKey && row.fields.length > 0}}\nCOMMENT ON INDEX {{= schemaName }}{{=row.defKey}} IS '{{=it.func.strJoin(row.defName, row.intro, \";\", true)}}';\n{{?}}\n{{??}}\n{{? updateKeys.some((item) => item === 'defName' || item === 'intro') && row.fields.length > 0}}\nCOMMENT ON INDEX {{= schemaName }}{{=row.defKey}} IS '{{=it.func.strJoin(row.defName, row.intro, \";\", true)}}';\n{{?}}\n{{?}}\n{{~}}", "indexDelete": "{{\n let indexesUpdate = it.indexesUpdate; \n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\n const tableKey = `${schemaName}${it.defKey}`;\n}}\n{{~indexesUpdate:row:i}}DROP INDEX IF EXISTS {{= schemaName }}{{=row.defKey}};{{~}}", "metaTableQuery": "SELECT\r\n tb.TABLE_NAME as def_key,\r\n d.description as def_name,\r\n tb.table_schema as schema_name\r\nFROM\r\n information_schema.tables tb\r\n JOIN pg_class C ON C.relname = tb.TABLE_NAME\r\n JOIN pg_namespace n ON tb.table_schema = n.nspname AND c.relnamespace = n.oid\r\n LEFT JOIN pg_description d ON d.objoid = C.oid\r\n AND d.objsubid = '0'\r\nWHERE\r\n tb.table_schema IN (:schemaName)", "metaColumnQuery": "SELECT\r\n col.table_schema as schema_name,\r\n col.TABLE_NAME AS tbl_def_key,\r\n col.ordinal_position AS order_value,\r\n col.COLUMN_NAME AS def_key,\r\n d.description AS def_name,\r\n\t\t'' AS intro,\r\n col.udt_name AS db_data_type,\r\n\t\tCASE WHEN col.character_maximum_length IS NULL AND col.numeric_precision IS NOT NULL THEN col.numeric_precision\r\n\t\t ELSE col.character_maximum_length\r\n\t\tEND AS data_len,\r\n\t\tCASE WHEN col.numeric_precision IS NOT NULL THEN (CASE WHEN col.numeric_scale = 0 THEN NULL ELSE col.numeric_scale END)\r\n\t\t\t\tELSE NULL\r\n\t\tEND AS num_scale,\r\n CASE WHEN kc.column_name IS NOT NULL THEN 1 ELSE 0 END AS primary_key,\r\n CASE WHEN col.IS_NULLABLE = 'NO' THEN 1 ELSE 0 END AS not_null,\r\n CASE WHEN col.COLUMN_DEFAULT LIKE 'nextval%' THEN 1 ELSE 0 END AS auto_increment,\r\n CASE\r\n WHEN strpos(col.column_default, concat('::',col.data_type)) = 0 THEN (CASE\r\n WHEN col.column_default LIKE 'nextval%' THEN ''\r\n ELSE col.column_default\r\n END)\r\n ELSE substr(col.column_default,0,strpos(col.column_default, concat('::',col.data_type))-1)\r\n END AS default_value\r\n\t ---\tsubstr(col.column_default,0,strpos(col.column_default, concat('::',col.data_type))) AS default_value\r\nFROM\r\n information_schema.COLUMNS col LEFT JOIN (information_schema.key_column_usage kc LEFT JOIN information_schema.table_constraints tc\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tON\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tkc.constraint_name = tc.constraint_name\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tand tc.constraint_type = 'PRIMARY KEY'\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tand kc.table_schema=tc.table_schema\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tand kc.table_name=tc.table_schema\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t) ON\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcol.TABLE_NAME = kc.table_name\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAND col.COLUMN_NAME = kc.column_name AND kc.table_schema = col.table_schema\r\nLEFT JOIN pg_class C ON C.relname = col.TABLE_NAME\r\nLEFT JOIN pg_namespace n ON col.table_schema = n.nspname AND c.relnamespace = n.oid\r\nLEFT JOIN pg_description d ON d.objoid = C.oid AND d.objsubid = col.ordinal_position\r\nWHERE\r\n col.table_schema IN (:schemaName)\r\n AND nspName IN (:schemaName)\r\n AND CONCAT(col.table_schema, '.', col.TABLE_NAME) IN (:sysTableNames)\r\nORDER BY\r\n\tcol.table_schema asc, col.TABLE_NAME asc,col.ordinal_position ASC\r\n", "metaIndexQuery": "SELECT\r\n n.nspname AS schema_name,\r\n c1.relname AS tbl_def_key,\r\n a.attname AS col_def_key,\r\n c2.relname AS def_key,\r\n s.conname AS intro,\r\n d.description AS def_name,\r\n x.indoption ,\r\n CASE\r\n WHEN array_length(x.indoption, 1) > 2 THEN (CASE WHEN x.indoption[1] & 2 <> 0 THEN 'DESC' ELSE 'ASC' END )\r\n ELSE (CASE\r\n WHEN x.indoption[0] > 0 THEN 'DESC'\r\n ELSE 'ASC'\r\n END\r\n )\r\n END AS sort_type,\r\n --CASE WHEN x.indoption[1] & 2 <> 0 THEN 'DESC' ELSE 'ASC' END AS sort_type,\r\n CASE WHEN x.indisunique THEN 'UNIQUE' ELSE 'NORMAL' END AS type\r\n\r\nFROM pg_index x\r\n lEFT JOIN pg_class c1 ON c1.oid = x.indrelid\r\n lEFT JOIN pg_class c2 ON c2.oid = x.indexrelid\r\n lEFT JOIN pg_namespace n ON n.oid = c1.relnamespace\r\n LEFT JOIN pg_description d ON c2.oid = d.objoid\r\n lEFT JOIN pg_attribute a ON a.attrelid = c1.oid AND a.attnum = ANY(x.indkey)\r\n LEFT JOIN pg_constraint s ON s.conrelid = x.indrelid AND s.conindid = x.indexrelid\r\nWHERE n.nspname in (:schemaName) AND indisprimary = 0\r\nAND CONCAT(n.nspname, '.', c1.relname) IN (:sysTableNames)\r\nORDER BY n.nspname,tbl_def_key, def_key", "metaQueryCharset": null, "orderValue": 6, "isEnabled": 0, "id": "BPMCJTYLY5UAC" }, { "defKey": "DaMeng", "defName": null, "icon": "\n \n \n \n\n\n\n\n\n\n\n\n\n \n ", "driverFiles": "DmJdbcDriver18-8.1.2.79.jar", "jdbcReferDriver": "dm.jdbc.driver.DmDriver", "jdbcReferUrl": "jdbc:dm://[ip]:[port]", "tableCreate": "{{\r\n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\r\n const tableKey = `${schemaName}${it.defKey}`;\r\n\r\n function getDataType(field) {\r\n const { dbDataType } = field;\r\n if(!dbDataType) {\r\n return '';\r\n }\r\n let dataType = dbDataType.toUpperCase();\r\n if(['SMALLINT', 'INTEGER', 'BIGINT', 'REAL', 'DATE', 'TINYINT', 'INT', 'INTERVAL'].includes(dataType)\r\n ){\r\n return dataType;\r\n }else if(dataType=='DOUBLE'){\r\n dataType = field.dataLen && field.dataLen>=0 && field.dataLen <=126 ? `${dataType}(${field.dataLen})`:`${dataType}`;\r\n return dataType;\r\n }else if(dataType=='TIME'){\r\n dataType = field.dataLen && field.dataLen>=0 && field.dataLen <=6 ? `${dataType}(${field.dataLen})`:`${dataType}`;\r\n return dataType;\r\n }else if(dataType=='DATETIME'){\r\n dataType = field.dataLen && field.dataLen>=0 && field.dataLen <=10 ? `${dataType}(${field.dataLen})`:`${dataType}`;\r\n return dataType;\r\n }else if(dataType=='TIMESTAMP'){\r\n dataType = field.dataLen && field.dataLen>=0 && field.dataLen <=9 ? `${dataType}(${field.dataLen})`:`${dataType}`;\r\n return dataType;\r\n }else if(dataType=='DECIMAL'){\r\n return field.dataLen && field.dataLen >= 0 && field.dataLen <= 38 ? (field.numScale && field.numScale >= 0 && field.numScale <= field.dataLen ? `${dataType}(${field.dataLen},${field.numScale})` : `${dataType}(${field.dataLen})`) : `${dataType}`;\r\n }else{\r\n if(field.dataLen){\r\n return `${dataType}(${field.dataLen})`;\r\n }else{\r\n return dataType; \r\n }\r\n }\r\n\r\n}\r\n function getFieldDefinition(field, index, fields) {\r\n const dataType = getDataType(field);\r\n const defaultNotNull = field.notNull ? ' NOT NULL' : '';\r\n const defaultAutoIncrement = field.autoIncrement ? ' IDENTITY(1,1)' : '';\r\n const defaultValue = field.defaultValue ? ` DEFAULT ${field.defaultValue}` : '';\r\n return `${dataType}${defaultNotNull}${defaultAutoIncrement}${defaultValue}${index < it.fields.length-1 || pkList.length>0 ? ',' : ''}`;\r\n }\r\n}}\r\nDROP TABLE IF EXISTS {{= tableKey }};\r\n\r\nCREATE TABLE {{= tableKey }}(\r\n{{ pkList = [] ; }}\r\n{{~it.fields:field:index}}\r\n {{? field.primaryKey }}{{ pkList.push(field.defKey) }}{{?}}\r\n {{=field.defKey}} {{= getFieldDefinition(field, index, it.fields) }}\r\n{{~}}\r\n{{? pkList.length >0 }}\r\n PRIMARY KEY ({{~pkList:pkName:i}}{{= pkName }}{{= i 0}}\r\nALTER TABLE {{= tableKey }} ADD PRIMARY KEY({{~indexFields:field:i}}{{= field.defKey }} {{= i < indexFields.length-1 ? ',' : '' }}{{~}});\r\n{{?}}\r\n{{?}}\r\n{{? updateKeys.some((item) => item === 'defName' || item === 'intro') }}\r\nCOMMENT ON TABLE {{= tableKey }} IS '{{=defName}}{{? defName && intro}}; {{=intro}}{{?? intro}}{{=intro}}{{?}}'; \r\n{{?}}\r\n{{? updateKeys.some((item) => item === 'defKey') }}ALTER TABLE {{= tableKey }} RENAME TO {{=defKey}};{{?}}", "tableDelete": "{{\n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\n const tableKey = `${schemaName}${it.defKey}`;\n}}\nDROP TABLE IF EXISTS {{= tableKey }};", "columnCreate": "{{\n let fieldsUpdate = it.fieldsUpdate;\n const computeDatatype = (field) => {\n const { dbDataType, dataLen, numScale, defaultValue, autoIncrement } = field;\n if(!dbDataType) {\n return '';\n }\n if(dbDataType.toUpperCase() === 'SMALLINT' ||\n dbDataType.toUpperCase() === 'INTEGER' ||\n dbDataType.toUpperCase() === 'BIGINT' ||\n dbDataType.toUpperCase() === 'REAL' ||\n dbDataType.toUpperCase() === 'DATE' ||\n dbDataType.toUpperCase() === 'TINYINT' ||\n dbDataType.toUpperCase() === 'INT' ||\n dbDataType.toUpperCase().startsWith('INTERVAL')) {\n return dbDataType;\n } else if(dbDataType.toUpperCase() === 'DOUBLE') {\n return `${dbDataType} ${(dataLen && dataLen >= 0 && dataLen <= 126) ? `(${dataLen})` : ''}`;\n } else if(dbDataType.toUpperCase() === 'TIME') {\n return `${dbDataType} ${(dataLen && dataLen >= 0 && dataLen <= 6) ? `(${dataLen})` : ''}`;\n } else if(dbDataType.toUpperCase() === 'DATETIME') {\n return `${dbDataType} ${(dataLen && dataLen >= 0 && dataLen <= 10) ? `(${dataLen})` : ''}`;\n } else if(dbDataType.toUpperCase() === 'TIMESTAMP') {\n return `${dbDataType} ${(dataLen && dataLen >= 0 && dataLen <= 9) ? `(${dataLen})` : ''}`;\n } else if(dbDataType.toUpperCase() === 'DECIMAL') {\n return `${dbDataType} ${(dataLen && dataLen > 0 && dataLen <= 38) ? ((numScale && numScale >= 0 && numScale <= dataLen) ? `(${dataLen},${numScale})` : `(${dataLen})` ) : ''}`;\n } else if(dataLen && dataLen >= 0) {\n return `${dbDataType} (${dataLen})`;\n }\n return dbDataType;\n };\n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\n const tableKey = `${schemaName}${it.defKey}`;\n}}\n{{~fieldsUpdate:field:index}}\n{{\n const finalDataType = computeDatatype(field);\n}}\nALTER TABLE {{= tableKey }} ADD {{= field.defKey}} {{= finalDataType}} {{? field.notNull}} NOT NULL{{?}}{{? field.defaultValue}} DEFAULT {{= field.defaultValue}}{{?}};\n{{? field.defName || field.intro }}\nCOMMENT ON COLUMN {{= tableKey }}.{{=field.defKey}} IS '{{=field.defName}}{{? field.defName && field.intro}}; {{=field.intro}}{{?? field.intro}}{{=field.intro}}{{?}}';\n{{?}}\n{{~}}", "columnUpdate": "{{\r\n let fieldsUpdate = it.fieldsUpdate;\r\n const computeDatatype = (field) => {\r\n const { dbDataType, dataLen, numScale, defaultValue, autoIncrement } = field;\r\n if(!dbDataType) {\r\n return '';\r\n }\r\n if(dbDataType.toUpperCase() === 'SMALLINT' ||\r\n dbDataType.toUpperCase() === 'INTEGER' ||\r\n dbDataType.toUpperCase() === 'BIGINT' ||\r\n dbDataType.toUpperCase() === 'REAL' ||\r\n dbDataType.toUpperCase() === 'DATE' ||\r\n dbDataType.toUpperCase() === 'TINYINT' ||\r\n dbDataType.toUpperCase() === 'INT' ||\r\n dbDataType.toUpperCase().startsWith('INTERVAL')) {\r\n return dbDataType;\r\n } else if(dbDataType.toUpperCase() === 'DOUBLE') {\r\n return `${dbDataType} ${(dataLen && dataLen >= 0 && dataLen <= 126) ? `(${dataLen})` : ''}`;\r\n } else if(dbDataType.toUpperCase() === 'TIME') {\r\n return `${dbDataType} ${(dataLen && dataLen >= 0 && dataLen <= 6) ? `(${dataLen})` : ''}`;\r\n } else if(dbDataType.toUpperCase() === 'DATETIME') {\r\n return `${dbDataType} ${(dataLen && dataLen >= 0 && dataLen <= 10) ? `(${dataLen})` : ''}`;\r\n } else if(dbDataType.toUpperCase() === 'TIMESTAMP') {\r\n return `${dbDataType} ${(dataLen && dataLen >= 0 && dataLen <= 9) ? `(${dataLen})` : ''}`;\r\n } else if(dbDataType.toUpperCase() === 'DECIMAL') {\r\n return `${dbDataType} ${(dataLen && dataLen > 0 && dataLen <= 38) ? ((numScale && numScale >= 0 && numScale <= dataLen) ? `(${dataLen},${numScale})` : `(${dataLen})` ) : ''}`;\r\n } else if(dataLen && dataLen >= 0) {\r\n return `${dbDataType} (${dataLen})`;\r\n }\r\n return dbDataType;\r\n };\r\n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\r\n const tableKey = `${schemaName}${it.defKey}`;\r\n}}\r\n{{~fieldsUpdate:field:index}}\r\n{{\r\n const updateKeys = field?.baseUpdate?.updateKeys?.split(\",\") || [];\r\n const finalDataType = computeDatatype(field);\r\n const preDefKey = field?.baseUpdate?.pre?.defKey;\r\n const nextDefKey = field?.baseUpdate?.next?.defKey;\r\n}}\r\n{{? updateKeys.includes('defKey') }}ALTER TABLE {{= tableKey }} RENAME COLUMN {{= preDefKey }} TO {{= field.defKey }};{{?}}\r\n{{? updateKeys.some((item) => item === 'dbDataType' || item === 'dataLen' || item === 'numScale' || item === 'intro' || item === 'defName') }}\r\nALTER TABLE {{= tableKey }} MODIFY {{= field.defKey}} {{= finalDataType}}{{? updateKeys.includes('notNull') }} {{? field.notNull }} NOT NULL {{??}} NULL {{?}}{{?}}{{? updateKeys.includes('defaultValue') }}{{? field.defaultValue }} DEFAULT {{= field.defaultValue}}{{?}}{{?}};\r\n{{?}}\r\n{{~}}\r\n", "columnDelete": "{{\n let fieldsUpdate = it.fieldsUpdate; \n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\n const tableKey = `${schemaName}${it.defKey}`;\n}}\n{{~fieldsUpdate:field:index}}\nALTER TABLE {{= tableKey }} DROP COLUMN {{=field.defKey}};\n{{~}}", "indexCreate": "{{\r\n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\r\n const tableKey = `${schemaName}${it.defKey}`;\r\n}}\r\n{{~it.indexes:row:index}}\r\n{{? row.fields.length > 0 && row.defKey}}\r\nCREATE {{? row.type.toUpperCase() === 'UNIQUE'}}{{=row.type}}{{?}} INDEX {{=row.defKey}} ON {{= tableKey }} (\r\n {{~row.fields:field:idx}}\r\n {{=field.fieldDefKey}} {{=field.sortType}}{{= idx < row.fields.length - 1 ? ',' : ''}}\r\n {{~}}\r\n);\r\n{{?}}\r\n{{~}}\r\n", "indexUpdate": "{{ \n let indexesUpdate = it.indexesUpdate;\n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\n const tableKey = `${schemaName}${it.defKey}`;\n}}\n{{~indexesUpdate:row:index}}\n{{\n const updateKeys = row?.baseUpdate?.updateKeys?.split(\",\") || [];\n const fieldsUpdate = row.fieldsUpdate || [];\n const preDefKey = row?.baseUpdate?.pre?.defKey;\n \n}}\n{{? updateKeys.some((item) => item === 'defKey' || item === 'type') || fieldsUpdate.length > 0 }}\nDROP INDEX IF EXISTS {{= schemaName }}{{? preDefKey}}{{= preDefKey}}{{??}}{{=row.defKey}}{{?}};\n{{? row.fields.length > 0 && row.defKey}}\nCREATE {{? row.type.toUpperCase() === 'UNIQUE'}}{{=row.type}}{{?}} INDEX {{=row.defKey}} ON {{= tableKey }} (\n {{~row.fields:field:idx}}\n {{=field.fieldDefKey}} {{=field.sortType}}{{= idx < row.fields.length - 1 ? ',' : ''}}\n {{~}}\n);\n{{?}}\n{{?}}\n{{~}}", "indexDelete": "{{\n let indexesUpdate = it.indexesUpdate; \n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\n const tableKey = `${schemaName}${it.defKey}`;\n}}\n{{~indexesUpdate:row:i}}\nDROP INDEX IF EXISTS {{= schemaName }}{{=row.defKey}};\n{{~}}", "metaTableQuery": "SELECT\r\n t.table_name AS def_key,\r\n c.comments AS def_name,\r\n t.OWNER AS schema_name\r\nFROM all_tables t left join all_tab_comments c on t.OWNER=c.OWNER and t.TABLE_NAME=c.TABLE_NAME\r\nwhere t.OWNER IN (:schemaName) AND t.table_name not like '##%';", "metaColumnQuery": "SELECT\r\n col.OWNER AS SCHEMA_NAME,\r\n col.table_name AS tbl_def_key,\r\n '' AS intro,\r\n col.column_name AS def_key,\r\n clc.comments AS def_name,\r\n col.data_type AS db_data_type,\r\n col.data_scale AS num_scale,\r\n col.data_length AS data_len,\r\n CASE WHEN col.nullable = 'N' THEN 1 ELSE 0 END AS not_null,\r\n CASE WHEN cpk.constraint_type IS NOT NULL THEN 1 ELSE 0 END AS primary_key,\r\n CASE WHEN ai.TABLE_NAME IS NOT NULL THEN 1 ELSE 0 END AS \"auto_increment\",\r\n col.data_default AS default_value\r\nFROM\r\n all_tab_columns col\r\n LEFT JOIN all_col_comments clc ON col.owner = clc.SCHEMA_NAME AND col.table_name = clc.table_name AND col.column_name = clc.column_name\r\n LEFT JOIN (select cst.owner,cst.constraint_name,csc.table_name,csc.column_name,cst.constraint_type\r\n from all_constraints cst,all_cons_columns csc\r\n where 1=1\r\n and cst.owner = csc.owner\r\n and cst.constraint_name=csc.constraint_name\r\n and cst.constraint_type ='P'\r\n and csc.table_name not like '%$%'\r\n ) cpk on col.owner = cpk.owner and col.table_name = cpk.table_name AND col.column_name = cpk.column_name\r\n LEFT JOIN (\r\n SELECT DISTINCT B.OWNER, B.TABLE_NAME, A.name\r\n FROM SYS.SYSCOLUMNS A,ALL_TABLES B,SYS.SYSOBJECTS C\r\n WHERE A.INFO2 & 0X01 = 0X01\r\n AND A.ID=C.ID\r\n AND C.NAME= B.TABLE_NAME\r\n ) ai ON ai.OWNER = col.OWNER AND UPPER(CONCAT(TRIM(ai.OWNER), '.', TRIM(ai.TABLE_NAME))) = UPPER(CONCAT(TRIM(col.OWNER), '.', TRIM(col.table_name))) AND col.column_name = ai.name\r\nWHERE\r\n col.OWNER IN (:schemaName)\r\n AND UPPER(CONCAT(TRIM(col.OWNER), '.', TRIM(col.table_name))) IN (:sysTableNames)\r\nORDER BY col.OWNER ASC, col.table_name ASC, COLUMN_ID ASC", "metaIndexQuery": "select \n ai.table_owner as schema_name,\n ai.table_name as tbl_def_key,\n dic.column_name as col_def_key,\n dic.descend as sort_type,\n ai.index_name as def_key,\n dic.column_position as order_value,\n '' as intro,\n '' as def_name,\n case when ai.uniqueness = 'UNIQUE' then 'UNIQUE' else 'NORMAL' end as type\nfrom all_indexes ai join dba_ind_columns dic\n on (ai.table_name = dic.table_name and ai.INDEX_NAME = dic.INDEX_NAME)\nwhere ai.table_type = 'TABLE' and ai.table_owner in (:schemaName)\n and CONCAT(ai.table_owner, '.', ai.table_name) in (:sysTableNames)\n and ai.index_name NOT IN (\n SELECT\n INDEX_NAME\n FROM\n USER_CONSTRAINTS uc\n JOIN\n USER_CONS_COLUMNS ucc ON uc.CONSTRAINT_NAME = ucc.CONSTRAINT_NAME\n WHERE\n CONCAT(uc.OWNER, '.', uc.TABLE_NAME) in (:sysTableNames)\n AND uc.OWNER IN (:schemaName)\n AND uc.CONSTRAINT_TYPE = 'P'\n )\norder by ai.table_owner, tbl_def_key, def_key;", "metaQueryCharset": null, "orderValue": 7, "isEnabled": 0, "id": "BPQHDLFQY64AC" }, { "defKey": "KingBase", "defName": null, "icon": "\n \n \n \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n \n ", "driverFiles": "kingbase8-8.6.0.jar", "jdbcReferDriver": "com.kingbase8.Driver", "jdbcReferUrl": "jdbc:kingbase8://[ip]:[port]/[database]", "tableCreate": "{{\r\n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\r\n const tableKey = `${schemaName}${it.defKey}`;\r\n function addField(field, pkList) {\r\n let fieldStr = `${field.defKey} ${field.dbDataType}`;\r\n if (field.autoIncrement) {\r\n fieldStr =`${field.defKey}${field.dbDataType?.toUpperCase() === 'BIGINT' ? ' BIGSERIAL' : ' SERIAL'}`;\r\n } else {\r\n if (['TINYINT', 'SMALLINT', 'INT', 'INTEGER', 'BIGINT', 'SMALLSERIAL', 'BIGSERIAL', \r\n 'REAL', 'DOUBLE PRECISION', 'DATE', 'DATETIME', 'TEXT', 'BYTEA', 'BOOL', \r\n 'JSONB', 'SERIAL', 'JSON'].includes(field.dbDataType?.toUpperCase())) {\r\n if (field.dataLen && field.dataLen >= 1) {\r\n fieldStr += ``;\r\n }\r\n } \r\n else if (field.dbDataType?.toUpperCase() === 'TIMESTAMP') {\r\n if (field.dataLen && field.dataLen >= 0 && field.dataLen <= 6) {\r\n fieldStr += `(${field.dataLen})`;\r\n }\r\n } else if (field.dbDataType?.toUpperCase() === 'NUMERIC' || field.dbDataType?.toUpperCase() === 'DECIMAL') {\r\n if (field.dataLen && field.dataLen >= 1 && field.dataLen <= 1000) {\r\n if (field.numScale && field.numScale >= 0 && field.numScale <= field.dataLen) {\r\n fieldStr += `(${field.dataLen},${field.numScale})`;\r\n } else {\r\n fieldStr += `(${field.dataLen})`;\r\n }\r\n }\r\n }\r\n else{\r\n fieldStr += `(${field.dataLen})`;\r\n }\r\n }\r\n if (field.notNull) {\r\n fieldStr += ' NOT NULL';\r\n }\r\n if (field.defaultValue) {\r\n fieldStr += ` DEFAULT ${field.defaultValue}`;\r\n }\r\n if (field.primaryKey) {\r\n pkList.push(field.defKey);\r\n }\r\n return `${fieldStr}${index < it.fields.length - 1 || pkList.length > 0 ? ',' : ''}`;\r\n }\r\n}}\r\n\r\nDROP TABLE IF EXISTS {{= tableKey }};\r\n\r\nCREATE TABLE {{= tableKey }}(\r\n{{ pkList = [] ; }}\r\n{{~it.fields:field:index}}\r\n {{= addField(field, pkList) }}{{~}}{{? pkList.length > 0 }}\r\n PRIMARY KEY ({{= pkList.join(', ')}}) {{?}}\r\n);\r\n$blankline{{~it.fields:field:index}}{{? field.defName || field.intro }}COMMENT ON COLUMN {{= tableKey }}.{{=field.defKey}} IS '{{=it.func.strJoin(field.defName, field.intro, \";\", true)}}';\r\n{{?}}\r\n{{~}}\r\n\r\n{{? it.defName || it.intro }}\r\nCOMMENT ON TABLE {{= tableKey }} IS '{{=it.func.strJoin(it.defName, it.intro, \";\", true)}}';\r\n{{?}}", "tableUpdate": "{{\r\n let defKey = it.baseUpdate.next.defKey;\r\n let defName = it.baseUpdate.next.defName;\r\n let intro = it.baseUpdate.next.intro;\r\n let indexFields = it.indexFields;\r\n let isPrimaryKeyModified = it.isPrimaryKeyModified;\r\n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\r\n const tableKey = `${schemaName}${it.defKey}`;\r\n const updateKeys = it?.baseUpdate?.updateKeys?.split(\",\") || [];\r\n}}\r\n{{? isPrimaryKeyModified }}\r\nALTER TABLE {{= tableKey }} DROP CONSTRAINT IF EXISTS \"{{=it.defKey}}_pkey\";\r\n{{? indexFields && indexFields.length > 0}}\r\nALTER TABLE {{= tableKey }} ADD PRIMARY KEY ({{~indexFields:field:i}}{{= field.defKey }}{{= i < indexFields.length-1 ? ',' : '' }}{{~}})\r\n{{?}}\r\n{{?}}\r\n{{? updateKeys.some((item) => item === 'defName' || item === 'intro') }}COMMENT ON TABLE {{= tableKey }} IS '{{=it.func.strJoin(defName, intro, \";\", true)}}'; {{?}}\r\n{{? updateKeys.some((item) => item === 'defKey') }}ALTER TABLE {{= tableKey }} RENAME TO {{=defKey}};{{?}}\r\n", "tableDelete": "{{\n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\n const tableKey = `${schemaName}${it.defKey}`;\n}}\nDROP TABLE IF EXISTS {{= tableKey }};", "columnCreate": "{{\n let fieldsUpdate = it.fieldsUpdate;\n const computeDatatype = (field) => {\n const { dbDataType, dataLen, numScale, defaultValue, autoIncrement } = field;\n if(!dbDataType) {\n return '';\n }\n if(autoIncrement) {\n return dbDataType.toUpperCase() === 'BIGINT' ? 'BIGSERIAL' : 'SERIAL';\n } else if(dbDataType.toUpperCase() === 'TINYINT' ||\n dbDataType.toUpperCase() === 'SMALLINT' ||\n dbDataType.toUpperCase() === 'INT' ||\n dbDataType.toUpperCase() === 'INTEGER' ||\n dbDataType.toUpperCase() === 'BIGINT' ||\n dbDataType.toUpperCase() === 'SMALLSERIAL' ||\n dbDataType.toUpperCase() === 'BIGSERIAL' ||\n dbDataType.toUpperCase() === 'REAL' ||\n dbDataType.toUpperCase() === 'DOUBLE PRECISION' ||\n dbDataType.toUpperCase() === 'DATE' ||\n dbDataType.toUpperCase() === 'DATETIME' ||\n dbDataType.toUpperCase() === 'TEXT' ||\n dbDataType.toUpperCase() === 'BYTEA' ||\n dbDataType.toUpperCase() === 'BOOL' ||\n dbDataType.toUpperCase() === 'JSONB' ||\n dbDataType.toUpperCase() === 'SERIAL' ||\n dbDataType.toUpperCase() === 'JSON') {\n return dbDataType;\n } else if(dbDataType.toUpperCase() === 'TIME' ||\n dbDataType.toUpperCase() === 'TIMESTAMP' ) {\n return `${dbDataType} ${(dataLen && dataLen >= 0 && dataLen <= 6) ? `(${dataLen})` : ''}`;\n } else if(dbDataType.toUpperCase() === 'NUMERIC' || \n dbDataType.toUpperCase() === 'DECIMAL') {\n return `${dbDataType} ${(dataLen && dataLen >= 1 && dataLen <= 1000) ? ((numScale && numScale >= 0 && numScale <= dataLen) ? `(${dataLen},${numScale})` : `(${dataLen})` ) : ''}`;\n } else if(dataLen && dataLen >= 0) {\n return `${dbDataType} (${dataLen})`;\n }\n return dbDataType;\n };\n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\n const tableKey = `${schemaName}${it.defKey}`;\n}}\n{{~fieldsUpdate:field:index}}\n{{\n const finalDataType = computeDatatype(field);\n}}\nALTER TABLE {{= tableKey }} ADD {{= field.defKey}} {{= finalDataType}} {{? field.notNull}} NOT NULL{{?}}{{? field.defaultValue}} DEFAULT {{= field.defaultValue}}{{?}};\n{{? field.defName || field.intro }}\nCOMMENT ON COLUMN {{= tableKey }}.{{=field.defKey}} IS '{{=it.func.strJoin(field.defName, field.intro, \";\", true)}}';\n{{?}}\n{{~}}", "columnUpdate": "{{\n let fieldsUpdate = it.fieldsUpdate;\n const computeDatatype = (field) => {\n const { dbDataType, dataLen, numScale, defaultValue, autoIncrement } = field;\n if(!dbDataType) {\n return '';\n }\n if(autoIncrement) {\n return dbDataType.toUpperCase() === 'BIGINT' ? 'BIGSERIAL' : 'SERIAL';\n } else if(dbDataType.toUpperCase() === 'TINYINT' ||\n dbDataType.toUpperCase() === 'SMALLINT' ||\n dbDataType.toUpperCase() === 'INT' ||\n dbDataType.toUpperCase() === 'INTEGER' ||\n dbDataType.toUpperCase() === 'BIGINT' ||\n dbDataType.toUpperCase() === 'SMALLSERIAL' ||\n dbDataType.toUpperCase() === 'BIGSERIAL' ||\n dbDataType.toUpperCase() === 'REAL' ||\n dbDataType.toUpperCase() === 'DOUBLE PRECISION' ||\n dbDataType.toUpperCase() === 'DATE' ||\n dbDataType.toUpperCase() === 'DATETIME' ||\n dbDataType.toUpperCase() === 'TEXT' ||\n dbDataType.toUpperCase() === 'BYTEA' ||\n dbDataType.toUpperCase() === 'BOOL' ||\n dbDataType.toUpperCase() === 'JSONB' ||\n dbDataType.toUpperCase() === 'SERIAL' ||\n dbDataType.toUpperCase() === 'JSON') {\n return dbDataType;\n } else if(dbDataType.toUpperCase() === 'TIME' ||\n dbDataType.toUpperCase() === 'TIMESTAMP' ) {\n return `${dbDataType} ${(dataLen && dataLen >= 0 && dataLen <= 6) ? `(${dataLen})` : ''}`;\n } else if(dbDataType.toUpperCase() === 'NUMERIC' || \n dbDataType.toUpperCase() === 'DECIMAL') {\n return `${dbDataType} ${(dataLen && dataLen >= 1 && dataLen <= 1000) ? ((numScale && numScale >= 0 && numScale <= dataLen) ? `(${dataLen},${numScale})` : `(${dataLen})` ) : ''}`;\n } else if(dataLen && dataLen >= 0) {\n return `${dbDataType} (${dataLen})`;\n }\n return dbDataType;\n };\n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\n const tableKey = `${schemaName}${it.defKey}`;\n}}\n{{~fieldsUpdate:field:index}}\n{{\n const updateKeys = field?.baseUpdate?.updateKeys?.split(\",\") || [];\n const finalDataType = computeDatatype(field);\n const preDefKey = field?.baseUpdate?.pre?.defKey;\n const nextDefKey = field?.baseUpdate?.next?.defKey;\n}}\n{{? updateKeys.includes('defKey') }}ALTER TABLE {{= tableKey }} RENAME COLUMN {{= preDefKey}} TO {{= nextDefKey}};{{?}}\n{{? updateKeys.some((item) => item === 'dbDataType' || item === 'dataLen' || item === 'numScale' || item === 'autoIncrement') }}\nALTER TABLE {{= tableKey }} ALTER COLUMN {{= field.defKey}} SET DATA TYPE {{=finalDataType}};\n{{?}}\n{{? updateKeys.includes('notNull') }}ALTER TABLE {{= tableKey }} ALTER COLUMN {{= field.defKey}} {{? field.notNull }} SET {{??}} DROP {{?}} NOT NULL;{{?}}\n{{? updateKeys.some((item) => item === 'defName' || item === 'intro') }}\nCOMMENT ON COLUMN {{= tableKey }}.{{=field.defKey}} IS '{{=it.func.strJoin(field.defName, field.intro, \";\", true)}}';\n{{?}}\n{{? updateKeys.includes('defaultValue') }}\nALTER TABLE {{= tableKey }} ALTER COLUMN {{= field.defKey}} {{? field.defaultValue }} SET DEFAULT {{=field.defaultValue}} {{??}} DROP DEFAULT {{?}};\n{{?}}\n{{~}}", "columnDelete": "{{\n let fieldsUpdate = it.fieldsUpdate; \n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\n const tableKey = `${schemaName}${it.defKey}`;\n}}\n{{~fieldsUpdate:field:index}}\nALTER TABLE {{= tableKey }} DROP COLUMN {{=field.defKey}};\n{{~}}", "indexCreate": "{{\r\n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\r\n const tableKey = `${schemaName}${it.defKey}`;\r\n}}\r\n{{~it.indexes:row:index}}\r\n{{? row.fields.length > 0 && row.defKey}}\r\nCREATE {{? row.type.toUpperCase() === 'UNIQUE'}}{{=row.type}}{{?}} INDEX {{=row.defKey}} ON {{= tableKey }}(\r\n {{~row.fields:field:idx}}\r\n {{=field.fieldDefKey}} {{=field.sortType}}{{= idx < row.fields.length - 1 ? ',' : ''}}\r\n {{~}}\r\n);\r\n{{?}}\r\n{{? (row.defName || row.intro) && row.defKey && row.fields.length > 0}}\r\nCOMMENT ON INDEX {{= schemaName }}{{=row.defKey}} IS '{{=it.func.strJoin(row.defName, row.intro, \";\", true)}}';\r\n{{?}}\r\n{{~}}\r\n", "indexUpdate": "{{ \n let indexesUpdate = it.indexesUpdate;\n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\n const tableKey = `${schemaName}${it.defKey}`;\n}}\n{{~indexesUpdate:row:index}}\n{{\n const updateKeys = row?.baseUpdate?.updateKeys?.split(\",\") || [];\n const fieldsUpdate = row.fieldsUpdate || [];\n const preDefKey = row?.baseUpdate?.pre?.defKey;\n \n}}\n{{? updateKeys.some((item) => item === 'defKey' || item === 'type') || fieldsUpdate.length > 0 }}\nDROP INDEX IF EXISTS {{= schemaName }}{{? preDefKey}}{{= preDefKey}}{{??}}{{=row.defKey}}{{?}};\n{{? row.fields.length > 0 && row.defKey}}\nCREATE {{? row.type.toUpperCase() === 'UNIQUE'}}{{=row.type}}{{?}} INDEX {{=row.defKey}} ON {{= tableKey }} (\n {{~row.fields:field:idx}}\n {{=field.fieldDefKey}} {{=field.sortType}}{{= idx < row.fields.length - 1 ? ',' : ''}}\n {{~}}\n);\n{{?}}\n{{? (row.defName || row.intro) && row.defKey && row.fields.length > 0}}\nCOMMENT ON INDEX {{= schemaName }}{{=row.defKey}} IS '{{=it.func.strJoin(row.defName, row.intro, \";\", true)}}';\n{{?}}\n{{?}}\n{{~}}", "indexDelete": "{{\n let indexesUpdate = it.indexesUpdate; \n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\n const tableKey = `${schemaName}${it.defKey}`;\n}}\n{{~indexesUpdate:row:i}}\nDROP INDEX IF EXISTS {{= schemaName }}{{=row.defKey}};\n{{~}}", "metaTableQuery": "SELECT\r\n tb.TABLE_NAME as def_key,\r\n d.description as def_name,\r\n tb.table_schema as schema_name\r\nFROM\r\n information_schema.tables tb\r\n JOIN pg_class C ON C.relname = tb.TABLE_NAME\r\n JOIN pg_namespace n ON tb.table_schema = n.nspname AND c.relnamespace = n.oid\r\n LEFT JOIN pg_description d ON d.objoid = C.oid\r\n AND d.objsubid = '0'\r\nwhere tb.table_type = 'BASE TABLE' AND tb.table_schema IN (:schemaName);", "metaColumnQuery": "SELECT\r\n col.table_schema AS schema_name,\r\n col.TABLE_NAME AS tbl_def_key,\r\n col.ordinal_position AS order_value,\r\n col.COLUMN_NAME AS def_key,\r\n d.description AS def_name,\r\n\t\t'' AS intro,\r\n col.udt_name AS db_data_type,\r\n\t\tCASE WHEN col.character_maximum_length IS NULL AND col.numeric_precision IS NOT NULL THEN col.numeric_precision\r\n\t\t ELSE col.character_maximum_length\r\n\t\tEND AS data_len,\r\n\t\tCASE WHEN col.numeric_precision IS NOT NULL THEN (CASE WHEN col.numeric_scale = 0 THEN NULL ELSE col.numeric_scale END)\r\n\t\t\t\tELSE NULL \r\n\t\tEND AS num_scale,\r\n CASE WHEN kc.column_name IS NOT NULL THEN 1 ELSE 0 END AS primary_key,\r\n CASE WHEN col.IS_NULLABLE = 'NO' THEN 1 ELSE 0 END AS not_null,\r\n CASE WHEN col.COLUMN_DEFAULT LIKE 'nextval%' THEN 1 ELSE 0 END AS auto_increment,\r\n\t--\tsubstr(col.column_default,0,strpos(col.column_default, concat('::',col.data_type))) AS default_value\r\n\tCASE\r\n WHEN strpos(col.column_default, concat('::',col.data_type)) = 0 THEN (CASE\r\n WHEN col.column_default LIKE 'nextval%' THEN ''\r\n ELSE col.column_default\r\n END)\r\n ELSE substr(col.column_default,0,strpos(col.column_default, concat('::',col.data_type))-1)\r\n END AS default_value\r\nFROM\r\n information_schema.COLUMNS col LEFT JOIN (information_schema.key_column_usage kc JOIN information_schema.table_constraints tc \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tON \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tkc.constraint_name = tc.constraint_name \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tand tc.constraint_type = 'PRIMARY KEY'\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tand kc.table_schema=tc.table_schema \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tand kc.table_name=tc.table_name --25.1.11 tc.table_schema\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t) ON \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcol.TABLE_NAME = kc.table_name \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAND col.COLUMN_NAME = kc.column_name\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t AND col.table_schema=kc.table_schema --25.1.11\r\nLEFT JOIN pg_class C ON C.relname = col.TABLE_NAME\r\nJOIN pg_namespace n ON col.table_schema = n.nspname AND c.relnamespace = n.oid\r\nLEFT JOIN pg_description d ON d.objoid = C.oid AND d.objsubid = col.ordinal_position\r\nWHERE\r\n col.table_schema IN (:schemaName)\r\n AND CONCAT(TRIM(col.table_schema), CONCAT('.', TRIM(col.TABLE_NAME))) IN (:sysTableNames)\r\n AND col.table_schema IN (:schemaName)\r\nORDER BY\r\n\tcol.table_schema, col.TABLE_NAME asc,col.ordinal_position ASC\r\n", "metaIndexQuery": "SELECT ns.nspname AS schema_name, \r\n t.relname AS tbl_def_key,\r\n a.attname AS col_def_key,\r\n d.description AS def_name,\r\n d.description AS intro,\r\n --CASE\r\n -- WHEN ix.indoption[array_position(ix.indkey, a.attnum) - 1] & 1 = 0 THEN 'ASC'\r\n -- ELSE 'DESC'\r\n --END AS sort_type,\r\n CASE\r\n WHEN array_length(ix.indoption, 1) > 2 THEN (CASE WHEN ix.indoption[1] & 2 <> 0 THEN 'DESC' ELSE 'ASC' END )\r\n ELSE (CASE\r\n WHEN ix.indoption[0] > 0 THEN 'DESC'\r\n ELSE 'ASC'\r\n END\r\n )\r\n END AS sort_type,\r\n CASE\r\n WHEN ix.indisunique THEN 'UNIQUE'\r\n ELSE 'NORMAL'\r\n END AS type,\r\n array_position(ix.indkey, a.attnum) AS order_value,\r\n idx.relname AS def_key\r\nFROM pg_class t\r\n JOIN\r\n pg_namespace ns ON ns.oid = t.relnamespace\r\n JOIN\r\n pg_index ix ON t.oid = ix.indrelid\r\n JOIN\r\n pg_class idx ON ix.indexrelid = idx.oid\r\n JOIN\r\n unnest(ix.indkey) WITH ORDINALITY AS key_col(attnum, ord) ON true\r\n JOIN\r\n pg_attribute a ON t.oid = a.attrelid AND a.attnum = key_col.attnum\r\n LEFT JOIN\r\n pg_description d ON idx.oid = d.objoid\r\nWHERE ns.nspname IN (:schemaName)\r\n AND CONCAT(ns.nspname, CONCAT('.', t.relname)) IN (:sysTableNames)\r\n AND indisprimary = false\r\nORDER BY ns.nspname, \r\n tbl_def_key,\r\n def_key", "metaQueryCharset": null, "orderValue": 8, "isEnabled": 0, "id": "BPQHDZHMI64AB" }, { "defKey": "ShenTong", "defName": null, "icon": "\r\n \r\n \r\n \r\n \r\n \r\n \r\n", "driverFiles": "oscarJDBC.jar", "jdbcReferDriver": "com.oscar.Driver", "jdbcReferUrl": "jdbc:oscar://{host}[:{port}]/[{database}]", "tableCreate": "{{\n const computeDatatype = (field) => {\n const { dbDataType, dataLen, numScale, defaultValue, autoIncrement } = field;\n if(!dbDataType) {\n return '';\n }\n if(dbDataType.toUpperCase() === 'FLOAT') {\n return `${dbDataType}${(dataLen && dataLen >= 1 && dataLen < 54) ? `(${dataLen})` : ''}`;\n } else if(dbDataType.toUpperCase() === 'TIMESTAMP' ||\n dbDataType.toUpperCase() === 'TIME') {\n return `${dbDataType}${(dataLen && dataLen >= 0 && dataLen <= 6) ? `(${dataLen})` : ''}`; \n } else if(dbDataType.toUpperCase() === 'CHAR' ||\n dbDataType.toUpperCase() === 'VARCHAR' ||\n dbDataType.toUpperCase() === 'BINARY' ||\n dbDataType.toUpperCase() === 'VARBINARY') {\n return `${dbDataType}${(dataLen && dataLen > 0) ? `(${dataLen})` : ''}`;\n }\n return dbDataType;\n };\n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\n const tableKey = `${schemaName}${it.defKey}`;\n}}DROP TABLE IF EXISTS {{= tableKey }};\nCREATE TABLE {{=tableKey }} (\n{{ pkList = [] ; }}\n{{~it.fields:field:index}}\n{{\n const finalDataType = computeDatatype(field);\n let lineEnd=',';\n if(index==it.fields.length-1&&pkList.length==0){\n lineEnd = '';\n }\n}}\n {{? field.primaryKey }}{{ pkList.push(field.defKey) }}{{?}}\n {{=field.defKey}} {{= finalDataType}}{{= field.notNull ? ' NOT NULL' : '' }}{{? field.defaultValue }} DEFAULT {{= field.defaultValue }}{{?}}{{=lineEnd}}\n{{~}}\n{{? pkList.length > 0 }} PRIMARY KEY ({{= pkList.join(', ')}}) {{?}}\n);\n\n{{~it.fields:field:index}}\n{{? field.defName || field.intro }}\nCOMMENT ON COLUMN {{= tableKey }}.{{=field.defKey}} IS '{{=it.func.strJoin(field.defName, field.intro, \";\", true)}}';\n{{?}}\n{{~}}\n\n{{? it.defName || it.intro }}\nCOMMENT ON TABLE {{= tableKey }} IS '{{=it.func.strJoin(it.defName, it.intro, \";\", true)}}';\n{{?}}", "tableUpdate": "{{\r\n let defKey = it.baseUpdate.next.defKey;\r\n let defName = it.baseUpdate.next.defName;\r\n let intro = it.baseUpdate.next.intro;\r\n let indexFields = it.indexFields;\r\n let isPrimaryKeyModified = it.isPrimaryKeyModified;\r\n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\r\n const tableKey = `${schemaName}${it.defKey}`;\r\n const updateKeys = it?.baseUpdate?.updateKeys?.split(\",\") || [];\r\n}}\r\n{{? isPrimaryKeyModified }}\r\nALTER TABLE {{= tableKey }} DROP PRIMARY KEY;\r\n{{? indexFields && indexFields.length > 0}}\r\nALTER TABLE {{= tableKey }} ADD PRIMARY KEY({{~indexFields:field:i}}{{= field.defKey }} {{= i < indexFields.length-1 ? ',' : '' }}{{~}});\r\n{{?}}\r\n{{?}}\r\n{{? updateKeys.some((item) => item === 'defName' || item === 'intro') }}\r\nCOMMENT ON TABLE {{= tableKey }} IS '{{=it.func.strJoin(defName, intro, \";\", true)}}';\r\n{{?}}\r\n{{? updateKeys.some((item) => item === 'defKey') }}ALTER TABLE {{= tableKey }} RENAME TO {{=defKey}};{{?}}\r\n", "tableDelete": "{{\n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\n const tableKey = `${schemaName}${it.defKey}`;\n}}\nDROP TABLE IF EXISTS {{= tableKey }};", "columnCreate": "{{\n let fieldsUpdate = it.fieldsUpdate;\n const computeDatatype = (field) => {\n const { dbDataType, dataLen, numScale, defaultValue, autoIncrement } = field;\n if(!dbDataType) {\n return '';\n }\n if(dbDataType.toUpperCase() === 'FLOAT') {\n return `${dbDataType} ${(dataLen && dataLen >= 1 && dataLen < 54) ? `(${dataLen})` : ''}`;\n } else if(dbDataType.toUpperCase() === 'TIMESTAMP' ||\n dbDataType.toUpperCase() === 'TIME') {\n return `${dbDataType} ${(dataLen && dataLen >= 0 && dataLen <= 6) ? `(${dataLen})` : ''}`; \n } else if(dbDataType.toUpperCase() === 'CHAR' ||\n dbDataType.toUpperCase() === 'VARCHAR' ||\n dbDataType.toUpperCase() === 'BINARY' ||\n dbDataType.toUpperCase() === 'VARBINARY') {\n return `${dbDataType} ${(dataLen && dataLen > 0) ? `(${dataLen})` : ''}`;\n }\n return dbDataType;\n };\n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\n const tableKey = `${schemaName}${it.defKey}`;\n}}\n{{~fieldsUpdate:field:index}}\n{{\n const finalDataType = computeDatatype(field);\n}}\nALTER TABLE {{= tableKey }} ADD COLUMN {{= field.defKey}} {{= finalDataType}} {{? field.notNull}} NOT NULL{{?}}{{? field.defaultValue}} DEFAULT {{= field.defaultValue}}{{?}};\n{{? field.defName || field.intro }}\nCOMMENT ON COLUMN {{= tableKey }}.{{=field.defKey}} IS '{{=it.func.strJoin(field.defName, field.intro, \";\", true)}}';\n{{?}}\n{{~}}", "columnUpdate": "{{\n let fieldsUpdate = it.fieldsUpdate;\n const computeDatatype = (field) => {\n const { dbDataType, dataLen, numScale, defaultValue, autoIncrement } = field;\n if(!dbDataType) {\n return '';\n }\n if(dbDataType.toUpperCase() === 'FLOAT') {\n return `${dbDataType} ${(dataLen && dataLen >= 1 && dataLen < 54) ? `(${dataLen})` : ''}`;\n } else if(dbDataType.toUpperCase() === 'TIMESTAMP' ||\n dbDataType.toUpperCase() === 'TIME') {\n return `${dbDataType} ${(dataLen && dataLen >= 0 && dataLen <= 6) ? `(${dataLen})` : ''}`; \n } else if(dbDataType.toUpperCase() === 'CHAR' ||\n dbDataType.toUpperCase() === 'VARCHAR' ||\n dbDataType.toUpperCase() === 'BINARY' ||\n dbDataType.toUpperCase() === 'VARBINARY') {\n return `${dbDataType} ${(dataLen && dataLen > 0) ? `(${dataLen})` : ''}`;\n }\n return dbDataType;\n };\n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\n const tableKey = `${schemaName}${it.defKey}`;\n}}\n{{~fieldsUpdate:field:index}}\n{{\n const updateKeys = field?.baseUpdate?.updateKeys?.split(\",\") || [];\n const finalDataType = computeDatatype(field);\n const preDefKey = field?.baseUpdate?.pre?.defKey;\n const nextDefKey = field?.baseUpdate?.next?.defKey;\n}}\n{{? updateKeys.includes('defKey') }}ALTER TABLE {{= tableKey }} RENAME COLUMN {{= preDefKey}} TO {{= nextDefKey}};{{?}}\n{{? updateKeys.some((item) => item === 'dbDataType' || item === 'dataLen' || item === 'numScale' || item === 'autoIncrement') }}\nALTER TABLE {{= tableKey }} MODIFY {{= field.defKey}} {{=finalDataType}};\n{{?}}\n{{? updateKeys.includes('notNull') }}ALTER TABLE {{= tableKey }} ALTER COLUMN {{= field.defKey}} {{? field.notNull }} SET {{??}} DROP {{?}} NOT NULL;{{?}}\n{{? updateKeys.some((item) => item === 'defName' || item === 'intro') }}\nCOMMENT ON COLUMN {{= tableKey }}.{{=field.defKey}} IS '{{=it.func.strJoin(field.defName, field.intro, \";\", true)}}';\n{{?}}\n{{? updateKeys.includes('defaultValue') }}\nALTER TABLE {{= tableKey }} ALTER COLUMN {{= field.defKey}} {{? field.defaultValue }} SET DEFAULT {{=field.defaultValue}} {{??}} DROP DEFAULT {{?}};\n{{?}}\n{{~}}", "columnDelete": "{{\n let fieldsUpdate = it.fieldsUpdate; \n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\n const tableKey = `${schemaName}${it.defKey}`;\n}}\n{{~fieldsUpdate:field:index}}\nALTER TABLE {{= tableKey }} DROP COLUMN {{=field.defKey}};\n{{~}}", "indexCreate": "{{\r\n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\r\n const tableKey = `${schemaName}${it.defKey}`;\r\n}}\r\n{{~it.indexes:row:index}}\r\n{{? row.fields.length > 0 && row.defKey}}\r\nCREATE {{? row.type.toUpperCase() === 'UNIQUE'}}{{=row.type}}{{?}} INDEX {{=row.defKey}} ON {{= tableKey }}(\r\n {{~row.fields:field:idx}}\r\n {{=field.fieldDefKey}} {{=field.sortType}}{{= idx < row.fields.length - 1 ? ',' : ''}}\r\n {{~}}\r\n);\r\n{{?}}\r\n{{~}}\r\n", "indexUpdate": "{{ \n let indexesUpdate = it.indexesUpdate;\n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\n const tableKey = `${schemaName}${it.defKey}`;\n}}\n{{~indexesUpdate:row:index}}\n{{\n const updateKeys = row?.baseUpdate?.updateKeys?.split(\",\") || [];\n const fieldsUpdate = row.fieldsUpdate || [];\n const preDefKey = row?.baseUpdate?.pre?.defKey;\n \n}}\n{{? updateKeys.some((item) => item === 'defKey' || item === 'type') || fieldsUpdate.length > 0 }}\nDROP INDEX IF EXISTS {{= schemaName }}{{=row.defKey}};\n{{? row.fields.length > 0 && row.defKey}}\nCREATE {{? row.type.toUpperCase() === 'UNIQUE'}}{{=row.type}}{{?}} INDEX {{=row.defKey}} ON {{= tableKey }} (\n {{~row.fields:field:idx}}\n {{=field.fieldDefKey}} {{=field.sortType}}{{= idx < row.fields.length - 1 ? ',' : ''}}\n {{~}}\n);\n{{?}}\n{{?}}\n{{~}}", "indexDelete": "{{\n let indexesUpdate = it.indexesUpdate; \n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\n const tableKey = `${schemaName}${it.defKey}`;\n}}\n{{~indexesUpdate:row:i}}\nDROP INDEX IF EXISTS {{= schemaName }}{{=row.defKey}};\n{{~}}", "metaTableQuery": "SELECT\r\n NULL AS id,\r\n c.relname AS def_key,\r\n d.description AS def_name,\r\n n.nspname AS schema_name\r\nFROM\r\n sys_class c\r\nLEFT JOIN\r\n sys_description d ON c.OID = d.objoid AND d.objsubid = 0\r\nJOIN\r\n sys_namespace n ON c.RELNAMESPACE = n.OID\r\nWHERE\r\n c.RELKIND = 'r' AND -- 'r' 表示普通表\r\n n.nspname IN (:schemaName)-- 当前模式名\r\n\t", "metaColumnQuery": "SELECT\r\n A.TABLE_SCHEM AS schema_name,\r\n A.TABLE_NAME AS tbl_def_key,\r\n A.ordinal_position AS order_value,\r\n A.COLUMN_NAME as def_key,\r\n A.REMARKS AS def_name,\r\n '' AS intro,\r\n A.TYPE_NAME as db_data_type,\r\n A.COLUMN_SIZE as data_len,\r\n A.DECIMAL_DIGITS as num_scale,\r\n DECODE(CASE WHEN B.COLUMN_NAME IS NOT NULL THEN 1 ELSE 0 END, 1, 1, 0) as primary_key, --1:是 0:否\r\n CAST((CASE WHEN A.NULLABLE=0 THEN 1 ELSE 0 END) as VARCHAR(500)) as not_null, --1:是 0:否\r\n DECODE(CASE WHEN D.ATTISAUTO IS True THEN 1 ELSE 0 END, 1, 1, 0) as auto_increment,\r\n A.COLUMN_DEF as default_value\r\nFROM\r\n v_sys_columns A\r\nLEFT \r\nJOIN v_sys_primary_keys B ON A.TABLE_NAME = B.TABLE_NAME\r\nAND A.column_name=b.column_name\r\nJOIN SYS_CLASS C ON A.TABLE_NAME =C.RELNAME \r\nJOIN sys_attribute D ON A.COLUMN_NAME=D.ATTNAME\r\n AND C.OID=D.ATTRELID\r\nAND A.COLUMN_NAME=D.ATTNAME\r\nWHERE\r\n A.TABLE_SCHEM IN (:schemaName)\r\n AND CONCAT(A.TABLE_SCHEM, '.', A.TABLE_NAME) IN (:sysTableNames)\r\n AND A.ORDINAL_POSITION >= 0\r\nORDER BY\r\n A.TABLE_SCHEM asc, A.TABLE_NAME asc,A.ordinal_position ASC;", "metaIndexQuery": "SELECT \r\n A.SCHEMANAME AS SCHEMA_NAME,\r\n A.TABLENAME AS TBL_DEF_KEY, \r\n C.COLUMN_NAME AS COL_DEF_KEY, \r\n '' AS DEF_NAME,\r\n '' AS INTRO, \r\n (CASE WHEN ASC_OR_DESC='A' THEN 'ASC' ELSE 'DESC' END) AS SORT_TYPE,\r\n (CASE WHEN ISUNIQUE='true' THEN 'UNIQUE' ELSE 'NORMAL' END) AS TYPE,\r\n B.ORDINAL_POSITION AS ORDER_VALUE, \r\n A.INDEXNAME AS DEF_KEY\r\nFROM v_sys_indexes A \r\n JOIN v_sys_index_statistics B ON A.INDEXNAME=B.INDEX_NAME\r\n JOIN v_sys_columns C ON A.INDEXNAME=C.TABLE_NAME\r\n AND C.COLUMN_NAME=B.COLUMN_NAME\r\nWHERE \r\n A.SCHEMANAME IN (:schemaName) -- 替换为目标模式\r\n AND CONCAT(A.SCHEMANAME, '.', A.TABLENAME) IN (:sysTableNames) -- 替换为目标表名\r\n AND A.INDEXSCHEMANAME IN (:schemaName) -- 替换为目标模式\r\n AND ISPRIMARY = 0\r\nORDER BY \r\n A.SCHEMANAME, A.TABLENAME, A.INDEXNAME", "metaQueryCharset": null, "orderValue": 9, "isEnabled": 0, "id": "1LNU2743D0402" }, { "defKey": "GBase 8A", "defName": null, "icon": "\n \n \n \n \n ", "driverFiles": "gbase-connector-java-9.5.0.1-build1-bin.jar", "jdbcReferDriver": "com.gbase.jdbc.Driver", "jdbcReferUrl": "jdbc:gbase://[ip]:[port]/[database]?useUnicode=true&characterEncoding=utf8&characterSetResults=utf8", "tableCreate": "{{\r\n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\r\n const tableKey = `${schemaName}${it.defKey}`;\r\n\r\n function getDataType(field) {\r\n const { dbDataType } = field;\r\n if(!dbDataType) {\r\n return '';\r\n }\r\n const dataType = dbDataType.toUpperCase();\r\n if (['VARCHAR'].includes(dataType)) {\r\n return `${dataType}(${field.dataLen ? field.dataLen : 128})`;\r\n } else if (['BOOLEAN','DATE','LONGBLOB','TIME'].includes(dataType)) {\r\n return dataType;\r\n } else if (dataType === 'FLOAT') {\r\n return field.dataLen && field.dataLen >= 1 && field.dataLen <= 53 ? `${dataType}(${field.dataLen})` : dataType;\r\n } else if (dataType === 'DOUBLE') {\r\n return field.dataLen && field.dataLen >= 0 && field.dataLen <= 30 ? (field.numScale && field.numScale >= 0 && field.numScale <= field.dataLen ? `${dataType}(${field.dataLen},${field.numScale})` : `${dataType}(${field.dataLen},30)`) : `${dataType}(30,30)`;\r\n } else if (dataType === 'DECIMAL') {\r\n return field.dataLen && field.dataLen >= 0 && field.dataLen <= 255 ? (field.numScale && field.numScale >= 0 && field.numScale <= field.dataLen ? `${dataType}(${field.dataLen},${field.numScale})` : `${dataType}(${field.dataLen})`) : `${dataType}`;\r\n } else {\r\n return field.dataLen && field.dataLen >= 0 ? `${dataType}(${field.dataLen})` : dataType;\r\n }\r\n }\r\n\r\n function getFieldDefinition(field, index, fields) {\r\n const dataType = getDataType(field);\r\n const notNull = field.notNull ? ' NOT NULL' : ' NULL';\r\n const autoIncrement = field.autoIncrement ? ' AUTO_INCREMENT' : '';\r\n const defaultValue = field.defaultValue ? ` DEFAULT ${field.defaultValue}` : '';\r\n const comment = ` COMMENT '${it.func.strJoin(field.defName, field.intro, \";\", true)}'`;\r\n return `\"${field.defKey}\" ${dataType}${notNull}${autoIncrement}${defaultValue}${comment}${index < fields.length - 1 || pkList.length > 0 ? ',' : ''}`;\r\n }\r\n}}\r\nDROP TABLE IF EXISTS {{= tableKey }};\r\n\r\nCREATE TABLE {{= tableKey }}(\r\n{{ pkList = [] ; }}\r\n{{~it.fields:field:index}}\r\n {{? field.primaryKey }}{{ pkList.push(field.defKey) }}{{?}}\r\n {{= getFieldDefinition(field, index, it.fields) }}\r\n{{~}}\r\n{{? pkList.length > 0 }}\r\n PRIMARY KEY ({{~pkList:pkName:i}}{{= pkName }}{{= i < pkList.length - 1 ? ',' : '' }}{{~}})\r\n{{?}}\r\n) COMMENT '{{=it.func.strJoin(it.defName, it.intro, \";\", true)}}';\r\n$blankline\r\n", "tableUpdate": "{{\r\n let defKey = it.baseUpdate.next.defKey;\r\n let defName = it.baseUpdate.next.defName;\r\n let intro = it.baseUpdate.next.intro;\r\n let indexFields = it.indexFields;\r\n let isPrimaryKeyModified = it.isPrimaryKeyModified;\r\n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\r\n const tableKey = `${schemaName}${it.defKey}`;\r\n const updateKeys = it?.baseUpdate?.updateKeys?.split(\",\") || [];\r\n}}\r\n{{? isPrimaryKeyModified }}\r\nALTER TABLE {{= tableKey }} DROP PRIMARY KEY;\r\n{{? indexFields && indexFields.length > 0}}\r\nALTER TABLE {{= tableKey }} ADD CONSTRAINT PRIMARY KEY ({{~indexFields:field:i}}{{= field.defKey }}{{= i < indexFields.length-1 ? ',' : '' }}{{~}});\r\n{{?}}\r\n{{?}}\r\n{{? updateKeys.some((item) => item === 'defName' || item === 'intro') }}\r\nALTER TABLE {{= tableKey }} COMMENT '{{=it.func.strJoin(defName, intro, \";\", true)}}';\r\n{{?}}\r\n{{? updateKeys.some((item) => item === 'defKey') }}RENAME TABLE {{= tableKey }} TO {{=defKey}};{{?}}\r\n", "tableDelete": "{{\n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\n const tableKey = `${schemaName}${it.defKey}`;\n}}\nDROP TABLE IF EXISTS {{= tableKey }};", "columnCreate": "{{\n let fieldsUpdate = it.fieldsUpdate;\n const computeDatatype = (field) => {\n const { dbDataType, dataLen, numScale, defaultValue, autoIncrement } = field;\n if(!dbDataType) {\n return '';\n }\n if(dbDataType.toUpperCase() === 'VARCHAR') {\n return `${dbDataType} (${dataLen ? dataLen : 128})`\n } else if(dbDataType.toUpperCase() === 'BOOLEAN' ||\n dbDataType.toUpperCase() === 'DATE' ||\n dbDataType.toUpperCase() === 'LONGBLOB' ||\n dbDataType.toUpperCase() === 'DATE' ||\n dbDataType.toUpperCase() === 'TIME') {\n return dbDataType;\n } else if(dbDataType.toUpperCase() === 'FLOAT') {\n return `${dbDataType} ${(dataLen && dataLen >= 1 && dataLen <= 53) ? `(${dataLen})` : ''}`;\n } else if(dbDataType.toUpperCase() === 'DOUBLE') {\n return `${dbDataType} ${(dataLen && dataLen >= 1 && dataLen <= 30) ? ((numScale && numScale <= dataLen) ? `(${dataLen},${numScale})` : `(${dataLen, 30})`) : ((numScale && numScale >= 0 && numScale <= 30) ? `(${dataLen},${numScale})` : `(30, 30)`)}`;\n } else if(dataLen && dataLen >= 0) {\n return `${dbDataType} (${dataLen})`;\n }\n return dbDataType;\n };\n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\n const tableKey = `${schemaName}${it.defKey}`;\n}}\n{{~fieldsUpdate:field:index}}\n{{\n const finalDataType = computeDatatype(field);\n}}\nALTER TABLE {{= tableKey }} ADD COLUMN {{= field.defKey}} {{= finalDataType}}{{? field.notNull}} NOT NULL{{?}}{{? field.defaultValue}} DEFAULT {{= field.defaultValue}}{{?}} COMMENT '{{=it.func.strJoin(field.defName, field.intro, \";\", true)}}';\n{{~}}", "columnUpdate": "{{\n let fieldsUpdate = it.fieldsUpdate;\n const computeDatatype = (field) => {\n const { dbDataType, dataLen, numScale, defaultValue, autoIncrement } = field;\n if(!dbDataType) {\n return '';\n }\n if(dbDataType.toUpperCase() === 'VARCHAR') {\n return `${dbDataType} (${dataLen ? dataLen : 128})`\n } else if(dbDataType.toUpperCase() === 'BOOLEAN' ||\n dbDataType.toUpperCase() === 'DATE' ||\n dbDataType.toUpperCase() === 'LONGBLOB' ||\n dbDataType.toUpperCase() === 'DATE' ||\n dbDataType.toUpperCase() === 'TIME') {\n return dbDataType;\n } else if(dbDataType.toUpperCase() === 'FLOAT') {\n return `${dbDataType} ${(dataLen && dataLen >= 1 && dataLen <= 53) ? `(${dataLen})` : ''}`;\n } else if(dbDataType.toUpperCase() === 'DOUBLE') {\n return `${dbDataType} ${(dataLen && dataLen >= 1 && dataLen <= 30) ? ((numScale && numScale <= dataLen) ? `(${dataLen},${numScale})` : `(${dataLen, 30})`) : ((numScale && numScale >= 0 && numScale <= 30) ? `(${dataLen},${numScale})` : `(30, 30)`)}`;\n } else if(dataLen && dataLen >= 0) {\n return `${dbDataType} (${dataLen})`;\n }\n return dbDataType;\n };\n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\n const tableKey = `${schemaName}${it.defKey}`;\n}}\n{{~fieldsUpdate:field:index}}\n{{\n const updateKeys = field?.baseUpdate?.updateKeys?.split(\",\") || [];\n const finalDataType = computeDatatype(field);\n const preDefKey = field?.baseUpdate?.pre?.defKey;\n const nextDefKey = field?.baseUpdate?.next?.defKey;\n}}\n{{? updateKeys.some((item) => item === 'dbDataType' || item === 'dataLen' || item === 'numScale' || item === 'intro' || item === 'defName' || item === 'defKey') }}\nALTER TABLE {{= tableKey }} {{? updateKeys.includes('defKey') }} CHANGE COLUMN {{= preDefKey}} {{= nextDefKey}} {{??}} MODIFY COLUMN {{= field.defKey}} {{?}} {{= finalDataType}} {{? updateKeys.includes('defName') || updateKeys.includes('intro') }} COMMENT '{{=it.func.strJoin(field.defName, field.intro, \";\", true)}}' {{?}};\n{{?}}\n{{~}}", "columnDelete": "{{\n let fieldsUpdate = it.fieldsUpdate; \n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\n const tableKey = `${schemaName}${it.defKey}`;\n}}\n{{~fieldsUpdate:field:index}}ALTER TABLE {{= tableKey }} DROP COLUMN {{=field.defKey}};\n{{~}}", "indexCreate": "{{\r\n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\r\n const tableKey = `${schemaName}${it.defKey}`;\r\n}}\r\n{{~it.indexes:row:index}}\r\n{{? row.fields && row.fields.length === 1 && row.defKey}}\r\nCREATE {{? row.type.toUpperCase() === 'UNIQUE'}}{{=row.type}}{{?}} INDEX {{=row.defKey}} ON {{= tableKey }}(\r\n {{~row.fields:field:idx}}\r\n {{=field.fieldDefKey}} {{=field.sortType}}{{= idx < row.fields.length - 1 ? ',' : ''}}\r\n {{~}}\r\n);\r\n{{?}}\r\n{{~}}\r\n", "indexUpdate": "{{ \n let indexesUpdate = it.indexesUpdate;\n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\n const tableKey = `${schemaName}${it.defKey}`;\n}}\n{{~indexesUpdate:row:index}}\n{{\n const updateKeys = row?.baseUpdate?.updateKeys?.split(\",\") || [];\n const fieldsUpdate = row.fieldsUpdate || [];\n const preDefKey = row?.baseUpdate?.pre?.defKey;\n \n}}\n{{? updateKeys.some((item) => item === 'defKey' || item === 'type') || fieldsUpdate.length > 0 }}\nDROP INDEX {{? preDefKey}} {{= preDefKey}}{{??}} {{=row.defKey}} {{?}} ON {{= tableKey }};;\n{{? row.fields && row.fields.length === 1 && row.defKey}}\nCREATE {{? row.type.toUpperCase() === 'UNIQUE'}}{{=row.type}}{{?}} INDEX {{=row.defKey}} ON {{= tableKey }} (\n {{~row.fields:field:idx}}\n {{=field.fieldDefKey}} {{=field.sortType}}{{= idx < row.fields.length - 1 ? ',' : ''}}\n {{~}}\n);\n{{?}}\n{{?}}\n{{~}}", "indexDelete": "{{\n let indexesUpdate = it.indexesUpdate; \n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\n const tableKey = `${schemaName}${it.defKey}`;\n}}\n{{~indexesUpdate:row:i}}\nDROP INDEX {{=row.defKey}} ON {{= tableKey }};\n{{~}}", "metaTableQuery": "SELECT \r\n table_schema AS schemaName,\r\n table_name AS def_key, \r\n table_comment AS def_name\r\nFROM information_schema.tables\r\n WHERE table_schema in (:schemaName)\r\n ", "metaColumnQuery": "SELECT\r\n TRIM(table_schema) AS schema_name,\r\n table_name AS tbl_def_key,\r\n ordinal_position as order_value,\r\n column_name AS def_key,\r\n column_comment AS def_name,\r\n '' AS intro,\r\n data_type AS db_data_type,\r\n column_type,\r\n IF(data_type LIKE column_type,NULL,COALESCE ( character_maximum_length, numeric_precision )) AS data_len,\r\n IF(data_type LIKE column_type, NULL, numeric_scale ) AS num_scale,\r\n IF(column_key = 'PRI', 1, 0 ) AS primary_key,\r\n IF(is_nullable = 'YES', 0, 1 ) AS not_null,\r\n IF(extra = 'AUTO_INCREMENT', 1, 0 ) AS auto_increment,\r\n column_default AS default_value\r\nFROM\r\n information_schema.COLUMNS\r\nWHERE\r\n table_schema IN (:schemaName)\r\n and CONCAT(table_schema, '.', table_name) in (:sysTableNames)\r\nORDER BY\r\n table_schema ASC,\r\n table_name ASC,\r\n ordinal_position ASC;", "metaIndexQuery": "SELECT \r\n TRIM(INDEX_SCHEMA) AS SCHEMA_NAME, \r\n TABLE_NAME AS TBL_DEF_KEY,\r\n COLUMN_NAME AS COL_DEF_KEY,\r\n COMMENT AS DEF_NAME,\r\n '' AS INTRO,\r\n IF (COLLATION = 'A', 'ASC', 'DESC') AS SORT_TYPE,\r\n IF (NON_UNIQUE = 1, 'NORMAL', 'UNIQUE') AS TYPE,\r\n SEQ_IN_INDEX AS ORDER_VALUE,\r\n INDEX_NAME AS DEF_KEY FROM information_schema.STATISTICS\r\n WHERE TRIM(INDEX_SCHEMA) IN (:schemaName) AND CONCAT(TRIM(INDEX_SCHEMA), '.', TRIM(TABLE_NAME)) IN (:sysTableNames)\r\n AND INDEX_TYPE != 'PRIMARY'\r\nORDER BY INDEX_SCHEMA, TABLE_NAME, INDEX_NAME", "metaQueryCharset": null, "orderValue": 10, "isEnabled": 0, "id": "1K6TV6WJR1801" }, { "defKey": "GBase 8s", "defName": null, "icon": "\n \n \n \n \n ", "driverFiles": "gbasedbtjdbc_3.5.1.jar", "jdbcReferDriver": "com.gbasedbt.jdbc.Driver", "jdbcReferUrl": "jdbc:gbasedbt-sqli://[{ip}:{port}][/dbname]", "tableCreate": "{{\r\n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\r\n const tableKey = `${schemaName}${it.defKey}`;\r\n const dataTypeArray = [\r\n 'SMALLINT',\r\n 'INT8',\r\n 'INT',\r\n 'INT8',\r\n 'INTEGER',\r\n 'REAL',\r\n 'SMALLFLOAT',\r\n 'BIGSERIAL',\r\n 'TEXT',\r\n 'BIGINT',\r\n 'DATE',\r\n 'DOUBLE PRECISION',\r\n 'BYTE'\r\n ];\r\n function getDataType(field) {\r\n const dataType = field.dbDataType?.toUpperCase();\r\n if (field.autoIncrement && dataType === 'BIGINT') {\r\n return 'SERIAL8';\r\n } else if (field.autoIncrement) {\r\n return 'SERIAL';\r\n } else if (dataTypeArray.includes(dataType)) {\r\n return field.dbDataType;\r\n } else if (dataType === 'TIMESTAMP' && field.dataLen && field.dataLen >= 1 && field.dataLen <= 6) {\r\n return `${field.dbDataType}(${field.dataLen})`;\r\n } else if (dataType === 'FLOAT' && field.dataLen && field.dataLen >= 1 && field.dataLen <= 16) {\r\n return `${field.dbDataType}(${field.dataLen})`;\r\n } else if (dataType === 'MONEY' && field.dataLen && field.dataLen >= 2 && field.dataLen <= 32) {\r\n if (field.numScale && field.numScale >= 0 && field.numScale <= field.dataLen) {\r\n return `${field.dbDataType}(${field.dataLen},${field.numScale})`;\r\n } else {\r\n return `${field.dbDataType}(${field.dataLen})`;\r\n }\r\n } else if (\r\n (dataType === 'VARCHAR' || dataType === 'NVARCHAR') &&\r\n field.dataLen &&\r\n field.dataLen >= 1 &&\r\n field.dataLen <= 255\r\n ) {\r\n if (field.numScale && field.numScale >= 0 && field.numScale <= field.dataLen) {\r\n return `${field.dbDataType}(${field.dataLen},${field.numScale})`;\r\n } else {\r\n return `${field.dbDataType}(${field.dataLen})`;\r\n }\r\n } else if (\r\n (dataType === 'DECIMAL' || dataType === 'NUMERIC') &&\r\n field.dataLen &&\r\n field.dataLen >= 1 &&\r\n field.dataLen <= 32\r\n ) {\r\n if (field.numScale && field.numScale >= 0 && field.numScale <= field.dataLen) {\r\n return `${field.dbDataType}(${field.dataLen},${field.numScale})`;\r\n } else {\r\n return `${field.dbDataType}(${field.dataLen})`;\r\n }\r\n } else if (field.dataLen && field.dataLen >= 0) {\r\n return `${field.dbDataType}(${field.dataLen})`;\r\n }\r\n return field.dbDataType;\r\n }\r\n function getConstraints(field) {\r\n let constraints = '';\r\n if (field.notNull) {\r\n constraints += ' NOT NULL';\r\n }\r\n if (field.defaultValue) {\r\n constraints += ` DEFAULT ${field.defaultValue}`;\r\n }\r\n return constraints;\r\n }\r\n}}\r\nDROP TABLE IF EXISTS {{= tableKey }};\r\nCREATE TABLE {{= tableKey }}(\r\n{{ pkList = [] ; }}\r\n{{~it.fields:field:index}}\r\n {{? field.primaryKey }}{{ pkList.push(field.defKey) }}{{?}}{{=field.defKey}} {{= getDataType(field) }}{{= getConstraints(field) }}{{= index < it.fields.length-1 || pkList.length>0 ? ',' : ( pkList.length > 0 ? ',' : '' ) }}{{~}}{{? pkList.length >0 }}\r\n PRIMARY KEY ({{~pkList:pkName:i}}{{= pkName }}{{= i 0}}\r\nALTER TABLE {{= tableKey }} ADD CONSTRAINT PRIMARY KEY ({{~indexFields:field:i}}{{= field.defKey }}{{= i < indexFields.length-1 ? ',' : '' }}{{~}});\r\n{{?}}\r\n{{?}}\r\n{{? updateKeys.some((item) => item === 'defName' || item === 'intro') }}COMMENT ON TABLE {{= tableKey }} IS '{{=defName}}{{? defName && intro}}; {{=intro}}{{?? intro}}{{=intro}}{{?}}';{{?}}\r\n{{? updateKeys.some((item) => item === 'defKey') }}RENAME TABLE {{= tableKey }} TO {{=defKey}};{{?}}\r\n", "tableDelete": "{{\n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\n const tableKey = `${schemaName}${it.defKey}`;\n}}\nDROP TABLE IF EXISTS {{= tableKey }};", "columnCreate": "{{\n let fieldsUpdate = it.fieldsUpdate;\n const computeDatatype = (field) => {\n const { dbDataType, dataLen, numScale, defaultValue, autoIncrement } = field;\n if(!dbDataType) {\n return '';\n }\n if(autoIncrement) {\n return dbDataType.toUpperCase() === 'BIGINT' ? 'SERIAL8' : 'SERIAL';\n } else if(dbDataType.toUpperCase() === 'SMALLINT' ||\n dbDataType.toUpperCase() === 'INT8' ||\n dbDataType.toUpperCase() === 'INT' ||\n dbDataType.toUpperCase() === 'INT8' ||\n dbDataType.toUpperCase() === 'INTEGER' ||\n dbDataType.toUpperCase() === 'REAL' ||\n dbDataType.toUpperCase() === 'SMALLFLOAT' ||\n dbDataType.toUpperCase() === 'BIGSERIAL' ||\n dbDataType.toUpperCase() === 'TEXT' ||\n dbDataType.toUpperCase() === 'BIGINT' ||\n dbDataType.toUpperCase() === 'DATE' ||\n dbDataType.toUpperCase() === 'DOUBLE PRECISION' ||\n dbDataType.toUpperCase() === 'BYTE') {\n return dbDataType; \n } else if(dbDataType.toUpperCase() === 'TIMESTAMP') {\n return `${dbDataType} ${(dataLen && dataLen >= 1 && dataLen <= 6) ? `(${dataLen})` : ''}`\n } else if(dbDataType.toUpperCase() === 'FLOAT') {\n return `${dbDataType} ${(dataLen && dataLen >= 1 && dataLen <= 16) ? `(${dataLen})` : ''}`\n } else if(dbDataType.toUpperCase() === 'MONEY') {\n return `${dbDataType} ${(dataLen && dataLen >= 2 && dataLen <= 32) ? ((numScale && numScale >= 0 && numScale <= dataLen) ? `(${dataLen},${numScale})` : `(${dataLen})` ) : ''}`;\n } else if(dbDataType.toUpperCase() === 'VARCHAR' ||\n dbDataType.toUpperCase() === 'NVARCHAR') {\n return `${dbDataType} ${(dataLen && dataLen >= 1 && dataLen <= 255) ? ((numScale && numScale >= 0 && numScale <= dataLen) ? `(${dataLen},${numScale})` : `(${dataLen})` ) : ''}`; \n } else if(dbDataType.toUpperCase() === 'DECIMAL' ||\n dbDataType.toUpperCase() === 'NUMERIC') {\n return `${dbDataType} ${(dataLen && dataLen >= 1 && dataLen <= 32) ? ((numScale && numScale >= 0 && numScale <= dataLen) ? `(${dataLen},${numScale})` : `(${dataLen})` ) : ''}`;\n } else if(dataLen && dataLen >= 0) {\n return `${dbDataType} (${dataLen})`;\n }\n return dbDataType;\n };\n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\n const tableKey = `${schemaName}${it.defKey}`;\n}}\n{{~fieldsUpdate:field:index}}\n{{\n const finalDataType = computeDatatype(field);\n}}\nALTER TABLE {{= tableKey }} ADD {{= field.defKey}} {{= finalDataType}}{{? field.notNull}} NOT NULL{{?}}{{? field.defaultValue}} DEFAULT {{= field.defaultValue}}{{?}};\n{{? field.defName || field.intro }}\nCOMMENT ON COLUMN {{= tableKey }}.{{=field.defKey}} IS '{{=field.defName}}{{? field.defName && field.intro}}; {{=field.intro}}{{?? field.intro}}{{=field.intro}}{{?}}';\n{{?}}\n{{~}}", "columnUpdate": "{{\n let fieldsUpdate = it.fieldsUpdate;\n const computeDatatype = (field) => {\n const { dbDataType, dataLen, numScale, defaultValue, autoIncrement } = field;\n if(!dbDataType) {\n return '';\n }\n if(autoIncrement) {\n return dbDataType.toUpperCase() === 'BIGINT' ? 'SERIAL8' : 'SERIAL';\n } else if(dbDataType.toUpperCase() === 'SMALLINT' ||\n dbDataType.toUpperCase() === 'INT8' ||\n dbDataType.toUpperCase() === 'INT' ||\n dbDataType.toUpperCase() === 'INT8' ||\n dbDataType.toUpperCase() === 'INTEGER' ||\n dbDataType.toUpperCase() === 'REAL' ||\n dbDataType.toUpperCase() === 'SMALLFLOAT' ||\n dbDataType.toUpperCase() === 'BIGSERIAL' ||\n dbDataType.toUpperCase() === 'TEXT' ||\n dbDataType.toUpperCase() === 'BIGINT' ||\n dbDataType.toUpperCase() === 'DATE' ||\n dbDataType.toUpperCase() === 'DOUBLE PRECISION' ||\n dbDataType.toUpperCase() === 'BYTE') {\n return dbDataType; \n } else if(dbDataType.toUpperCase() === 'TIMESTAMP') {\n return `${dbDataType} ${(dataLen && dataLen >= 1 && dataLen <= 6) ? `(${dataLen})` : ''}`\n } else if(dbDataType.toUpperCase() === 'FLOAT') {\n return `${dbDataType} ${(dataLen && dataLen >= 1 && dataLen <= 16) ? `(${dataLen})` : ''}`\n } else if(dbDataType.toUpperCase() === 'MONEY') {\n return `${dbDataType} ${(dataLen && dataLen >= 2 && dataLen <= 32) ? ((numScale && numScale >= 0 && numScale <= dataLen) ? `(${dataLen},${numScale})` : `(${dataLen})` ) : ''}`;\n } else if(dbDataType.toUpperCase() === 'VARCHAR' ||\n dbDataType.toUpperCase() === 'NVARCHAR') {\n return `${dbDataType} ${(dataLen && dataLen >= 1 && dataLen <= 255) ? ((numScale && numScale >= 0 && numScale <= dataLen) ? `(${dataLen},${numScale})` : `(${dataLen})` ) : ''}`; \n } else if(dbDataType.toUpperCase() === 'DECIMAL' ||\n dbDataType.toUpperCase() === 'NUMERIC') {\n return `${dbDataType} ${(dataLen && dataLen >= 1 && dataLen <= 32) ? ((numScale && numScale >= 0 && numScale <= dataLen) ? `(${dataLen},${numScale})` : `(${dataLen})` ) : ''}`;\n } else if(dataLen && dataLen >= 0) {\n return `${dbDataType} (${dataLen})`;\n }\n return dbDataType;\n };\n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\n const tableKey = `${schemaName}${it.defKey}`;\n}}\n{{~fieldsUpdate:field:index}}\n{{\n const updateKeys = field?.baseUpdate?.updateKeys?.split(\",\") || [];\n const finalDataType = computeDatatype(field);\n const preDefKey = field?.baseUpdate?.pre?.defKey;\n const nextDefKey = field?.baseUpdate?.next?.defKey;\n}}\n{{? updateKeys.includes('defKey') }}RENAME COLUMN {{= tableKey }}.{{= preDefKey }} TO {{= field.defKey }};{{?}}\n{{? updateKeys.some((item) => item === 'dbDataType' || item === 'dataLen' || item === 'numScale' || item === 'notNull' || item === 'defaultValue' || item === 'autoIncrement') }}\nALTER TABLE {{= tableKey }} MODIFY {{= field.defKey }} {{= finalDataType}} {{? updateKeys.includes('notNull') }} {{? field.notNull }} NOT NULL {{??}} NULL {{?}}{{?}}{{? updateKeys.includes('defaultValue') }}{{? field.defaultValue }} DEFAULT {{= field.defaultValue}}{{?}}{{?}};\n{{?}}\n{{? updateKeys.some((item) => item === 'defName' || item === 'intro') }}\nCOMMENT ON COLUMN {{= tableKey }}.{{=field.defKey}} IS '{{=field.defName}}{{? field.defName && field.intro}}; {{=field.intro}}{{?? field.intro}}{{=field.intro}}{{?}}';\n{{?}}\n{{~}}", "columnDelete": "{{\n let fieldsUpdate = it.fieldsUpdate; \n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\n const tableKey = `${schemaName}${it.defKey}`;\n}}\n{{~fieldsUpdate:field:index}}\nALTER TABLE {{= tableKey }} DROP {{=field.defKey}};\n{{~}}", "indexCreate": "{{\r\n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\r\n const tableKey = `${schemaName}${it.defKey}`;\r\n}}\r\n{{~it.indexes:row:index}}\r\n{{? row.fields.length > 0 && row.defKey}}\r\nCREATE {{? row.type.toUpperCase() === 'UNIQUE'}}{{=row.type}} {{?}}INDEX {{=row.defKey}} ON {{= tableKey }}(\r\n {{~row.fields:field:idx}}\r\n {{=field.fieldDefKey}} {{=field.sortType}}{{= idx < row.fields.length - 1 ? ',' : ''}}\r\n {{~}}\r\n);\r\n{{?}}\r\n{{~}}\r\n", "indexUpdate": "{{ \n let indexesUpdate = it.indexesUpdate;\n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\n const tableKey = `${schemaName}${it.defKey}`;\n}}\n{{~indexesUpdate:row:index}}\n{{\n const updateKeys = row?.baseUpdate?.updateKeys?.split(\",\") || [];\n const fieldsUpdate = row.fieldsUpdate || [];\n const preDefKey = row?.baseUpdate?.pre?.defKey;\n \n}}\n{{? updateKeys.some((item) => item === 'defKey' || item === 'type') || fieldsUpdate.length > 0 }}\nDROP INDEX IF EXISTS {{? preDefKey}} {{= preDefKey}}{{??}} {{=row.defKey}}{{?}};\n{{? row.fields.length > 0 && row.defKey}}\nCREATE {{? row.type.toUpperCase() === 'UNIQUE'}}{{=row.type}}{{?}} INDEX {{=row.defKey}} ON {{= tableKey }}(\n {{~row.fields:field:idx}}\n {{=field.fieldDefKey}} {{=field.sortType}}{{= idx < row.fields.length - 1 ? ',' : ''}}\n {{~}}\n);\n{{?}}\n{{?}}\n{{~}}", "indexDelete": "{{\n let indexesUpdate = it.indexesUpdate; \n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\n const tableKey = `${schemaName}${it.defKey}`;\n}}\n{{~indexesUpdate:row:i}}\nDROP INDEX IF EXISTS {{=row.defKey}};\n{{~}}", "metaTableQuery": "select\r\n t.tabname as def_key,\r\n c.comments as def_name,\r\n t.owner as schema_name\r\nfrom systables t\r\n left join syscomments c on t.tabname = c.tabname\r\nwhere t.tabtype = 'T' and t.owner in (:schemaName)", "metaColumnQuery": "SELECT DISTINCT c.colname as def_key,\r\n t.tabname as tbl_def_key,\r\n TRIM(t.owner) as schema_name,\r\n c.colno as order_value,\r\n c.colno ,\r\n CASE\r\n WHEN INSTR(c.coltypename2, '(') = 0 THEN c.coltypename2\r\n ELSE\r\n SUBSTR(c.coltypename2, 1, INSTR(c.coltypename2, '(') - 1) END as db_data_type,\r\n CASE WHEN mod(c.coltype,256) = c.coltype - 256 THEN 1 ELSE 0\r\n END\r\n AS not_null,\r\n CASE d.type\r\n WHEN 'L' THEN get_default_value(c.coltype, c.extended_id, c.collength, d.default::lvarchar(256))::VARCHAR(254)\r\n WHEN 'C' THEN 'current year to second'::VARCHAR(254)\r\n WHEN 'S' THEN 'dbservername'::VARCHAR(254)\r\n WHEN 'U' THEN 'user'::VARCHAR(254)\r\n WHEN 'T' THEN 'today'::VARCHAR(254)\r\n WHEN 'E' THEN de.default::VARCHAR(254)\r\n ELSE NULL::VARCHAR(254)\r\nEND\r\nAS default_value,\r\n CASE WHEN LENGTH(CASE WHEN c.colno IN (SELECT i.part1 FROM sysindexes i,sysconstraints con WHERE i.idxname = con.idxname AND con.constrtype = 'P' AND con.tabid = c.tabid\r\n UNION ALL SELECT i.part2 FROM sysindexes i,sysconstraints con WHERE i.idxname = con.idxname AND con.constrtype = 'P' AND con.tabid = c.tabid\r\n UNION ALL SELECT i.part3 FROM sysindexes i,sysconstraints con WHERE i.idxname = con.idxname AND con.constrtype = 'P' AND con.tabid = c.tabid\r\n UNION ALL SELECT i.part4 FROM sysindexes i,sysconstraints con WHERE i.idxname = con.idxname AND con.constrtype = 'P' AND con.tabid = c.tabid\r\n UNION ALL SELECT i.part5 FROM sysindexes i,sysconstraints con WHERE i.idxname = con.idxname AND con.constrtype = 'P' AND con.tabid = c.tabid\r\n UNION ALL SELECT i.part6 FROM sysindexes i,sysconstraints con WHERE i.idxname = con.idxname AND con.constrtype = 'P' AND con.tabid = c.tabid\r\n UNION ALL SELECT i.part7 FROM sysindexes i,sysconstraints con WHERE i.idxname = con.idxname AND con.constrtype = 'P' AND con.tabid = c.tabid\r\n UNION ALL SELECT i.part8 FROM sysindexes i,sysconstraints con WHERE i.idxname = con.idxname AND con.constrtype = 'P' AND con.tabid = c.tabid\r\n UNION ALL SELECT i.part9 FROM sysindexes i,sysconstraints con WHERE i.idxname = con.idxname AND con.constrtype = 'P' AND con.tabid = c.tabid\r\n UNION ALL SELECT i.part10 FROM sysindexes i,sysconstraints con WHERE i.idxname = con.idxname AND con.constrtype = 'P' AND con.tabid = c.tabid\r\n UNION ALL SELECT i.part11 FROM sysindexes i,sysconstraints con WHERE i.idxname = con.idxname AND con.constrtype = 'P' AND con.tabid = c.tabid\r\n UNION ALL SELECT i.part12 FROM sysindexes i,sysconstraints con WHERE i.idxname = con.idxname AND con.constrtype = 'P' AND con.tabid = c.tabid\r\n UNION ALL SELECT i.part13 FROM sysindexes i,sysconstraints con WHERE i.idxname = con.idxname AND con.constrtype = 'P' AND con.tabid = c.tabid\r\n UNION ALL SELECT i.part14 FROM sysindexes i,sysconstraints con WHERE i.idxname = con.idxname AND con.constrtype = 'P' AND con.tabid = c.tabid\r\n UNION ALL SELECT i.part15 FROM sysindexes i,sysconstraints con WHERE i.idxname = con.idxname AND con.constrtype = 'P' AND con.tabid = c.tabid\r\n UNION ALL SELECT i.part16 FROM sysindexes i,sysconstraints con WHERE i.idxname = con.idxname AND con.constrtype = 'P' AND con.tabid = c.tabid\r\n ) THEN 'PRI' ELSE ''\r\nEND) = 0 THEN 0 ELSE 1 END AS primary_key,\r\n CASE WHEN mod(c.coltype,256) IN (6,18,53) THEN 1 ELSE 0\r\nEND\r\nAS auto_increment,\r\n CASE lower(colauth)\r\n WHEN 's--' THEN 'select'\r\n WHEN 'su-' THEN 'select,update'\r\n WHEN 'sur' THEN 'select,update,references'\r\n WHEN '-u-' THEN 'update'\r\n WHEN '-ur' THEN 'update,references'\r\n WHEN '--r' THEN 'references'\r\n ELSE 'select,update,reference'\r\nEND\r\nAS privilege,\r\n colcomm.comments as def_name\r\nFROM syscolumnsext c\r\n LEFT JOIN systables t ON c.tabid = t.tabid\r\n LEFT JOIN sysdefaults d ON (c.tabid = d.tabid AND c.colno = d.colno)\r\n LEFT JOIN sysdefaultsexpr de ON (c.tabid = de.tabid AND c.colno = de.colno and de.type='T')\r\n LEFT JOIN syscolauth colauth ON (c.tabid = colauth.tabid )\r\n LEFT JOIN syscolcomments colcomm ON (t.tabname = colcomm.tabname AND c.colname = colcomm.colname)\r\nWHERE CONCAT(CONCAT(TRIM(' ' from t.owner), '.'), TRIM(t.tabname)) IN (:sysTableNames)\r\n and TRIM(t.owner) IN (:schemaName)\r\nORDER BY t.owner, t.tabname, order_value ", "metaIndexQuery": "select\r\n TRIM(t.owner) as schema_name,\r\n t.tabname tbl_def_key,\r\n i.idxname def_key,\r\n '' def_name,\r\n '' intro,\r\n CASE\r\n WHEN idxtype='U'\r\n THEN 'UNIQUE'\r\n ELSE 'NORMAL'\r\n END\r\n AS type,\r\n trim(case\r\n when i.part1 > 0 then ('ASC')\r\n when i.part1 < 0 then ('DESC')\r\n else ('') end) ||\r\n trim(case\r\n when i.part2 > 0 then (',ASC')\r\n when i.part2 < 0 then (',DESC')\r\n else ('') end) ||\r\n trim(case\r\n when i.part3 > 0 then (',ASC')\r\n when i.part3 < 0 then (',DESC')\r\n else ('') end) ||\r\n trim(case\r\n when i.part4 > 0 then (',ASC')\r\n when i.part4 < 0 then (',DESC')\r\n else ('') end) ||\r\n trim(case\r\n when i.part5 > 0 then (',ASC')\r\n when i.part5 < 0 then (',DESC')\r\n else ('') end) ||\r\n trim(case\r\n when i.part6 > 0 then (',ASC')\r\n when i.part6 < 0 then (',DESC')\r\n else ('') end) ||\r\n trim(case\r\n when i.part7 > 0 then (',ASC')\r\n when i.part7 < 0 then (',DESC')\r\n else ('') end) ||\r\n trim(case\r\n when i.part8 > 0 then (',ASC')\r\n when i.part8 < 0 then (',DESC')\r\n else ('') end) ||\r\n trim(case\r\n when i.part9 > 0 then (',ASC')\r\n when i.part9 < 0 then (',DESC')\r\n else ('') end) ||\r\n trim(case\r\n when i.part10 > 0 then (',ASC')\r\n when i.part10 < 0 then (',DESC')\r\n else ('') end) ||\r\n trim(case\r\n when i.part11 > 0 then (',ASC')\r\n when i.part11 < 0 then (',DESC')\r\n else ('') end) ||\r\n trim(case\r\n when i.part12 > 0 then (',ASC')\r\n when i.part12 < 0 then (',DESC')\r\n else ('') end) ||\r\n trim(case\r\n when i.part13 > 0 then (',ASC')\r\n when i.part13 < 0 then (',DESC')\r\n else ('') end) ||\r\n trim(case\r\n when i.part14 > 0 then (',ASC')\r\n when i.part14 < 0 then (',DESC')\r\n else ('') end) ||\r\n trim(case\r\n when i.part15 > 0 then (',ASC')\r\n when i.part15 < 0 then (',DESC')\r\n else ('') end) ||\r\n trim(case\r\n when i.part16 > 0 then (',ASC')\r\n when i.part16 < 0 then (',DESC')\r\n else ('') end) sort_type,\r\n 1 order_value,\r\n trim(case\r\n when i.part1 > 0 then (select colname from syscolumns where colno = i.part1 and tabid = i.tabid)\r\n else (select colname from syscolumns where colno = i.part1*-1 and tabid = i.tabid) end) ||\r\n trim(case\r\n when i.part2 > 0 then (select ',' || colname\r\n from syscolumns\r\n where colno = i.part2\r\n and tabid = i.tabid)\r\n else (select ',' || colname from syscolumns where colno = i.part2*-1 and tabid = i.tabid) end) ||\r\n trim(case\r\n when i.part3 > 0 then (select ',' || colname\r\n from syscolumns\r\n where colno = i.part3\r\n and tabid = i.tabid)\r\n else (select ',' || colname from syscolumns where colno = i.part3*-1 and tabid = i.tabid) end) ||\r\n trim(case\r\n when i.part4 > 0 then (select ',' || colname\r\n from syscolumns\r\n where colno = i.part4\r\n and tabid = i.tabid)\r\n else (select ',' || colname from syscolumns where colno = i.part4*-1 and tabid = i.tabid) end) ||\r\n trim(case\r\n when i.part5 > 0 then (select ',' || colname\r\n from syscolumns\r\n where colno = i.part5\r\n and tabid = i.tabid)\r\n else (select ',' || colname from syscolumns where colno = i.part5*-1 and tabid = i.tabid) end) ||\r\n trim(case\r\n when i.part6 > 0 then (select ',' || colname\r\n from syscolumns\r\n where colno = i.part6\r\n and tabid = i.tabid)\r\n else (select ',' || colname from syscolumns where colno = i.part6*-1 and tabid = i.tabid) end) ||\r\n trim(case\r\n when i.part7 > 0 then (select ',' || colname\r\n from syscolumns\r\n where colno = i.part7\r\n and tabid = i.tabid)\r\n else (select ',' || colname from syscolumns where colno = i.part7*-1 and tabid = i.tabid) end) ||\r\n trim(case\r\n when i.part8 > 0 then (select ',' || colname\r\n from syscolumns\r\n where colno = i.part8\r\n and tabid = i.tabid)\r\n else (select ',' || colname from syscolumns where colno = i.part8*-1 and tabid = i.tabid) end) ||\r\n trim(case\r\n when i.part9 > 0 then (select ',' || colname\r\n from syscolumns\r\n where colno = i.part9\r\n and tabid = i.tabid)\r\n else (select ',' || colname from syscolumns where colno = i.part9*-1 and tabid = i.tabid) end) ||\r\n trim(case\r\n when i.part10 > 0 then (select ',' || colname\r\n from syscolumns\r\n where colno = i.part10\r\n and tabid = i.tabid)\r\n else (select ',' || colname from syscolumns where colno = i.part10*-1 and tabid = i.tabid) end) ||\r\n trim(case\r\n when i.part11 > 0 then (select ',' || colname\r\n from syscolumns\r\n where colno = i.part11\r\n and tabid = i.tabid)\r\n else (select ',' || colname from syscolumns where colno = i.part11*-1 and tabid = i.tabid) end) ||\r\n trim(case\r\n when i.part12 > 0 then (select ',' || colname\r\n from syscolumns\r\n where colno = i.part12\r\n and tabid = i.tabid)\r\n else (select ',' || colname from syscolumns where colno = i.part12*-1 and tabid = i.tabid) end) ||\r\n trim(case\r\n when i.part13 > 0 then (select ',' || colname\r\n from syscolumns\r\n where colno = i.part13\r\n and tabid = i.tabid)\r\n else (select ',' || colname from syscolumns where colno = i.part13*-1 and tabid = i.tabid) end) ||\r\n trim(case\r\n when i.part14 > 0 then (select ',' || colname\r\n from syscolumns\r\n where colno = i.part14\r\n and tabid = i.tabid)\r\n else (select ',' || colname from syscolumns where colno = i.part14*-1 and tabid = i.tabid) end) ||\r\n trim(case\r\n when i.part15 > 0 then (select ',' || colname\r\n from syscolumns\r\n where colno = i.part15\r\n and tabid = i.tabid)\r\n else (select ',' || colname from syscolumns where colno = i.part15*-1 and tabid = i.tabid) end) ||\r\n trim(case\r\n when i.part16 > 0 then (select ',' || colname\r\n from syscolumns\r\n where colno = i.part16\r\n and tabid = i.tabid)\r\n else (select ',' || colname from syscolumns where colno = i.part16*-1 and tabid = i.tabid) end) col_def_key,\r\n i.idxname\r\nfrom systables t\r\n join sysindexes i on\r\n t.tabid = i.tabid\r\nwhere t.tabid > 99\r\n and t.tabtype = 'T'\r\n and TRIM(t.owner) IN (:schemaName)\r\n and CONCAT(CONCAT(TRIM(' ' from t.owner), '.'), TRIM(t.tabname)) IN (:sysTableNames)\r\n and NOT REGEXP_LIKE(i.idxname, '^[[:space:][:digit:]]')\r\norder by t.owner, tbl_def_key, def_key, order_value", "metaQueryCharset": null, "orderValue": 11, "isEnabled": 0, "id": "1KE9YGK6H1M02" }, { "defKey": "OceanBase-Oracle", "defName": null, "icon": "\n \n \n \n \n ", "driverFiles": "oceanbase-client-2.4.13.jar", "jdbcReferDriver": "com.oceanbase.jdbc.Driver", "jdbcReferUrl": "jdbc:oceanbase://[ip]:[port]/?pool=false&user=[user]@oracle&password=[password]", "tableCreate": "\r\n{{\r\n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\r\n const tableKey = `${schemaName}${it.defKey}`;\r\n function getFieldLength(field) {\r\n switch (field.dbDataType?.toUpperCase()) {\r\n case 'VARCHAR2':\r\n return `(${field.dataLen ? field.dataLen : 128})`;\r\n case 'TIMESTAMP':\r\n return field.dataLen && field.dataLen >= 1 && field.dataLen <= 9 ? `(${field.dataLen})` : '(6)';\r\n case 'INTEGER':\r\n case 'BINARY_DOUBLE':\r\n case 'DATE':\r\n case 'CLOB':\r\n case 'LONG':\r\n case 'NCLOB':\r\n case 'BLOB':\r\n return '';\r\n case 'FLOAT':\r\n return field.dataLen && field.dataLen >= 1 && field.dataLen <= 126 ? `(${field.dataLen})` : '';\r\n case 'DECIMAL':\r\n case 'NUMBER':\r\n return field.dataLen && field.dataLen >= 1 && field.dataLen <= 38 ? \r\n (field.numScale && field.numScale >= -84 && field.numScale <= 127 ? `(${field.dataLen},${field.numScale})` : `(${field.dataLen})`) : \r\n '';\r\n default:\r\n return field.dataLen ? `(${field.dataLen})` : '';\r\n }\r\n }\r\n}}\r\nBEGIN\r\n EXECUTE IMMEDIATE 'DROP TABLE {{= tableKey }}';\r\nEXCEPTION\r\n WHEN OTHERS THEN\r\n IF SQLCODE != -942 THEN -- Table does not exist error\r\n RAISE;\r\n END IF;\r\nEND;\r\n/\r\n\r\nCREATE TABLE {{= tableKey }}(\r\n{{ pkList = [] ; }}\r\n{{~it.fields:field:index}}\r\n {{? field.primaryKey }}{{ pkList.push(field.defKey) }}{{?}}\r\n {{=field.defKey}} {{=field.dbDataType}}{{=getFieldLength(field)}}{{=field.autoIncrement ? '' : '' }}{{? field.defaultValue }} DEFAULT {{=field.defaultValue}}{{?}}{{=field.notNull?' NOT NULL' : '' }}{{= index < it.fields.length-1 ? ',' : ( pkList.length > 0 ? ',' : '' ) }}{{~}}\r\n{{? pkList.length > 0 }} \r\n PRIMARY KEY ({{~pkList:pkName:i}}{{= pkName }}{{= i < pkList.length-1 ? ',' : '' }}{{~}})\r\n{{?}}\r\n);\r\n\r\n{{? it.defName || it.intro }} \r\nCOMMENT ON TABLE {{= tableKey }} IS '{{=it.func.strJoin(it.defName, it.intro, \";\", true)}}';\r\n{{?}}\r\n\r\n{{~it.fields:field:index}}\r\n{{? field.defName || field.intro }}\r\nCOMMENT ON COLUMN {{= tableKey }}.{{=field.defKey}} IS '{{=it.func.strJoin(field.defName, field.intro, \";\", true)}}';\r\n{{?}}\r\n{{~}}\r\n$blankline", "tableUpdate": "{{\r\n let defKey = it.baseUpdate.next.defKey;\r\n let defName = it.baseUpdate.next.defName;\r\n let intro = it.baseUpdate.next.intro;\r\n let indexFields = it.indexFields;\r\n let isPrimaryKeyModified = it.isPrimaryKeyModified;\r\n const updateKeys = it?.baseUpdate?.updateKeys?.split(\",\") || [];\r\n}}\r\n{{? isPrimaryKeyModified }}\r\nALTER TABLE {{=it.defKey}} DROP PRIMARY KEY;\r\n{{? indexFields && indexFields.length > 0}}\r\nALTER TABLE {{=it.defKey}} ADD CONSTRAINT {{=it.defKey}}_PRIMARY_KEY PRIMARY KEY ({{~indexFields:field:i}}{{= field.defKey }}{{= i < indexFields.length-1 ? ',' : '' }}{{~}});\r\n{{?}}\r\n{{?}}\r\n{{? updateKeys.some((item) => item === 'defName' || item === 'intro') }}COMMENT ON TABLE {{=it.defKey}} IS '{{=it.func.strJoin(defName, intro, \";\", true)}}'; {{?}}\r\n{{? updateKeys.some((item) => item === 'defKey') }}ALTER TABLE {{=it.defKey}} RENAME TO {{=defKey}}; {{?}}", "tableDelete": "BEGIN\r\n EXECUTE IMMEDIATE 'DROP TABLE {{=it.defKey}}';\r\nEXCEPTION\r\n WHEN OTHERS THEN\r\n IF SQLCODE != -942 THEN -- Table does not exist error\r\n RAISE;\r\n END IF;\r\nEND;\r\n/", "columnCreate": "{{\r\n let fieldsUpdate = it.fieldsUpdate;\r\n const computeDataLen = (dataLen, maxDataLen, defaultDataLen) => {\r\n if(!dataLen) {\r\n return defaultDataLen;\r\n }\r\n if(dataLen >= 0 && dataLen <= maxDataLen) {\r\n return dataLen;\r\n }\r\n return defaultDataLen;\r\n \r\n };\r\n const computeDatatype = (field) => {\r\n const { dbDataType, dataLen, numScale, defaultValue, autoIncrement } = field;\r\n if(!dbDataType) {\r\n return '';\r\n }\r\n if(dbDataType.toUpperCase() === 'VARCHAR2') {\r\n return `${dbDataType} (${dataLen ? dataLen : 128})`;\r\n } else if(dbDataType.toUpperCase() === 'TIMESTAMP') {\r\n return `${dbDataType} (${computeDataLen(dataLen, 9, 6)})`;\r\n } else if(dbDataType.toUpperCase() === 'INTEGER' ||\r\n dbDataType.toUpperCase() === 'BINARY_DOUBLE' ||\r\n dbDataType.toUpperCase() === 'DATE' ||\r\n dbDataType.toUpperCase() === 'CLOB' ||\r\n dbDataType.toUpperCase() === 'LONG' ||\r\n dbDataType.toUpperCase() === 'NCLOB' ||\r\n dbDataType.toUpperCase() === 'BLOB') {\r\n return dbDataType;\r\n } else if(dbDataType.toUpperCase() === 'FLOAT') {\r\n return `${dbDataType} ${(dataLen && dataLen >= 1 && dataLen <= 126) ? `(${dataLen})` : ''}`;\r\n } else if(dbDataType.toUpperCase() === 'DECIMAL' ||\r\n dbDataType.toUpperCase() === 'NUMBER') {\r\n return `${dbDataType} ${(dataLen && dataLen >= 1 && dataLen <= 38) ? ((numScale && numScale >= -84 && numScale <= 127) ? `(${dataLen},${numScale})` : `(${dataLen})`) : ''}`; \r\n } else if(dataLen && dataLen >= 0) {\r\n return `${dbDataType} (${dataLen})`\r\n }\r\n return dbDataType;\r\n \r\n };\r\n}}\r\n{{~fieldsUpdate:field:index}}\r\n{{\r\n const finalDataType = computeDatatype(field);\r\n}}\r\nALTER TABLE {{= it.defKey}} ADD {{= field.defKey }} {{= finalDataType }} {{? field.defaultValue}} DEFAULT {{=field.defaultValue}}{{?}}{{? field.notNull}} NOT NULL{{?}};\r\n{{? field.defName || field.intro }}\r\nCOMMENT ON COLUMN {{= it.defKey}}.{{= field.defKey}} IS '{{=it.func.strJoin(field.defName, field.intro, \";\", true)}}';\r\n{{?}}\r\n{{~}}", "columnUpdate": "{{\r\n let fieldsUpdate = it.fieldsUpdate;\r\n const computeDataLen = (dataLen, maxDataLen, defaultDataLen) => {\r\n if(!dataLen) {\r\n return defaultDataLen;\r\n }\r\n if(dataLen >= 0 && dataLen <= maxDataLen) {\r\n return dataLen;\r\n }\r\n return defaultDataLen;\r\n \r\n };\r\n const computeDatatype = (field) => {\r\n const { dbDataType, dataLen, numScale, defaultValue, autoIncrement } = field;\r\n if(!dbDataType) {\r\n return '';\r\n }\r\n if(dbDataType.toUpperCase() === 'VARCHAR2') {\r\n return `${dbDataType} (${dataLen ? dataLen : 128})`;\r\n } else if(dbDataType.toUpperCase() === 'TIMESTAMP') {\r\n return `${dbDataType} (${computeDataLen(dataLen, 9, 6)})`;\r\n } else if(dbDataType.toUpperCase() === 'INTEGER' ||\r\n dbDataType.toUpperCase() === 'BINARY_DOUBLE' ||\r\n dbDataType.toUpperCase() === 'DATE' ||\r\n dbDataType.toUpperCase() === 'CLOB' ||\r\n dbDataType.toUpperCase() === 'LONG' ||\r\n dbDataType.toUpperCase() === 'NCLOB' ||\r\n dbDataType.toUpperCase() === 'BLOB') {\r\n return dbDataType;\r\n } else if(dbDataType.toUpperCase() === 'FLOAT') {\r\n return `${dbDataType} ${(dataLen && dataLen >= 1 && dataLen <= 126) ? `(${dataLen})` : ''}`;\r\n } else if(dbDataType.toUpperCase() === 'DECIMAL' ||\r\n dbDataType.toUpperCase() === 'NUMBER') {\r\n return `${dbDataType} ${(dataLen && dataLen >= 1 && dataLen <= 38) ? ((numScale && numScale >= -84 && numScale <= 127) ? `(${dataLen},${numScale})` : `(${dataLen})`) : ''}`; \r\n } else if(dataLen && dataLen >= 0) {\r\n return `${dbDataType} (${dataLen})`\r\n }\r\n return dbDataType;\r\n \r\n };\r\n}}\r\n{{~fieldsUpdate:field:index}}\r\n{{\r\n const updateKeys = field?.baseUpdate?.updateKeys?.split(\",\") || [];\r\n const finalDataType = computeDatatype(field);\r\n const preDefKey = field?.baseUpdate?.pre?.defKey;\r\n const nextDefKey = field?.baseUpdate?.next?.defKey;\r\n}}\r\n{{? updateKeys.includes('defKey') }}ALTER TABLE {{= it.defKey}} RENAME COLUMN {{= preDefKey}} TO {{= nextDefKey}};{{?}}\r\n{{? updateKeys.some((item) => item === 'dbDataType' || item === 'dataLen' || item === 'numScale') }}\r\nALTER TABLE {{= it.defKey}} MODIFY {{=field.defKey}} {{=finalDataType}};\r\n{{?}}\r\n{{? updateKeys.includes('notNull') }}ALTER TABLE {{= it.defKey}} MODIFY {{=field.defKey}} {{? field.notNull }} NOT NULL {{??}} NULL {{?}};{{?}}\r\n{{? updateKeys.some((item) => item === 'defName' || item === 'intro') }}\r\nCOMMENT ON COLUMN {{= it.defKey}}.{{= field.defKey}} IS '{{=it.func.strJoin(field.defName, field.intro, \";\", true)}}';\r\n{{?}}\r\n{{? updateKeys.includes('defaultValue') }}\r\nALTER TABLE {{= it.defKey}} MODIFY {{=field.defKey}} DEFAULT {{=field.defaultValue}};\r\n{{?}}\r\n{{~}}", "columnDelete": "{{\r\n let fieldsUpdate = it.fieldsUpdate; \r\n}}\r\n{{~fieldsUpdate:field:index}}\r\nALTER TABLE {{=it.defKey}} DROP COLUMN {{=field.defKey}};\r\n{{~}}", "indexCreate": "{{~it.indexes:row:index}}\r\n{{? row.fields.length > 0 && row.defKey}}\r\nCREATE{{? row.type.toUpperCase() === 'UNIQUE'}} {{=row.type}}{{?}} INDEX {{=row.defKey}} ON {{=it.defKey}} (\r\n {{~row.fields:field:idx}}\r\n {{=field.fieldDefKey}} {{=field.sortType}}{{= idx < row.fields.length - 1 ? ',' : ''}}\r\n {{~}}\r\n);\r\n{{?}}\r\n{{~}}\r\n", "indexUpdate": "{{ \n let indexesUpdate = it.indexesUpdate;\n}}\n{{~indexesUpdate:row:index}}\n{{\n const updateKeys = row?.baseUpdate?.updateKeys?.split(\",\") || [];\n const fieldsUpdate = row.fieldsUpdate || [];\n const preDefKey = row?.baseUpdate?.pre?.defKey;\n \n}}\n{{? updateKeys.some((item) => item === 'defKey' || item === 'type') || fieldsUpdate.length > 0 }}\nDROP INDEX {{? preDefKey}} {{= preDefKey}} {{??}} {{=row.defKey}} {{?}};\n{{? row.fields.length > 0 && row.defKey}}\nCREATE {{? row.type.toUpperCase() === 'UNIQUE'}} {{=row.type}} {{?}} INDEX {{=row.defKey}} ON {{=it.defKey}} (\n {{~row.fields:field:idx}}\n {{=field.fieldDefKey}} {{=field.sortType}}{{= idx < row.fields.length - 1 ? ',' : ''}}\n {{~}}\n);\n{{?}}\n{{?}}\n{{~}}", "indexDelete": "{{\r\n let indexesUpdate = it.indexesUpdate; \r\n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\r\n const tableKey = `${schemaName}${it.defKey}`;\r\n}}\r\n{{~indexesUpdate:row:i}}\r\nBEGIN\r\n EXECUTE IMMEDIATE 'DROP INDEX {{= schemaName }}{{=row.defKey}}';\r\nEXCEPTION\r\n WHEN OTHERS THEN\r\n IF SQLCODE!= -1418 THEN -- Index does not exist error\r\n RAISE;\r\n END IF;\r\nEND;\r\n{{~}}", "metaTableQuery": "SELECT\n\t\t'' as id,\n t.table_name AS def_key,\n c.comments AS def_name,\n t.OWNER AS schema_name\nFROM all_tables t left join all_tab_comments c on t.OWNER=c.OWNER and t.TABLE_NAME=c.TABLE_NAME\nwhere upper(t.OWNER) in (:schemaName) order by def_key", "metaColumnQuery": "SELECT\r col.owner AS schema_name,\r\tcol.table_name AS tbl_def_key,\r\tcol.column_id AS order_value,\r\tcol.column_name AS def_key,\r\tclc.comments AS def_name,\r\t'' AS intro,\r\tcol.data_type AS db_data_type,\r\tnvl(col.data_precision,col.data_length) AS data_len,\r\tcol.data_scale AS num_scale,\r\tdecode(col.nullable,'Y',0,1) AS not_null,\r\tCASE WHEN cc.constraint_name IS NOT NULL THEN 1 ELSE 0 END AS primary_key,\r\t--'' AS auto_increment,\r\t\tCASE WHEN col.data_default ='SEQUENCE.NEXTVAL' THEN 1 ELSE 0 END AS auto_increment,\r\tCASE WHEN col.data_default ='SEQUENCE.NEXTVAL' THEN '' ELSE col.data_default END AS default_value\r\t --col.data_default AS default_value\rFROM\r\tall_tab_columns col LEFT JOIN all_col_comments clc ON col.OWNER = clc.OWNER AND col.table_name = clc.table_name AND col.column_name = clc.column_name \r\t LEFT JOIN (all_cons_columns cc JOIN all_constraints cs ON cc.constraint_name = cs.constraint_name AND cc.owner = cs.owner and cs.constraint_type = 'P') on col.owner=cc.owner and col.table_name=cc.table_name and col.column_name = cc.column_name\rWHERE\r\tcol.owner in (:schemaName)\r\tAND CONCAT(CONCAT(col.owner, '.') , col.table_name) in (:sysTableNames)\rORDER BY\r\tcol.owner ASC, col.table_name ASC,col.column_id ASC ", "metaIndexQuery": "SELECT i.TABLE_OWNER AS schema_name,\n i.table_name AS TBL_DEF_KEY,\n ic.column_name AS COL_DEF_KEY,\n i.index_name AS DEF_KEY,\n CASE\n WHEN i.uniqueness = 'UNIQUE' THEN 'UNIQUE'\n ELSE 'NORMAL'\n END AS TYPE,\n CASE\n WHEN ic.descend = 'DESC' THEN 'DESC'\n ELSE 'ASC'\n END AS SORT_TYPE,\n ic.column_position AS ORDER_VALUE,\n NULL AS INTRO -- Oracle does not have a direct equivalent for INDEX_COMMENT\nFROM user_indexes i\n LEFT JOIN all_ind_columns ic ON i.index_name = ic.index_name AND i.table_name = ic.table_name\nWHERE i.TABLE_OWNER in (:schemaName)\n AND CONCAT(CONCAT(i.TABLE_OWNER, '.') , i.table_name) IN (:sysTableNames)\nORDER BY i.TABLE_OWNER, i.table_name, i.index_name, ic.column_position;", "metaQueryCharset": null, "orderValue": 12, "isEnabled": 0, "id": "BPMCJTYLY1UAC" }, { "defKey": "OceanBase-Mysql", "defName": null, "icon": "\n \n \n \n \n ", "driverFiles": "mysql-connector-j-8.3.0.jar", "jdbcReferDriver": "com.mysql.cj.jdbc.Driver", "jdbcReferUrl": "jdbc:mysql://[ip]:[port]/[dbname]?characterEncoding=UTF-8&useSSL=false&useUnicode=true&serverTimezone=UTC", "tableCreate": "{{\r\n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\r\n const tableKey = `${schemaName}${it.defKey}`;\r\n\r\n function getDataType(field) {\r\n const { dbDataType } = field;\r\n if(!dbDataType) {\r\n return '';\r\n }\r\n const dataType = dbDataType.toUpperCase();\r\n if (['VARCHAR','NVARCHAR','VARBINARY'].includes(dataType)) {\r\n return `${dataType}(${field.dataLen ? field.dataLen : 128})`;\r\n } else if (['DATE','YEAR','TINYTEXT','MEDIUMTEXT','LONGTEXT','TINYBLOB','MEDIUMBLOB','LONGBLOB','BOOLEAN','FLOAT','JSON'].includes(dataType)) {\r\n return dataType;\r\n } else if(['SET','ENUM'].includes(dataType)){\r\n return `${dataType}(${field.defaultValue})`;\r\n } else if (dataType === 'TIMESTAMP') {\r\n return field.dataLen && field.dataLen >= 0 && field.dataLen <= 6 ? `${dataType}(${field.dataLen})` : dataType;\r\n } else if (dataType === 'DOUBLE') {\r\n return field.dataLen && field.dataLen >= 0 && field.dataLen <= 255 ? (field.numScale && field.numScale >= 0 && field.numScale <= field.dataLen ? `${dataType}(${field.dataLen},${field.numScale})` : `${dataType}(${field.dataLen},0)`) : `${dataType}`;\r\n } else if (dataType === 'DECIMAL') {\r\n return field.dataLen && field.dataLen >= 0 && field.dataLen <= 65 ? (field.numScale && field.numScale >= 0 && field.numScale <= field.dataLen ? `${dataType}(${field.dataLen},${field.numScale})` : `${dataType}(${field.dataLen})`) : `${dataType}`;\r\n } else {\r\n return field.dataLen && field.dataLen >= 0 ? `${dataType}(${field.dataLen})` : `${dataType}`;\r\n }\r\n }\r\n\r\n function getFieldDefinition(field, index, fields) {\r\n const dataType = getDataType(field);\r\n const notNull = field.notNull ? ' NOT NULL' : '';\r\n const autoIncrement = field.autoIncrement ? ' AUTO_INCREMENT' : '';\r\n const defaultValue = field.defaultValue ? ` DEFAULT ${field.defaultValue}` : '';\r\n if(field?.dbDataType?.toUpperCase()==='SET'||\r\n field?.dbDataType?.toUpperCase()==='ENUM'){\r\n defaultValue=field.defaultValue ? ` DEFAULT (\"${field.defaultValue}\")` : '';\r\n }\r\n const comment = ` COMMENT '${it.func.strJoin(field.defName, field.intro, \";\", true)}'`;\r\n return `${dataType}${notNull}${autoIncrement}${defaultValue}${comment}${index < fields.length - 1 || pkList.length > 0 ? ',' : ''}`;\r\n }\r\n}}\r\nDROP TABLE IF EXISTS {{= tableKey }};\r\n\r\nCREATE TABLE {{= tableKey }}(\r\n{{ pkList = [] ; }}\r\n{{~it.fields:field:index}}\r\n {{? field.primaryKey }}{{ pkList.push(field.defKey) }}{{?}}\r\n `{{=field.defKey}}` {{= getFieldDefinition(field, index, it.fields) }}\r\n{{~}}\r\n{{? pkList.length > 0 }}\r\n PRIMARY KEY ({{~pkList:pkName:i}}`{{= pkName }}`{{= i < pkList.length - 1 ? ',' : '' }}{{~}})\r\n{{?}}\r\n) COMMENT '{{=it.func.strJoin(it.defName, it.intro, \";\", true)}}';\r\n$blankline\r\n", "tableUpdate": "{{\n let defKey = it.baseUpdate.next.defKey;\n let defName = it.baseUpdate.next.defName;\n let intro = it.baseUpdate.next.intro;\n let indexFields = it.indexFields;\n let isPrimaryKeyModified = it.isPrimaryKeyModified;\n const updateKeys = it?.baseUpdate?.updateKeys?.split(\",\") || [];\n}}\n{{? isPrimaryKeyModified }}\nALTER TABLE {{=it.defKey}} DROP PRIMARY KEY;\n{{? indexFields && indexFields.length > 0}}\nALTER TABLE {{=it.defKey}} ADD PRIMARY KEY ({{~indexFields:field:i}}`{{= field.defKey }}`{{= i < indexFields.length-1 ? ',' : '' }}{{~}})\n{{?}}\n{{?}}\n{{? updateKeys.some((item) => item === 'defName' || item === 'intro') }}ALTER TABLE {{=it.defKey}} COMMENT '{{=it.func.strJoin(defName, intro, \";\", true)}}'';{{?}}\n$blankline\n{{? updateKeys.some((item) => item === 'defKey') }}ALTER TABLE {{=it.defKey}} RENAME TO {{=defKey}};{{?}}\n", "tableDelete": "DROP TABLE IF EXISTS {{=it.defKey}};", "columnCreate": "{{\r\n let fieldsUpdate = it.fieldsUpdate;\r\n const computeLenAndNum = (dataLen, numScale, maxDataLen, maxNumScale) => {\r\n if(!dataLen || dataLen <= 0) {\r\n return '';\r\n }\r\n let currentDataLen = dataLen, currentNumScale = numScale;\r\n if(dataLen >= maxDataLen) {\r\n currentDataLen = maxDataLen;\r\n }\r\n if(!numScale || numScale <= 0) {\r\n return `(${currentDataLen},0)`;\r\n }\r\n if(currentNumScale > maxNumScale) {\r\n currentNumScale = maxNumScale\r\n }\r\n if(currentNumScale > currentDataLen && currentDataLen <= maxNumScale) {\r\n currentNumScale = currentDataLen;\r\n }\r\n return `(${currentDataLen},${currentNumScale})`;\r\n };\r\n const computeDefaultValue = (field) => {\r\n const { defaultValue, dbDataType, primaryKey } = field;\r\n if(!defaultValue){\r\n return '';\r\n }\r\n if(dbDataType.toUpperCase().endsWith('BLOB') || \r\n dbDataType.toUpperCase().endsWith('GEOMETRY') || \r\n dbDataType.toUpperCase().endsWith('TEXT') || \r\n dbDataType.toUpperCase().endsWith('JSON')) {\r\n return '';\r\n } else if(dbDataType.toUpperCase() === 'ENUM' ||\r\n dbDataType.toUpperCase() === 'SET') {\r\n return `DEFAULT \"${defaultValue}\"`;\r\n } else {\r\n return `DEFAULT ${defaultValue}`;\r\n }\r\n };\r\n const computeType = (field) => {\r\n const { dbDataType, dataLen, numScale, defaultValue } = field;\r\n if(!dbDataType) {\r\n return '';\r\n }\r\n if(dbDataType.toUpperCase() === 'VARCHAR' ||\r\n dbDataType.toUpperCase() === 'NVARCHAR' ||\r\n dbDataType.toUpperCase() === 'VARBINARY') {\r\n return `${dbDataType}(${dataLen ? dataLen : 128})`;\r\n } else if(dbDataType.toUpperCase() === 'DATE' ||\r\n dbDataType.toUpperCase() === 'YEAR' ||\r\n dbDataType.toUpperCase() === 'TINYTEXT' ||\r\n dbDataType.toUpperCase() === 'MEDIUMTEXT' ||\r\n dbDataType.toUpperCase() === 'LONGTEXT' ||\r\n dbDataType.toUpperCase() === 'TINYBLOB' ||\r\n dbDataType.toUpperCase() === 'MEDIUMBLOB' ||\r\n dbDataType.toUpperCase() === 'LONGBLOB' ||\r\n dbDataType.toUpperCase() === 'BOOLEAN' ||\r\n dbDataType.toUpperCase() === 'FLOAT' ||\r\n dbDataType.toUpperCase() === 'INT' ||\r\n dbDataType.toUpperCase() === 'JSON' ) {\r\n return dbDataType;\r\n } else if(dbDataType.toUpperCase() === 'ENUM' ||\r\n dbDataType.toUpperCase() === 'SET' ) {\r\n return `${dbDataType}(${defaultValue})`;\r\n } else if(dbDataType.toUpperCase() === 'TIME' ||\r\n dbDataType.toUpperCase() === 'DATETIME' ||\r\n dbDataType.toUpperCase() === 'TIMESTAMP') {\r\n return `${dbDataType}${(dataLen && dataLen >= 0 && dataLen <= 6) ? `(${dataLen})` : ''}`;\r\n } else if(dbDataType.toUpperCase() === 'DOUBLE') {\r\n return `${dbDataType}${computeLenAndNum(dataLen, numScale, 255, 30)}`;\r\n } else if(dbDataType.toUpperCase() === 'DECIMAL') {\r\n return `${dbDataType}${computeLenAndNum(dataLen, numScale, 65, 30)}`;\r\n } else if(dataLen && dataLen > 0) {\r\n return `${dbDataType}(${dataLen})`;\r\n }\r\n return `${dbDataType}`;\r\n };\r\n}}\r\n{{~fieldsUpdate:field:index}}\r\nALTER TABLE {{=it.defKey}}\r\nADD COLUMN `{{=field.defKey}}` {{=computeType(field)}} {{= field.notNull ? 'NOT NULL' : '' }}{{= field.autoIncrement ? ' AUTO_INCREMENT ' : '' }}{{= computeDefaultValue(field)}} COMMENT '{{=it.func.strJoin(field.defName, field.intro, \";\", true)}}';\r\n{{~}}\r\n", "columnUpdate": "{{ \r\n let fieldsUpdate = it.fieldsUpdate;\r\n const computeLenAndNum = (dataLen, numScale, maxDataLen, maxNumScale) => {\r\n if(!dataLen || dataLen <= 0) {\r\n return '';\r\n }\r\n let currentDataLen = dataLen, currentNumScale = numScale;\r\n if(dataLen >= maxDataLen) {\r\n currentDataLen = maxDataLen;\r\n }\r\n if(!numScale || numScale <= 0) {\r\n return `(${currentDataLen},0)`;\r\n }\r\n if(currentNumScale > maxNumScale) {\r\n currentNumScale = maxNumScale\r\n }\r\n if(currentNumScale > currentDataLen && currentDataLen <= maxNumScale) {\r\n currentNumScale = currentDataLen;\r\n }\r\n return `(${currentDataLen},${currentNumScale})`;\r\n };\r\n const computeDefaultValue = (field) => {\r\n const { defaultValue, primaryKey } = field;\r\n const dbDataType = field.dbDataType ? field.dbDataType : '';\r\n if(!defaultValue) {\r\n return '';\r\n }\r\n if(dbDataType.toUpperCase().endsWith('BLOB') || \r\n dbDataType.toUpperCase().endsWith('GEOMETRY') || \r\n dbDataType.toUpperCase().endsWith('TEXT') || \r\n dbDataType.toUpperCase().endsWith('JSON') ||\r\n primaryKey) {\r\n return '';\r\n } else if(dbDataType.toUpperCase() === 'ENUM' ||\r\n dbDataType.toUpperCase() === 'SET') {\r\n return `\"${defaultValue}\"`;\r\n } else {\r\n return defaultValue;\r\n }\r\n };\r\n const computeType = (field) => {\r\n const { dbDataType, dataLen, numScale, defaultValue } = field;\r\n if(!dbDataType) {\r\n return '';\r\n }\r\n if(dbDataType.toUpperCase() === 'VARCHAR' ||\r\n dbDataType.toUpperCase() === 'NVARCHAR' ||\r\n dbDataType.toUpperCase() === 'VARBINARY') {\r\n return `${dbDataType}(${dataLen ? dataLen : 128})`;\r\n } else if(dbDataType.toUpperCase() === 'DATE' ||\r\n dbDataType.toUpperCase() === 'YEAR' ||\r\n dbDataType.toUpperCase() === 'TINYTEXT' ||\r\n dbDataType.toUpperCase() === 'MEDIUMTEXT' ||\r\n dbDataType.toUpperCase() === 'LONGTEXT' ||\r\n dbDataType.toUpperCase() === 'TINYBLOB' ||\r\n dbDataType.toUpperCase() === 'MEDIUMBLOB' ||\r\n dbDataType.toUpperCase() === 'LONGBLOB' ||\r\n dbDataType.toUpperCase() === 'BOOLEAN' ||\r\n dbDataType.toUpperCase() === 'FLOAT' ||\r\n dbDataType.toUpperCase() === 'INT' ||\r\n dbDataType.toUpperCase() === 'JSON' ) {\r\n return dbDataType;\r\n } else if(dbDataType.toUpperCase() === 'ENUM' ||\r\n dbDataType.toUpperCase() === 'SET' ) {\r\n return `${dbDataType}(${defaultValue})`;\r\n } else if(dbDataType.toUpperCase() === 'TIME' ||\r\n dbDataType.toUpperCase() === 'DATETIME' ||\r\n dbDataType.toUpperCase() === 'TIMESTAMP') {\r\n return `${dbDataType}${(dataLen && dataLen >= 0 && dataLen <= 6) ? `(${dataLen})` : ''}`;\r\n } else if(dbDataType.toUpperCase() === 'DOUBLE') {\r\n return `${dbDataType}${computeLenAndNum(dataLen, numScale, 255, 30)}`;\r\n } else if(dbDataType.toUpperCase() === 'DECIMAL') {\r\n return `${dbDataType}${computeLenAndNum(dataLen, numScale, 65, 30)}`;\r\n } else if(dataLen && dataLen > 0) {\r\n return `${dbDataType}(${dataLen})`;\r\n }\r\n return `${dbDataType}`;\r\n };\r\n}}{{~fieldsUpdate:field:index}}\r\n{{ \r\n let nextPrimaryKey = field.baseUpdate.next.primaryKey;\r\n let prePrimaryKey = field.baseUpdate.pre.primaryKey;\r\n let preDefKey = field.baseUpdate.pre.defKey;\r\n let updateKeys = field.baseUpdate.updateKeys.split(',');\r\n}}{{? updateKeys.includes('primaryKey') && updateKeys.includes('defaultValue')}}\r\nALTER TABLE `{{=it.defKey}}`\r\n ALTER COLUMN `{{=field.defKey}}` SET DEFAULT {{=field.defaultValue}};\r\n{{?}}\r\nALTER TABLE {{=it.defKey}}\r\n{{? updateKeys.includes('defKey')}} CHANGE `{{=preDefKey}}` `{{=field.defKey}}` {{??}} MODIFY COLUMN `{{=field.defKey}}`{{?}} {{=computeType(field)}} {{= field.notNull ? 'NOT NULL' : '' }} {{= field.autoIncrement ? 'AUTO_INCREMENT' : '' }} {{= computeDefaultValue(field)}}COMMENT '{{=it.func.strJoin(field.defName, field.intro, \";\", true)}}';\r\n{{~}}\r\n", "columnDelete": "{{\n let fieldsUpdate = it.fieldsUpdate; \n}}\n{{~fieldsUpdate:field:index}}ALTER TABLE {{=it.defKey}} DROP COLUMN {{=field.defKey}};{{~}}", "indexCreate": "{{~it.indexes:row:index}}\r\n{{? row.fields.length > 0 && row.defKey}}\r\nCREATE {{? row.type.toUpperCase() === 'UNIQUE'}}{{=row.type}}{{?}}INDEX {{=row.defKey}} ON {{=it.defKey}} (\r\n {{~row.fields:field:idx}}\r\n {{=field.fieldDefKey}}{{= idx < row.fields.length - 1 ? ',' : ''}}\r\n {{~}} \r\n) COMMENT '{{=it.func.strJoin(row.defName, row.intro, \";\", true)}}';\r\n{{?}}\r\n{{~}}\r\n", "indexUpdate": "{{ \n let indexesUpdate = it.indexesUpdate;\n}}\n{{~indexesUpdate:row:index}}\n{{\n let updateKeys = row.baseUpdate.updateKeys.split(',');\n let preDefKey = row.baseUpdate.pre.defKey;\n}}\nALTER TABLE {{=it.defKey}}\nDROP INDEX {{? updateKeys.includes('defKey')}}`{{=preDefKey}}` {{??}} `{{=row.defKey}}` {{?}}, \nADD {{? row.type.toUpperCase() === 'UNIQUE'}} {{=row.type}} {{?}} INDEX `{{=row.defKey}}`(\n {{~row.fields:field:idx}}\n `{{=field.fieldDefKey}}`{{=field.sortType}}{{= idx < row.fields.length - 1 ? ',' : ''}}\n {{~}}\n) COMMENT '{{=it.func.strJoin(row.defName, row.intro, \";\", true)}}';\n{{~}}", "indexDelete": "{{\r\n let indexesUpdate = it.indexesUpdate; \r\n}}\r\n{{~indexesUpdate:index:i}}ALTER TABLE {{=it.defKey}} DROP INDEX {{=index.defKey}};{{~}}", "metaTableQuery": "SELECT\n null AS id,\n table_name AS def_key,\n table_comment AS def_name,\n table_schema AS schema_name\nFROM\n information_schema.tables\nWHERE table_type = 'BASE TABLE'\n and table_schema = :schemaName", "metaColumnQuery": "SELECT\n table_name AS tbl_def_key,\n ordinal_position as order_value,\n column_name AS def_key,\n column_comment AS def_name,\n '' AS intro,\n data_type AS db_data_type,\n IF(data_type = column_type,NULL,COALESCE ( character_maximum_length, numeric_precision )) AS data_len,\n IF(data_type = column_type, NULL, numeric_scale ) AS num_scale,\n IF(column_key = 'PRI', 1, 0 ) AS primary_key,\n IF(is_nullable = 'YES', 0, 1 ) AS not_null,\n IF(extra = 'AUTO_INCREMENT', 1, 0 ) AS auto_increment,\n column_default AS default_value\nFROM\n information_schema.COLUMNS\nWHERE\n table_schema = :schemaName\n and table_name in (:sysTableNames)\nORDER BY\n table_name ASC,\n ordinal_position ASC", "metaIndexQuery": "SELECT TABLE_NAME AS TBL_DEF_KEY,\r\n COLUMN_NAME AS COL_DEF_KEY,\r\n INDEX_COMMENT AS DEF_NAME,\r\n COMMENT AS INTRO,\r\n IF (COLLATION = 'A', 'ASC', 'DESC') AS SORT_TYPE,\r\n IF (NON_UNIQUE = 1, 'NORMAL', 'UNIQUE') AS TYPE,\r\n SEQ_IN_INDEX AS ORDER_VALUE,\r\n INDEX_NAME AS DEF_KEY FROM information_schema.STATISTICS\r\n WHERE INDEX_SCHEMA = :schemaName AND TABLE_NAME IN (:sysTableNames) AND INDEX_NAME != 'PRIMARY'\r\nORDER BY TABLE_NAME, INDEX_NAME", "metaQueryCharset": null, "orderValue": 13, "isEnabled": 0, "id": "1K6TUVS7V1802" }, { "defKey": "XuguDB", "defName": null, "icon": "", "driverFiles": "xugu-jdbc-12.2.0.jar", "jdbcReferDriver": "com.xugu.cloudjdbc.Driver", "jdbcReferUrl": "jdbc:xugu://[ip]:[port]/[database]", "tableCreate": "{{\r\n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\r\n const tableKey = `${schemaName}${it.defKey}`;\r\n\r\n function getDataType(field) {\r\n const { dbDataType } = field;\r\n if(!dbDataType) {\r\n return ''\r\n }\r\n const dataType = dbDataType.toUpperCase();\r\n if (dataType === 'VARCHAR') {\r\n return `${dataType}(${field.dataLen ? field.dataLen : 128})`;\r\n } else if ( ['TINYINT','SMALLINT','INTEGER','BIGINT','SMALLSERIAL','FLOAT','DOUBLE','BOOL','DATE','DATETIME','TIME','BLOB','CLOB','BINARY'].includes(dataType)) {\r\n return dataType;\r\n } else if (dataType === 'NUMERIC') {\r\n return field.dataLen && field.dataLen >= 1 && field.dataLen <= 38 ? (field.numScale && field.numScale >= 0 && field.numScale <= field.dataLen ? `${dataType}(${field.dataLen}, ${field.numScale})`: `${dataType}(${field.dataLen})`) : `${dataType}`;\r\n } else {\r\n return field.dataLen && field.dataLen >= 0 ? `${dataType}(${field.dataLen})` : dataType;\r\n }\r\n }\r\n\r\n function getFieldDefinition(field, index, fields) {\r\n const dataType = getDataType(field);\r\n const notNull = field.notNull ? ' NOT NULL' : ' NULL';\r\n const autoIncrement = field.autoIncrement ? ' AUTO_INCREMENT' : '';\r\n const defaultValue = field.defaultValue ? ` DEFAULT ${field.defaultValue}` : '';\r\n const comment = ` COMMENT '${it.func.strJoin(field.defName, field.intro, \";\", true)}'`;\r\n return `${field.defKey} ${dataType}${notNull}${autoIncrement}${defaultValue}${comment}${index < fields.length - 1 || pkList.length > 0 ? ',' : ''}`;\r\n }\r\n}}\r\nDROP TABLE IF EXISTS {{= tableKey }};\r\n\r\nCREATE TABLE {{= tableKey }}(\r\n{{ pkList = [] ; }}\r\n{{~it.fields:field:index}}\r\n {{? field.primaryKey }}{{ pkList.push(field.defKey) }}{{?}}\r\n {{= getFieldDefinition(field, index, it.fields) }}\r\n{{~}}\r\n{{? pkList.length > 0 }}\r\n CONSTRAINT {{= it.defKey}}_constraint_name PRIMARY KEY ({{~pkList:pkName:i}}{{= pkName }}{{= i < pkList.length - 1 ? ',' : '' }}{{~}})\r\n{{?}}\r\n) COMMENT '{{=it.func.strJoin(it.defName, it.intro, \";\", true)}}';\r\n", "tableUpdate": "{{\r\n let defKey = it.baseUpdate.next.defKey;\r\n let defName = it.baseUpdate.next.defName;\r\n let intro = it.baseUpdate.next.intro;\r\n let indexFields = it.indexFields;\r\n let isPrimaryKeyModified = it.isPrimaryKeyModified;\r\n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\r\n const tableKey = `${schemaName}${it.defKey}`;\r\n const updateKeys = it?.baseUpdate?.updateKeys?.split(\",\") || [];\r\n}}\r\n{{? isPrimaryKeyModified }}\r\nALTER TABLE {{= tableKey }} DROP CONSTRAINT {{= it.defKey}}_constraint_name;\r\n{{? indexFields && indexFields.length > 0 || defKey}}\r\nALTER TABLE {{= tableKey }} ADD CONSTRAINT {{= it.defKey}}_constraint_name PRIMARY KEY ({{~indexFields:field:i}}{{= field.defKey }}{{= i < indexFields.length-1 ? ',' : '' }}{{~}});\r\n{{?}}\r\n{{?}}\r\n{{? updateKeys.some((item) => item === 'defName' || item === 'intro') }}\r\nCOMMENT ON TABLE {{= tableKey }} IS '{{=it.func.strJoin(defName, intro, \";\", true)}}';\r\n{{?}}\r\n{{? updateKeys.some((item) => item === 'defKey') }}ALTER TABLE {{= tableKey }} RENAME TO {{=defKey}};{{?}}\r\n", "tableDelete": "{{\n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\n const tableKey = `${schemaName}${it.defKey}`;\n}}\nDROP TABLE IF EXISTS {{= tableKey }};", "columnCreate": "{{\n let fieldsUpdate = it.fieldsUpdate;\n const computeDatatype = (field) => {\n const { dbDataType, dataLen, numScale, defaultValue, autoIncrement } = field;\n if(!dbDataType) {\n return '';\n }\n if(dbDataType.toUpperCase() === 'TINYINT' ||\n dbDataType.toUpperCase() === 'SMALLINT' ||\n dbDataType.toUpperCase() === 'INTEGER' ||\n dbDataType.toUpperCase() === 'BIGINT' ||\n dbDataType.toUpperCase() === 'SMALLSERIAL' ||\n dbDataType.toUpperCase() === 'FLOAT' ||\n dbDataType.toUpperCase() === 'DOUBLE' ||\n dbDataType.toUpperCase() === 'BOOL' ||\n dbDataType.toUpperCase() === 'DATE' ||\n dbDataType.toUpperCase() === 'DATETIME' ||\n dbDataType.toUpperCase() === 'TIME' ||\n dbDataType.toUpperCase() === 'BLOB' ||\n dbDataType.toUpperCase() === 'CLOB' ||\n dbDataType.toUpperCase() === 'BINARY' ||\n dbDataType.toUpperCase().startsWith('INTERVAL')) {\n return dbDataType;\n } else if(dbDataType.toUpperCase() === 'NUMERIC') {\n return `${dbDataType} ${(dataLen && dataLen >= 1 && dataLen <= 38) ? ((numScale && numScale >= 0 && numScale <= dataLen) ? `(${dataLen},${numScale})` : `(${dataLen})` ) : ''}`;\n } else if(dataLen && dataLen >= 0) {\n return `${dbDataType} (${dataLen})`;\n }\n return dbDataType;\n };\n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\n const tableKey = `${schemaName}${it.defKey}`;\n}}\n{{~fieldsUpdate:field:index}}\n{{\n const finalDataType = computeDatatype(field);\n}}\nALTER TABLE {{= tableKey }} ADD COLUMN {{= field.defKey}} {{= finalDataType}} {{= field.autoIncrement ? 'AUTO_INCREMENT' : '' }}{{? field.notNull}} NOT NULL {{?}}{{? field.defaultValue}} DEFAULT {{= field.defaultValue}}{{?}} COMMENT '{{=it.func.strJoin(field.defName, field.intro, \";\", true)}}';\n{{~}}", "columnUpdate": "{{\n let fieldsUpdate = it.fieldsUpdate;\n const computeDatatype = (field) => {\n const { dbDataType, dataLen, numScale, defaultValue, autoIncrement } = field;\n if(!dbDataType) {\n return '';\n }\n if(dbDataType.toUpperCase() === 'TINYINT' ||\n dbDataType.toUpperCase() === 'SMALLINT' ||\n dbDataType.toUpperCase() === 'INTEGER' ||\n dbDataType.toUpperCase() === 'BIGINT' ||\n dbDataType.toUpperCase() === 'SMALLSERIAL' ||\n dbDataType.toUpperCase() === 'FLOAT' ||\n dbDataType.toUpperCase() === 'DOUBLE' ||\n dbDataType.toUpperCase() === 'BOOL' ||\n dbDataType.toUpperCase() === 'DATE' ||\n dbDataType.toUpperCase() === 'DATETIME' ||\n dbDataType.toUpperCase() === 'TIME' ||\n dbDataType.toUpperCase() === 'BLOB' ||\n dbDataType.toUpperCase() === 'CLOB' ||\n dbDataType.toUpperCase() === 'BINARY' ||\n dbDataType.toUpperCase().startsWith('INTERVAL')) {\n return dbDataType;\n } else if(dbDataType.toUpperCase() === 'NUMERIC') {\n return `${dbDataType} ${(dataLen && dataLen >= 1 && dataLen <= 38) ? ((numScale && numScale >= 0 && numScale <= dataLen) ? `(${dataLen},${numScale})` : `(${dataLen})` ) : ''}`;\n } else if(dataLen && dataLen >= 0) {\n return `${dbDataType} (${dataLen})`;\n }\n return dbDataType;\n };\n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\n const tableKey = `${schemaName}${it.defKey}`;\n}}\n{{~fieldsUpdate:field:index}}\n{{\n const updateKeys = field?.baseUpdate?.updateKeys?.split(\",\") || [];\n const finalDataType = computeDatatype(field);\n const preDefKey = field?.baseUpdate?.pre?.defKey;\n const nextDefKey = field?.baseUpdate?.next?.defKey;\n}}\n{{? updateKeys.includes('defKey') }}ALTER TABLE {{= tableKey }} RENAME COLUMN {{= preDefKey}} TO {{= nextDefKey}};{{?}}\n{{? updateKeys.some((item) => item === 'dbDataType' || item === 'dataLen' || item === 'numScale' || item === 'autoIncrement') }}\nALTER TABLE {{= tableKey }} ALTER COLUMN {{= field.defKey}} {{=finalDataType}};\n{{?}}\n{{? updateKeys.includes('notNull') }}ALTER TABLE {{= tableKey }} ALTER COLUMN {{= field.defKey}} {{? field.notNull }} SET {{??}} DROP {{?}} NOT NULL;{{?}}\n{{? updateKeys.some((item) => item === 'defName' || item === 'intro') }}\nCOMMENT ON COLUMN {{= tableKey }}.{{= field.defKey}} IS '{{=it.func.strJoin(field.defName, field.intro, \";\", true)}}';\n{{?}}\n{{? updateKeys.includes('defaultValue') }}\nALTER TABLE {{= tableKey }} ALTER COLUMN {{= field.defKey}} {{? field.defaultValue }} SET DEFAULT {{=field.defaultValue}}{{??}} DROP DEFAULT {{?}};\n{{?}}\n{{~}}", "columnDelete": "{{\n let fieldsUpdate = it.fieldsUpdate; \n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\n const tableKey = `${schemaName}${it.defKey}`;\n}}\n{{~fieldsUpdate:field:index}}\nALTER TABLE {{= tableKey }} DROP COLUMN {{=field.defKey}};\n{{~}}", "indexCreate": "{{\r\n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\r\n const tableKey = `${schemaName}${it.defKey}`;\r\n}}\r\n{{~it.indexes:row:index}}\r\n{{? row.fields.length > 0 && row.defKey}}\r\nCREATE{{? row.type.toUpperCase() === 'UNIQUE'}} {{=row.type}}{{?}} INDEX {{=row.defKey}} ON {{= tableKey }}(\r\n {{~row.fields:field:idx}}\r\n {{=field.fieldDefKey}} {{? field.sortType && field.sortType.toUpperCase() === 'DESC'}} {{=field.sortType}}{{?}}{{= idx < row.fields.length - 1 ? ',' : ''}}\r\n {{~}}\r\n);\r\n{{?}}\r\n{{~}}\r\n", "indexUpdate": "{{ \n let indexesUpdate = it.indexesUpdate;\n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\n const tableKey = `${schemaName}${it.defKey}`;\n}}\n{{~indexesUpdate:row:index}}\n{{\n const updateKeys = row?.baseUpdate?.updateKeys?.split(\",\") || [];\n const fieldsUpdate = row.fieldsUpdate || [];\n const preDefKey = row?.baseUpdate?.pre?.defKey;\n \n}}\n{{? updateKeys.some((item) => item === 'defKey' || item === 'type') || fieldsUpdate.length > 0 }}\nDROP INDEX {{= tableKey }}.{{=row.defKey}};\n{{? row.fields.length > 0 && row.defKey}}\nCREATE {{? row.type.toUpperCase() === 'UNIQUE'}}{{=row.type}}{{?}} INDEX {{=row.defKey}} ON {{= tableKey }}(\n {{~row.fields:field:idx}}\n {{=field.fieldDefKey}} {{? field.sortType && field.sortType.toUpperCase() === 'DESC'}} {{=field.sortType}}{{?}}{{= idx < row.fields.length - 1 ? ',' : ''}}\n {{~}}\n);\n{{?}}\n{{?}}\n{{~}}", "indexDelete": "{{\n let indexesUpdate = it.indexesUpdate; \n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\n const tableKey = `${schemaName}${it.defKey}`;\n}}\n{{~indexesUpdate:row:i}}\nDROP INDEX {{= tableKey }}.{{=row.defKey}};\n{{~}}", "metaTableQuery": "SELECT\r\n T.TABLE_NAME AS DEF_KEY,\r\n T.COMMENTS AS DEF_NAME,\r\n S.SCHEMA_NAME AS SCHEMA_NAME\r\nFROM DBA_TABLES T LEFT JOIN DBA_SCHEMAS S ON T.SCHEMA_ID = S.SCHEMA_ID\r\nAND S.SCHEMA_NAME IN (:schemaName)", "metaColumnQuery": "SELECT\r\n TRIM(S.SCHEMA_NAME) AS SCHEMA_NAME,\r\n T.TABLE_NAME AS TBL_DEF_KEY,\r\n C.COL_NAME AS DEF_KEY,\r\n C.COMMENTS AS DEF_NAME,\r\n C.TYPE_NAME AS DB_DATA_TYPE,\r\n C.SCALE AS DATA_LEN,\r\n CASE WHEN C.NOT_NULL IS TRUE THEN 1 ELSE 0 END AS NOT_NULL,\r\n DEF_VAL AS default_value,\r\n IS_SERIAL AS auto_increment\r\nFROM DBA_TABLES T\r\n LEFT JOIN DBA_SCHEMAS S ON T.SCHEMA_ID = S.SCHEMA_ID\r\n LEFT JOIN DBA_COLUMNS C ON T.TABLE_ID = C.TABLE_ID\r\nWHERE TRIM(S.SCHEMA_NAME) IN (:schemaName) AND CONCAT(TRIM(S.SCHEMA_NAME), '.', TRIM(T.TABLE_NAME)) IN (:sysTableNames)\r\nORDER BY S.SCHEMA_NAME, TBL_DEF_KEY, C.COL_NO", "metaIndexQuery": "SELECT DS.SCHEMA_NAME AS SCHEMA_NAME,\r\n DT.TABLE_NAME AS TBL_DEF_KEY,\r\n DC.COL_NAME AS COL_DEF_KEY,\r\n DI.INDEX_NAME AS DEF_KEY,\r\n DC.COL_NO AS ORDER_VALUE,\r\n '' AS DEF_NAME,\r\n '' AS DEF_NAME,\r\n CASE WHEN DI.IS_UNIQUE IS TRUE THEN 'UNIQUE' ELSE 'NORMAL' END AS TYPE,\r\n CASE\r\n WHEN INSTR(DI.KEYS, CONCAT('\"', DC.COL_NAME, '\" DESC')) > 0 THEN 'DESC'\r\n ELSE 'ASC'\r\n END AS SORT_TYPE\r\nFROM DBA_INDEXES DI\r\n LEFT JOIN DBA_TABLES DT ON DI.TABLE_ID = DT.TABLE_ID\r\n LEFT JOIN DBA_COLUMNS DC ON (DT.TABLE_ID = DC.TABLE_ID AND POSITION(DI.KEYS, DC.COL_NAME) != 0)\r\n LEFT JOIN DBA_SCHEMAS DS ON DT.SCHEMA_ID = DS.SCHEMA_ID\r\nWHERE TRIM(DS.SCHEMA_NAME) IN (:schemaName) AND CONCAT(TRIM(DS.SCHEMA_NAME), '.', TRIM(DT.TABLE_NAME)) IN (:sysTableNames) AND IS_PRIMARY = 0\r\nORDER BY DS.SCHEMA_NAME, TBL_DEF_KEY, DEF_KEY, ORDER_VALUE", "metaQueryCharset": null, "orderValue": 14, "isEnabled": 0, "id": "1K6TWWNW01802" }, { "defKey": "HighGo", "defName": null, "icon": "", "driverFiles": "HgdbJdbc-6.0.3.jre8.jar", "jdbcReferDriver": "com.highgo.jdbc.Driver", "jdbcReferUrl": "jdbc:highgo://[ip]:[port]/[database]", "tableCreate": "{{\r\n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\r\n const tableKey = `${schemaName}${it.defKey}`;\r\n function formatDataType(field) {\r\n const supportedDataTypes = [\r\n 'SMALLINT',\r\n 'INTEGER',\r\n 'BIGINT',\r\n 'SMALLSERIAL',\r\n 'BIGSERIAL',\r\n 'REAL',\r\n 'DOUBLE PRECISION',\r\n 'DATE',\r\n 'TEXT',\r\n 'BYTEA',\r\n 'MONEY',\r\n 'BOOLEAN',\r\n 'SERIAL',\r\n 'JSON',\r\n 'INTERVAL'\r\n ];\r\n if (field.autoIncrement) {\r\n return field.dbDataType?.toUpperCase() === 'BIGINT' ? 'BIGSERIAL' : 'SERIAL';\r\n }\r\n if (supportedDataTypes.includes(field.dbDataType?.toUpperCase())) {\r\n return field.dbDataType;\r\n }\r\n if (field.dbDataType?.toUpperCase() === 'TIME' ||\r\n field.dbDataType?.toUpperCase() === 'TIMESTAMP') {\r\n if (field.dataLen && field.dataLen >= 0 && field.dataLen <= 6) {\r\n return `${field.dbDataType}(${field.dataLen})`;\r\n }\r\n return field.dbDataType;\r\n }\r\n if (field.dbDataType?.toUpperCase() === 'NUMERIC' ||\r\n field.dbDataType?.toUpperCase() === 'DECIMAL') {\r\n if (field.dataLen && field.dataLen >= 1 && field.dataLen <= 1000) {\r\n if (field.numScale && field.numScale >= 0 && field.numScale <= field.dataLen) {\r\n return `${field.dbDataType}(${field.dataLen},${field.numScale})`;\r\n }\r\n return `${field.dbDataType}(${field.dataLen})`;\r\n }\r\n return field.dbDataType;\r\n }\r\n if (field.dataLen && field.dataLen >= 0) {\r\n return `${field.dbDataType}(${field.dataLen})`;\r\n }\r\n return field.dbDataType;\r\n }\r\n}}\r\nDROP TABLE IF EXISTS {{= tableKey }};\r\nCREATE TABLE {{= tableKey }}(\r\n{{ pkList = [] ; }}\r\n {{~it.fields:field:index}}\r\n {{? field.primaryKey }}{{ pkList.push(field.defKey) }}{{?}}{{=field.defKey}} {{= formatDataType(field) }}{{= field.notNull ? ' NOT NULL' : '' }}{{? !field.autoIncrement && field.defaultValue }} DEFAULT {{= field.defaultValue }}{{?}}{{= index < it.fields.length-1 || pkList.length>0 ? ',' : '' }}\r\n {{~}}\r\n {{? pkList.length > 0 }}PRIMARY KEY ({{= pkList.join(', ')}}){{?}}\r\n);\r\n\r\n\r\n{{~it.fields:field:index}}\r\n{{? field.defName || field.intro }}\r\nCOMMENT ON COLUMN {{= tableKey }}.{{=field.defKey}} IS '{{=it.func.strJoin(field.defName, field.intro, \";\", true)}}';\r\n{{?}}\r\n{{~}}\r\n\r\n{{? it.defName || it.intro }}\r\nCOMMENT ON TABLE {{= tableKey }} IS '{{=it.func.strJoin(it.defName, it.intro, \";\", true)}}';\r\n{{?}}\r\n", "tableUpdate": "{{\r\n let defKey = it.baseUpdate.next.defKey;\r\n let defName = it.baseUpdate.next.defName;\r\n let intro = it.baseUpdate.next.intro;\r\n let indexFields = it.indexFields;\r\n let isPrimaryKeyModified = it.isPrimaryKeyModified;\r\n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\r\n const tableKey = `${schemaName}${it.defKey}`;\r\n const updateKeys = it?.baseUpdate?.updateKeys?.split(\",\") || [];\r\n}}\r\n{{? isPrimaryKeyModified }}\r\nDO $$\r\n DECLARE\r\n pk_constraint_name text;\r\n BEGIN\r\n SELECT constraint_name\r\n INTO pk_constraint_name\r\n FROM information_schema.table_constraints\r\n WHERE table_name = '{{=it.defKey}}' AND constraint_type = 'PRIMARY KEY'\r\n LIMIT 1;\r\n\r\n IF pk_constraint_name IS NOT NULL THEN\r\n EXECUTE 'ALTER TABLE {{= tableKey }} DROP CONSTRAINT ' || pk_constraint_name;\r\n ELSE\r\n RAISE NOTICE 'No primary key constraint found for the table.';\r\n END IF;\r\nEND $$;\r\n{{? indexFields && indexFields.length > 0}}\r\nALTER TABLE {{= tableKey }} ADD PRIMARY KEY ({{~indexFields:field:i}}\"{{= field.defKey }}\"{{= i < indexFields.length-1 ? ',' : '' }}{{~}});\r\n{{?}}\r\n{{?}}\r\n{{? updateKeys.some((item) => item === 'defName' || item === 'intro') }}COMMENT ON TABLE {{= tableKey }} IS '{{=it.func.strJoin(defName, intro, \";\", true)}}';{{?}}\r\n$blankline\r\n{{? updateKeys.some((item) => item === 'defKey') }}ALTER TABLE {{= tableKey }} RENAME TO {{= defKey }};{{?}}\r\n", "tableDelete": "{{\n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\n const tableKey = `${schemaName}${it.defKey}`;\n}}\nDROP TABLE IF EXISTS {{= tableKey }};", "columnCreate": "{{\n let fieldsUpdate = it.fieldsUpdate;\n const computeDatatype = (field) => {\n const { dbDataType, dataLen, numScale, defaultValue, autoIncrement } = field;\n if(!dbDataType) {\n return '';\n }\n if(autoIncrement) {\n return dbDataType.toUpperCase() === 'BIGINT' ? 'BIGSERIAL' : 'SERIAL';\n }\n if(dbDataType.toUpperCase() === 'SMALLINT' ||\n dbDataType.toUpperCase() === 'INTEGER' ||\n dbDataType.toUpperCase() === 'BIGINT' ||\n dbDataType.toUpperCase() === 'SMALLSERIAL' ||\n dbDataType.toUpperCase() === 'BIGSERIAL' ||\n dbDataType.toUpperCase() === 'REAL' ||\n dbDataType.toUpperCase() === 'DOUBLE PRECISION' ||\n dbDataType.toUpperCase() === 'DATE' ||\n dbDataType.toUpperCase() === 'TEXT' ||\n dbDataType.toUpperCase() === 'BYTEA' ||\n dbDataType.toUpperCase() === 'MONEY' ||\n dbDataType.toUpperCase() === 'BOOLEAN' ||\n dbDataType.toUpperCase() === 'SERIAL' ||\n dbDataType.toUpperCase() === 'JSON' ||\n dbDataType.toUpperCase().startsWith('INTERVAL')) {\n return dbDataType;\n } else if(dbDataType.toUpperCase() === 'TIME' ||\n dbDataType.toUpperCase() === 'TIMESTAMP') {\n return `${dbDataType} ${(dataLen && dataLen >= 0 && dataLen <= 6) ? `(${dataLen})` : ''}`; \n } else if(dbDataType.toUpperCase() === 'NUMERIC' || \n dbDataType.toUpperCase() === 'DECIMAL') {\n return `${dbDataType} ${(dataLen && dataLen >= 1 && dataLen <= 1000) ? ((numScale && numScale >= 0 && numScale <= dataLen) ? `(${dataLen},${numScale})` : `(${dataLen})` ) : ''}`;\n } else if(dataLen && dataLen >= 0) {\n return `${dbDataType}(${dataLen})`;\n }\n return dbDataType;\n };\n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\n const tableKey = `${schemaName}${it.defKey}`;\n}}\n{{~fieldsUpdate:field:index}}\n{{\n const finalDataType = computeDatatype(field);\n}}\nALTER TABLE {{= tableKey }} ADD {{= field.defKey}} {{= finalDataType}}{{? field.notNull}} NOT NULL{{?}}{{? field.defaultValue}} DEFAULT {{= field.defaultValue}}{{?}};\n{{? field.defName || field.intro }}\nCOMMENT ON COLUMN {{= tableKey }}.{{=field.defKey}} IS '{{=it.func.strJoin(field.defName, field.intro, \";\", true)}}';\n{{?}}\n{{~}}", "columnUpdate": "{{\n let fieldsUpdate = it.fieldsUpdate;\n const computeDatatype = (field) => {\n const { dbDataType, dataLen, numScale, defaultValue, autoIncrement } = field;\n if(!dbDataType) {\n return '';\n }\n if(autoIncrement) {\n return dbDataType.toUpperCase() === 'BIGINT' ? 'BIGSERIAL' : 'SERIAL';\n }\n if(dbDataType.toUpperCase() === 'SMALLINT' ||\n dbDataType.toUpperCase() === 'INTEGER' ||\n dbDataType.toUpperCase() === 'BIGINT' ||\n dbDataType.toUpperCase() === 'SMALLSERIAL' ||\n dbDataType.toUpperCase() === 'BIGSERIAL' ||\n dbDataType.toUpperCase() === 'REAL' ||\n dbDataType.toUpperCase() === 'DOUBLE PRECISION' ||\n dbDataType.toUpperCase() === 'DATE' ||\n dbDataType.toUpperCase() === 'TEXT' ||\n dbDataType.toUpperCase() === 'BYTEA' ||\n dbDataType.toUpperCase() === 'MONEY' ||\n dbDataType.toUpperCase() === 'BOOLEAN' ||\n dbDataType.toUpperCase() === 'SERIAL' ||\n dbDataType.toUpperCase() === 'JSON' ||\n dbDataType.toUpperCase().startsWith('INTERVAL')) {\n return dbDataType;\n } else if(dbDataType.toUpperCase() === 'TIME' ||\n dbDataType.toUpperCase() === 'TIMESTAMP') {\n return `${dbDataType} ${(dataLen && dataLen >= 0 && dataLen <= 6) ? `(${dataLen})` : ''}`; \n } else if(dbDataType.toUpperCase() === 'NUMERIC' || \n dbDataType.toUpperCase() === 'DECIMAL') {\n return `${dbDataType} ${(dataLen && dataLen >= 1 && dataLen <= 1000) ? ((numScale && numScale >= 0 && numScale <= dataLen) ? `(${dataLen},${numScale})` : `(${dataLen})` ) : ''}`;\n } else if(dataLen && dataLen >= 0) {\n return `${dbDataType}(${dataLen})`;\n }\n return dbDataType;\n };\n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\n const tableKey = `${schemaName}${it.defKey}`;\n}}\n{{~fieldsUpdate:field:index}}\n{{\n const updateKeys = field?.baseUpdate?.updateKeys?.split(\",\") || [];\n const finalDataType = computeDatatype(field);\n const preDefKey = field?.baseUpdate?.pre?.defKey;\n const nextDefKey = field?.baseUpdate?.next?.defKey;\n}}\n{{? updateKeys.includes('defKey') }}ALTER TABLE {{= tableKey }} RENAME COLUMN {{= preDefKey}} TO {{= nextDefKey}};{{?}}\n{{? updateKeys.includes('defaultValue') }}\nALTER TABLE {{= tableKey }} ALTER COLUMN {{= field.defKey}}{{? field.defaultValue }} SET DEFAULT {{=field.defaultValue}}{{??}} DROP DEFAULT{{?}};\n{{?}}\n{{? updateKeys.some((item) => item === 'dbDataType' || item === 'dataLen' || item === 'numScale' || item === 'autoIncrement') }}\nALTER TABLE {{= tableKey }} ALTER COLUMN {{= field.defKey}} SET DATA TYPE {{=finalDataType}} USING {{= field.defKey }}::{{=finalDataType}};\n{{?}}\n{{? updateKeys.includes('notNull') && field.notNull }}ALTER TABLE {{= tableKey }} ALTER COLUMN {{= field.defKey}} SET NOT NULL;{{?}}\n{{? updateKeys.some((item) => item === 'defName' || item === 'intro') }}\nCOMMENT ON COLUMN {{= tableKey }}.{{=field.defKey}} IS '{{=it.func.strJoin(field.defName, field.intro, \";\", true)}}';\n{{?}}\n{{~}}", "columnDelete": "{{\n let fieldsUpdate = it.fieldsUpdate; \n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\n const tableKey = `${schemaName}${it.defKey}`;\n}}\n{{~fieldsUpdate:field:index}}\nALTER TABLE {{= tableKey }} DROP COLUMN {{=field.defKey}};\n{{~}}", "indexCreate": "{{\r\n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\r\n const tableKey = `${schemaName}${it.defKey}`;\r\n}}\r\n{{~it.indexes:row:index}}\r\n{{? row.fields.length > 0 && row.defKey}}\r\nCREATE {{? row.type.toUpperCase() === 'UNIQUE'}}{{=row.type}} {{?}}INDEX {{=row.defKey}} ON {{= tableKey }}(\r\n {{~row.fields:field:idx}}\r\n {{=field.fieldDefKey}} {{=field.sortType}}{{= idx < row.fields.length - 1 ? ',' : ''}}\r\n {{~}}\r\n);\r\n{{?}}\r\n{{? row.defName || row.intro }}\r\nCOMMENT ON INDEX {{= schemaName }} {{=row.defKey}} IS '{{=it.func.strJoin(row.defName, row.intro, \";\", true)}}';\r\n{{?}}\r\n{{~}}\r\n", "indexUpdate": "{{ \n let indexesUpdate = it.indexesUpdate;\n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\n const tableKey = `${schemaName}${it.defKey}`;\n}}\n{{~indexesUpdate:row:index}}\n{{\n const updateKeys = row?.baseUpdate?.updateKeys?.split(\",\") || [];\n const fieldsUpdate = row.fieldsUpdate || [];\n const preDefKey = row?.baseUpdate?.pre?.defKey;\n \n}}\n{{? updateKeys.some((item) => item === 'defKey' || item === 'type') || fieldsUpdate.length > 0 }}\nDROP INDEX IF EXISTS {{= schemaName }}{{? preDefKey}} {{= preDefKey}} {{??}} {{=row.defKey}} {{?}};\n{{? row.fields.length > 0 && row.defKey}}\nCREATE {{? row.type.toUpperCase() === 'UNIQUE'}} {{=row.type}} {{?}} INDEX {{=row.defKey}} ON {{= tableKey }} (\n {{~row.fields:field:idx}}\n {{=field.fieldDefKey}} {{=field.sortType}} {{= idx < row.fields.length - 1 ? ',' : ''}}\n {{~}}\n);\n{{?}}\n{{? (row.defName || row.intro) && row.defKey && row.fields.length > 0}}\nCOMMENT ON INDEX {{= schemaName }}{{=row.defKey}} IS '{{=it.func.strJoin(row.defName, row.intro, \";\", true)}}';\n{{?}}\n{{??}}\n{{? updateKeys.some((item) => item === 'defName' || item === 'intro') && row.fields.length > 0}}\nCOMMENT ON INDEX {{= schemaName }}{{=row.defKey}} IS '{{=it.func.strJoin(row.defName, row.intro, \";\", true)}}'\n{{?}}\n{{?}}\n{{~}}", "indexDelete": "{{\n let indexesUpdate = it.indexesUpdate; \n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\n const tableKey = `${schemaName}${it.defKey}`;\n}}\n{{~indexesUpdate:row:i}}\nDROP INDEX IF EXISTS {{= schemaName }}{{=row.defKey}};\n{{~}}", "metaTableQuery": "SELECT c.relname AS def_key,\r\n CAST(obj_description(c.relfilenode, 'pg_class') AS varchar) AS def_name,\r\n n.nspname AS schema_name\r\nFROM pg_class AS c\r\n JOIN pg_tables AS b ON c.relname = b.tablename\r\n JOIN pg_namespace AS n ON b.schemaname = n.nspname AND c.relnamespace = n.oid\r\nWHERE b.schemaname IN (:schemaName);", "metaColumnQuery": " -- select col.table_schema as schema_name, col.table_name as tbl_def_key, col.ordinal_position as order_value, col.column_name as def_key, d.description as def_name, col.udt_name as db_data_type,\r\n -- col.character_maximum_length as data_length, col.numeric_scale as num_scale, case when tc.constraint_type = 'PRIMARY KEY' then 1 else 0 end as primary_key, case when col.is_nullable = 'YES' then 0 else 1 end as not_null,\r\n -- col.column_default as default_value from information_schema.columns col\r\n -- inner join pg_class c on c.relname = col.table_name inner join pg_tables b on c.relname = b.tablename inner join pg_namespace n on b.schemaname = n.nspname and c.relnamespace = n.oid\r\n -- left join pg_description d on d.objoid = c.oid and d.objsubid = col.ordinal_position left join information_schema.key_column_usage tku on tku.table_name = col.table_name and tku.column_name = col.column_name left join information_schema.table_constraints tc on tc.constraint_name = tku.constraint_name\r\n -- where 1 = 1 and b.schemaname in (:schemaName) and CONCAT(TRIM(b.schemaname), '.', TRIM(col.table_name)) in (:sysTableNames) and CONCAT(TRIM(col.table_schema), '.', TRIM(col.table_name)) in (:sysTableNames)\r\n -- and col.table_schema in (:schemaName) order by col.table_schema asc, col.table_name asc, col.ordinal_position asc\r\n \r\n \r\nSELECT\r\n col.table_schema as schema_name,\r\n col.TABLE_NAME AS tbl_def_key,\r\n col.ordinal_position AS order_value,\r\n col.COLUMN_NAME AS def_key,\r\n d.description AS def_name,\r\n '' AS intro,\r\n col.udt_name AS db_data_type,\r\n CASE WHEN col.character_maximum_length IS NULL AND col.numeric_precision IS NOT NULL THEN col.numeric_precision\r\n ELSE col.character_maximum_length\r\n END AS data_len,\r\n CASE WHEN col.numeric_precision IS NOT NULL THEN (CASE WHEN col.numeric_scale = 0 THEN NULL ELSE col.numeric_scale END)\r\n ELSE NULL\r\n END AS num_scale,\r\n CASE WHEN kc.column_name IS NOT NULL THEN 1 ELSE 0 END AS primary_key,\r\n CASE WHEN col.IS_NULLABLE = 'NO' THEN 1 ELSE 0 END AS not_null,\r\n CASE WHEN col.COLUMN_DEFAULT LIKE 'nextval%' THEN 1 ELSE 0 END AS auto_increment,\r\n -- substr(col.column_default,0,strpos(col.column_default, concat('::',col.data_type))) AS default_value\r\n CASE\r\n WHEN strpos(col.column_default, concat('::',col.data_type)) = 0 THEN (CASE\r\n WHEN col.column_default LIKE 'nextval%' THEN ''\r\n ELSE col.column_default\r\n END)\r\n ELSE substr(col.column_default,0,strpos(col.column_default, concat('::',col.data_type)))\r\n END AS default_value\r\nFROM\r\n information_schema.COLUMNS col LEFT JOIN (information_schema.key_column_usage kc LEFT JOIN information_schema.table_constraints tc\r\n ON\r\n kc.constraint_name = tc.constraint_name\r\n and tc.constraint_type = 'PRIMARY KEY'\r\n and kc.table_schema=tc.table_schema\r\n and kc.table_name=tc.table_schema\r\n ) ON\r\n col.TABLE_NAME = kc.table_name\r\n AND col.COLUMN_NAME = kc.column_name AND kc.table_schema = col.table_schema\r\n LEFT JOIN pg_class C ON C.relname = col.TABLE_NAME\r\n LEFT JOIN pg_namespace n ON col.table_schema = n.nspname AND c.relnamespace = n.oid\r\n LEFT JOIN pg_description d ON d.objoid = C.oid AND d.objsubid = col.ordinal_position\r\nWHERE\r\n col.table_schema IN (:schemaName)\r\n AND nspName IN (:schemaName)\r\n AND CONCAT(col.table_schema, '.', col.TABLE_NAME) IN (:sysTableNames)\r\nORDER BY\r\n col.table_schema asc, col.TABLE_NAME asc,col.ordinal_position ASC\r\n ", "metaIndexQuery": "SELECT ns.nspname AS schema_name,\r\n t.relname AS tbl_def_key,\r\n a.attname AS col_def_key,\r\n d.description AS def_name,\r\n d.description AS intro,\r\n CASE\r\n WHEN ix.indoption[array_position(ix.indkey, a.attnum) - 1] & 1 = 0 THEN 'ASC'\r\n ELSE 'DESC'\r\n END AS sort_type,\r\n CASE\r\n WHEN ix.indisunique THEN 'UNIQUE'\r\n ELSE 'NORMAL'\r\n END AS type,\r\n array_position(ix.indkey, a.attnum) AS order_value,\r\n idx.relname AS def_key\r\nFROM pg_class t\r\n JOIN\r\n pg_namespace ns ON ns.oid = t.relnamespace\r\n JOIN\r\n pg_index ix ON t.oid = ix.indrelid\r\n JOIN\r\n pg_class idx ON ix.indexrelid = idx.oid\r\n JOIN\r\n unnest(ix.indkey) WITH ORDINALITY AS key_col(attnum, ord) ON true\r\n JOIN\r\n pg_attribute a ON t.oid = a.attrelid AND a.attnum = key_col.attnum\r\n LEFT JOIN\r\n pg_description d ON idx.oid = d.objoid\r\nWHERE ns.nspname IN (:schemaName)\r\n AND CONCAT(TRIM(ns.nspname), '.', TRIM(t.relname)) IN (:sysTableNames)\r\n AND indisprimary = false\r\nORDER BY ns.nspname, \r\n tbl_def_key,\r\n def_key", "metaQueryCharset": null, "orderValue": 15, "isEnabled": 0, "id": "1K6TXL42H1802" }, { "defKey": "Hive", "defName": null, "icon": "\n \n \n \n \n ", "driverFiles": "hive-jdbc-3.1.2-standalone.jar;mysql-connector-j-8.3.0.jar;postgresql-42.7.3.jar;", "jdbcReferDriver": "org.apache.hive.jdbc.HiveDriver", "jdbcReferUrl": "jdbc:hive2://[ip]:[port]", "tableCreate": "{{\r\n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\r\n const tableKey = `${schemaName}${it.defKey}`;\r\n function addField(field, pkList) {\r\n let fieldStr = `${field.defKey} ${field.dbDataType}`;\r\n if (['VARCHAR', 'CHAR'].includes(field.dbDataType?.toUpperCase())) {\r\n fieldStr += `(${field.dataLen ? field.dataLen : 128})`;\r\n } else if (field.dbDataType?.toUpperCase() === 'DECIMAL' && field.dataLen && field.dataLen >= 1 && field.dataLen <= 38) {\r\n if (field.numScale && field.numScale >= 0 && field.numScale <= field.dataLen) {\r\n fieldStr += `(${field.dataLen},${field.numScale})`;\r\n } else {\r\n fieldStr += `(${field.dataLen})`;\r\n }\r\n }\r\n if (field.defName || field.intro) {\r\n fieldStr += ` COMMENT '${it.func.strJoin(field.defName, field.intro, \";\", true)}'`;\r\n }\r\n if (field.primaryKey) {\r\n pkList.push(field.defKey);\r\n }\r\n return `${fieldStr}${index < it.fields.length - 1 ? ',' : ''}`;\r\n }\r\n}}\r\n\r\nDROP TABLE IF EXISTS {{= tableKey }};\r\n\r\nCREATE TABLE {{= tableKey }}(\r\n{{ pkList = [] ; }}\r\n{{~it.fields:field:index}}\r\n {{= addField(field, pkList) }}{{~}}{{? pkList.length > 0 }},\r\n CONSTRAINT {{= it.defKey}}_constraint_name PRIMARY KEY ({{= pkList.join(', ')}}) DISABLE NOVALIDATE{{?}}\r\n);\r\n$blankline\r\n\r\n{{? it.defName || it.intro }}\r\nALTER TABLE {{= tableKey }} SET TBLPROPERTIES ('comment' = '{{=it.func.strJoin(it.defName, it.intro, \";\", true)}}');\r\n{{?}}\r\n$blankline\r\n\r\n\r\n", "tableUpdate": "{{\r\n let defKey = it.baseUpdate.next.defKey;\r\n let defName = it.baseUpdate.next.defName;\r\n let intro = it.baseUpdate.next.intro;\r\n let indexFields = it.indexFields;\r\n let isPrimaryKeyModified = it.isPrimaryKeyModified;\r\n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\r\n const tableKey = `${schemaName}${it.defKey}`;\r\n const updateKeys = it?.baseUpdate?.updateKeys?.split(\",\") || [];\r\n}}\r\n{{? isPrimaryKeyModified }}\r\nALTER TABLE {{= tableKey }} DROP CONSTRAINT {{= it.defKey}}_constraint_name;\r\n{{? indexFields && indexFields.length > 0 || defKey}}\r\nALTER TABLE {{= tableKey }} ADD CONSTRAINT {{= it.defKey}}_constraint_name PRIMARY KEY ({{~indexFields:field:i}}{{= field.defKey }}{{= i < indexFields.length-1 ? ',' : '' }}{{~}}) DISABLE NOVALIDATE;\r\n{{?}}\r\n{{?}}\r\n{{? updateKeys.some((item) => item === 'defName' || item === 'intro') }}\r\nALTER TABLE {{= tableKey }} SET TBLPROPERTIES ('comment' = '{{=it.func.strJoin(defName, intro, \";\", true)}}');\r\n{{?}}\r\n{{? updateKeys.some((item) => item === 'defKey') }}ALTER TABLE {{= tableKey }} RENAME TO {{=defKey}};{{?}}\r\n", "tableDelete": "{{\n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\n const tableKey = `${schemaName}${it.defKey}`;\n}}\nDROP TABLE IF EXISTS {{= tableKey }};", "columnCreate": "{{\n let fieldsUpdate = it.fieldsUpdate;\n const computeDatatype = (field) => {\n const { dbDataType, dataLen, numScale, defaultValue, autoIncrement } = field;\n if(!dbDataType) {\n return '';\n }\n if(dbDataType.toUpperCase() === 'VARCHAR' ||\n dbDataType.toUpperCase() === 'CHAR') {\n return `${dbDataType} (${dataLen ? dataLen : '128'})`; \n } else if(dbDataType.toUpperCase() === 'DECIMAL' ) {\n return `${dbDataType} ${(dataLen && dataLen >= 1 && dataLen <= 38) ? ((numScale && numScale >= 0 && numScale <= dataLen) ? `(${dataLen},${numScale})` : `(${dataLen})` ) : ''}`;\n }\n return dbDataType;\n };\n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\n const tableKey = `${schemaName}${it.defKey}`;\n}}\n{{~fieldsUpdate:field:index}}\n{{\n const finalDataType = computeDatatype(field);\n}}\nALTER TABLE {{= tableKey }} ADD COLUMNS ({{= field.defKey}} {{= finalDataType}}{{? field.defName || field.intro }} COMMENT '{{=it.func.strJoin(field.defName, field.intro, \";\", true)}}'{{?}});\n{{~}}", "columnUpdate": "{{\n let fieldsUpdate = it.fieldsUpdate;\n const computeDatatype = (field) => {\n const { dbDataType, dataLen, numScale, defaultValue, autoIncrement } = field;\n if(!dbDataType) {\n return '';\n }\n if(dbDataType.toUpperCase() === 'VARCHAR' ||\n dbDataType.toUpperCase() === 'CHAR') {\n return `${dbDataType} (${dataLen ? dataLen : '128'})`; \n } else if(dbDataType.toUpperCase() === 'DECIMAL' ) {\n return `${dbDataType} ${(dataLen && dataLen >= 1 && dataLen <= 38) ? ((numScale && numScale >= 0 && numScale <= dataLen) ? `(${dataLen},${numScale})` : `(${dataLen})` ) : ''}`;\n }\n return dbDataType;\n };\n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\n const tableKey = `${schemaName}${it.defKey}`;\n}}\n{{~fieldsUpdate:field:index}}\n{{\n const updateKeys = field?.baseUpdate?.updateKeys?.split(\",\") || [];\n const finalDataType = computeDatatype(field);\n const preDefKey = field?.baseUpdate?.pre?.defKey;\n const nextDefKey = field?.baseUpdate?.next?.defKey;\n}}\nALTER TABLE {{= tableKey }} CHANGE {{= preDefKey || field.defKey}} {{= nextDefKey || field.defKey}} {{= finalDataType}} COMMENT '{{=it.func.strJoin(field.defName, field.intro, \";\", true)}}';\n{{~}}", "columnDelete": null, "indexCreate": "{{\r\n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\r\n const tableKey = `${schemaName}${it.defKey}`;\r\n}}\r\n{{~it.indexes:row:index}}\r\n{{? row.fields.length > 0 && row.defKey}}\r\nCREATE {{? row.type.toUpperCase() === 'UNIQUE'}} {{=row.type}}{{?}} INDEX {{=row.defKey}} ON TABLE {{= tableKey }} (\r\n {{~row.fields:field:idx}}\r\n {{=field.fieldDefKey}} {{= idx < row.fields.length - 1 ? ',' : ''}}\r\n {{~}}\r\n) AS 'org.apache.hadoop.hive.ql.index.compact.CompactIndexHandler'\r\nWITH DEFERRED REBUILD {{? row.defName || row.intro }} COMMENT '{{=it.func.strJoin(row.defName, row.intro, \";\", true)}}'{{?}};\r\n{{?}}\r\n{{~}}\r\n", "indexUpdate": "{{ \n let indexesUpdate = it.indexesUpdate;\n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\n const tableKey = `${schemaName}${it.defKey}`;\n}}\n{{~indexesUpdate:row:index}}\n{{\n const updateKeys = row?.baseUpdate?.updateKeys?.split(\",\") || [];\n const fieldsUpdate = row.fieldsUpdate || [];\n const preDefKey = row?.baseUpdate?.pre?.defKey;\n \n}}\n{{? updateKeys.some((item) => item === 'defKey' || item === 'type') || fieldsUpdate.length > 0 }}\nDROP INDEX IF EXISTS {{=row.defKey}} ON {{= tableKey }};\n{{? row.fields.length > 0 && row.defKey}}\nCREATE {{? row.type.toUpperCase() === 'UNIQUE'}}{{=row.type}}{{?}} INDEX {{=row.defKey}} ON TABLE {{= tableKey }} (\n {{~row.fields:field:idx}}\n {{=field.fieldDefKey}} {{= idx < row.fields.length - 1 ? ',' : ''}}\n {{~}}\n) AS 'org.apache.hadoop.hive.ql.index.compact.CompactIndexHandler'\nWITH DEFERRED REBUILD {{? row.defName || row.intro }} COMMENT '{{=it.func.strJoin(row.defName, row.intro, \";\", true)}}' {{?}};\n{{?}}\n{{?}}\n{{~}}", "indexDelete": "{{\n let indexesUpdate = it.indexesUpdate; \n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\n const tableKey = `${schemaName}${it.defKey}`;\n}}\n{{~indexesUpdate:row:i}}\nDROP INDEX IF EXISTS {{=row.defKey}} ON {{= tableKey }};\n{{~}}", "metaTableQuery": "SELECT\r\n tbl.\"TBL_NAME\" AS def_key -- 表名\r\n ,tbl_params.\"PARAM_VALUE\" AS def_name -- 表注释\r\n ,db.\"NAME\" AS schema_name -- 数据库名\r\nFROM\r\n \"SDS\" SDS\r\n LEFT JOIN \"TBLS\" tbl ON sds.\"SD_ID\" = tbl.\"SD_ID\"\r\n LEFT JOIN \"TABLE_PARAMS\" tbl_params ON tbl.\"TBL_ID\" = tbl_params.\"TBL_ID\" AND tbl_params.\"PARAM_KEY\" = 'comment'\r\n LEFT JOIN \"PARTITION_KEYS\" partkey ON tbl.\"TBL_ID\" = partkey.\"TBL_ID\"\r\n LEFT JOIN \"DBS\" db ON tbl.\"DB_ID\" = db.\"DB_ID\" -- 过滤数据库\r\nWHERE\r\n tbl.\"TBL_NAME\" IS NOT NULL\r\n AND db.\"NAME\" IN (:schemaName)\r\n AND tbl.\"TBL_TYPE\" = 'MANAGED_TABLE'-- 只查询MANAGED_TABLE类型的表", "metaColumnQuery": "SELECT\r\n tbl.\"TBL_NAME\" AS tbl_def_key -- 表名\r\n ,tbl_params.\"PARAM_VALUE\" AS tbl_comment -- 表注释\r\n ,col.\"COLUMN_NAME\" AS def_key -- 字段名称\r\n ,col.\"COMMENT\" AS def_name -- 字段注释\r\n ,col.\"TYPE_NAME\" AS db_data_type -- 字段类型\r\n ,db.\"NAME\" AS schema_name\r\nFROM\r\n \"SDS\" sds\r\n LEFT JOIN \"TBLS\" tbl ON sds.\"SD_ID\" = tbl.\"SD_ID\"\r\n LEFT JOIN \"TABLE_PARAMS\" tbl_params ON tbl.\"TBL_ID\" = tbl_params.\"TBL_ID\" AND tbl_params.\"PARAM_KEY\" = 'comment'\r\n LEFT JOIN \"PARTITION_KEYS\" partkey ON tbl.\"TBL_ID\" = partkey.\"TBL_ID\"\r\n LEFT JOIN \"DBS\" db ON tbl.\"DB_ID\" = db.\"DB_ID\"\r\n LEFT JOIN \"COLUMNS_V2\" col ON sds.\"CD_ID\" = col.\"CD_ID\" -- 过滤数据库\r\nWHERE\r\n tbl.\"TBL_NAME\" IS NOT NULL\r\n AND db.\"NAME\" IN (:schemaName)\r\n AND CONCAT(TRIM(db.\"NAME\"), '.', TRIM(tbl.\"TBL_NAME\")) IN (:sysTableNames)\r\nORDER BY schema_name ASC, tbl_def_key ASC", "metaIndexQuery": "SELECT\n tbl.\"TBL_NAME\" AS TBL_DEF_KEY\n ,sort.\"COLUMN_NAME\" AS COL_DEF_KEY\n , i.\"INDEX_NAME\" AS DEF_KEY\n , params.\"PARAM_VALUE\" AS DEF_NAME\n , '' AS INTRO\n , '' AS SORT_TYPE\n , '' AS TYPE\n , sort.\"INTEGER_IDX\" AS ORDER_VALUE\n , db.\"NAME\" AS SCHEMA_NAME\nFROM\n \"SDS\" SDS\n LEFT JOIN \"TBLS\" tbl ON sds.\"SD_ID\" = tbl.\"SD_ID\"\n LEFT JOIN \"DBS\" db ON tbl.\"DB_ID\" = db.\"DB_ID\" -- 过滤数据库\n INNER JOIN \"IDXS\" i ON tbl.\"TBL_ID\" = i.\"ORIG_TBL_ID\"\n INNER JOIN \"SORT_COLS\" sort ON i.\"SD_ID\" = sort.\"SD_ID\"\n INNER JOIN \"INDEX_PARAMS\" params ON i.\"INDEX_ID\" = params.\"INDEX_ID\" and params.\"PARAM_KEY\" = 'comment'\nWHERE\n tbl.\"TBL_NAME\" IS NOT NULL\n AND db.\"NAME\" IN (:schemaName)\n AND CONCAT(TRIM(db.\"NAME\"), '.', TRIM(tbl.\"TBL_NAME\")) IN (:sysTableNames)\nORDER BY SCHEMA_NAME, TBL_DEF_KEY, DEF_KEY, ORDER_VALUE ;", "metaQueryCharset": null, "orderValue": 16, "isEnabled": 0, "id": "BPMCJTYLY4UAC" }, { "defKey": "Doris", "defName": null, "icon": "\n \n \n \n \n ", "driverFiles": "mysql-connector-j-8.3.0.jar", "jdbcReferDriver": "com.mysql.cj.jdbc.Driver", "jdbcReferUrl": "jdbc:mysql://[ip]:[port]", "tableCreate": "{{\r\n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\r\n const tableKey = `${schemaName}${it.defKey}`;\r\n\r\n function getDataType(field) {\r\n const { dbDataType } = field;\r\n if(!dbDataType) {\r\n return ''\r\n }\r\n const dataType = dbDataType.toUpperCase();\r\n if (dataType === 'VARCHAR') {\r\n return `${dataType}(${field.dataLen ? field.dataLen : 128})`;\r\n } else if (['JSON','DATE'].includes(dataType)) {\r\n return dataType;\r\n } else if (dataType === 'TIMESTAMP') {\r\n return field.dataLen && field.dataLen >= 0 && field.dataLen <= 9 ? `${dataType}(${field.dataLen})` : dataType;\r\n } else if (dataType === 'DECIMAL') {\r\n return field.dataLen && field.dataLen >= 0 && field.dataLen <= 6 ? `${dataType}(${field.dataLen})` : dataType;\r\n } else {\r\n return field.dataLen && field.dataLen >= 0 ? `${dataType}(${field.dataLen})` : dataType;\r\n }\r\n }\r\n\r\n function getFieldDefinition(field, index, fields) {\r\n const dataType = getDataType(field);\r\n const notNull = field.notNull ? ' NOT NULL' : '';\r\n const defaultValue = field.defaultValue ? ` DEFAULT ${field.defaultValue}` : '';\r\n const comment = ` COMMENT '${it.func.strJoin(field.defName, field.intro, \";\", true)}'`;\r\n return `${dataType}${notNull}${defaultValue}${comment}${index < nonPkList.length-1 ? ',' : ''}`;\r\n }\r\n}}\r\nDROP TABLE IF EXISTS {{= tableKey }};\r\n\r\nCREATE TABLE {{= tableKey }}(\r\n{{ pkList = [] ; nonPkList = [] ; }}\r\n{{~it.fields:field:index}}{{? field.primaryKey }}{{ pkList.push(field) }}{{??}}{{ nonPkList.push(field) }}{{?}}{{~}}\r\n{{~pkList:field:index}}\r\n `{{=field.defKey}}` {{= getFieldDefinition(field, index, it.fields) }}{{?}}\r\n{{~nonPkList:field:index}}\r\n `{{=field.defKey}}` {{= getFieldDefinition(field, index, it.fields) }}{{?}}\r\n{{~}}\r\n){{? pkList.length > 0 }} UNIQUE KEY ({{~pkList:field:index}}`{{= field.defKey }}`{{= index < pkList.length-1 ? ',' : '' }}{{~}}){{?}}\r\n{{? it.defName || it.intro }} \r\n COMMENT '{{=it.func.strJoin(it.defName, it.intro, \";\", true)}}' \r\n{{?}}\r\n DISTRIBUTED BY HASH(`{{=pkList.length > 0 ? pkList[0].defKey : it.fields[0].defKey}}`) BUCKETS 1\r\n PROPERTIES(\r\n \"replication_allocation\" = \"tag.location.default: 1\"\r\n );\r\n$blankline\r\n", "tableUpdate": "{{\r\n let defKey = it.baseUpdate.next.defKey;\r\n let defName = it.baseUpdate.next.defName;\r\n let intro = it.baseUpdate.next.intro;\r\n let indexFields = it.indexFields;\r\n let isPrimaryKeyModified = it.isPrimaryKeyModified;\r\n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\r\n const tableKey = `${schemaName}${it.defKey}`;\r\n const updateKeys = it?.baseUpdate?.updateKeys?.split(\",\") || [];\r\n}}\r\n{{? updateKeys.some((item) => item === 'defName' || item === 'intro') }}\r\nALTER TABLE {{= tableKey }} MODIFY COMMENT '{{=it.func.strJoin(defName, intro, \";\", true)}}';\r\n{{?}}\r\n{{? updateKeys.some((item) => item === 'defKey') }}ALTER TABLE {{= tableKey }} RENAME {{=defKey}};{{?}}\r\n", "tableDelete": "{{\n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\n const tableKey = `${schemaName}${it.defKey}`;\n}}\nDROP TABLE IF EXISTS {{= tableKey }};", "columnCreate": "{{\n let fieldsUpdate = it.fieldsUpdate;\n const computeDatatype = (field) => {\n const { dbDataType, dataLen, numScale, defaultValue, autoIncrement } = field;\n if(!dbDataType) {\n return '';\n }\n if(dbDataType.toUpperCase() === 'INT' ||\n dbDataType.toUpperCase() === 'VARCHAR' ||\n dbDataType.toUpperCase() === 'SMALLINT' ||\n dbDataType.toUpperCase() === 'BIGINT') {\n return `${dbDataType} ${dataLen ? `(${dataLen})` : ''}`;\n } else if(dbDataType.toUpperCase() === 'DATE' ||\n dbDataType.toUpperCase() === 'JSON') {\n return dbDataType; \n } else if(dbDataType.toUpperCase() === 'DECIMAL') {\n return `${dbDataType} ${(dataLen && dataLen >= 0 && dataLen <= 6) ? `(${dataLen})` : ''}`;\n } else if(dbDataType.toUpperCase() === 'DATETIME') {\n return `${dbDataType} ${(dataLen && dataLen >= 0 && dataLen <= 38) ? ((numScale && numScale >= 0 && numScale <= dataLen) ? `(${dataLen},${numScale})` : `(${dataLen})` ) : ''}`;\n } else if(dbDataType.toUpperCase() === 'TIMESTAMP') {\n return `${dbDataType} ${(dataLen && dataLen >= 0 && dataLen <= 9) ? `(${dataLen})` : ''}`;\n } else if(dataLen && dataLen >= 0) {\n return `${dbDataType} (${dataLen})`;\n }\n return dbDataType;\n };\n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\n const tableKey = `${schemaName}${it.defKey}`;\n \n}}\n{{~fieldsUpdate:field:index}}\n{{\n const finalDataType = computeDatatype(field);\n}}\nALTER TABLE {{= tableKey }} ADD COLUMN {{= field.defKey}} {{= finalDataType}}{{= field.autoIncrement ? ' AUTO_INCREMENT ' : '' }}{{? field.notNull}} NOT NULL {{?}}{{? field.defaultValue}} DEFAULT {{= field.defaultValue}}{{?}}{{? field.defName || field.intro }} COMMENT '{{=it.func.strJoin(field.defName, field.intro, \";\", true)}}'{{?}};\n{{~}}", "columnUpdate": "{{\n let fieldsUpdate = it.fieldsUpdate;\n const computeDatatype = (field) => {\n const { dbDataType, dataLen, numScale, defaultValue, autoIncrement } = field;\n if(!dbDataType) {\n return '';\n }\n if(dbDataType.toUpperCase() === 'INT' ||\n dbDataType.toUpperCase() === 'VARCHAR' ||\n dbDataType.toUpperCase() === 'SMALLINT' ||\n dbDataType.toUpperCase() === 'BIGINT') {\n return `${dbDataType} ${dataLen ? `(${dataLen})` : ''}`;\n } else if(dbDataType.toUpperCase() === 'DATE' ||\n dbDataType.toUpperCase() === 'JSON') {\n return dbDataType; \n } else if(dbDataType.toUpperCase() === 'DECIMAL') {\n return `${dbDataType} ${(dataLen && dataLen >= 0 && dataLen <= 6) ? `(${dataLen})` : ''}`;\n } else if(dbDataType.toUpperCase() === 'DATETIME') {\n return `${dbDataType} ${(dataLen && dataLen >= 0 && dataLen <= 38) ? ((numScale && numScale >= 0 && numScale <= dataLen) ? `(${dataLen},${numScale})` : `(${dataLen})` ) : ''}`;\n } else if(dbDataType.toUpperCase() === 'TIMESTAMP') {\n return `${dbDataType} ${(dataLen && dataLen >= 0 && dataLen <= 9) ? `(${dataLen})` : ''}`;\n } else if(dataLen && dataLen >= 0) {\n return `${dbDataType} (${dataLen})`;\n }\n return dbDataType;\n };\n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\n const tableKey = `${schemaName}${it.defKey}`;\n}}\n{{~fieldsUpdate:field:index}}\n{{ \n const updateKeys = field?.baseUpdate?.updateKeys?.split(\",\") || [];\n const finalDataType = computeDatatype(field);\n const preDefKey = field?.baseUpdate?.pre?.defKey;\n const nextDefKey = field?.baseUpdate?.next?.defKey;\n}}\n{{? updateKeys.includes('defKey')}}\nALTER TABLE {{= tableKey }} RENAME COLUMN {{=preDefKey}} {{=field.defKey}};;\n{{?}}\n{{? updateKeys.includes('defaultValue')}}\nALTER TABLE {{= tableKey }} ALTER COLUMN `{{=field.defKey}}` SET DEFAULT {{=field.defaultValue}};\n{{?}}\nALTER TABLE {{= tableKey }} MODIFY COLUMN `{{=field.defKey}}` {{=finalDataType}}{{= field.notNull ? ' NOT NULL' : '' }}{{= field.autoIncrement ? ' AUTO_INCREMENT ' : '' }}{{? field.defaultValue }} DEFAULT {{=field.defaultValue}}{{?}}{{? field.defName || field.intro }} COMMENT '{{=it.func.strJoin(field.defName, field.intro, \";\", true)}}'{{?}};\n{{~}}\n", "columnDelete": "{{\n let fieldsUpdate = it.fieldsUpdate; \n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\n const tableKey = `${schemaName}${it.defKey}`;\n}}\n{{~fieldsUpdate:field:index}}\nALTER TABLE {{= tableKey }} DROP COLUMN {{=field.defKey}};\n{{~}}", "indexCreate": "{{\r\n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\r\n const tableKey = `${schemaName}${it.defKey}`;\r\n}}\r\n{{~it.indexes:row:index}}\r\n{{? row.fields && row.fields.length === 1 && row.defKey}}\r\nALTER TABLE {{= tableKey }} ADD INDEX {{=row.defKey}} ({{~row.fields:field:idx}} {{=field.fieldDefKey}} {{~}}) {{? row.defName || row.intro }} COMMENT '{{=it.func.strJoin(row.defName, row.intro, \";\", true)}}'{{?}};\r\n{{?}}\r\n{{~}}\r\n", "indexUpdate": "{{ \n let indexesUpdate = it.indexesUpdate;\n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\n const tableKey = `${schemaName}${it.defKey}`;\n}}\n{{~indexesUpdate:row:index}}\n{{\n let updateKeys = row.baseUpdate.updateKeys.split(',');\n let preDefKey = row.baseUpdate.pre.defKey;\n}}\nALTER TABLE {{=it.defKey}}\nDROP INDEX {{= schemaName }}{{? updateKeys.includes('defKey')}}{{=preDefKey}}{{??}}{{=row.defKey}}{{?}}, \nADD {{? row.type.toUpperCase() === 'UNIQUE'}} {{=row.type}} {{?}} INDEX {{= schemaName }}{{=row.defKey}}(\n {{~row.fields:field:idx}}\n `{{=field.fieldDefKey}}` {{=field.sortType}}{{= idx < row.fields.length - 1 ? ',' : ''}}\n {{~}}\n){{? row.defName || row.intro }}COMMENT '{{=it.func.strJoin(row.defName, row.intro, \";\", true)}}'{{?}};\n{{~}}", "indexDelete": "{{\r\n let indexesUpdate = it.indexesUpdate; \r\n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\r\n const tableKey = `${schemaName}${it.defKey}`;\r\n}}\r\n{{~indexesUpdate:index:i}}\r\nDROP INDEX {{=index.defKey}} ON {{= tableKey }};\r\n{{~}}", "metaTableQuery": "SELECT\n null AS id,\n table_name AS def_key,\n table_comment AS def_name,\n table_schema AS schema_name\nFROM\n information_schema.tables\nWHERE table_type = 'BASE TABLE'\n and table_schema IN (:schemaName)", "metaColumnQuery": "SELECT\n table_schema AS schema_name,\n table_name AS tbl_def_key,\n ordinal_position as order_value,\n column_name AS def_key,\n column_comment AS def_name,\n '' AS intro,\n data_type AS db_data_type,\n IF(data_type = column_type,NULL,COALESCE ( character_maximum_length, numeric_precision )) AS data_len,\n IF(data_type = column_type, NULL, numeric_scale ) AS num_scale,\n IF(column_key = 'PRI', 1, 0 ) AS primary_key,\n IF(is_nullable = 'YES', 0, 1 ) AS not_null,\n IF(extra = 'AUTO_INCREMENT', 1, 0 ) AS auto_increment,\n column_default AS default_value\nFROM\n information_schema.COLUMNS\nWHERE\n table_schema IN (:schemaName)\n and CONCAT(table_schema, '.', table_name) in (:sysTableNames)\nORDER BY\n table_schema ASC,\n table_name ASC,\n ordinal_position ASC", "metaIndexQuery": "SELECT TABLE_NAME AS TBL_DEF_KEY,\r\n COLUMN_NAME AS COL_DEF_KEY,\r\n INDEX_COMMENT AS DEF_NAME,\r\n COMMENT AS INTRO,\r\n IF (COLLATION = 'A', 'ASC', 'DESC') AS SORT_TYPE,\r\n IF (NON_UNIQUE = 1, 'NORMAL', 'UNIQUE') AS TYPE,\r\n SEQ_IN_INDEX AS ORDER_VALUE,\r\n INDEX_NAME AS DEF_KEY FROM information_schema.STATISTICS\r\nWHERE INDEX_SCHEMA IN (:schemaName) AND CONCAT(TRIM(INDEX_SCHEMA), '.', TRIM(TABLE_NAME)) IN (:sysTableNames) AND INDEX_NAME != 'PRIMARY'\r\nORDER BY TBL_DEF_KEY, DEF_KEY, ORDER_VALUE", "metaQueryCharset": null, "orderValue": 17, "isEnabled": 0, "id": "BPQHE5O6A64AC" }, { "defKey": "StarRocks", "defName": null, "icon": "", "driverFiles": "mysql-connector-j-8.3.0.jar", "jdbcReferDriver": "com.mysql.jdbc.Driver", "jdbcReferUrl": "jdbc:mysql://[ip]:[port]/[dbname]?characterEncoding=UTF-8&useSSL=false&useUnicode=true&serverTimezone=UTC", "tableCreate": "{{\r\n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\r\n const tableKey = `${schemaName}${it.defKey}`;\r\n\r\n function getDataType(field) {\r\n const { dbDataType } = field;\r\n if(!dbDataType) {\r\n return '';\r\n }\r\n const dataType = dbDataType.toUpperCase();\r\n if (dataType === 'VARCHAR') {\r\n return `${dataType}(${field.dataLen ? field.dataLen : 128})`;\r\n } else if (['DATE','STRING','FLOAT','BOOLEAN','DOUBLE','JSON','DATETIME'].includes(dataType)) {\r\n return dataType;\r\n } else if (dataType === 'DECIMAL') {\r\n if (field.dataLen) {\r\n if(field.dataLen>=1 && field.dataLen<=38) {\r\n return `${dataType}(${field.dataLen},${field.numScale ? field.numScale : 0})`;\r\n }\r\n else {\r\n return dataType;\r\n }\r\n }\r\n } else if(['BIGINT','INT','CHAR','SMALLINT','VARBINARY','BINARY'].includes(dataType)) {\r\n return field.dataLen ? `${dataType}(${field.dataLen})` : dataType;\r\n } else {\r\n return field.dataLen ? `${dataType}(${field.dataLen})` : dataType;\r\n }\r\n }\r\n\r\n function getFieldDefinition(field, index, fields) {\r\n const dataType = getDataType(field);\r\n const notNull = field.notNull ? ' NOT NULL' : '';\r\n const defaultValue = field.defaultValue ? ` DEFAULT ${field.defaultValue}` : '';\r\n const comment = ` COMMENT '${it.func.strJoin(field.defName, field.intro, \";\", true)}'`;\r\n return `${dataType}${notNull}${defaultValue}${comment}${index < nonPkList.length-1 ? ',' : ''}`;\r\n }\r\n}}\r\nDROP TABLE IF EXISTS {{= tableKey }};\r\n\r\nCREATE TABLE {{= tableKey }}(\r\n{{ pkList = [] ; nonPkList = [] ; }}\r\n{{~it.fields:field:index}}{{? field.primaryKey }}{{ pkList.push(field) }}{{??}}{{ nonPkList.push(field) }}{{?}}{{~}}\r\n{{~pkList:field:index}}\r\n `{{=field.defKey}}` {{= getFieldDefinition(field, index, it.fields) }}{{?}}\r\n{{~nonPkList:field:index}}\r\n `{{=field.defKey}}` {{= getFieldDefinition(field, index, it.fields) }}{{?}}\r\n{{~}}\r\n){{? pkList.length > 0 }} PRIMARY KEY ({{~pkList:field:index}}`{{= field.defKey }}`{{= index < pkList.length-1 ? ',' : '' }}{{~}}){{?}}{{?\r\nit.defName || it.intro }} COMMENT '{{=it.func.strJoin(it.defName, it.intro, \";\", true)}}'{{?}};\r\n\r\n$blankline\r\n", "tableUpdate": "{{\r\n let defKey = it.baseUpdate.next.defKey;\r\n let defName = it.baseUpdate.next.defName;\r\n let intro = it.baseUpdate.next.intro;\r\n let indexFields = it.indexFields;\r\n let isPrimaryKeyModified = it.isPrimaryKeyModified;\r\n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\r\n const tableKey = `${schemaName}${it.defKey}`;\r\n const updateKeys = it?.baseUpdate?.updateKeys?.split(\",\") || [];\r\n}}\r\n{{? isPrimaryKeyModified }}\r\nALTER TABLE {{= tableKey }} DROP PRIMARY KEY;\r\n{{? indexFields && indexFields.length > 0}}\r\nALTER TABLE {{= tableKey }} ADD CONSTRAINT constraint_name PRIMARY KEY({{~indexFields:field:i}}{{= field.defKey }} {{= i < indexFields.length-1 ? ',' : '' }}{{~}});\r\n{{?}}\r\n{{?}}\r\n{{? updateKeys.some((item) => item === 'defName' || item === 'intro') }}\r\nCOMMENT ON TABLE {{= tableKey }} IS '{{=it.func.strJoin(defName, intro, \";\", true)}}';\r\n{{?}}\r\n{{? updateKeys.some((item) => item === 'defKey') }}ALTER TABLE {{= tableKey }} RENAME {{=defKey}};{{?}}\r\n", "tableDelete": "{{\n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\n const tableKey = `${schemaName}${it.defKey}`;\n}}\nDROP TABLE IF EXISTS {{= tableKey }};", "columnCreate": "{{\n let fieldsUpdate = it.fieldsUpdate;\n const computeDatatype = (field) => {\n const { dbDataType, dataLen, numScale, defaultValue, autoIncrement } = field;\n if(!dbDataType) {\n return '';\n }\n if(dbDataType.toUpperCase() === 'BIGINT' ||\n dbDataType.toUpperCase() === 'CHAR' ||\n dbDataType.toUpperCase() === 'INT' ||\n dbDataType.toUpperCase() === 'SMALLINT' ||\n dbDataType.toUpperCase() === 'VARBINARY' ||\n dbDataType.toUpperCase() === 'BINARY') {\n return `${dbDataType} ${(dataLen && dataLen > 0) ? `(${dataLen})` : ''}`;\n } else if(dbDataType.toUpperCase() === 'VARCHAR') {\n return `${dbDataType} (${(dataLen && dataLen > 0) ? dataLen : 128})`;\n } else if(dbDataType.toUpperCase() === 'DATE' ||\n dbDataType.toUpperCase() === 'STRING' ||\n dbDataType.toUpperCase() === 'FLOAT' ||\n dbDataType.toUpperCase() === 'DATETIME' ||\n dbDataType.toUpperCase() === 'BOOLEAN' ||\n dbDataType.toUpperCase() === 'DOUBLE' ||\n dbDataType.toUpperCase() === 'JSON') {\n return dbDataType;\n } else if(dbDataType.toUpperCase() === 'DECIMAL') {\n return `${dbDataType} ${(dataLen && dataLen >= 1 && dataLen <= 38) ? ((numScale && numScale >= 0 && numScale <= dataLen) ? `(${dataLen},${numScale})` : `(${dataLen})` ) : ''}`;\n }\n return dbDataType;\n };\n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\n const tableKey = `${schemaName}${it.defKey}`;\n}}\n{{~fieldsUpdate:field:index}}\n{{\n const finalDataType = computeDatatype(field);\n}}\nALTER TABLE {{= tableKey }} ADD COLUMN {{= field.defKey}} {{= finalDataType}}{{? field.notNull}} NOT NULL {{?}}{{? field.defaultValue}} DEFAULT {{= field.defaultValue}}{{?}}{{? field.defName || field.intro }} COMMENT '{{=it.func.strJoin(field.defName, field.intro, \";\", true)}}'{{?}};\n{{~}}", "columnUpdate": "{{\n let fieldsUpdate = it.fieldsUpdate;\n const computeDatatype = (field) => {\n const { dbDataType, dataLen, numScale, defaultValue, autoIncrement } = field;\n if(!dbDataType) {\n return '';\n }\n if(dbDataType.toUpperCase() === 'BIGINT' ||\n dbDataType.toUpperCase() === 'CHAR' ||\n dbDataType.toUpperCase() === 'INT' ||\n dbDataType.toUpperCase() === 'SMALLINT' ||\n dbDataType.toUpperCase() === 'VARBINARY' ||\n dbDataType.toUpperCase() === 'BINARY') {\n return `${dbDataType} ${(dataLen && dataLen > 0) ? `(${dataLen})` : ''}`;\n } else if(dbDataType.toUpperCase() === 'VARCHAR') {\n return `${dbDataType} (${(dataLen && dataLen > 0) ? dataLen : 128})`;\n } else if(dbDataType.toUpperCase() === 'DATE' ||\n dbDataType.toUpperCase() === 'STRING' ||\n dbDataType.toUpperCase() === 'FLOAT' ||\n dbDataType.toUpperCase() === 'DATETIME' ||\n dbDataType.toUpperCase() === 'BOOLEAN' ||\n dbDataType.toUpperCase() === 'DOUBLE' ||\n dbDataType.toUpperCase() === 'JSON') {\n return dbDataType;\n } else if(dbDataType.toUpperCase() === 'DECIMAL') {\n return `${dbDataType} ${(dataLen && dataLen >= 1 && dataLen <= 38) ? ((numScale && numScale >= 0 && numScale <= dataLen) ? `(${dataLen},${numScale})` : `(${dataLen})` ) : ''}`;\n }\n return dbDataType;\n };\n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\n const tableKey = `${schemaName}${it.defKey}`;\n}}\n{{~fieldsUpdate:field:index}}\n{{\n const updateKeys = field?.baseUpdate?.updateKeys?.split(\",\") || [];\n const finalDataType = computeDatatype(field);\n const preDefKey = field?.baseUpdate?.pre?.defKey;\n const nextDefKey = field?.baseUpdate?.next?.defKey;\n}}\n{{? updateKeys.includes('defKey') }}ALTER TABLE {{= tableKey }} RENAME COLUMN {{= preDefKey }} TO {{= field.defKey }};{{?}}\n{{? updateKeys.some((item) => item === 'dbDataType' || item === 'dataLen' || item === 'numScale' || item === 'defName' || item === 'intro') }}\nALTER TABLE {{= tableKey }} MODIFY COLUMN {{= field.defKey }} {{= finalDataType}} COMMENT '{{=it.func.strJoin(field.defName, field.intro, \";\", true)}}';\n{{?}}\n{{~}}", "columnDelete": "{{\n let fieldsUpdate = it.fieldsUpdate; \n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\n const tableKey = `${schemaName}${it.defKey}`;\n}}\n{{~fieldsUpdate:field:index}}\nALTER TABLE {{= tableKey }} DROP COLUMN {{=field.defKey}};\n{{~}}", "indexCreate": "{{\r\n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\r\n const tableKey = `${schemaName}${it.defKey}`;\r\n}}\r\n{{~it.indexes:row:index}}\r\n{{? row.fields.length && row.fields.length === 1 && row.defKey}}\r\nCREATE {{? row.type.toUpperCase() === 'UNIQUE'}}{{=row.type}}{{?}} INDEX {{=row.defKey}} ON {{= tableKey }} (\r\n {{~row.fields:field:idx}} {{=field.fieldDefKey}} {{= idx < row.fields.length - 1 ? ',' : ''}} {{~}}\r\n) {{? row.defName || row.intro }} COMMENT '{{=it.func.strJoin(row.defName, row.intro, \";\", true)}}' {{?}};\r\n{{?}}\r\n{{~}}\r\n", "indexUpdate": "{{ \n let indexesUpdate = it.indexesUpdate;\n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\n const tableKey = `${schemaName}${it.defKey}`;\n}}\n{{~indexesUpdate:row:index}}\n{{\n const updateKeys = row?.baseUpdate?.updateKeys?.split(\",\") || [];\n const fieldsUpdate = row.fieldsUpdate || [];\n const preDefKey = row?.baseUpdate?.pre?.defKey;\n \n}}\n{{? updateKeys.some((item) => item === 'defKey' || item === 'type') || fieldsUpdate.length > 0 }}\nALTER TABLE {{= it.defKey}} DROP INDEX {{? preDefKey}} {{= preDefKey}}{{??}} {{=row.defKey}}{{?}};\n{{? row.fields.length && row.fields.length === 1 && row.defKey}}\nCREATE {{? row.type.toUpperCase() === 'UNIQUE'}}{{=row.type}}{{?}} INDEX {{=row.defKey}} ON {{= tableKey }}(\n {{~row.fields:field:idx}} {{=field.fieldDefKey}} {{= idx < row.fields.length - 1 ? ',' : ''}}{{~}}\n){{? row.defName || row.intro }} COMMENT '{{=it.func.strJoin(row.defName, row.intro, \";\", true)}}'{{?}};\n{{?}}\n{{?}}\n{{~}}", "indexDelete": "{{\n let indexesUpdate = it.indexesUpdate; \n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\n const tableKey = `${schemaName}${it.defKey}`;\n}}\n{{~indexesUpdate:row:i}}\nALTER TABLE {{= tableKey }} DROP INDEX {{=row.defKey}};\n{{~}}", "metaTableQuery": "SELECT\n null AS id,\n table_name AS def_key,\n table_comment AS def_name,\n table_schema AS schema_name\nFROM\n information_schema.tables\nWHERE table_type = 'BASE TABLE'\n and table_schema IN (:schemaName)", "metaColumnQuery": "SELECT\n table_schema AS schema_name,\n table_name AS tbl_def_key,\n ordinal_position as order_value,\n column_name AS def_key,\n column_comment AS def_name,\n '' AS intro,\n data_type AS db_data_type,\n IF(data_type = column_type,NULL,COALESCE ( character_maximum_length, numeric_precision )) AS data_len,\n IF(data_type = column_type, NULL, numeric_scale ) AS num_scale,\n IF(column_key = 'PRI', 1, 0 ) AS primary_key,\n IF(is_nullable = 'YES', 0, 1 ) AS not_null,\n IF(extra = 'AUTO_INCREMENT', 1, 0 ) AS auto_increment,\n column_default AS default_value\nFROM\n information_schema.COLUMNS\nWHERE\n table_schema IN (:schemaName)\n and CONCAT(table_schema, '.', table_name) in (:sysTableNames)\nORDER BY\n table_schema ASC,\n table_name ASC,\n ordinal_position ASC", "metaIndexQuery": "SELECT INDEX_SCHEMA AS SCHEMA_NAME,\r\n TABLE_NAME AS TBL_DEF_KEY,\r\n COLUMN_NAME AS COL_DEF_KEY,\r\n INDEX_COMMENT AS DEF_NAME,\r\n COMMENT AS INTRO,\r\n IF (COLLATION = 'A', 'ASC', 'DESC') AS SORT_TYPE,\r\n IF (NON_UNIQUE = 1, 'NORMAL', 'UNIQUE') AS TYPE,\r\n SEQ_IN_INDEX AS ORDER_VALUE,\r\n INDEX_NAME AS DEF_KEY FROM information_schema.STATISTICS\r\nWHERE INDEX_SCHEMA IN (:schemaName) AND CONCAT(INDEX_SCHEMA, '.', TABLE_NAME) IN (:sysTableNames) AND INDEX_NAME != 'PRIMARY'\r\nORDER BY INDEX_SCHEMA, TBL_DEF_KEY, DEF_KEY, ORDER_VALUE", "metaQueryCharset": null, "orderValue": 18, "isEnabled": 0, "id": "1KLNTK63RV002" }, { "defKey": "Impala", "defName": null, "icon": "\n \n \n \n \n ", "driverFiles": "ImpalaJDBC42.jar;postgresql-42.6.0.jar", "jdbcReferDriver": "com.cloudera.impala.jdbc.Driver", "jdbcReferUrl": "jdbc:impala://[ip]:[port]", "tableCreate": "{{\r\n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\r\n const tableKey = `${schemaName}${it.defKey}`;\r\n\r\n function getDataType(field) {\r\n const { dbDataType } = field;\r\n if(!dbDataType) {\r\n return '';\r\n }\r\n const dataType = dbDataType.toUpperCase();\r\n if (['VARCHAR','CHAR'].includes(dataType)) {\r\n return `${dataType}(${field.dataLen ? field.dataLen : 128})`;\r\n } else if (dataType === 'DECIMAL') {\r\n return field.dataLen && field.dataLen >= 1 && field.dataLen <= 38 ? (field.numScale && field.numScale >= 0 && field.numScale <= field.dataLen ? `${dataType}(${field.dataLen},${field.numScale})` : `${dataType}(${field.dataLen})`) : `${dataType}`;\r\n\r\n } else if (dataType === 'TEXT') {\r\n return dataType;\r\n }else {\r\n return field.dataLen && field.dataLen >= 0 ? `${dataType}(${field.dataLen})` : dataType;\r\n }\r\n }\r\n\r\n function getFieldDefinition(field, index, fields) {\r\n const dataType = getDataType(field);\r\n const comment = ` COMMENT '${it.func.strJoin(field.defName, field.intro, \";\", true)}'`;\r\n return `${dataType}${comment}${index < fields.length - 1 || pkList.length > 0 ? ',' : ''}`;\r\n }\r\n}}\r\nDROP TABLE IF EXISTS {{= tableKey }};\r\n\r\nCREATE TABLE {{= tableKey }}(\r\n{{ pkList = [] ; }}\r\n{{~it.fields:field:index}}\r\n {{? field.primaryKey }}{{ pkList.push(field.defKey) }}{{?}}\r\n `{{=field.defKey}}` {{= getFieldDefinition(field, index, it.fields) }}\r\n{{~}}\r\n){{? (it.intro && it.intro !== '') || (it.defName && it.defName !== '') }} COMMENT '{{=it.func.strJoin(it.defName, it.intro, \";\", true)}}'{{?}};\r\n$blankline\r\nSTORED AS PARQUET TBLPROPERTIES ('transactional'='false');", "tableUpdate": "{{\r\n let defKey = it.baseUpdate.next.defKey;\r\n let defName = it.baseUpdate.next.defName;\r\n let intro = it.baseUpdate.next.intro;\r\n let indexFields = it.indexFields;\r\n let isPrimaryKeyModified = it.isPrimaryKeyModified;\r\n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\r\n const tableKey = `${schemaName}${it.defKey}`;\r\n const updateKeys = it?.baseUpdate?.updateKeys?.split(\",\") || [];\r\n}}\r\n{{? updateKeys.some((item) => item === 'defName' || item === 'intro') }}\r\nCOMMENT ON TABLE {{= tableKey }} is '{{=it.func.strJoin(defName, intro, \";\", true)}}';\r\n{{?}}\r\n{{? updateKeys.some((item) => item === 'defKey') }}ALTER TABLE {{= tableKey }} RENAME TO {{=defKey}};{{?}}\r\n", "tableDelete": "{{\n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\n const tableKey = `${schemaName}${it.defKey}`;\n}}\nDROP TABLE IF EXISTS {{= tableKey }};", "columnCreate": "{{\n let fieldsUpdate = it.fieldsUpdate;\n const computeDatatype = (field) => {\n const { dbDataType, dataLen, numScale, defaultValue, autoIncrement } = field;\n if(!dbDataType) {\n return '';\n }\n if(dbDataType.toUpperCase() === 'CHAR') {\n return `${dbDataType} (${(dataLen && dataLen > 0) ? dataLen : 128})`;\n } else if(dbDataType.toUpperCase() === 'VARCHAR') {\n return `${dbDataType} ${(dataLen && dataLen > 0) ? `(${dataLen})` : ''}`;\n } else if(dbDataType.toUpperCase() === 'DECIMAL' && dataLen) {\n return `${dbDataType} ${(dataLen && dataLen >= 1 && dataLen <= 38) ? ((numScale && numScale >= 0 && numScale <= dataLen) ? `(${dataLen},${numScale})` : `(${dataLen})` ) : ''}`;\n }\n return dbDataType;\n };\n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\n const tableKey = `${schemaName}${it.defKey}`;\n}}\nALTER TABLE {{= tableKey }} ADD COLUMNS ({{~fieldsUpdate:field:index}} \n {{= field.defKey}} {{=computeDatatype(field)}}{{? field.defName || field.intro }} COMMENT '{{=it.func.strJoin(field.defName, field.intro, \";\", true)}}'{{?}}{{= index < fieldsUpdate.length - 1 ? ',' : '' }} \n{{~}});\n", "columnUpdate": "{{\n let fieldsUpdate = it.fieldsUpdate;\n const computeDatatype = (field) => {\n const { dbDataType, dataLen, numScale, defaultValue, autoIncrement } = field;\n if(!dbDataType) {\n return '';\n }\n if(dbDataType.toUpperCase() === 'CHAR') {\n return `${dbDataType} (${(dataLen && dataLen > 0) ? dataLen : 128})`;\n } else if(dbDataType.toUpperCase() === 'VARCHAR') {\n return `${dbDataType} ${(dataLen && dataLen > 0) ? `(${dataLen})` : ''}`;\n } else if(dbDataType.toUpperCase() === 'DECIMAL' && dataLen) {\n return `${dbDataType} ${(dataLen && dataLen >= 1 && dataLen <= 38) ? ((numScale && numScale >= 0 && numScale <= dataLen) ? `(${dataLen},${numScale})` : `(${dataLen})` ) : ''}`;\n }\n return dbDataType;\n };\n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\n const tableKey = `${schemaName}${it.defKey}`;\n}}\n{{~fieldsUpdate:field:index}}\n{{\n const updateKeys = field?.baseUpdate?.updateKeys?.split(\",\") || [];\n const finalDataType = computeDatatype(field);\n const preDefKey = field?.baseUpdate?.pre?.defKey;\n const nextDefKey = field?.baseUpdate?.next?.defKey;\n}}\nALTER TABLE {{= tableKey }} CHANGE COLUMN {{= preDefKey || field.defKey}} {{= nextDefKey || field.defKey}} {{= finalDataType}} COMMENT '{{=it.func.strJoin(field.defName, field.intro, \";\", true)}}';\n{{~}}", "columnDelete": "{{\n let fieldsUpdate = it.fieldsUpdate; \n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\n const tableKey = `${schemaName}${it.defKey}`;\n}}\n{{~fieldsUpdate:field:index}}\nALTER TABLE {{= tableKey }} DROP COLUMN {{=field.defKey}};\n{{~}}", "indexCreate": "", "indexUpdate": null, "indexDelete": "", "metaTableQuery": "SELECT\r\n tbl.\"TBL_NAME\" AS def_key -- 表名\r\n ,tbl_params.\"PARAM_VALUE\" AS def_name -- 表注释\r\n ,db.\"NAME\" AS schema_name -- 数据库名\r\nFROM\r\n \"SDS\" SDS\r\n LEFT JOIN \"TBLS\" tbl ON sds.\"SD_ID\" = tbl.\"SD_ID\"\r\n LEFT JOIN \"TABLE_PARAMS\" tbl_params ON tbl.\"TBL_ID\" = tbl_params.\"TBL_ID\" AND tbl_params.\"PARAM_KEY\" = 'comment'\r\n LEFT JOIN \"PARTITION_KEYS\" partkey ON tbl.\"TBL_ID\" = partkey.\"TBL_ID\"\r\n LEFT JOIN \"DBS\" db ON tbl.\"DB_ID\" = db.\"DB_ID\" -- 过滤数据库\r\nWHERE\r\n tbl.\"TBL_NAME\" IS NOT NULL\r\n AND db.\"NAME\" IN (:schemaName)", "metaColumnQuery": "SELECT\r\n tbl.\"TBL_NAME\" AS tbl_def_key,\r\n tbl_params.\"PARAM_VALUE\" AS tbl_comment,\r\n col.\"COLUMN_NAME\" AS def_key,\r\n col.\"COMMENT\" AS def_name,\r\n CASE WHEN\r\n POSITION('(' IN col.\"TYPE_NAME\") = 0\r\n THEN 0 ELSE (STRING_TO_ARRAY(SUBSTRING(col.\"TYPE_NAME\", POSITION('(' IN col.\"TYPE_NAME\") + 1, POSITION(')' IN col.\"TYPE_NAME\") - POSITION('(' IN col.\"TYPE_NAME\") - 1), ','))[1]::INTEGER END AS data_len,\r\n CASE WHEN\r\n POSITION('(' IN col.\"TYPE_NAME\") = 0\r\n THEN 0 ELSE (STRING_TO_ARRAY(SUBSTRING(col.\"TYPE_NAME\", POSITION('(' IN col.\"TYPE_NAME\") + 1, POSITION(')' IN col.\"TYPE_NAME\") - POSITION('(' IN col.\"TYPE_NAME\") - 1), ','))[2]::INTEGER END AS num_scale,\r\n SUBSTRING(col.\"TYPE_NAME\", '^[^\\\\(]+') AS db_data_type,\r\n db.\"NAME\" AS schema_name\r\nFROM\r\n \"SDS\" sds\r\n LEFT JOIN \"TBLS\" tbl ON sds.\"SD_ID\" = tbl.\"SD_ID\"\r\n LEFT JOIN \"TABLE_PARAMS\" tbl_params ON tbl.\"TBL_ID\" = tbl_params.\"TBL_ID\" AND tbl_params.\"PARAM_KEY\" = 'comment'\r\n LEFT JOIN \"PARTITION_KEYS\" partkey ON tbl.\"TBL_ID\" = partkey.\"TBL_ID\"\r\n LEFT JOIN \"DBS\" db ON tbl.\"DB_ID\" = db.\"DB_ID\"\r\n LEFT JOIN \"COLUMNS_V2\" col ON sds.\"CD_ID\" = col.\"CD_ID\"\r\nWHERE\r\n tbl.\"TBL_NAME\" IS NOT NULL\r\n AND db.\"NAME\" IN (:schemaName)\r\n AND CONCAT(db.\"NAME\", '.', tbl.\"TBL_NAME\") IN (:sysTableNames)\r\nORDER BY schema_name, ASC, tbl_def_key ASC", "metaIndexQuery": null, "metaQueryCharset": null, "orderValue": 19, "isEnabled": 0, "id": "BPQHETM4U64AB" }, { "defKey": "MaxCompute", "defName": null, "icon": "\n \n \n \n \n ", "driverFiles": "odps-jdbc-3.5.8-jar-with-dependencies.jar", "jdbcReferDriver": "com.aliyun.odps.jdbc.OdpsDriver", "jdbcReferUrl": "jdbc:odps://[ip]:[port]?project=[database]", "tableCreate": "{{\r\n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\r\n const tableKey = `${schemaName}${it.defKey}`;\r\n\r\n function getDataType(field) {\r\n const { dbDataType } = field;\r\n if(!dbDataType) {\r\n return '';\r\n }\r\n const dataType = dbDataType.toUpperCase();\r\n if (['VARCHAR','CHAR'].includes(dataType)) {\r\n return `${dataType}(${field.dataLen ? field.dataLen : 128})`;\r\n } else if (dataType === 'DECIMAL') {\r\n return field.dataLen && field.dataLen >= 0 ? `${dataType}(${field.dataLen},${field.numScale ? field.numScale : 0})` : `${dataType}(0, 0)`;\r\n } else if (dataType === 'TEXT') {\r\n return dataType;\r\n }else {\r\n return field.dataLen && field.dataLen >= 0 ? `${dataType}(${field.dataLen})` : dataType;\r\n }\r\n }\r\n\r\n function getFieldDefinition(field, index, fields) {\r\n const dataType = getDataType(field);\r\n const notNull = field.notNull ? ' NOT NULL' : '';\r\n const autoIncrement = field.autoIncrement ? ' AUTO_INCREMENT' : '';\r\n const defaultValue = field.defaultValue ? ` DEFAULT ${field.defaultValue}` : '';\r\n const comment = ` COMMENT '${it.func.strJoin(field.defName, field.intro, \";\", true)}'`;\r\n return `${dataType}${notNull}${autoIncrement}${defaultValue}${comment}${index < fields.length - 1 || pkList.length > 0 ? ',' : ''}`;\r\n }\r\n}}\r\nDROP TABLE IF EXISTS {{= tableKey }};\r\n\r\nCREATE TABLE {{= tableKey }}(\r\n{{ pkList = [] ; }}\r\n{{~it.fields:field:index}}\r\n {{? field.primaryKey }}{{ pkList.push(field.defKey) }}{{?}}\r\n {{=field.defKey}} {{= getFieldDefinition(field, index, it.fields) }}\r\n{{~}}\r\n{{? pkList.length > 0 }}\r\n PRIMARY KEY ({{~pkList:pkName:i}}{{= pkName }}{{= i < pkList.length - 1 ? ',' : '' }}{{~}})\r\n{{?}}\r\n){{? (it.intro && it.intro !== '') || (it.defName && it.defName !== '') }} COMMENT '{{=it.func.strJoin(it.defName, it.intro, \";\", true)}}'{{?}};\r\n$blankline\r\n", "tableUpdate": "{{\r\n let defKey = it.baseUpdate.next.defKey;\r\n let defName = it.baseUpdate.next.defName;\r\n let intro = it.baseUpdate.next.intro;\r\n let indexFields = it.indexFields;\r\n let isPrimaryKeyModified = it.isPrimaryKeyModified;\r\n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\r\n const tableKey = `${schemaName}${it.defKey}`;\r\n const updateKeys = it?.baseUpdate?.updateKeys?.split(\",\") || [];\r\n}}\r\n{{? isPrimaryKeyModified }}\r\nALTER TABLE {{= tableKey }} DROP PRIMARY KEY;\r\n{{? indexFields && indexFields.length > 0}}\r\nALTER TABLE {{= tableKey }} ADD PRIMARY KEY({{~indexFields:field:i}}{{= field.defKey }} {{= i < indexFields.length-1 ? ',' : '' }}{{~}});\r\n{{?}}\r\n{{?}}\r\n{{? updateKeys.some((item) => item === 'defName' || item === 'intro') }}\r\nALTER TABLE {{= tableKey }} SET COMMENT '{{=it.func.strJoin(defName, intro, \";\", true)}}';\r\n{{?}}\r\n{{? updateKeys.some((item) => item === 'defKey') }}ALTER TABLE {{= tableKey }} RENAME TO {{=defKey}};{{?}}\r\n", "tableDelete": "{{\n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\n const tableKey = `${schemaName}${it.defKey}`;\n}}\nDROP TABLE IF EXISTS {{= tableKey }};", "columnCreate": "{{\r\n let fieldsUpdate = it.fieldsUpdate;\r\n const computeDatatype = (field) => {\r\n const { dbDataType, dataLen, numScale, defaultValue, autoIncrement } = field;\r\n if(!dbDataType) {\r\n return '';\r\n }\r\n if(dbDataType.toUpperCase() === 'VARCHAR' ||\r\n dbDataType.toUpperCase() === 'CHAR') {\r\n return `${dbDataType} (${dataLen ? dataLen : '128'})`; \r\n } else if(dbDataType.toUpperCase() === 'DECIMAL') {\r\n return `${dbDataType} ${(dataLen && dataLen >= 0) ? ((numScale && numScale >= 0) ? `(${dataLen},${numScale})` : `(${dataLen})` ) : ''}`;\r\n }\r\n return dbDataType;\r\n };\r\n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\r\n const tableKey = `${schemaName}${it.defKey}`;\r\n}}\r\n{{~fieldsUpdate:field:index}}\r\n{{\r\n const finalDataType = computeDatatype(field);\r\n}}\r\nALTER TABLE {{= tableKey }} ADD COLUMN {{= field.defKey }} {{= finalDataType}}{{? field.defaultValue}} DEFAULT {{= field.defaultValue}}{{?}}{{? field.defName || field.intro }} COMMENT '{{=it.func.strJoin(field.defName, field.intro, \";\", true)}}'\r\n{{?}};\r\n{{~}}\r\n\r\n", "columnUpdate": "{{\r\n let fieldsUpdate = it.fieldsUpdate;\r\n const computeDatatype = (field) => {\r\n const { dbDataType, dataLen, numScale, defaultValue, autoIncrement } = field;\r\n if(!dbDataType) {\r\n return '';\r\n }\r\n if(dbDataType.toUpperCase() === 'VARCHAR' ||\r\n dbDataType.toUpperCase() === 'CHAR') {\r\n return `${dbDataType} (${dataLen ? dataLen : '128'})`; \r\n } else if(dbDataType.toUpperCase() === 'DECIMAL') {\r\n return `${dbDataType} ${(dataLen && dataLen >= 0) ? ((numScale && numScale >= 0) ? `(${dataLen},${numScale})` : `(${dataLen})` ) : ''}`;\r\n }\r\n return dbDataType;\r\n };\r\n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\r\n const tableKey = `${schemaName}${it.defKey}`;\r\n}}\r\n{{~fieldsUpdate:field:index}}\r\n{{\r\n const updateKeys = field?.baseUpdate?.updateKeys?.split(\",\") || [];\r\n const finalDataType = computeDatatype(field);\r\n const preDefKey = field?.baseUpdate?.pre?.defKey;\r\n const nextDefKey = field?.baseUpdate?.next?.defKey;\r\n}}\r\n{{? updateKeys.includes('defKey') }}ALTER TABLE {{= tableKey }} RENAME COLUMN {{= preDefKey }} TO {{= field.defKey }};{{?}}\r\n{{? updateKeys.some((item) => item === 'dbDataType' || item === 'dataLen' || item === 'numScale') }}\r\nALTER TABLE {{= tableKey }} CHANGE {{= field.defKey}} {{= field.defKey}} {{= finalDataType}};\r\n{{?}}\r\n{{? updateKeys.some((item) => item === 'notNull') }}\r\nALTER TABLE {{= tableKey }} CHANGE COLUMN {{= field.defKey }} {{? field.notNull }} NOT NULL {{??}} NULL {{?}};\r\n{{?}}\r\n{{? updateKeys.some((item) => item === 'defName' || item === 'intro') }}\r\nALTER TABLE {{= tableKey }} CHANGE COLUMN {{= field.defKey }} COMMENT '{{=it.func.strJoin(field.defName, field.intro, \";\", true)}}'\r\n;\r\n{{?}}\r\n{{~}}", "columnDelete": "{{\n let fieldsUpdate = it.fieldsUpdate; \n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\n const tableKey = `${schemaName}${it.defKey}`;\n}}\nALTER TABLE {{= tableKey }} DROP COLUMNS ({{~fieldsUpdate:field:index}}{{=field.defKey}}{{= index < fieldsUpdate.length - 1 ? ',' : '' }}{{~}});", "indexCreate": "", "indexUpdate": null, "indexDelete": "", "metaTableQuery": "SELECT\r\n table_name AS def_key,\r\n table_comment AS def_name,\r\n table_schema AS schema_name\r\nFROM\r\n information_schema.tables\r\nWHERE table_type = 'MANAGED_TABLE'\r\n and table_schema IN (:schemaName)", "metaColumnQuery": "SELECT\r\n table_schema AS schema_name,\r\n table_name AS tbl_def_key,\r\n ordinal_position as order_value,\r\n column_name AS def_key,\r\n column_comment AS def_name,\r\n '' AS intro,\r\n REGEXP_REPLACE(data_type, '\\\\(.*\\\\)', '') AS db_data_type,\r\n CAST(REGEXP_REPLACE(data_type, '^.*\\\\((.*)[,.].*$', '\\\\1') AS INT) AS data_len,\r\n CAST(REGEXP_REPLACE(data_type, '^.*\\\\(([^,]+),([^)]+)\\\\)$', '\\\\2') AS INT) AS num_scale,\r\n IF(is_nullable, 0, 1),\r\n column_default AS default_value\r\nFROM\r\n information_schema.COLUMNS\r\nWHERE\r\n table_schema IN (:schemaName)\r\n and CONCAT(table_schema, '.', table_name) in (:sysTableNames)\r\nORDER BY\r\n table_schema ASC,\r\n table_name ASC,\r\n ordinal_position ASC", "metaIndexQuery": null, "metaQueryCharset": null, "orderValue": 20, "isEnabled": 0, "id": "BPQHEH5Y464AC" }, { "defKey": "ClickHouse", "defName": null, "icon": "", "driverFiles": "clickhouse4j-1.4.4.jar", "jdbcReferDriver": "cc.blynk.clickhouse.ClickHouseDriver", "jdbcReferUrl": "jdbc:clickhouse://[host]:[port]", "tableCreate": "{{\r\n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\r\n const tableKey = `${schemaName}${it.defKey}`;\r\n\r\n function getDataType(field) {\r\n const { dbDataType } = field;\r\n if(!dbDataType) {\r\n return '';\r\n }\r\n let dataType = dbDataType.toUpperCase();\r\n if(['FIXEDSTRING','STRING'].includes(dataType)){\r\n dataType = `${dataType}(${field.dataLen ? field.dataLen : 128})`;\r\n return isNull(field,dataType);\r\n }else if(dataType=='DATETIME64'){\r\n dataType = `${dataType}(${field.dataLen && field.dataLen>=0 && field.dataLen <=9 ? field.dataLen : 0})`;\r\n return isNull(field,dataType);\r\n }else if(dataType=='DECIMAL'){\r\n dataType = `${dataType}(${field.dataLen && field.dataLen>=1 && field.dataLen <=76 ? field.dataLen : 1},${field.numScale && field.numScale >= 0 && field.numScale <= field.dataLen ? field.numScale :0})`;\r\n return isNull(field,dataType);\r\n }else if(['UNIT16','UNIT32','UNIT64'].includes(dataType)){\r\n return dataType;\r\n }\r\n else{\r\n return isNull(field,dataType);\r\n }\r\n\r\n}\r\n function getFieldDefinition(field, index, fields) {\r\n const dataType = getDataType(field);\r\n const defaultValue = field.defaultValue ? ` DEFAULT ${field.defaultValue}` : '';\r\n return `${dataType}${defaultValue}${index < it.fields.length - 1 ? ',' : '' }`;\r\n }\r\n function isNull(field,dataType) {\r\n if (field.notNull===1) {\r\n return dataType;\r\n }else {\r\n return `Nullable(${dataType})`;\r\n }\r\n }\r\n}}\r\nDROP TABLE IF EXISTS {{= tableKey }};\r\n\r\nCREATE TABLE {{= tableKey }}(\r\n{{ pkList = [] ; }}\r\n{{~it.fields:field:index}}\r\n {{? field.primaryKey }}{{ pkList.push(field.defKey) }}{{?}}\r\n {{=field.defKey}} {{= getFieldDefinition(field, index, it.fields) }}\r\n{{~}}\r\n){{? pkList.length > 0 }} ENGINE = MergeTree() PRIMARY KEY ({{~pkList:pkName:i}}{{= pkName }}{{= i < pkList.length - 1 ? ',' : '' }}{{~}}){{??}} ENGINE = Memory {{?}}{{? it.defName || it.intro }} COMMENT '{{=it.func.strJoin(it.defName, it.intro, \";\", true)}}'{{?}};\r\n$blankline\r\n", "tableUpdate": "{{\r\n let defKey = it.baseUpdate.next.defKey;\r\n let defName = it.baseUpdate.next.defName;\r\n let intro = it.baseUpdate.next.intro;\r\n let indexFields = it.indexFields;\r\n let isPrimaryKeyModified = it.isPrimaryKeyModified;\r\n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\r\n const tableKey = `${schemaName}${it.defKey}`;\r\n const updateKeys = it?.baseUpdate?.updateKeys?.split(\",\") || [];\r\n}}\r\n{{? updateKeys.some((item) => item === 'defName' || item === 'intro') }}\r\nALTER TABLE {{= tableKey }} MODIFY COMMENT '{{=it.func.strJoin(defName, intro, \";\", true)}}'; {{?}}\r\n{{? updateKeys.some((item) => item === 'defKey') }}RENAME TABLE {{= tableKey }} TO {{=defKey}};{{?}}\r\n", "tableDelete": "{{\n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\n const tableKey = `${schemaName}${it.defKey}`;\n}}\nDROP TABLE IF EXISTS {{= tableKey }};", "columnCreate": "{{\n let fieldsUpdate = it.fieldsUpdate;\n const computeDatatype = (field) => {\n const { dbDataType, dataLen, numScale, defaultValue, autoIncrement, notNull } = field;\n if(!dbDataType) {\n return '';\n }\n let tempDataType = dbDataType;\n if(dbDataType.toUpperCase().startsWith('INT') ||\n dbDataType.toUpperCase().startsWith('UINT') || \n dbDataType.toUpperCase() === 'DATE' ||\n dbDataType.toUpperCase() === 'DATETIME') {\n tempDataType = dbDataType;\n } else if(dbDataType.toUpperCase() === 'FIXEDSTRING' ||\n dbDataType.toUpperCase() === 'STRING') {\n tempDataType = `${dbDataType} (${dataLen ? dataLen : 128})`;\n } else if(dbDataType.toUpperCase() === 'DATETIME64') {\n tempDataType = `${dbDataType} ${(dataLen && dataLen >= 0 && dataLen <= 9) ? `(${dataLen})` : ''}`;\n } else if(dbDataType.toUpperCase() === 'DECIMAL') {\n tempDataType = `${dbDataType} ${(dataLen && dataLen >= 1 && dataLen <= 76) ? ((numScale && numScale >= 0 && numScale <= dataLen) ? `(${dataLen},${numScale})` : `(${dataLen}, 0)` ) : '(1, 0)'}`;\n }\n return notNull ? tempDataType : `Nullable(${tempDataType})`;\n };\n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\n const tableKey = `${schemaName}${it.defKey}`;\n}}\n{{~fieldsUpdate:field:index}}\n{{\n const finalDataType = computeDatatype(field);\n}}\nALTER TABLE {{= tableKey }} ADD COLUMN {{= field.defKey}} {{= finalDataType}}{{? field.defaultValue}} DEFAULT {{= field.defaultValue}}{{?}}{{? field.defName || field.intro }} COMMENT '{{=it.func.strJoin(field.defName, field.intro, \";\", true)}}'{{?}};\n{{~}}", "columnUpdate": "{{\n let fieldsUpdate = it.fieldsUpdate;\n const computeDatatype = (field) => {\n const { dbDataType, dataLen, numScale, defaultValue, autoIncrement, notNull } = field;\n if(!dbDataType) {\n return '';\n }\n let tempDataType = dbDataType;\n if(dbDataType.toUpperCase().startsWith('INT') ||\n dbDataType.toUpperCase().startsWith('UINT') || \n dbDataType.toUpperCase() === 'DATE' ||\n dbDataType.toUpperCase() === 'DATETIME') {\n tempDataType = dbDataType;\n } else if(dbDataType.toUpperCase() === 'FIXEDSTRING' ||\n dbDataType.toUpperCase() === 'STRING') {\n tempDataType = `${dbDataType} (${dataLen ? dataLen : 128})`;\n } else if(dbDataType.toUpperCase() === 'DATETIME64') {\n tempDataType = `${dbDataType} ${(dataLen && dataLen >= 0 && dataLen <= 9) ? `(${dataLen})` : ''}`;\n } else if(dbDataType.toUpperCase() === 'DECIMAL') {\n tempDataType = `${dbDataType} ${(dataLen && dataLen >= 1 && dataLen <= 76) ? ((numScale && numScale >= 0 && numScale <= dataLen) ? `(${dataLen},${numScale})` : `(${dataLen}, 0)` ) : '(1, 0)'}`;\n }\n return notNull ? tempDataType : `Nullable(${tempDataType})`;\n };\n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\n const tableKey = `${schemaName}${it.defKey}`;\n}}\n{{~fieldsUpdate:field:index}}\n{{\n const updateKeys = field?.baseUpdate?.updateKeys?.split(\",\") || [];\n const finalDataType = computeDatatype(field);\n const preDefKey = field?.baseUpdate?.pre?.defKey;\n const nextDefKey = field?.baseUpdate?.next?.defKey;\n}}\n{{? updateKeys.includes('defKey') }}\nALTER TABLE {{= tableKey }} RENAME COLUMN {{= preDefKey }} TO {{= field.defKey }};\n{{?}}\n{{? updateKeys.some((item) => item === 'dbDataType' || item === 'dataLen' || item === 'numScale' || item === 'notNull' || item === 'defaultValue' || item === 'defName' || item === 'intro') }}\nALTER TABLE {{= tableKey }} MODIFY COLUMN {{= field.defKey }} {{= finalDataType}} {{? updateKeys.includes('defaultValue') }} {{? field.defaultValue }} DEFAULT {{= field.defaultValue}}{{?}}{{?}} COMMENT '{{=it.func.strJoin(field.defName, field.intro, \";\", true)}}'\n{{?}}\n{{~}}", "columnDelete": "{{\n let fieldsUpdate = it.fieldsUpdate; \n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\n const tableKey = `${schemaName}${it.defKey}`;\n}}\n{{~fieldsUpdate:field:index}}\nALTER TABLE {{= tableKey }} DROP COLUMN {{=field.defKey}};\n{{~}}", "indexCreate": "{{\r\n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\r\n const tableKey = `${schemaName}${it.defKey}`;\r\n}}\r\n{{~it.indexes:row:index}}\r\n{{? row.fields.length > 0 && row.defKey}}\r\nALTER TABLE {{= tableKey }}\r\nADD INDEX {{=row.defKey}}(\r\n {{~row.fields:field:idx}}\r\n {{=field.fieldDefKey}}{{= idx < row.fields.length - 1 ? ', ' : ''}}\r\n {{~}}\r\n) TYPE minmax GRANULARITY 1;\r\n{{?}}\r\n{{~}}\r\n", "indexUpdate": "{{ \n let indexesUpdate = it.indexesUpdate;\n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\n const tableKey = `${schemaName}${it.defKey}`;\n}}\n{{~indexesUpdate:row:index}}\n{{\n const updateKeys = row?.baseUpdate?.updateKeys?.split(\",\") || [];\n const fieldsUpdate = row.fieldsUpdate || [];\n const preDefKey = row?.baseUpdate?.pre?.defKey;\n \n}}\n{{? updateKeys.some((item) => item === 'defKey' || item === 'type') || fieldsUpdate.length > 0 }}\nALTER TABLE {{= tableKey }} DROP INDEX {{? preDefKey}} {{= preDefKey}} {{??}} {{=row.defKey}} {{?}};\n{{? row.fields.length > 0 && row.defKey}}\nALTER TABLE {{= tableKey }}\nADD INDEX {{=row.defKey}} (\n {{~row.fields:field:idx}}\n {{=field.fieldDefKey}}{{= idx < row.fields.length - 1 ? ', ' : ''}}\n {{~}}\n) TYPE minmax GRANULARITY 1;\n{{?}}\n{{?}}\n{{~}}", "indexDelete": "{{\n let indexesUpdate = it.indexesUpdate; \n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\n const tableKey = `${schemaName}${it.defKey}`;\n}}\n{{~indexesUpdate:row:i}}\nALTER TABLE {{= tableKey }} DROP INDEX {{=row.defKey}};\n{{~}}\n", "metaTableQuery": "select t.name AS def_key,\r\n t.comment AS def_name,\r\n t.database AS schema_name\r\nfrom system.tables t\r\nWHERE t.database IN (:schemaName) and (t.engine = 'Memory' or t.engine = 'MergeTree')", "metaColumnQuery": "select distinct c.name as def_Key,\r\n c.table as tbl_def_key,\r\n c.comment as def_name,\r\n c.position as order_value,\r\n c.default_expression as default_value,\r\n c.is_in_primary_key as primary_key,\r\n c.numeric_precision as data_len,\r\n c.numeric_scale as num_scale,\r\n if (c.type LIKE '%Nullable%', replaceRegexpAll(replaceRegexpAll(c.type, 'Nullable\\\\(([^)]+)\\\\)', '\\\\1'), '\\\\(.*\\\\)', '') , replaceRegexpAll(c.type, '\\\\(.*\\\\)', '') ) as db_data_type,\r\n if (c.type LIKE '%Nullable%', 0, 1) as not_null,\r\n c.database AS schema_name\r\nfrom system.columns c\r\n left join system.tables t on c.database = t.database\r\nWHERE c.database in (:schemaName)\r\nAND CONCAT(c.database, '.', c.table) in (:sysTableNames)\r\nORDER BY c.database, c.table;", "metaIndexQuery": "select\r\n c.table as TBL_DEF_KEY,\r\n c.name as COL_DEF_KEY,\r\n i.name as DEF_KEY,\r\n '' as DEF_NAME,\r\n '' as INTRO,\r\n '' as SORT_TYPE,\r\n '' as TYPE,\r\n c.database as schema_name\r\nfrom system.data_skipping_indices i\r\nleft join system.columns c on i.table = c.table and i.database = c.database\r\nwhere\r\n c.database in (:schemaName)\r\n and CONCAT(c.database, '.', c.table) in (:sysTableNames)\r\n and has(arrayMap(x -> trim(x), splitByChar(',', i.expr)), c.name) = 1\r\norder by c.database, TBL_DEF_KEY, DEF_KEY;", "metaQueryCharset": null, "orderValue": 21, "isEnabled": 0, "id": "1K6TW6TCR1802" }, { "defKey": "Inceptor", "defName": null, "icon": "", "driverFiles": "quark-driver-8.37.3.jar", "jdbcReferDriver": "io.transwarp.jdbc.InceptorDriver", "jdbcReferUrl": "jdbc:transwarp2://:/;", "tableCreate": "{{\r\n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\r\n const tableKey = `${schemaName}${it.defKey}`;\r\n function formatDataType(field){\r\n let dataType = field.dbDataType;\r\n let mustLenPattern = new RegExp('CHAR|DECIMAL|NUMERIC|DOUBLE|BINARY','i');\r\n let mustScalePattern = new RegExp('DECIMAL|NUMERIC|DOUBLE','i');\r\n let fmtDataType = '';\r\n if(mustLenPattern.test(dataType)){\r\n let dtLen = field.dataLen||128;\r\n if(mustScalePattern.test(dataType)){\r\n let dtScale = field.numScale;\r\n fmtDataType = `${dataType}(${dtLen},${dtScale})`;\r\n }else{\r\n fmtDataType = `${dataType}(${dtLen})`;\r\n }\r\n }else{\r\n fmtDataType = dataType;\r\n }\r\n return fmtDataType;\r\n };\r\n function formatComment(defName,intro){\r\n return ` COMMENT '${it.func.strJoin(defName, intro, \";\", true)}'`;\r\n };\r\n}}\r\nDROP TABLE IF EXISTS {{= tableKey }};\r\n\r\nCREATE TABLE `{{= tableKey }}`(\r\n{{ pkList = [] ; }}\r\n{{~it.fields:field:index}}\r\n {{\r\n if(field.primaryKey){\r\n pkList.push(field)\r\n }\r\n let fmtDataType = formatDataType(field);\r\n\r\n }}\r\n `{{=field.defKey}}` {{=fmtDataType}}{{= field.notNull ? ' NOT NULL' : '' }}{{? field.defaultValue }} DEFAULT {{=field.defaultValue}} {{?}}{{=formatComment(field.defName,field.intro)}}{{= index < it.fields.length-1 ? ',' : ( pkList.length > 0 ? ',' : '' ) }}\r\n{{~}}\r\n{{? pkList.length > 0 }}\r\n PRIMARY KEY ({{~pkList:field:i}}`{{= field.defKey }}`{{= i < pkList.length-1 ? ',' : '' }}{{~}})\r\n{{?}}\r\n){{=formatComment(it.defName,it.intro)}};", "tableUpdate": "{{\n let defKey = it.baseUpdate.next.defKey||'';\n let defName = it.baseUpdate.next.defName||'';\n let intro = it.baseUpdate.next.intro;\n let indexFields = it.indexFields;\n let isPrimaryKeyModified = it.isPrimaryKeyModified;\n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\n const tableKey = `${schemaName}${it.defKey}`;\n const updateKeys = it?.baseUpdate?.updateKeys?.split(\",\") || [];\n}}\n{{? isPrimaryKeyModified }}\nALTER TABLE {{= tableKey }} DROP PRIMARY KEY;\n{{? indexFields && indexFields.length > 0}}\nALTER TABLE {{= tableKey }} ADD PRIMARY KEY ({{~indexFields:field:i}}`{{= field.defKey }}`{{= i < indexFields.length-1 ? ',' : '' }}{{~}});\n{{?}}\n{{?}}\n{{? updateKeys.some((item) => item === 'defName' || item === 'intro') }}ALTER TABLE {{= tableKey }} COMMENT '{{=it.func.strJoin(defName, intro, \";\", true)}}'; {{?}}\n{{? updateKeys.some((item) => item === 'defKey') }}ALTER TABLE {{= schemaName }}{{=it.defKey}} RENAME TO {{= schemaName }}{{=defKey}}; {{?}}\n", "tableDelete": "{{\n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\n const tableKey = `${schemaName}${it.defKey}`;\n}}\nDROP TABLE IF EXISTS {{= tableKey }};", "columnCreate": "{{\r\n let fieldsUpdate = it.fieldsUpdate;\r\n const computeLenAndNum = (dataLen, numScale, maxDataLen, maxNumScale) => {\r\n if(!dataLen || dataLen <= 0) {\r\n return '';\r\n }\r\n let currentDataLen = dataLen, currentNumScale = numScale;\r\n if(dataLen >= maxDataLen) {\r\n currentDataLen = maxDataLen;\r\n }\r\n if(!numScale || numScale <= 0) {\r\n return `(${currentDataLen},0)`;\r\n }\r\n if(currentNumScale > maxNumScale) {\r\n currentNumScale = maxNumScale\r\n }\r\n if(currentNumScale > currentDataLen && currentDataLen <= maxNumScale) {\r\n currentNumScale = currentDataLen;\r\n }\r\n return `(${currentDataLen},${currentNumScale})`;\r\n };\r\n const computeDefaultValue = (field) => {\r\n const { defaultValue, dbDataType, primaryKey } = field;\r\n if(!defaultValue) {\r\n return '';\r\n }\r\n if(dbDataType.toUpperCase().endsWith('BLOB') || \r\n dbDataType.toUpperCase().endsWith('GEOMETRY') || \r\n dbDataType.toUpperCase().endsWith('TEXT') || \r\n dbDataType.toUpperCase().endsWith('JSON')) {\r\n return '';\r\n } else if(dbDataType.toUpperCase() === 'ENUM' ||\r\n dbDataType.toUpperCase() === 'SET') {\r\n return `DEFAULT \"${defaultValue}\"`;\r\n } else {\r\n return `DEFAULT ${defaultValue}`;\r\n }\r\n };\r\n const computeDatatype = (field) => {\r\n const { dbDataType, dataLen, numScale, defaultValue } = field;\r\n if(!dbDataType) {\r\n return '';\r\n }\r\n if(dbDataType.toUpperCase() === 'VARCHAR' ||\r\n dbDataType.toUpperCase() === 'NVARCHAR' ||\r\n dbDataType.toUpperCase() === 'VARBINARY') {\r\n return `${dbDataType}(${dataLen ? dataLen : 128})`;\r\n } else if(dbDataType.toUpperCase() === 'DATE' ||\r\n dbDataType.toUpperCase() === 'YEAR' ||\r\n dbDataType.toUpperCase() === 'TINYTEXT' ||\r\n dbDataType.toUpperCase() === 'MEDIUMTEXT' ||\r\n dbDataType.toUpperCase() === 'LONGTEXT' ||\r\n dbDataType.toUpperCase() === 'TINYBLOB' ||\r\n dbDataType.toUpperCase() === 'MEDIUMBLOB' ||\r\n dbDataType.toUpperCase() === 'LONGBLOB' ||\r\n dbDataType.toUpperCase() === 'BOOLEAN' ||\r\n dbDataType.toUpperCase() === 'FLOAT' ||\r\n dbDataType.toUpperCase() === 'INT' ||\r\n dbDataType.toUpperCase() === 'JSON' ) {\r\n return dbDataType;\r\n } else if(dbDataType.toUpperCase() === 'ENUM' ||\r\n dbDataType.toUpperCase() === 'SET' ) {\r\n return `${dbDataType}(${defaultValue})`;\r\n } else if(dbDataType.toUpperCase() === 'TIME' ||\r\n dbDataType.toUpperCase() === 'DATETIME' ||\r\n dbDataType.toUpperCase() === 'TIMESTAMP') {\r\n return `${dbDataType}${(dataLen && dataLen >= 0 && dataLen <= 6) ? `(${dataLen})` : ''}`;\r\n } else if(dbDataType.toUpperCase() === 'DOUBLE') {\r\n return `${dbDataType}${computeLenAndNum(dataLen, numScale, 255, 30)}`;\r\n } else if(dbDataType.toUpperCase() === 'DECIMAL') {\r\n return `${dbDataType}${computeLenAndNum(dataLen, numScale, 65, 30)}`;\r\n } else if(dataLen && dataLen > 0) {\r\n return `${dbDataType}(${dataLen})`;\r\n }\r\n return `${dbDataType}`;\r\n };\r\n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\r\n const tableKey = `${schemaName}${it.defKey}`;\r\n}}\r\n{{~fieldsUpdate:field:index}}\r\nALTER TABLE {{= tableKey }} ADD COLUMN `{{=field.defKey}}` {{=computeDatatype(field)}} {{= field.notNull ? 'NOT NULL' : '' }} {{= field.autoIncrement ? 'AUTO_INCREMENT' : '' }} {{= computeDefaultValue(field)}} {{? field.defName || field.intro }} COMMENT '{{=it.func.strJoin(field.defName, field.intro, \";\", true)}}'{{?}};\r\n{{~}}\r\n", "columnUpdate": "{{ \r\n let fieldsUpdate = it.fieldsUpdate;\r\n const computeLenAndNum = (dataLen, numScale, maxDataLen, maxNumScale) => {\r\n if(!dataLen || dataLen <= 0) {\r\n return '';\r\n }\r\n let currentDataLen = dataLen, currentNumScale = numScale;\r\n if(dataLen >= maxDataLen) {\r\n currentDataLen = maxDataLen;\r\n }\r\n if(!numScale || numScale <= 0) {\r\n return `(${currentDataLen},0)`;\r\n }\r\n if(currentNumScale > maxNumScale) {\r\n currentNumScale = maxNumScale\r\n }\r\n if(currentNumScale > currentDataLen && currentDataLen <= maxNumScale) {\r\n currentNumScale = currentDataLen;\r\n }\r\n return `(${currentDataLen},${currentNumScale})`;\r\n };\r\n const computeDefaultValue = (field) => {\r\n const { defaultValue, primaryKey } = field;\r\n const dbDataType = field.dbDataType ? field.dbDataType : '';\r\n if(!defaultValue) {\r\n return '';\r\n }\r\n if(dbDataType.toUpperCase().endsWith('BLOB') || \r\n dbDataType.toUpperCase().endsWith('GEOMETRY') || \r\n dbDataType.toUpperCase().endsWith('TEXT') || \r\n dbDataType.toUpperCase().endsWith('JSON')) {\r\n return '';\r\n } else if(dbDataType.toUpperCase() === 'ENUM' ||\r\n dbDataType.toUpperCase() === 'SET') {\r\n return `DEFAULT \"${defaultValue}\"`;\r\n } else {\r\n return `DEFAULT ${defaultValue}`;\r\n }\r\n };\r\n const computeDatatype = (field) => {\r\n const { dbDataType, dataLen, numScale, defaultValue } = field;\r\n if(!dbDataType) {\r\n return '';\r\n }\r\n if(dbDataType.toUpperCase() === 'VARCHAR' ||\r\n dbDataType.toUpperCase() === 'NVARCHAR' ||\r\n dbDataType.toUpperCase() === 'VARBINARY') {\r\n return `${dbDataType}(${dataLen ? dataLen : 128})`;\r\n } else if(dbDataType.toUpperCase() === 'DATE' ||\r\n dbDataType.toUpperCase() === 'YEAR' ||\r\n dbDataType.toUpperCase() === 'TINYTEXT' ||\r\n dbDataType.toUpperCase() === 'MEDIUMTEXT' ||\r\n dbDataType.toUpperCase() === 'LONGTEXT' ||\r\n dbDataType.toUpperCase() === 'TINYBLOB' ||\r\n dbDataType.toUpperCase() === 'MEDIUMBLOB' ||\r\n dbDataType.toUpperCase() === 'LONGBLOB' ||\r\n dbDataType.toUpperCase() === 'BOOLEAN' ||\r\n dbDataType.toUpperCase() === 'FLOAT' ||\r\n dbDataType.toUpperCase() === 'INT' ||\r\n dbDataType.toUpperCase() === 'JSON' ) {\r\n return dbDataType;\r\n } else if(dbDataType.toUpperCase() === 'ENUM' ||\r\n dbDataType.toUpperCase() === 'SET' ) {\r\n return `${dbDataType}(${defaultValue})`;\r\n } else if(dbDataType.toUpperCase() === 'TIME' ||\r\n dbDataType.toUpperCase() === 'DATETIME' ||\r\n dbDataType.toUpperCase() === 'TIMESTAMP') {\r\n return `${dbDataType}${(dataLen && dataLen >= 0 && dataLen <= 6) ? `(${dataLen})` : ''}`;\r\n } else if(dbDataType.toUpperCase() === 'DOUBLE') {\r\n return `${dbDataType}${computeLenAndNum(dataLen, numScale, 255, 30)}`;\r\n } else if(dbDataType.toUpperCase() === 'DECIMAL') {\r\n return `${dbDataType}${computeLenAndNum(dataLen, numScale, 65, 30)}`;\r\n } else if(dataLen && dataLen > 0) {\r\n return `${dbDataType}(${dataLen})`;\r\n }\r\n return `${dbDataType}`;\r\n };\r\n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\r\n const tableKey = `${schemaName}${it.defKey}`;\r\n}}\r\n{{~fieldsUpdate:field:index}}\r\n{{ \r\n let nextPrimaryKey = field.baseUpdate.next.primaryKey;\r\n let prePrimaryKey = field.baseUpdate.pre.primaryKey;\r\n let preDefKey = field.baseUpdate.pre.defKey;\r\n let updateKeys = field.baseUpdate.updateKeys.split(',');\r\n}}\r\n{{? updateKeys.includes('primaryKey') && updateKeys.includes('defaultValue')}}\r\nALTER TABLE {{= tableKey }} ALTER COLUMN `{{=field.defKey}}` SET DEFAULT {{=field.defaultValue}};\r\n{{?}}\r\n{{? updateKeys.some((item) => item === 'dbDataType' || item === 'dataLen' || item === 'numScale' || item === 'intro' || item === 'defName' || item === 'notNull' || item === 'AUTO_INCREMENT') }}\r\nALTER TABLE {{= tableKey }} {{? updateKeys.includes('defKey')}}CHANGE `{{=preDefKey}}` `{{=field.defKey}}` {{??}} MODIFY COLUMN `{{=field.defKey}}` {{?}} {{=computeDatatype(field)}} {{= field.notNull ? 'NOT NULL' : '' }} {{= field.autoIncrement ? 'AUTO_INCREMENT' : '' }} {{= computeDefaultValue(field)}} {{? field.defName || field.intro }} COMMENT '{{=it.func.strJoin(field.defName, field.intro, \";\", true)}}'{{?}};\r\n{{?}}\r\n{{~}}\r\n", "columnDelete": "{{\n let fieldsUpdate = it.fieldsUpdate; \n let schemaName = it.schemaName ? `${it.schemaName}.` : '';\n const tableKey = `${schemaName}${it.defKey}`;\n}}\n{{~fieldsUpdate:field:index}}\nALTER TABLE {{= tableKey }} DROP COLUMN {{=field.defKey}};\n{{~}}", "indexCreate": "", "indexUpdate": "", "indexDelete": "", "metaTableQuery": "SELECT\n table_id AS id,\n table_name AS def_key,\n commentstring AS def_name,\n database_name AS schema_name\nFROM\n system.tables_v\nWHERE database_name in (:schemaName)", "metaColumnQuery": "SELECT\n database_name as schema_name,\n table_name AS tbl_def_key,\n column_id as order_value,\n column_name AS def_key,\n commentstring AS def_name,\n '' AS intro,\n column_type,\n split_part(column_type,'(',1) AS db_data_type,\n IF(regexp_like('CHAR,DECIMAL,VARCHAR',upper(split_part(column_type,'(',1))),column_length,NULL) AS data_len,\n IF(regexp_like('CHAR,DECIMAL,VARCHAR',upper(split_part(column_type,'(',1))),decode(column_scale,0,NULL,column_scale),NULL) AS column_scale,\n IF(unique_constraint,1,0) AS primary_key,\n IF(nullable,0,1) AS not_null,\n 0 AS auto_increment,\n default_value AS default_value\nFROM\n system.columns_v\nWHERE\n database_name in (:schemaName)\n and CONCAT(database_name, '.', table_name) in (:sysTableNames)\nORDER BY\n database_name ASC,\n table_name ASC,\n column_id ASC", "metaIndexQuery": "", "metaQueryCharset": null, "orderValue": 22, "isEnabled": 0, "id": "1M7S6R68K9H01" } ], "programLangs": [ { "defKey": "Java", "defName": null, "icon": "\n \n \n \n \n ", "color": "", "orderValue": 0, "isEnabled": 1, "id": "BPP6L7ZLM7EAB", "codegens": [ { "genKey": "MybatisPlus", "genIntro": "我是MybatisPlus", "genItems": [ { "itemKey": "Entity", "itemTemplate": "{{\r\nlet base_package = it.genCode.nameSpace && it.genCode.baseName? it.genCode.nameSpace + '.' + it.genCode.baseName : null;\r\nlet entity_name = it.genCode.baseName;\r\nlet fields = it.fields;\r\nlet table_name = it.defKey;\r\nlet table_comment = it.defName;\r\n\r\nlet entity_class = entity_name + 'Entity';\r\nlet mapper_class = entity_name + 'Mapper';\r\nlet service_class = entity_name + 'Service';\r\nlet service_impl_class = entity_name + 'ServiceImpl';\r\nlet controller_class = entity_name + 'Controller';\r\n\r\nlet entity_package = base_package + '.entity';\r\nlet mapper_package = base_package + '.mapper';\r\nlet service_package = base_package + '.service';\r\nlet service_impl_package = base_package + '.service.Impl';\r\nlet controller_package = base_package + 'controller';\r\n\r\nlet entity_instance_name = entity_class.charAt(0).toLowerCase() + entity_class.slice(1);\r\nlet service_instance_name = service_class.charAt(0).toLowerCase() + service_class.slice(1);\r\n\r\nlet import_sentence_list = fields.filter((field, _, __) => {\r\n return field.langDataType === 'BigDecimal' || field.langDataType === 'LocalDateTime' || field.langDataType === 'LocalDate' || field.langDataType === 'LocalTime' || field.langDataType === 'Date'\r\n}).map((field, _, __) => {\r\n if (field.langDataType === 'BigDecimal') {\r\n return 'import java.math.BigDecimal;'\r\n } else if (field.langDataType === 'LocalDateTime') {\r\n return 'import java.time.LocalDateTime;'\r\n } else if (field.langDataType === 'LocalDate') {\r\n return 'import java.time.LocalDate;'\r\n } else if (field.langDataType === 'LocalTime') {\r\n return 'import java.time.LocalTime;'\r\n } else if (field.langDataType === 'Date') {\r\n return 'import java.util.Date;'\r\n } else {\r\n return ''\r\n }\r\n});\r\n}}{{=base_package? 'package ' + base_package + '.pojo.entity;':''}}\r\n$blankline\r\nimport lombok.Getter;\r\nimport lombok.Setter;\r\nimport lombok.experimental.Accessors;\r\nimport com.baomidou.mybatisplus.annotation.*;\r\nimport lombok.ToString;\r\n{{~import_sentence_list:import_sentence:index}}\r\n{{=import_sentence}}\r\n{{~}}\r\n$blankline\r\n/**\r\n * {{=table_comment}}\r\n */\r\n@Getter\r\n@Setter\r\n@ToString\r\n@Accessors(chain = true)\r\n@TableName(\"{{=table_name}}\")\r\npublic class {{=entity_class}} {\r\n$blankline\r\n{{~fields:field:index}}\r\n /**\r\n * {{=field.defName}}{{? field.comment }}; {{=field.comment}}{{?}}\r\n */\r\n {{? field.primaryKey }}\r\n @TableId(type = IdType.ASSIGN_ID)\r\n {{?? it.func.camel(field.defKey,false) === 'creatorId' || it.func.camel(field.defKey,false) === 'createTime'}}\r\n @TableField(fill = FieldFill.INSERT)\r\n {{?? it.func.camel(field.defKey,false) === 'modifierId' || it.func.camel(field.defKey,false) === 'modifyTime'}}\r\n @TableField(fill = FieldFill.INSERT_UPDATE)\r\n {{?? it.func.camel(field.defKey,false) === 'deleted'}}\r\n @TableLogic\r\n {{?}}\r\n private {{=field.dbDataType === 'TINYINT' && field.dataLen === 1 ? 'Boolean' : field.langDataType}} {{=it.func.camel(field.defKey,false)}};\r\n $blankline\r\n{{~}}\r\n}\r\n" }, { "itemKey": "Mapper", "itemTemplate": "{{\r\nlet base_package = it.genCode.nameSpace + '.' + it.genCode.baseName;\r\nlet entity_name = it.genCode.baseName;\r\nlet fields = it.fields;\r\nlet table_name = it.defKey;\r\nlet table_comment = it.defName;\r\n\r\nlet entity_class = entity_name + 'Entity';\r\nlet mapper_class = entity_name + 'Mapper';\r\nlet service_class = entity_name + 'Service';\r\nlet service_impl_class = entity_name + 'ServiceImpl';\r\nlet controller_class = entity_name + 'Controller';\r\n\r\nlet entity_package = base_package + '.entity';\r\nlet mapper_package = base_package + '.mapper';\r\nlet service_package = base_package + '.service';\r\nlet service_impl_package = base_package + '.service.Impl';\r\nlet controller_package = base_package + 'controller';\r\n\r\nlet entity_instance_name = entity_class.charAt(0).toLowerCase() + entity_class.slice(1);\r\nlet service_instance_name = service_class.charAt(0).toLowerCase() + service_class.slice(1);\r\n\r\nlet import_sentence_list = fields.filter((field, _, __) => {\r\n return field.langDataType === 'BigDecimal' || field.langDataType === 'LocalDateTime' || field.langDataType === 'LocalDate' || field.langDataType === 'LocalTime' || field.langDataType === 'Date'\r\n}).map((field, _, __) => {\r\n if (field.langDataType === 'BigDecimal') {\r\n return 'import java.math.BigDecimal;'\r\n } else if (field.langDataType === 'LocalDateTime') {\r\n return 'import java.time.LocalDateTime;'\r\n } else if (field.langDataType === 'LocalDate') {\r\n return 'import java.time.LocalDate;'\r\n } else if (field.langDataType === 'LocalTime') {\r\n return 'import java.time.LocalTime;'\r\n } else if (field.langDataType === 'Date') {\r\n return 'import java.util.Date;'\r\n } else {\r\n return ''\r\n }\r\n});\r\n}}{{=base_package? 'package ' + base_package + '.mapper;':''}}\r\n$blankline\r\nimport com.baomidou.mybatisplus.core.mapper.BaseMapper;\r\nimport org.apache.ibatis.annotations.Mapper;\r\n{{=base_package? 'import ' + base_package + '.pojo.entity.' + entity_class + ';': ''}}\r\n$blankline\r\n/**\r\n * {{=table_comment}}\r\n */\r\n@Mapper\r\npublic interface {{=mapper_class}} extends BaseMapper<{{=entity_class}}> {\r\n$blankline\r\n}\r\n$blankline" }, { "itemKey": "Mapper.xml", "itemTemplate": "{{\r\nlet base_package = it.genCode.nameSpace + '.' + it.genCode.baseName;\r\nlet entity_name = it.genCode.baseName;\r\nlet fields = it.fields;\r\nlet table_name = it.defKey;\r\nlet table_comment = it.defName;\r\n\r\nlet entity_class = entity_name + 'Entity';\r\nlet mapper_class = entity_name + 'Mapper';\r\nlet service_class = entity_name + 'Service';\r\nlet service_impl_class = entity_name + 'ServiceImpl';\r\nlet controller_class = entity_name + 'Controller';\r\n\r\nlet entity_package = base_package + '.entity';\r\nlet mapper_package = base_package + '.mapper';\r\nlet service_package = base_package + '.service';\r\nlet service_impl_package = base_package + '.service.Impl';\r\nlet controller_package = base_package + 'controller';\r\n\r\nlet entity_instance_name = entity_class.charAt(0).toLowerCase() + entity_class.slice(1);\r\nlet service_instance_name = service_class.charAt(0).toLowerCase() + service_class.slice(1);\r\n\r\nlet import_sentence_list = fields.filter((field, _, __) => {\r\n return field.langDataType === 'BigDecimal' || field.langDataType === 'LocalDateTime' || field.langDataType === 'LocalDate' || field.langDataType === 'LocalTime' || field.langDataType === 'Date'\r\n}).map((field, _, __) => {\r\n if (field.langDataType === 'BigDecimal') {\r\n return 'import java.math.BigDecimal;'\r\n } else if (field.langDataType === 'LocalDateTime') {\r\n return 'import java.time.LocalDateTime;'\r\n } else if (field.langDataType === 'LocalDate') {\r\n return 'import java.time.LocalDate;'\r\n } else if (field.langDataType === 'LocalTime') {\r\n return 'import java.time.LocalTime;'\r\n } else if (field.langDataType === 'Date') {\r\n return 'import java.util.Date;'\r\n } else {\r\n return ''\r\n }\r\n});\r\n}}\r\n\r\n$blankline\r\n\r\n\r\n\r\n$blankline\r\n" }, { "itemKey": "Service", "itemTemplate": "{{\r\nlet base_package = it.genCode.nameSpace + '.' + it.genCode.baseName;\r\nlet entity_name = it.genCode.baseName;\r\nlet fields = it.fields;\r\nlet table_name = it.defKey;\r\nlet table_comment = it.defName;\r\n\r\nlet entity_class = entity_name + 'Entity';\r\nlet mapper_class = entity_name + 'Mapper';\r\nlet service_class = entity_name + 'Service';\r\nlet service_impl_class = entity_name + 'ServiceImpl';\r\nlet controller_class = entity_name + 'Controller';\r\n\r\nlet entity_package = base_package + '.entity';\r\nlet mapper_package = base_package + '.mapper';\r\nlet service_package = base_package + '.service';\r\nlet service_impl_package = base_package + '.service.Impl';\r\nlet controller_package = base_package + 'controller';\r\n\r\nlet entity_instance_name = entity_class.charAt(0).toLowerCase() + entity_class.slice(1);\r\nlet service_instance_name = service_class.charAt(0).toLowerCase() + service_class.slice(1);\r\n\r\nlet import_sentence_list = fields.filter((field, _, __) => {\r\n return field.langDataType === 'BigDecimal' || field.langDataType === 'LocalDateTime' || field.langDataType === 'LocalDate' || field.langDataType === 'LocalTime' || field.langDataType === 'Date'\r\n}).map((field, _, __) => {\r\n if (field.langDataType === 'BigDecimal') {\r\n return 'import java.math.BigDecimal;'\r\n } else if (field.langDataType === 'LocalDateTime') {\r\n return 'import java.time.LocalDateTime;'\r\n } else if (field.langDataType === 'LocalDate') {\r\n return 'import java.time.LocalDate;'\r\n } else if (field.langDataType === 'LocalTime') {\r\n return 'import java.time.LocalTime;'\r\n } else if (field.langDataType === 'Date') {\r\n return 'import java.util.Date;'\r\n } else {\r\n return ''\r\n }\r\n});\r\n}}{{=base_package? 'package ' + base_package + '.service;':''}}\r\n$blankline\r\nimport lombok.extern.slf4j.Slf4j;\r\nimport org.springframework.stereotype.Service;\r\nimport org.springframework.transaction.annotation.Transactional;\r\nimport com.baomidou.mybatisplus.extension.service.IService;\r\nimport com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;\r\nimport com.baomidou.mybatisplus.core.toolkit.Wrappers;\r\nimport com.njzscloud.common.mp.support.PageParam;\r\nimport com.njzscloud.common.mp.support.PageResult;\r\nimport java.util.List;\r\n{{=base_package? 'import ' + base_package + '.pojo.entity.' + entity_class + ';': ''}}\r\n{{=base_package? 'import ' + base_package + '.mapper.' + mapper_class + ';': ''}}\r\n$blankline\r\n/**\r\n * {{=table_comment}}\r\n */\r\n@Slf4j\r\n@Service\r\npublic class {{=service_impl_class}} extends ServiceImpl<{{=mapper_class}}, {{=entity_class}}> implements IService<{{=entity_class}}> {\r\n$blankline\r\n /**\r\n * 新增\r\n */\r\n public void add({{=entity_class}} {{=entity_instance_name}}) {\r\n this.save({{=entity_instance_name}});\r\n }\r\n$blankline\r\n /**\r\n * 修改\r\n */\r\n public void modify({{=entity_class}} {{=entity_instance_name}}) {\r\n this.updateById({{=entity_instance_name}});\r\n }\r\n$blankline\r\n /**\r\n * 删除\r\n */\r\n @Transactional(rollbackFor = Exception.class)\r\n public void del(List ids) {\r\n this.removeBatchByIds(ids);\r\n }\r\n$blankline\r\n /**\r\n * 详情\r\n */\r\n public {{=entity_class}} detail(Long id) {\r\n return this.getById(id);\r\n }\r\n$blankline\r\n /**\r\n * 分页查询\r\n */\r\n public PageResult<{{=entity_class}}> paging(PageParam pageParam, {{=entity_class}} {{=entity_instance_name}}) {\r\n return PageResult.of(this.page(pageParam.toPage(), Wrappers.<{{=entity_class}}>query({{=entity_instance_name}})));\r\n \r\n }\r\n$blankline\r\n}" }, { "itemKey": "Controller", "itemTemplate": "{{\r\nlet base_package = it.genCode.nameSpace + '.' + it.genCode.baseName;\r\nlet entity_name = it.genCode.baseName;\r\nlet fields = it.fields;\r\nlet table_name = it.defKey;\r\nlet table_comment = it.defName;\r\n\r\nlet entity_class = entity_name + 'Entity';\r\nlet mapper_class = entity_name + 'Mapper';\r\nlet service_class = entity_name + 'Service';\r\nlet service_impl_class = entity_name + 'ServiceImpl';\r\nlet controller_class = entity_name + 'Controller';\r\n\r\nlet entity_package = base_package + '.entity';\r\nlet mapper_package = base_package + '.mapper';\r\nlet service_package = base_package + '.service';\r\nlet service_impl_package = base_package + '.service.Impl';\r\nlet controller_package = base_package + 'controller';\r\n\r\nlet entity_instance_name = entity_class.charAt(0).toLowerCase() + entity_class.slice(1);\r\nlet service_instance_name = service_class.charAt(0).toLowerCase() + service_class.slice(1);\r\n\r\nlet import_sentence_list = fields.filter((field, _, __) => {\r\n return field.langDataType === 'BigDecimal' || field.langDataType === 'LocalDateTime' || field.langDataType === 'LocalDate' || field.langDataType === 'LocalTime' || field.langDataType === 'Date'\r\n}).map((field, _, __) => {\r\n if (field.langDataType === 'BigDecimal') {\r\n return 'import java.math.BigDecimal;'\r\n } else if (field.langDataType === 'LocalDateTime') {\r\n return 'import java.time.LocalDateTime;'\r\n } else if (field.langDataType === 'LocalDate') {\r\n return 'import java.time.LocalDate;'\r\n } else if (field.langDataType === 'LocalTime') {\r\n return 'import java.time.LocalTime;'\r\n } else if (field.langDataType === 'Date') {\r\n return 'import java.util.Date;'\r\n } else {\r\n return ''\r\n }\r\n});\r\n}}{{=base_package? 'package ' + base_package + '.controller;':''}}\r\n$blankline\r\nimport lombok.extern.slf4j.Slf4j;\r\nimport lombok.RequiredArgsConstructor;\r\nimport org.springframework.web.bind.annotation.*;\r\nimport com.njzscloud.common.core.utils.R;\r\nimport com.njzscloud.common.mp.support.PageParam;\r\nimport com.njzscloud.common.mp.support.PageResult;\r\nimport java.util.List;\r\n{{=base_package? 'import ' + base_package + '.pojo.entity.' + entity_class + ';': ''}}\r\n{{=base_package? 'import ' + base_package + '.service.' + service_class + ';': ''}}\r\n$blankline\r\n/**\r\n * {{=table_comment}}\r\n */\r\n@Slf4j\r\n@RestController\r\n@RequestMapping(\"/{{=it.func.underline(table_name)}}\")\r\n@RequiredArgsConstructor\r\npublic class {{=controller_class}} {\r\n$blankline\r\n private final {{=service_class}} {{=service_instance_name}};\r\n$blankline\r\n /**\r\n * 新增\r\n */\r\n @PostMapping(\"/add\")\r\n public R add(@RequestBody {{=entity_class}} {{=entity_instance_name}}) {\r\n {{=service_instance_name}}.add({{=entity_instance_name}});\r\n return R.success();\r\n }\r\n$blankline\r\n /**\r\n * 修改\r\n */\r\n @PostMapping(\"/modify\")\r\n public R modify(@RequestBody {{=entity_class}} {{=entity_instance_name}}) {\r\n {{=service_instance_name}}.modify({{=entity_instance_name}});\r\n return R.success();\r\n }\r\n$blankline\r\n /**\r\n * 删除\r\n */\r\n @PostMapping(\"/del\")\r\n public R del(@RequestBody List ids) {\r\n {{=service_instance_name}}.del(ids);\r\n return R.success();\r\n }\r\n$blankline\r\n /**\r\n * 详情\r\n */\r\n @GetMapping(\"/detail\")\r\n public R<{{=entity_class}}> detail(@RequestParam Long id) {\r\n return R.success({{=service_instance_name}}.detail(id));\r\n }\r\n$blankline\r\n /**\r\n * 分页查询\r\n */\r\n @GetMapping(\"/paging\")\r\n public R> paging(PageParam pageParam, {{=entity_class}} {{=entity_instance_name}}) {\r\n return R.success({{=service_instance_name}}.paging(pageParam, {{=entity_instance_name}}));\r\n\r\n }\r\n$blankline\r\n}" }, { "itemKey": "Enum", "itemTemplate": "{{let dicts = it.fields\r\n .filter(field => field.dictFrom === 'Manual')\r\n .map(field => {\r\n return {\r\n code: field.stndDictKey,\r\n name: field.defName,\r\n className: it.func.camel(field.stndDictKey, true),\r\n items: field.dictItems.map(item => {\r\n return {\r\n val: item.itemKey,\r\n txt: item.itemName,\r\n memo: item.intro\r\n };\r\n })\r\n };\r\n });\r\n}}{{~ dicts:dict}}import lombok.Getter;\r\nimport lombok.RequiredArgsConstructor;\r\nimport com.njzscloud.common.core.ienum.DictStr;\r\n\r\n/**\r\n * 字典代码:{{=dict.code}}\r\n * 字典名称:{{=dict.name}}\r\n */\r\n@Getter\r\n@RequiredArgsConstructor\r\npublic enum {{=dict.className}} implements DictStr {\r\n{{~ dict.items:item}}\r\n{{? item.memo != null && item.memo.length > 0}}\r\n /**\r\n * {{=item.memo}}\r\n */\r\n{{?}}\r\n {{=item.val}}(\"{{=item.val}}\", \"{{=item.txt}}\"),\r\n $blankline\r\n{{~}}\r\n ;\r\n\r\n private final String val;\r\n$blankline\r\n private final String txt;\r\n}\r\n$blankline\r\n$blankline\r\n{{~}}\r\n" } ] } ] }, { "defKey": "NodeJS", "defName": null, "icon": "\n \n \n \n \n ", "color": "", "orderValue": 1, "isEnabled": 1, "id": "BPP6MKTVM7EAB", "codegens": [ { "genKey": "Ts", "genItems": [ { "itemKey": "page.vue", "itemTemplate": "{{\r\nlet first_ =it.defKey.indexOf('_');\r\nlet moduleName = it.defKey.slice(0,first_);\r\nlet pageName = it.defKey.slice(first_ +1,first_ +2).toUpperCase() + it.defKey.slice(first_ +2);\r\nlet pageName_ = it.defKey.slice(first_ +1);\r\nlet fields = it.fields.filter(it=>it.defKey!=='id' && it.defKey!=='creator_id' && it.defKey!=='modifier_id' && it.defKey!=='create_time' && it.defKey!=='modify_time' && it.defKey!=='deleted');\r\n}}\r\n\r\n\r\n\r\n\r\n$blankline" }, { "itemKey": "page.ts", "itemTemplate": "{{\r\nlet first_ =it.defKey.indexOf('_');\r\nlet moduleName = it.defKey.slice(0,first_);\r\nlet pageName = it.defKey.slice(first_ +1,first_ +2).toUpperCase() + it.defKey.slice(first_ +2);\r\nlet pageName_ = it.defKey.slice(first_ +1);\r\n}}export default {\r\n component: () => import('@/pages/{{=moduleName}}/{{=pageName_}}/{{=pageName}}.vue'),\r\n} as RouterTypes.RouteConfig\r\n$blankline" }, { "itemKey": "form.vue", "itemTemplate": "{{\r\nlet first_ =it.defKey.indexOf('_');\r\nlet moduleName = it.defKey.slice(0,first_);\r\nlet pageName = it.defKey.slice(first_ +1,first_ +2).toUpperCase() + it.defKey.slice(first_ +2);\r\nlet pageName_ = it.defKey.slice(first_ +1);\r\nlet fields = it.fields.filter(it=>it.defKey!=='id' && it.defKey!=='creator_id' && it.defKey!=='modifier_id' && it.defKey!=='create_time' && it.defKey!=='modify_time' && it.defKey!=='deleted');\r\n}}\r\n\r\n\r\n\r\n\r\n$blankline" }, { "itemKey": "api.ts", "itemTemplate": "{{\r\nlet first_ =it.defKey.indexOf('_');\r\nlet moduleName = it.defKey.slice(0,first_);\r\nlet pageName = it.defKey.slice(first_ +1,first_ +2).toUpperCase() + it.defKey.slice(first_ +2);\r\nlet pageName_ = it.defKey.slice(first_ +1);\r\n}}import {\r\n get,\r\n post\r\n} from '@/common/utils/http-util.ts'\r\n\r\nexport default {\r\n paging(data: {{=pageName}}Types.Search{{=pageName}}Param) {\r\n return get>('/{{=it.defKey}}/paging', data)\r\n },\r\n detail(id: string) {\r\n return get<{{=pageName}}Types.Search{{=pageName}}Result>('/{{=it.defKey}}/detail', {id})\r\n },\r\n add(data: {{=pageName}}Types.Add{{=pageName}}Param) {\r\n return post('/{{=it.defKey}}/add', data)\r\n },\r\n modify(data: {{=pageName}}Types.Modify{{=pageName}}Param) {\r\n return post('/{{=it.defKey}}/modify', data)\r\n },\r\n del(ids: string[]) {\r\n return post('/{{=it.defKey}}/del', ids)\r\n },\r\n}\r\n$blankline" }, { "itemKey": "d.ts", "itemTemplate": "{{\r\nlet first_ =it.defKey.indexOf('_');\r\nlet moduleName = it.defKey.slice(0,first_);\r\nlet pageName = it.defKey.slice(first_ +1,first_ +2).toUpperCase() + it.defKey.slice(first_ +2);\r\nlet fields = it.fields.filter(it=>it.defKey!=='creator_id' && it.defKey!=='modifier_id' && it.defKey!=='create_time' && it.defKey!=='modify_time' && it.defKey!=='deleted');\r\n}}export {}\r\n\r\ndeclare global {\r\n namespace {{=pageName}}Types {\r\n interface Search{{=pageName}}Param extends G.PageParam {\r\n {{~fields:field:index}}\r\n // {{=field.defName}}{{? field.comment }}; {{=field.comment}}{{?}}\r\n {{=it.func.camel(field.defKey, false)}}?: {{=field.dbDataType === 'TINYINT' && field.dataLen === 1 ? 'boolean' : field.langDataType}}\r\n {{~}}\r\n }\r\n \r\n interface Search{{=pageName}}Result {\r\n {{~fields:field:index}}\r\n // {{=field.defName}}{{? field.comment }}; {{=field.comment}}{{?}}\r\n {{=it.func.camel(field.defKey, false)}}?: {{=field.dbDataType === 'TINYINT' && field.dataLen === 1 ? 'boolean' : field.langDataType}}\r\n {{~}}\r\n }\r\n \r\n interface Add{{=pageName}}Param {\r\n {{~fields:field:index}}\r\n // {{=field.defName}}{{? field.comment }}; {{=field.comment}}{{?}}\r\n {{=it.func.camel(field.defKey, false)}}?: {{=field.dbDataType === 'TINYINT' && field.dataLen === 1 ? 'boolean' : field.langDataType}}\r\n {{~}} \r\n }\r\n \r\n interface Modify{{=pageName}}Param {\r\n {{~fields:field:index}}\r\n // {{=field.defName}}{{? field.comment }}; {{=field.comment}}{{?}}\r\n {{=it.func.camel(field.defKey, false)}}?: {{=field.dbDataType === 'TINYINT' && field.dataLen === 1 ? 'boolean' : field.langDataType}}\r\n {{~}}\r\n }\r\n }\r\n}\r\n$blankline" } ] } ] }, { "defKey": "Rust", "defName": null, "icon": "\n \n \n \n \n ", "color": "", "orderValue": 2, "isEnabled": 0, "id": "BPP6MJOD47EAB", "codegens": [ { "genKey": "default", "genIntro": null, "genItems": [ { "itemKey": "struct", "itemIntro": null, "itemTemplate": "use chrono::{DateTime, Local};\nuse serde::{Deserialize, Serialize};\n$blankline\n/// {{=it.defName}}\n#[derive(Serialize, Deserialize, Debug, Clone)]\n{{ var today=new Date();\n var fullYear=today.getFullYear();\n var month=today.getMonth() + 1;\n var days=today.getDate();\n \n var pkVarName = \"undefinedId\";\n var pkDataType = \"String\";\n it.fields.forEach(function(field){\n if(field.primaryKey){\n pkVarName = it.func.camel(field.defKey,false);\n pkDataType = field[\"langDataType\"];\n return;\n }\n });\n \n var pkgName = 'com.yonsum.pdmaas.xxx';\n var beanClass = it.props?.codeGen?.nameSpace||it.func.camel(it.defKey,true);\n var beanVarName = it.props?.codeGen?.className||beanClass.charAt(0).toLowerCase()+beanClass.slice(1);\n \n}}\npub struct {{=beanClass}} {\n {{~it.fields:field:index}}\n {{\n let fieldDateType = field.langDataType;\n if(!field.notNull){\n fieldDateType = 'Option<'+fieldDateType+'>';\n }\n }}/// {{=field.defName}}\n pub {{=it.func.camel(field.defKey,false)}}: {{=fieldDateType}},\n {{~}}\n}\n" } ] } ] }, { "defKey": "CSharp", "defName": null, "icon": "\n \n \n \n \n ", "color": "", "orderValue": 3, "isEnabled": 0, "id": "BPP6MHGXM7EAB", "codegens": [ { "genKey": "default", "genIntro": null, "genItems": [ { "itemKey": "content", "itemIntro": null, "itemTemplate": "using System;\nusing System.Collections.Generic;\n\n$blankline\n{{\n var today=new Date();\n var fullYear=today.getFullYear();\n var month=today.getMonth() + 1;\n var days=today.getDate();\n}}\n/*\n * @author : http://www.chiner.com.cn\n * @date : {{=fullYear}}-{{=month}}-{{=days}}\n * @desc : {{=it.func.join(it.defName,it.comment,'-')}}\n */\nnamespace PDManer.Application\n{\n public partial class {{=it.func.camel(it.defKey,true) }}\n {\n \n {{~it.fields:field:index}}\n /// \n /// {{=it.func.join(field.defName,field.comment,';')}}\n /// \n public {{=field.langDataType}} {{=it.func.camel(field.defKey,true)}} { get; set; }\n $blankline\n {{~}}\n \n }\n}" } ] } ] }, { "defKey": "GoLang", "defName": null, "icon": "\n \n \n \n \n ", "color": "", "orderValue": 4, "isEnabled": 0, "id": "BPP6MIOT47EAC", "codegens": [ { "genKey": "default", "genIntro": "默认代码生成器", "genItems": [ { "itemKey": "content", "itemIntro": "我是golang默认的代码生成器", "itemTemplate": "{{\n var today=new Date();\n var fullYear=today.getFullYear();\n var month=today.getMonth() + 1<10?\"0\"+today.getMonth():today.getMonth();\n var days=today.getDate()<10?\"0\"+today.getDate():today.getDate();\n var hours = today.getHours()<10?\"0\"+today.getHours():today.getHours(); \n\tvar minutes = today.getMinutes()<10?\"0\"+today.getMinutes():today.getMinutes(); \n\tvar seconds = today.getSeconds()<10?\"0\"+today.getSeconds():today.getSeconds(); \n}}\n// Package models {{=it.func.join(it.defName,it.comment,',')}}\n// author : http://www.liyang.love\n// date : {{=fullYear}}-{{=month}}-{{=days}} {{=hours}}:{{=minutes}}\n// desc : {{=it.func.join(it.defName,it.comment,',')}}\npackage models\n\n$blankline\n\n// {{=it.func.camel(it.defKey,true) }} {{=it.func.join(it.defName,it.comment,',')}}。\n// 说明:{{=it.comment}}\n// 表名:{{=it.defKey}}\n// group: {{=it.func.camel(it.defKey,true) }}\n// obsolete:\n// appliesto:go 1.8+;\n// namespace:hongmouer.his.models.{{=it.func.camel(it.defKey,true) }}\n// assembly: hongmouer.his.models.go\n// class:HongMouer.HIS.Models.{{=it.func.camel(it.defKey,true) }}\n// version:{{=fullYear}}-{{=month}}-{{=days}} {{=hours}}:{{=minutes}}\ntype {{=it.func.camel(it.defKey,true) }} struct {\n {{~it.fields:field:index}}\n {{=formatGoLang(it.func.camel(field.defKey,true),null,field,it.fields,null,1)}} {{=formatGoLang(field.langDataType,\"langDataType\",field,it.fields,10,3)}} `gorm:\"column:{{=field.primaryKey?\"primaryKey;\":\"\"}}{{=field.defKey}}\" json:\"{{=it.func.camel(field.defKey,true)}}\"` {{=formatGoLang(\"gorm:column:\"+field.defKey+\" json:\"+it.func.camel(field.defKey,true),null,field,it.fields,null,2)}} //type:{{=formatGoLang(field.langDataType,\"langDataType\",field,it.fields,null,3)}} comment:{{=formatGoLang(it.func.join(field.defName,field.comment,';'),\"defName\",field,it.fields,null,4)}} version:{{=fullYear}}-{{=month}}-{{=days}} {{=hours}}:{{=minutes}}\n {{~}}\n}\n\n\n$blankline\n// TableName 表名:{{=it.defKey}},{{=it.defName}}。\n// 说明:{{=it.comment}}\nfunc (ZentaoUserInfo) TableName() string {\n\treturn \"{{=it.defKey}}\"\n}\n\n{{\n\nfunction formatGoLang(str, fieldName, field, fileds, emptLength, isFiled) {\n var maxLength = 0;\n\n if (isFiled == 1) {\n for (var i = 0; i < fileds.length; i++) {\n if (getBlength(it.func.camel(fileds[i].defKey, true)) > maxLength) {\n maxLength = getBlength(it.func.camel(fileds[i].defKey, true)) + 2;\n }\n }\n } else if (isFiled == 2) {\n for (var i = 0; i < fileds.length; i++) {\n var newStr = \"gorm:column:\" + fileds[i].defKey + \" json:\" + it.func.camel(fileds[i].defKey, true);\n if (getBlength(newStr) > maxLength) {\n maxLength = getBlength(newStr) + 2;\n }\n }\n var empt = \"\";\n var strLength = getBlength(str);\n if (field.primaryKey) {\n strLength += getBlength(\"primaryKey;\");\n }\n for (var j = 0; j < maxLength - strLength; j++) {\n empt += ' ';\n }\n return empt;\n } else if (isFiled == 3) {\n /*获取某个字段的最大长度*/\n for (var i = 0; i < fileds.length; i++) {\n var newStr = eval(\"fileds[\" + i + \"].\" + fieldName);\n if (getBlength(newStr) > maxLength) {\n maxLength = getBlength(newStr) + 1;\n }\n }\n } else if (isFiled == 4) {\n /*获取某个字段的最大长度*/\n for (var i = 0; i < fileds.length; i++) {\n var newStr = fileds[i].comment + \";\" + fileds[i].defName;\n if (getBlength(newStr) > maxLength) {\n maxLength = getBlength(newStr) + 1;\n }\n }\n }\n else {\n maxLength = emptLength;\n }\n\n var strLength = getBlength(str);\n for (var j = 0; j < maxLength - strLength; j++) {\n str += ' ';\n }\n return str;\n}\n\nfunction getBlength(str) {\n var n = 0;\n for (var i = str.length; i--;) {\n n += str.charCodeAt(i) > 255 ? 2 : 1;\n }\n return n;\n} \n\n}}" } ] } ] }, { "defKey": "Python", "defName": null, "icon": "\n \n \n \n \n ", "color": "", "orderValue": 5, "isEnabled": 0, "id": "BPP6MLTRQ7EAC", "codegens": [ { "genKey": "default", "genIntro": null, "genItems": [ { "itemKey": "content", "itemIntro": null, "itemTemplate": "{{\r\n var today=new Date();\r\n var fullYear=today.getFullYear();\r\n var month=today.getMonth() + 1;\r\n var days=today.getDate();\r\n}}\r\n\r\n\"\"\"\r\n @author : \r\n @date : {{=fullYear}}-{{=month}}-{{=days}}\r\n @desc : {{=it.func.join(it.defName,it.comment,'-')}}\r\n\"\"\"\r\nclass {{=it.func.camel(it.defKey, true)}}:\r\n def __init__(self):\r\n # Initialize properties as None\r\n {{~it.fields:field:index}}\r\n self._{{=it.func.camel(field.defKey, true)}} = None\r\n {{~}}\r\n\r\n {{~it.fields:field:index}}\r\n @property\r\n def {{=it.func.camel(field.defKey, true)}}(self):\r\n \"\"\"\r\n {{=it.func.join(field.defName, field.comment, ';')}}\r\n \"\"\"\r\n return self._{{=it.func.camel(field.defKey, true)}}\r\n\r\n @{{=it.func.camel(field.defKey, true)}}.setter\r\n def {{=it.func.camel(field.defKey, true)}}(self, value):\r\n self._{{=it.func.camel(field.defKey, true)}} = value\r\n {{~}}\r\n\r\n def __str__(self):\r\n # Return a string representation of the object\r\n return str(self.__dict__)\r\n\r\n{{\r\n var today=new Date();\r\n var fullYear=today.getFullYear();\r\n var month=today.getMonth() + 1;\r\n var days=today.getDate();\r\n}}" } ] } ] }, { "defKey": "PHP", "defName": null, "icon": "\n \n \n \n \n ", "color": "", "orderValue": 6, "isEnabled": 0, "id": "BPP6MMSQQ7EAB", "codegens": [ { "genKey": "default", "genIntro": null, "genItems": [ { "itemKey": "content", "itemIntro": null, "itemTemplate": "properties['{{=it.func.camel(field.defKey,true)}}'] = null;\r\n {{~}}\r\n }\r\n\r\n {{~it.fields:field:index}}\r\n /**\r\n * {{=it.func.join(field.defName, field.comment, ';')}}\r\n */\r\n public function get{{=it.func.camel(field.defKey, true)}}(): {{=field.langDataType}} {\r\n return $this->properties['{{=it.func.camel(field.defKey,true)}}'];\r\n }\r\n\r\n public function set{{=it.func.camel(field.defKey, true)}}($value): void {\r\n $this->properties['{{=it.func.camel(field.defKey,true)}}'] = $value;\r\n }\r\n {{~}}\r\n\r\n public function __toString() {\r\n return json_encode($this->properties);\r\n }\r\n}\r\n\r\n?>\r\n\r\n" } ] } ] }, { "defKey": "CAndCpp", "defName": null, "icon": "\n \n \n \n \n ", "color": "", "orderValue": 7, "isEnabled": 0, "id": "BPP6MO4ZM7EAB", "codegens": [ { "genKey": "default", "genIntro": null, "genItems": [ { "itemKey": "C", "itemIntro": null, "itemTemplate": "#include \r\n#include \r\n#include \r\n\r\ntypedef struct {\r\n {{~it.fields:field:index}}\r\n {{=field.langDataType}} {{=it.func.camel(field.defKey, false)}};\r\n {{~}}\r\n} {{=it.func.camel(it.defKey, true)}};\r\n\r\n// Functions to interact with the bean\r\nvoid {{=it.func.camel(it.defKey, true)}}_init({{=it.func.camel(it.defKey, true)}} *bean) {\r\n {{~it.fields:field:index}}\r\n bean->{{=it.func.camel(field.defKey, false)}} = null;\r\n {{~}}\r\n}\r\n\r\n{{~it.fields:field:index}}\r\n/**\r\n * {{=it.func.join(field.defName, field.comment, ';')}}\r\n */\r\n{{=field.langDataType}} {{=it.func.camel(it.defKey, true)}}_get{{=it.func.camel(field.defKey, true)}}({{=it.func.camel(it.defKey, true)}} *bean) {\r\n return bean->{{=it.func.camel(field.defKey, false)}};\r\n}\r\n\r\nvoid {{=it.func.camel(it.defKey, true)}}_set{{=it.func.camel(field.defKey, true)}}({{=it.func.camel(it.defKey, true)}} *bean, {{=field.langDataType}} value) {\r\n bean->{{=it.func.camel(field.defKey, false)}} = value;\r\n}\r\n{{~}}\r\n\r\nvoid {{=it.func.camel(it.defKey, true)}}_print(const {{=it.func.camel(it.defKey, true)}} *bean) {\r\n printf(\"{{=it.func.camel(it.defKey, true)}} {\");\r\n {{~it.fields:field:index}}\r\n printf(\" %s: %d\", \"{{=it.func.camel(field.defKey, false)}}\", bean->{{=it.func.camel(field.defKey, false)}});\r\n {{~}}\r\n printf(\" }\\n\");\r\n}\r\n\r\n" }, { "itemKey": "C++", "itemIntro": null, "itemTemplate": "#include \r\n#include \r\n#include \r\n#include \r\n\r\n{{\r\n var today=new Date();\r\n var fullYear=today.getFullYear();\r\n var month=today.getMonth() + 1;\r\n var days=today.getDate();\r\n}}\r\n/*\r\n * @author : \r\n * @date : {{=fullYear}}-{{=month}}-{{=days}}\r\n * @desc : {{=it.func.join(it.defName,it.comment,'-')}}\r\n */\r\nclass {{=it.func.camel(it.defKey, true)}} {\r\npublic:\r\n // Constructor\r\n {{=it.func.camel(it.defKey, true)}}() {\r\n // Initialize properties\r\n {{~it.fields:field:index}}\r\n _{{=it.func.camel(field.defKey, true)}} = {};\r\n {{~}}\r\n }\r\n\r\n // Getters and Setters\r\n {{~it.fields:field:index}}\r\n /**\r\n * {{=it.func.join(field.defName, field.comment, ';')}}\r\n */\r\n {{=field.langDataType}} get{{=it.func.camel(field.defKey, true)}}() const {\r\n return _{{=it.func.camel(field.defKey, true)}};\r\n }\r\n\r\n void set{{=it.func.camel(field.defKey, true)}}({{=field.langDataType}} value) {\r\n _{{=it.func.camel(field.defKey, true)}} = value;\r\n }\r\n {{~}}\r\n\r\n // Convert to string\r\n std::string toString() const {\r\n std::ostringstream oss;\r\n oss << \"{{=it.func.camel(it.defKey, true)}} {\";\r\n {{~it.fields:field:index}}\r\n oss << \" \" << \"{{=it.func.camel(field.defKey, true)}}\" << \": \" << _{{=it.func.camel(field.defKey, true)}};\r\n {{~}}\r\n oss << \" }\";\r\n return oss.str();\r\n }\r\n\r\nprivate:\r\n {{~it.fields:field:index}}\r\n {{=field.langDataType}} _{{=it.func.camel(field.defKey, true)}};\r\n {{~}}\r\n};\r\n\r\n// Metadata\r\nconst std::string author = \"http://www.chiner.com.cn\";\r\nstd::time_t t = std::time(nullptr);\r\nstd::tm* tm = std::localtime(&t);\r\nstd::ostringstream dateStream;\r\ndateStream << (1900 + tm->tm_year) << \"-\" << (1 + tm->tm_mon) << \"-\" << tm->tm_mday;\r\nconst std::string date = dateStream.str();\r\nconst std::string desc = \"{{=it.func.join(it.defName, it.comment, '-') }}\";\r\n\r\nint main() {\r\n std::cout << \"Author: \" << author << std::endl;\r\n std::cout << \"Date: \" << date << std::endl;\r\n std::cout << \"Description: \" << desc << std::endl;\r\n\r\n {{=it.func.camel(it.defKey, true)}} obj;\r\n std::cout << obj.toString() << std::endl;\r\n\r\n return 0;\r\n}\r\n" } ] } ] }, { "defKey": "Swift", "defName": null, "icon": "\n \n \n \n \n ", "color": "", "orderValue": 8, "isEnabled": 0, "id": "BPP6MQB6M7EAB", "codegens": [ { "genKey": "default", "genIntro": null, "genItems": [ { "itemKey": "content", "itemIntro": null, "itemTemplate": "import Foundation\r\n\r\n{{\r\n var today=new Date();\r\n var fullYear=today.getFullYear();\r\n var month=today.getMonth() + 1;\r\n var days=today.getDate();\r\n}}\r\n/*\r\n * @author : \r\n * @date : {{=fullYear}}-{{=month}}-{{=days}}\r\n * @desc : {{=it.func.join(it.defName,it.comment,'-')}}\r\n */\r\nclass {{=it.func.camel(it.defKey, true)}} {\r\n // Properties\r\n {{~it.fields:field:index}}\r\n /// {{=it.func.join(field.defName, field.comment, \";\")}}\r\n var {{=it.func.camel(field.defKey, false)}}: {{=field.langDataType}}?\r\n {{~}}\r\n\r\n // Initializer\r\n init() {\r\n // Initialize properties if needed\r\n {{~it.fields:field:index}}\r\n self.{{=it.func.camel(field.defKey, false)}} = nil\r\n {{~}}\r\n }\r\n\r\n // Description\r\n func description() -> String {\r\n return \"\"\"\r\n {{=it.func.camel(it.defKey, true)}} {\r\n {{~it.fields:field:index}}\r\n {{=it.func.camel(field.defKey, false)}}: \\(String(describing: {{=it.func.camel(field.defKey, false)}}))\r\n {{~}}\r\n }\r\n \"\"\"\r\n }\r\n}\r\n{{\r\n var today=new Date();\r\n var fullYear=today.getFullYear();\r\n var month=today.getMonth() + 1;\r\n var days=today.getDate();\r\n}}\r\n" } ] } ] } ], "dataTypes": [ { "id": "S_1KH33AC0D2V01", "defKey": "CHAR", "defName": "CHAR", "icon": "", "color": null, "requireLen": 1, "requireScale": 0, "lenMax": "0", "often": "5", "orderValue": 0, "dbDataType": { "XuguDB": "CHAR", "DaMeng": "CHAR", "KingBase": "CHAR", "SQLite": "CHAR", "Inceptor": "CHAR", "Oracle": "CHAR", "HighGo": "CHAR", "GaussDB": "CHAR", "OceanBase-Mysql": "CHAR", "MaxCompute": "CHAR", "Doris": "VARCHAR", "ClickHouse": "FixedString", "GBase 8A": "CHAR", "StarRocks": "CHAR", "ShenTong": "CHAR", "Impala": "CHAR", "OceanBase-Oracle": "CHAR", "Hive": "CHAR", "GBase 8S": "CHAR", "DaMeng_1": "CHAR", "DB2": "CHAR", "Oracle_9": "CHAR", "SQLServer": "CHAR", "GBase 8s": "CHAR", "PostgreSQL": "CHAR", "MySQL": "CHAR" }, "langDataType": { "CSharp": "string", "Rust": "String", "CAndCpp": "std::string", "PHP": "string", "Swift": "String", "testa": "char5", "GoLang": "string", "Python": "str", "Java": "String", "NodeJS": "string" } }, { "id": "S_BPQI3EFQE64AB", "defKey": "VARCHAR", "defName": "VARCHAR", "icon": "", "color": null, "requireLen": 1, "requireScale": 0, "lenMax": "", "often": "9", "orderValue": 1, "dbDataType": { "XuguDB": "VARCHAR", "DaMeng": "VARCHAR", "KingBase": "VARCHAR", "SQLite": "TEXT", "Inceptor": "VARCHAR", "Oracle": "VARCHAR2", "HighGo": "VARCHAR", "GaussDB": "VARCHAR2", "OceanBase-Mysql": "VARCHAR", "MaxCompute": "VARCHAR", "Doris": "VARCHAR", "ClickHouse": "String", "GBase 8A": "VARCHAR", "StarRocks": "VARCHAR", "ShenTong": "VARCHAR", "Impala": "VARCHAR", "OceanBase-Oracle": "VARCHAR2", "Hive": "VARCHAR", "GBase 8S": "VARCHAR", "DaMeng_1": "VARCHAR", "DB2": "VARCHAR", "Oracle_9": "VARCHAR2", "SQLServer": "VARCHAR", "GBase 8s": "VARCHAR", "PostgreSQL": "VARCHAR", "MySQL": "VARCHAR" }, "langDataType": { "CSharp": "string", "Rust": "String", "CAndCpp": "std::string", "PHP": "string", "Swift": "String", "testa": "varchar", "GoLang": "string", "Python": "str", "Java": "String", "NodeJS": "string" } }, { "id": "S_1KH3C7JJV2V02", "defKey": "TINYINT", "defName": "TINYINT", "icon": "", "color": null, "requireLen": 1, "requireScale": 0, "lenMax": "0", "often": "9", "orderValue": 2, "dbDataType": { "XuguDB": "TINYINT", "DaMeng": "TINYINT", "KingBase": "TINYINT", "SQLite": "TINYINT", "Inceptor": "TINYINT", "Oracle": "INTEGER", "HighGo": "TINYINT", "GaussDB": "TINYINT", "OceanBase-Mysql": "TINYINT", "MaxCompute": "TINYINT", "Doris": "TINYINT", "ClickHouse": "Int8", "GBase 8A": "TINYINT", "StarRocks": "TINYINT", "ShenTong": "TINYINT", "Impala": "TINYINT", "OceanBase-Oracle": "INTEGER", "Hive": "TINYINT", "GBase 8S": "", "DaMeng_1": "TINYINT", "DB2": "SMALLINT", "Oracle_9": "INTEGER", "SQLServer": "TINYINT", "GBase 8s": "TINYINT", "PostgreSQL": "INT2", "MySQL": "TINYINT" }, "langDataType": { "CSharp": "byte", "Rust": "i8", "CAndCpp": "int8_t", "PHP": "integer", "Swift": "Int8", "testa": "tiniyint", "GoLang": "int8", "Python": "int", "Java": "Byte", "NodeJS": "number" } }, { "id": "S_1K762TYDMP802", "defKey": "SMALLINT", "defName": "SMALLINT", "icon": "", "color": null, "requireLen": 0, "requireScale": 0, "lenMax": null, "often": "5", "orderValue": 3, "dbDataType": { "XuguDB": "SMALLINT", "DaMeng": "SMALLINT", "KingBase": "SMALLINT", "SQLite": "SMALLINT", "Inceptor": "SMALLINT", "Oracle": "INTEGER", "HighGo": "SMALLINT", "GaussDB": "SMALLINT", "OceanBase-Mysql": "SMALLINT", "MaxCompute": "SMALLINT", "Doris": "SMALLINT", "ClickHouse": "Int16", "GBase 8A": "SMALLINT", "StarRocks": "SMALLINT", "ShenTong": "SMALLINT", "Impala": "SMALLINT", "OceanBase-Oracle": "INTEGER", "Hive": "SMALLINT", "GBase 8S": "SMALLINT", "DaMeng_1": "SMALLINT", "DB2": "SMALLINT", "Oracle_9": "INTEGER", "SQLServer": "SMALLINT", "GBase 8s": "SMALLINT", "PostgreSQL": "INT2", "MySQL": "SMALLINT" }, "langDataType": { "CSharp": "short", "Rust": "i16", "CAndCpp": "int16_t", "PHP": "integer", "Swift": "Int16", "testa": "smallint", "GoLang": "int16", "Python": "int", "Java": "Short", "NodeJS": "number" } }, { "id": "S_1KH3CKM5V2V01", "defKey": "MEDIUMINT", "defName": "MEDIUMINT", "icon": "", "color": null, "requireLen": 0, "requireScale": 0, "lenMax": "0", "often": "5", "orderValue": 4, "dbDataType": { "XuguDB": "", "DaMeng": "INTEGER", "KingBase": "", "SQLite": "MEDIUMINT", "Inceptor": "INT", "Oracle": "INTEGER", "HighGo": "", "GaussDB": "MEDIUMINT", "OceanBase-Mysql": "MEDIUMINT", "MaxCompute": "INT", "Doris": "", "ClickHouse": "", "GBase 8A": "", "StarRocks": "", "ShenTong": "INT", "Impala": "", "OceanBase-Oracle": "INTEGER", "Hive": "", "GBase 8S": "", "DaMeng_1": "INTEGER", "DB2": "INTEGER", "Oracle_9": "INTEGER", "SQLServer": "INT", "PostgreSQL": "INT", "MySQL": "MEDIUMINT" }, "langDataType": { "CSharp": "int", "Rust": "i32", "CAndCpp": "int32_t", "PHP": "integer", "Swift": "Int32", "testa": "mediumint", "GoLang": "int32", "Python": "int", "Java": "Integer", "NodeJS": "number" } }, { "id": "S_BPQI3JDIY64AC", "defKey": "INT", "defName": "INT", "icon": "", "color": null, "requireLen": 0, "requireScale": 0, "lenMax": "", "often": "9", "orderValue": 5, "dbDataType": { "XuguDB": "INTEGER", "DaMeng": "INTEGER", "KingBase": "INTEGER", "SQLite": "INTEGER", "Inceptor": "INT", "Oracle": "INTEGER", "HighGo": "INTEGER", "GaussDB": "INTEGER", "OceanBase-Mysql": "INTEGER", "MaxCompute": "INT", "Doris": "INT", "ClickHouse": "Int32", "GBase 8A": "INT", "StarRocks": "INT", "ShenTong": "INT", "Impala": "INT", "OceanBase-Oracle": "INTEGER", "Hive": "INT", "GBase 8S": "INTEGER", "DaMeng_1": "INTEGER", "DB2": "INTEGER", "Oracle_9": "INTEGER", "SQLServer": "INT", "GBase 8s": "INT", "PostgreSQL": "INT4", "MySQL": "INT" }, "langDataType": { "CSharp": "int", "Rust": "i32", "CAndCpp": "int", "PHP": "int", "Swift": "Int", "testa": "int", "GoLang": "int", "Python": "int", "Java": "Integer", "NodeJS": "number" } }, { "id": "S_1JY39V9QR0H01", "defKey": "BIGINT", "defName": "BIGINT", "icon": "", "color": null, "requireLen": 0, "requireScale": 0, "lenMax": null, "often": "9", "orderValue": 6, "dbDataType": { "XuguDB": "BIGINT", "DaMeng": "BIGINT", "KingBase": "BIGINT", "SQLite": "BIGHTINT", "Inceptor": "BIGINT", "Oracle": "INTEGER", "HighGo": "BIGINT", "GaussDB": "BIGINT", "OceanBase-Mysql": "BIGINT", "MaxCompute": "BIGINT", "Doris": "BIGINT", "ClickHouse": "Int64", "GBase 8A": "BIGINT", "StarRocks": "BIGINT", "ShenTong": "BIGINT", "Impala": "BIGINT", "OceanBase-Oracle": "BIGINT", "Hive": "BIGINT", "GBase 8S": "BIGINT", "DaMeng_1": "BIGINT", "DB2": "BIGINT", "Oracle_9": "INTEGER", "SQLServer": "BIGINT", "PostgreSQL": "INT8", "MySQL": "BIGINT" }, "langDataType": { "CSharp": "long", "Rust": "i64", "CAndCpp": "int64_t", "PHP": "integer", "Swift": "Int64", "testa": "b", "GoLang": "int64", "Python": "int", "Java": "Long", "NodeJS": "string" } }, { "id": "S_1KH3CUG482V02", "defKey": "FLOAT", "defName": "FLOAT", "icon": "", "color": null, "requireLen": 1, "requireScale": 1, "lenMax": "0", "often": "5", "orderValue": 7, "dbDataType": { "XuguDB": "FLOAT", "DaMeng": "REAL", "KingBase": "REAL", "SQLite": "FLOAT", "Inceptor": "FLOAT", "Oracle": "FLOAT", "HighGo": "REAL", "GaussDB": "REAL", "OceanBase-Mysql": "BIGINT", "MaxCompute": "FLOAT", "Doris": "", "ClickHouse": "Float32", "GBase 8A": "FLOAT", "StarRocks": "FLOAT", "ShenTong": "FLOAT", "Impala": "REAL", "OceanBase-Oracle": "FLOAT", "Hive": "FLOAT", "GBase 8S": "REAL", "DaMeng_1": "REAL", "DB2": "REAL", "Oracle_9": "FLOAT", "SQLServer": "REAL", "PostgreSQL": "FLOAT4", "MySQL": "FLOAT" }, "langDataType": { "CSharp": "float", "Rust": "f32", "CAndCpp": "float", "PHP": "float", "Swift": "Float", "testa": "", "GoLang": "float32", "Python": "float", "Java": "Float", "NodeJS": "number" } }, { "id": "S_BPQI3HBUQ64AC", "defKey": "DOUBLE", "defName": "DOUBLE", "icon": "", "color": null, "requireLen": 1, "requireScale": 1, "lenMax": null, "often": "5", "orderValue": 8, "dbDataType": { "XuguDB": "DOUBLE", "DaMeng": "DOUBLE", "KingBase": "DOUBLE PRECISION", "SQLite": "DOUBLE", "Inceptor": "DOUBLE", "Oracle": "BINARY_DOUBLE", "HighGo": "DOUBLE PRECISION", "GaussDB": "DOUBLE PRECISION", "OceanBase-Mysql": "DOUBLE", "MaxCompute": "DOUBLE", "Doris": "DECIMAL", "ClickHouse": "Float64", "GBase 8A": "DOUBLE", "StarRocks": "DOUBLE", "ShenTong": "NUMERIC", "Impala": "FLOAT", "OceanBase-Oracle": "DOUBLE PRECISION", "Hive": "DOUBLE", "GBase 8S": "FLOAT", "DaMeng_1": "DOUBLE", "DB2": "DOUBLE", "Oracle_9": "BINARY_DOUBLE", "SQLServer": "FLOAT", "PostgreSQL": "FLOAT8", "MySQL": "DOUBLE" }, "langDataType": { "CSharp": "double", "Rust": "f64", "CAndCpp": "double", "PHP": "float", "Swift": "Double", "testa": "", "GoLang": "float64", "Python": "float", "Java": "Double", "NodeJS": "number" } }, { "id": "S_1KH3D5CQR2V01", "defKey": "DECIMAL", "defName": "DECIMAL", "icon": "", "color": null, "requireLen": 1, "requireScale": 1, "lenMax": "0", "often": "9", "orderValue": 9, "dbDataType": { "XuguDB": "NUMERIC", "DaMeng": "DECIMAL", "KingBase": "NUMERIC", "SQLite": "DECIMAL", "Inceptor": "DECIMAL", "Oracle": "DECIMAL", "HighGo": "NUMERIC", "GaussDB": "NUMERIC", "OceanBase-Mysql": "DECIMAL", "MaxCompute": "DECIMAL", "Doris": "DECIMAL", "ClickHouse": "Decimal", "GBase 8A": "DOUBLE", "StarRocks": "DECIMAL", "ShenTong": "NUMERIC", "Impala": "DECIMAL", "OceanBase-Oracle": "DECIMAL", "Hive": "DECIMAL", "GBase 8S": "DECIMAL", "DaMeng_1": "DECIMAL", "DB2": "DECIMAL", "Oracle_9": "DECIMAL", "SQLServer": "DECIMAL", "PostgreSQL": "DECIMAL", "MySQL": "DECIMAL" }, "langDataType": { "CSharp": "decimal", "Rust": "BigDecimal", "CAndCpp": "", "PHP": "float", "Swift": "Decimal", "testa": "", "GoLang": "big.Float", "Python": "decimal.Decimal", "Java": "BigDecimal", "NodeJS": "number" } }, { "id": "S_1KH3E6H182V02", "defKey": "TIME", "defName": "TIME", "icon": "", "color": null, "requireLen": 0, "requireScale": 0, "lenMax": "0", "often": "5", "orderValue": 10, "dbDataType": { "XuguDB": "TIME", "DaMeng": "TIME", "KingBase": "TIME", "SQLite": "TIME", "Inceptor": "TIME", "Oracle": "", "HighGo": "TIME", "GaussDB": "TIME", "OceanBase-Mysql": "TIME", "MaxCompute": "", "Doris": "", "ClickHouse": "", "GBase 8A": "TIME", "StarRocks": "", "ShenTong": "TIME", "Impala": "", "OceanBase-Oracle": "DATE", "Hive": "", "GBase 8S": "", "DaMeng_1": "TIME", "DB2": "TIME", "Oracle_9": "", "SQLServer": "TIME", "PostgreSQL": "TIME", "MySQL": "TIME" }, "langDataType": { "CSharp": "TimeSpan", "Rust": "NaiveTime", "CAndCpp": "", "PHP": "DateTime", "Swift": "Date", "testa": "", "GoLang": "time.Duration", "Python": "datetime.time", "Java": "LocalTime", "NodeJS": "string" } }, { "id": "S_BPQIJ7OGY7YAC", "defKey": "DATE", "defName": "DATE", "icon": "", "color": null, "requireLen": 0, "requireScale": 0, "lenMax": null, "often": "5", "orderValue": 11, "dbDataType": { "XuguDB": "DATE", "DaMeng": "DATE", "KingBase": "DATE", "SQLite": "DATE", "Inceptor": "DATE", "Oracle": "DATE", "HighGo": "DATE", "GaussDB": "DATE", "OceanBase-Mysql": "DATE", "MaxCompute": "DATE", "Doris": "DATE", "ClickHouse": "Date", "GBase 8A": "DATE", "StarRocks": "DATE", "ShenTong": "DATE", "Impala": "DATE", "OceanBase-Oracle": "DATE", "Hive": "DATE", "GBase 8S": "DATE", "DaMeng_1": "DATE", "DB2": "DATE", "Oracle_9": "DATE", "SQLServer": "DATE", "PostgreSQL": "DATE", "MySQL": "DATE" }, "langDataType": { "CSharp": "DateTime", "Rust": "chrono::NaiveDate", "CAndCpp": "", "PHP": "DateTime", "Swift": "Date", "testa": "", "GoLang": "time.Time", "Python": "datetime.date", "Java": "LocalDate", "NodeJS": "string" } }, { "id": "S_1JY3EDEDV3801", "defKey": "DATETIME", "defName": "DATETIME", "icon": "", "color": null, "requireLen": 0, "requireScale": 0, "lenMax": null, "often": "9", "orderValue": 12, "dbDataType": { "XuguDB": "DATETIME", "DaMeng": "DATETIME", "KingBase": "DATETIME", "SQLite": "DATETIME", "Inceptor": "DATE", "Oracle": "TIMESTAMP", "HighGo": "TIMESTAMP", "GaussDB": "DATETIME", "OceanBase-Mysql": "DATETIME", "MaxCompute": "DATETIME", "Doris": "DATETIME", "ClickHouse": "DateTime", "GBase 8A": "", "StarRocks": "DATETIME", "ShenTong": "TIMESTAMP", "Impala": "", "OceanBase-Oracle": "TIMESTAMP", "Hive": "TIMESTAMP", "GBase 8S": "DATETIME", "DaMeng_1": "DATETIME", "DB2": "TIMESTAMP", "Oracle_9": "TIMESTAMP", "SQLServer": "DATETIME", "PostgreSQL": "TIMESTAMP", "MySQL": "DATETIME" }, "langDataType": { "CSharp": "DateTime", "Rust": "chrono::NaiveDateTime", "CAndCpp": "", "PHP": "DateTime", "Swift": "Date", "testa": "", "GoLang": "time.Time", "Python": "datetime.datetime", "Java": "LocalDateTime", "NodeJS": "string" } }, { "id": "S_1KH3EXFL02V02", "defKey": "TINYTEXT", "defName": "TINYTEXT", "icon": "", "color": null, "requireLen": 0, "requireScale": 0, "lenMax": "0", "often": "1", "orderValue": 13, "dbDataType": { "XuguDB": "CLOB", "DaMeng": "TEXT", "KingBase": "TEXT", "SQLite": "INYTEXT", "Inceptor": "STRING", "Oracle": "CLOB", "HighGo": "TEXT", "GaussDB": "TEXT", "OceanBase-Mysql": "TINYTEXT", "MaxCompute": "STRING", "Doris": "", "ClickHouse": "TEXT", "GBase 8A": "TEXT", "StarRocks": "STRING", "ShenTong": "TEXT", "Impala": "STRING", "OceanBase-Oracle": "CLOB", "Hive": "STRING", "GBase 8S": "TEXT", "DaMeng_1": "TEXT", "DB2": "CLOB", "Oracle_9": "CLOB", "SQLServer": "TEXT", "PostgreSQL": "TEXT", "MySQL": "TINYTEXT" }, "langDataType": { "CSharp": "string", "Rust": "String", "CAndCpp": "std::string", "PHP": "string", "Swift": "String", "testa": "", "GoLang": "string", "Python": "str", "Java": "String", "NodeJS": "string" } }, { "id": "S_1KH3F5LVM2V01", "defKey": "MEDIUMTEXT", "defName": "MEDIUMTEXT", "icon": "", "color": null, "requireLen": 0, "requireScale": 0, "lenMax": "0", "often": "5", "orderValue": 14, "dbDataType": { "XuguDB": "CLOB", "DaMeng": "TEXT", "KingBase": "TEXT", "SQLite": "MEDIUMTEXT", "Inceptor": "STRING", "Oracle": "CLOB", "HighGo": "TEXT", "GaussDB": "TEXT", "OceanBase-Mysql": "MEDIUMTEXT", "MaxCompute": "STRING", "Doris": "", "ClickHouse": "TEXT", "GBase 8A": "TEXT", "StarRocks": "STRING", "ShenTong": "TEXT", "Impala": "STRING", "OceanBase-Oracle": "CLOB", "Hive": "STRING", "GBase 8S": "TEXT", "DaMeng_1": "TEXT", "DB2": "CLOB", "Oracle_9": "CLOB", "SQLServer": "TEXT", "PostgreSQL": "TEXT", "MySQL": "MEDIUMTEXT" }, "langDataType": { "CSharp": "string", "Rust": "String", "CAndCpp": "std::string", "PHP": "string", "Swift": "String", "testa": "", "GoLang": "string", "Python": "str", "Java": "String", "NodeJS": "string" } }, { "id": "S_1K281U4GH3D02", "defKey": "TEXT", "defName": "TEXT", "icon": "", "color": null, "requireLen": 0, "requireScale": 0, "lenMax": null, "often": "9", "orderValue": 15, "dbDataType": { "XuguDB": "CLOB", "DaMeng": "TEXT", "KingBase": "TEXT", "SQLite": "TEXT", "Inceptor": "STRING", "Oracle": "CLOB", "HighGo": "TEXT", "GaussDB": "TEXT", "OceanBase-Mysql": "TEXT", "MaxCompute": "STRING", "Doris": "VARCHAR", "ClickHouse": "TEXT", "GBase 8A": "TEXT", "StarRocks": "STRING", "ShenTong": "TEXT", "Impala": "STRING", "OceanBase-Oracle": "CLOB", "Hive": "STRING", "GBase 8S": "TEXT", "DaMeng_1": "TEXT", "DB2": "CLOB", "Oracle_9": "CLOB", "SQLServer": "TEXT", "PostgreSQL": "TEXT", "MySQL": "TEXT" }, "langDataType": { "CSharp": "string", "Rust": "String", "CAndCpp": "std::string", "PHP": "string", "Swift": "String", "testa": "", "GoLang": "string", "Python": "str", "Java": "String", "NodeJS": "string" } }, { "id": "S_BPQI3LGVA64AC", "defKey": "LONGTEXT", "defName": "LONGTEXT", "icon": "", "color": null, "requireLen": 0, "requireScale": 0, "lenMax": "22", "often": "5", "orderValue": 16, "dbDataType": { "XuguDB": "CLOB", "DaMeng": "TEXT", "KingBase": "TEXT", "SQLite": "LONGTEXT", "Inceptor": "STRING", "Oracle": "CLOB", "HighGo": "TEXT", "GaussDB": "TEXT", "OceanBase-Mysql": "LONGTEXT", "MaxCompute": "STRING", "Doris": "VARCHAR", "ClickHouse": "TEXT", "GBase 8A": "TEXT", "StarRocks": "STRING", "ShenTong": "TEXT", "Impala": "STRING", "OceanBase-Oracle": "CLOB", "Hive": "STRING", "GBase 8S": "TEXT", "DaMeng_1": "TEXT", "DB2": "CLOB", "Oracle_9": "CLOB", "SQLServer": "TEXT", "PostgreSQL": "TEXT", "MySQL": "LONGTEXT" }, "langDataType": { "CSharp": "string", "Rust": "String", "CAndCpp": "std::string", "PHP": "string", "Swift": "String", "testa": "", "GoLang": "string", "Python": "str", "Java": "String", "NodeJS": "string" } } ], "opceTemplets": [ { "opceKey": "MOP_BATCH_ADJUST", "opceName": "批量调整", "opceIntro": "", "affectDdl": false, "orderValue": 36, "dataSample": null, "messageTemplet": "" }, { "opceKey": "MOP_BATCH_UPDATE_DATATYPE", "opceName": "批量更新数据类型", "opceIntro": "", "affectDdl": false, "orderValue": 35, "dataSample": null, "messageTemplet": "" }, { "opceKey": "MOP_CATEGORY_CREATE", "opceName": "目录创建", "opceIntro": "", "affectDdl": false, "orderValue": 4, "dataSample": "{\n \"ctId\": \"C0C9787E-7940-4CA0-9990-3208EC4CBFCD\",\n \"event\": \"MOP_CATEGORY_CREATE\",\n \"payload\": [\n {\n \"type\": \"peer\",\n \"to\": null,\n \"position\": null,\n \"data\": {\n \"id\": \"P0276.B01.3OJXVDG4HQAA\",\n \"defKey\": \"base\",\n \"defName\": \"基础信息\"\n },\n \"hierarchyType\": \"TREE\"\n }\n ],\n \"timestamp\": \"1715934520168\",\n \"userName\": \"admin\",\n \"status\": \"SEND\",\n \"userId\": \"BREU3SAEM7AAB\"\n}", "messageTemplet": "{{~it.payload:item}}{{\r\n var defKey = item.data.defKey;\r\n var defName = item.data.defName;\r\n}}{{=defName||defKey}}{{? defKey !== defName && defKey !== \"\"}}({{=defKey}}){{?}}\r\n{{~}}" }, { "opceKey": "MOP_CATEGORY_DELETE", "opceName": "目录删除", "opceIntro": "", "affectDdl": false, "orderValue": 6, "dataSample": "{\n \"ctId\": \"1E36AB6E-54E4-4170-8279-FD4442E45192\",\n \"event\": \"MOP_CATEGORY_DELETE\",\n \"payload\": [\n {\n \"from\": \"P0303.B01.3OJF6U2AGIAA\",\n \"type\": \"peer\",\n \"position\": \"before\",\n \"data\": {\n \"id\": \"P0303.B01.3OJXVDG4HQAA\",\n \"parentId\": null,\n \"defKey\": \"course\",\n \"defName\": \"教学选课\",\n \"intro\": null,\n \"peerOrder\": null,\n \"nodeType\": \"category\"\n }\n }\n ],\n \"timestamp\": \"1715934701444\",\n \"userName\": \"admin\",\n \"status\": \"SEND\",\n \"userId\": \"BREU3SAEM7AAB\"\n}", "messageTemplet": "{{~it.payload:item}}{{\n var defKey = item.data.defKey;\n var defName = item.data.defName;\n}}{{=defName||defKey}}{{? defKey !== defName && defKey !== \"\"}}({{=defKey}}){{?}}\n{{~}}" }, { "opceKey": "MOP_CATEGORY_DRAG", "opceName": "目录拖动", "opceIntro": "", "affectDdl": false, "orderValue": 7, "dataSample": "{\n \"ctId\": \"AD313434-6F0E-4C9C-8946-4D77E46DCD38\",\n \"event\": \"MOP_CATEGORY_DRAG\",\n \"payload\": [\n {\n \"pre\": {\n \"from\": \"P0303.B01.3OJRAFYMHQAA\",\n \"type\": \"peer\",\n \"position\": \"after\"\n },\n \"next\": {\n \"from\": \"P0303.B01.3OJXVDG4HQAA\",\n \"to\": \"P0303.B01.3OJF6U2AGIAA\",\n \"type\": \"peer\",\n \"position\": \"before\",\n \"data\": {\n \"id\": \"P0303.B01.3OJXVDG4HQAA\",\n \"parentId\": null,\n \"defKey\": \"course\",\n \"defName\": \"教学选课\",\n \"intro\": null,\n \"peerOrder\": null,\n \"nodeType\": \"category\"\n }\n },\n \"hierarchyType\": \"TREE\"\n }\n ],\n \"timestamp\": \"1715934650759\",\n \"userName\": \"admin\",\n \"status\": \"SEND\",\n \"userId\": \"BREU3SAEM7AAB\"\n}", "messageTemplet": "{{~it.payload:item}}{{\n var next = item.next;\n var defKey = next.data.defKey;\n var defName = next.data.defName;\n}}{{=defName||defKey}}{{? defKey !== defName && defKey !== \"\"}}({{=defKey}}){{?}}\n{{~}}" }, { "opceKey": "MOP_CATEGORY_UPDATE", "opceName": "目录修改", "opceIntro": "", "affectDdl": false, "orderValue": 5, "dataSample": "{\n \"ctId\": \"9E7426B4-165A-4A85-BB4E-6295CF4A7D93\",\n \"event\": \"MOP_CATEGORY_UPDATE\",\n \"payload\": [\n {\n \"pre\": {\n \"id\": \"P0303.B01.3OJXVDG4HQAA\",\n \"from\": \"P0303.B01.3OJRAFYMHQAA\",\n \"type\": \"peer\",\n \"position\": \"after\",\n \"data\": {\n \"id\": \"P0303.B01.3OJXVDG4HQAA\",\n \"parentId\": null,\n \"defKey\": \"base\",\n \"defName\": \"基础信息\",\n \"intro\": null,\n \"peerOrder\": null,\n \"nodeType\": \"category\"\n }\n },\n \"next\": {\n \"id\": \"P0303.B01.3OJXVDG4HQAA\",\n \"from\": \"P0303.B01.3OJXVDG4HQAA\",\n \"to\": \"P0303.B01.3OJXVDG4HQAA\",\n \"type\": \"peer\",\n \"data\": {\n \"defKey\": \"course\",\n \"defName\": \"教学选课\"\n }\n }\n }\n ],\n \"timestamp\": \"1715934615044\",\n \"userName\": \"admin\",\n \"status\": \"SEND\",\n \"userId\": \"BREU3SAEM7AAB\"\n}", "messageTemplet": "{{~it.payload:item}}{{\n var preData = item.pre.data;\n var preDefKey = preData.defKey;\n var preDefName = preData.defName;\n var nextData = item.next.data;\n var nextDefKey = nextData.defKey;\n var nextDefName = nextData.defName;\n}}{{=nextDefName||nextDefKey}}{{? nextDefKey !== nextDefName && nextDefKey !== \"\"}}({{=nextDefKey}}){{?}} {{{? preDefKey !== nextDefKey}}代码:{{? preDefKey === \"\" || preDefKey === null}}<空>{{??}}{{=preDefKey}}{{?}} -> {{? nextDefKey === \"\" || nextDefKey === null}}<空>{{??}}{{=nextDefKey}}{{?}}; {{?}}{{? preDefName !== nextDefName}}名称:{{? preDefName === \"\" || preDefName === null}}<空>{{??}}{{=preDefName}}{{?}} -> {{? nextDefName === \"\" || nextDefName === null}}<空>{{??}}{{=nextDefName}}{{?}}{{?}}}\n{{~}}" }, { "opceKey": "MOP_DIAGRAM_BATCH_ADJUST", "opceName": "关系图批量调整", "opceIntro": "", "affectDdl": false, "orderValue": 38, "dataSample": null, "messageTemplet": "" }, { "opceKey": "MOP_DIAGRAM_CATEGORY_CHANGE", "opceName": "关系图改目录", "opceIntro": "", "affectDdl": false, "orderValue": 36, "dataSample": " {\n \"ctId\": \"31834E9E-1727-4B6E-9438-C887A74EC6A2\",\n \"event\": \"MOP_DIAGRAM_CATEGORY_CHANGE\",\n \"payload\": [\n {\n \"hierarchyType\": \"TREE\",\n \"pre\": {\n \"data\": {\n \"defKey\": \"dd\",\n \"defName\": \"dd\"\n },\n \"id\": \"P0423.B01.V0DH493V4800\",\n \"from\": null,\n \"position\": null,\n \"type\": \"sub\",\n \"diagramType\": \"P\"\n },\n \"next\": {\n \"data\": {\n \"defKey\": \"dd\",\n \"defName\": \"dd\"\n },\n \"id\": \"P0423.B01.V0DH493V4800\",\n \"from\": null,\n \"to\": \"P0423.B01.V0021SND4800\",\n \"type\": \"sub\",\n \"diagramType\": \"P\"\n }\n }\n ],\n \"userName\": \"xf\"\n }", "messageTemplet": "{{\n var payload = it.payload;\n}}{{~ payload:item}}{{=item.pre.data.defKey}}[{{=item.pre.data.defName}}]\n{{~}}" }, { "opceKey": "MOP_DIAGRAM_CREATE", "opceName": "关系图创建", "opceIntro": "", "affectDdl": false, "orderValue": 20, "dataSample": "{\n \"ctId\": \"5C28E2FF-2DD3-45B6-A799-6814CF97F8F4\",\n \"event\": \"MOP_DIAGRAM_CREATE\",\n \"payload\": [\n {\n \"type\": \"sub\",\n \"to\": \"P0276.B01.BRPLUMHV4BUAC\",\n \"position\": null,\n \"data\": [\n {\n \"id\": \"P0276.B01.BRP47MFBMBEAD\",\n \"type\": \"L\",\n \"defKey\": \"CRSE_CORE\",\n \"defName\": \"教学选课逻辑模型图\",\n \"entityRelationRank\": \"F\"\n }\n ],\n \"hierarchyType\": \"TREE\"\n }\n ],\n \"timestamp\": \"1714011555428\",\n \"userName\": \"admin\",\n \"status\": \"SEND\",\n \"userId\": \"BREU3SAEM7AAB\"\n}", "messageTemplet": "{{~it.payload:item}}{{\n var data = item.data;\n}}{{~ data:item:index}}{{? item.type === \"C\"}}概念模型图{{?? item.type === \"L\"}}逻辑模型图{{?? item.type === \"P\"}}物理模型图{{?? item.type === \"F\"}}流程图{{?? item.type === \"M\"}}思维导图{{?}}: {{=item.defKey+((item.defKey!=item.defName&&`${item.defName}`)?`[${item.defName}]`:'')}}{{~}}\n{{~}}" }, { "opceKey": "MOP_DIAGRAM_DELETE", "opceName": "关系图删除", "opceIntro": "", "affectDdl": false, "orderValue": 22, "dataSample": "{\r\n \"ctId\": \"1DE9AF8A-5C88-4B1E-BBC0-8DD20732B58F\",\r\n \"event\": \"MOP_DIAGRAM_DELETE\",\r\n \"payload\": [\r\n {\r\n \"from\": \"P0276.B01.BRP47MFBMBEAD\",\r\n \"type\": \"peer\",\r\n \"position\": \"before\",\r\n \"data\": {\r\n \"id\": \"P0276.B01.BRP47MFBMBEAF\",\r\n \"type\": \"P\",\r\n \"defKey\": \"CRSE_CORE\",\r\n \"defName\": \"教学选课逻辑模型\",\r\n \"intro\": \"\",\r\n \"entityRelationRank\": \"F\",\r\n \"mark\": null,\r\n \"props\": null,\r\n \"cellsData\": null,\r\n \"nodeType\": \"diagram\",\r\n \"draggable\": false\r\n }\r\n }\r\n ],\r\n \"timestamp\": \"1714011753005\",\r\n \"userName\": \"admin\",\r\n \"status\": \"SEND\",\r\n \"userId\": \"BREU3SAEM7AAB\"\r\n}", "messageTemplet": "{{~it.payload:plRow}}{{\n var item = plRow.data;\n}}{{? item.type === \"C\"}}概念模型图{{?? item.type === \"L\"}}逻辑模型图{{?? item.type === \"P\"}}物理模型图{{?? item.type === \"F\"}}流程图{{?? item.type === \"M\"}}思维导图{{?}}: {{=item.defKey+((item.defKey!=item.defName&&`${item.defName}`)?`[${item.defName}]`:'')}}{{~}}" }, { "opceKey": "MOP_DIAGRAM_DRAG", "opceName": "关系图拖动", "opceIntro": "", "affectDdl": false, "orderValue": 23, "dataSample": "{\r\n \"ctId\": \"8D7AC2E8-0B37-4562-8543-18725A1964D4\",\r\n \"event\": \"MOP_DIAGRAM_DRAG\",\r\n \"payload\": [\r\n {\r\n \"pre\": {\r\n \"from\": \"P0276.B01.BRP47MFBMBEAD\",\r\n \"type\": \"peer\",\r\n \"position\": \"after\"\r\n },\r\n \"next\": {\r\n \"from\": \"P0276.B01.BRP47MFBMBEAF\",\r\n \"to\": \"P0276.B01.BRP47MFBMBEAD\",\r\n \"type\": \"peer\",\r\n \"position\": \"before\",\r\n \"data\": {\r\n \"id\": \"P0276.B01.BRP47MFBMBEAF\",\r\n \"type\": \"P\",\r\n \"defKey\": \"CRSE_CORE\",\r\n \"defName\": \"教学选课逻辑模型\",\r\n \"intro\": null,\r\n \"entityRelationRank\": \"F\",\r\n \"mark\": null,\r\n \"props\": null,\r\n \"cellsData\": null,\r\n \"parentId\": \"P0276.B01.BRPLUMHV4BUAC\",\r\n \"nodeType\": \"diagram\",\r\n \"draggable\": false\r\n }\r\n },\r\n \"hierarchyType\": \"TREE\"\r\n }\r\n ],\r\n \"timestamp\": \"1714011579054\",\r\n \"userName\": \"admin\",\r\n \"status\": \"SEND\",\r\n \"userId\": \"BREU3SAEM7AAB\"\r\n}", "messageTemplet": "{{~it.payload:plRow}}{{\n var item = plRow.next.data;\n}}{{? item.type === \"C\"}}概念模型图{{?? item.type === \"L\"}}逻辑模型图{{?? item.type === \"P\"}}物理模型图{{?? item.type === \"F\"}}流程图{{?? item.type === \"M\"}}思维导图{{?}}: {{=item.defKey+((item.defKey!=item.defName&&`${item.defName}`)?`[${item.defName}]`:'')}}{{~}}" }, { "opceKey": "MOP_DIAGRAM_ER_UPDATE", "opceName": "ER关系图更新", "opceIntro": "", "affectDdl": false, "orderValue": 31, "dataSample": "{\r\n \"ctId\": \"44ECB8FA-A96F-4100-A469-A40147290272\",\r\n \"event\": \"MOP_DIAGRAM_ER_UPDATE\",\r\n \"payload\": [\r\n {\r\n \"diagramId\": \"P0423.B01.V09MAQMH4808\",\r\n \"defName\": \"jj\",\r\n \"defKey\": \"jj\",\r\n \"type\": \"P\",\r\n \"data\": [\r\n {\r\n \"batch\": true,\r\n \"data\": {\r\n \"key\": \"position\",\r\n \"prev\": {\r\n \"position\": {\r\n \"x\": -330,\r\n \"y\": -160\r\n }\r\n },\r\n \"id\": \"c804c0ab-e687-4ef3-9834-f58ef0062359\",\r\n \"next\": {\r\n \"position\": {\r\n \"x\": -260,\r\n \"y\": -250\r\n }\r\n }\r\n },\r\n \"event\": \"cell:change:position\",\r\n \"options\": {\r\n \"restrict\": null,\r\n \"deep\": true,\r\n \"ui\": true,\r\n \"translateBy\": \"c804c0ab-e687-4ef3-9834-f58ef0062359\",\r\n \"tx\": 10,\r\n \"ty\": 0\r\n }\r\n }\r\n ]\r\n }\r\n ],\r\n \"userName\": \"xf\"\r\n}", "messageTemplet": "{{\n var payload = it.payload;\n}}{{~ payload:item}}{{=item.defKey+((item.defKey!=item.defName&&`${item.defName}`)?`[${item.defName}]`:'')}}\n{{~}}" }, { "opceKey": "MOP_DIAGRAM_FL_UPDATE", "opceName": "流程图更新", "opceIntro": "", "affectDdl": false, "orderValue": 33, "dataSample": "{\r\n \"ctId\": \"3DE06969-3A2A-4717-9DE6-7CA47A733C59\",\r\n \"event\": \"MOP_DIAGRAM_FL_UPDATE\",\r\n \"payload\": [\r\n {\r\n \"diagramId\": \"P0423.B01.V0DH493V4802\",\r\n \"defName\": \"asadasd\",\r\n \"defKey\": \"asadasd\",\r\n \"type\": \"F\",\r\n \"data\": \"\\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n\\n\"\r\n }\r\n ],\r\n \"userName\": \"xf\"\r\n}", "messageTemplet": "{{\n var payload = it.payload;\n}}{{~ payload:item}}{{=item.defKey+((item.defKey!=item.defName&&`${item.defName}`)?`[${item.defName}]`:'')}}\n{{~}}" }, { "opceKey": "MOP_DIAGRAM_MER_UPDATE", "opceName": "Mermaid图更新", "opceIntro": "", "affectDdl": false, "orderValue": 45, "dataSample": null, "messageTemplet": "" }, { "opceKey": "MOP_DIAGRAM_MM_SETTING", "opceName": "思维导图设置", "opceIntro": "", "affectDdl": false, "orderValue": 34, "dataSample": "{\r\n \"__type\": \"SEND_EXEC\",\r\n \"ctId\": \"C8D737C2-3A97-466C-9A3B-ED1741023CE4\",\r\n \"event\": \"MOP_DIAGRAM_MM_SETTING\",\r\n \"payload\": {\r\n \"id\": \"P0423.B01.V0DH493V4803\",\r\n \"defName\": \"asd\",\r\n \"defKey\": \"asd\",\r\n \"type\": \"M\",\r\n \"data\": {\r\n \"theme\": \"shallowSea\"\r\n }\r\n },\r\n \"userName\": \"xf\"\r\n}", "messageTemplet": "{{\n var item = it.payload;\n}}{{=item.defKey+((item.defKey!=item.defName&&`${item.defName}`)?`[${item.defName}]`:'')}}" }, { "opceKey": "MOP_DIAGRAM_MM_UPDATE", "opceName": "思维导图更新", "opceIntro": "", "affectDdl": false, "orderValue": 32, "dataSample": "{\r\n \"ctId\": \"926DC815-6637-4339-AC47-FEF087B379EF\",\r\n \"event\": \"MOP_DIAGRAM_MM_UPDATE\",\r\n \"payload\": [\r\n {\r\n \"diagramId\": \"P0423.B01.V0DH493V4803\",\r\n \"defName\": \"asd\",\r\n \"defKey\": \"asd\",\r\n \"type\": \"M\",\r\n \"data\": [\r\n {\r\n \"action\": \"update\",\r\n \"oldData\": {\r\n \"isRoot\": true,\r\n \"data\": {\r\n \"text\": \"

根节点

\",\r\n \"uid\": \"F95EA6F6-9609-43F5-9B02-C43FDE61840D\",\r\n \"expand\": true,\r\n \"richText\": true,\r\n \"isActive\": false\r\n },\r\n \"children\": []\r\n },\r\n \"data\": {\r\n \"isRoot\": true,\r\n \"data\": {\r\n \"text\": \"

根节点

\",\r\n \"uid\": \"F95EA6F6-9609-43F5-9B02-C43FDE61840D\",\r\n \"expand\": true,\r\n \"richText\": true,\r\n \"isActive\": false\r\n },\r\n \"children\": [\r\n {\r\n \"isRoot\": false,\r\n \"data\": {\r\n \"text\": \"

二级节点

\",\r\n \"uid\": \"4b9a0f83-97f8-46fe-8655-89f2ef0cb66a\",\r\n \"expand\": true,\r\n \"richText\": true,\r\n \"isActive\": false\r\n },\r\n \"children\": []\r\n }\r\n ]\r\n }\r\n }\r\n ]\r\n }\r\n ],\r\n \"userName\": \"xf\"\r\n}", "messageTemplet": "{{\n var payload = it.payload;\n}}{{~ payload:item}}{{=item.defKey}}[{{=item.defName}}]\n{{~}}" }, { "opceKey": "MOP_DIAGRAM_SETTING", "opceName": "关系图设置", "opceIntro": "", "affectDdl": false, "orderValue": 25, "dataSample": "{\r\n \"ctId\": \"AD50E69E-FCC6-4F0F-B0FC-0B5E294218E6\",\r\n \"event\": \"MOP_DIAGRAM_SETTING\",\r\n \"payload\": {\r\n \"data\": {\r\n \"entityDisplay\": {\r\n \"showFields\": [\r\n \"defKey\",\r\n \"defName\"\r\n ],\r\n \"logicModelCompactShow\": \"N-名称/K-代码\",\r\n \"logicModelCompactDelimiter\": \",\"\r\n },\r\n \"entitySetting\": {\r\n \"titleText\": {\r\n \"customValue\": \"{defName}[{defKey}]\",\r\n \"optionValue\": \"C\"\r\n },\r\n \"titleStyle\": {\r\n \"body\": {\r\n \"fill\": \"rgb(183,185,189)\",\r\n \"fill-opacity\": 1\r\n },\r\n \"text\": {\r\n \"fill\": \"rgb(52, 124, 212)\",\r\n \"fontSize\": \"12\",\r\n \"font-style\": \"italic\",\r\n \"fontFamily\": \"Arial\",\r\n \"textAnchor\": \"middle\",\r\n \"font-weight\": \"bold\",\r\n \"text-decoration\": \"underline\",\r\n \"textVerticalAnchor\": \"middle\"\r\n }\r\n },\r\n \"contentStyle\": {\r\n \"body\": {\r\n \"fill\": \"rgb(183,185,189)\",\r\n \"fill-opacity\": 1\r\n },\r\n \"text\": {\r\n \"fill\": \"\",\r\n \"fontSize\": \"12\",\r\n \"font-style\": \"italic\",\r\n \"fontFamily\": \"Arial\",\r\n \"textAnchor\": \"middle\",\r\n \"font-weight\": \"bold\",\r\n \"text-decoration\": \"underline\",\r\n \"textVerticalAnchor\": \"middle\"\r\n }\r\n },\r\n \"primaryKeyStyle\": {\r\n \"body\": {\r\n \"fill\": \"rgb(183,185,189)\",\r\n \"fill-opacity\": 1\r\n },\r\n \"text\": {\r\n \"fill\": \"rgb(116, 212, 151)\",\r\n \"fontSize\": \"12\",\r\n \"font-style\": \"italic\",\r\n \"fontFamily\": \"Arial\",\r\n \"textAnchor\": \"middle\",\r\n \"font-weight\": \"bold\",\r\n \"text-decoration\": \"underline\",\r\n \"textVerticalAnchor\": \"middle\"\r\n }\r\n },\r\n \"foreignKeyStyle\": {\r\n \"body\": {\r\n \"fill\": \"rgb(183,185,189)\",\r\n \"fill-opacity\": 1\r\n },\r\n \"text\": {\r\n \"fill\": \"rgb(249, 186, 80)\",\r\n \"fontSize\": \"12\",\r\n \"font-style\": \"italic\",\r\n \"fontFamily\": \"Arial\",\r\n \"textAnchor\": \"middle\",\r\n \"font-weight\": \"bold\",\r\n \"text-decoration\": \"underline\",\r\n \"textVerticalAnchor\": \"middle\"\r\n }\r\n },\r\n \"fieldStyle\": {\r\n \"body\": {\r\n \"fill\": \"rgb(183,185,189)\",\r\n \"fill-opacity\": 1\r\n },\r\n \"text\": {\r\n \"fill\": \"\",\r\n \"fontSize\": \"12\",\r\n \"font-style\": \"italic\",\r\n \"fontFamily\": \"Arial\",\r\n \"textAnchor\": \"middle\",\r\n \"font-weight\": \"bold\",\r\n \"text-decoration\": \"underline\",\r\n \"textVerticalAnchor\": \"middle\"\r\n }\r\n },\r\n \"borderStyle\": {\r\n \"body\": {\r\n \"stroke\": \"rgb(255, 137, 175)\",\r\n \"stroke-width\": 4,\r\n \"stroke-opacity\": 0.78695652173913,\r\n \"stroke-dasharray\": \"0\"\r\n }\r\n },\r\n \"divideLineStyle\": {\r\n \"body\": {\r\n \"stroke\": \"rgb(154, 72, 199)\",\r\n \"stroke-width\": 3,\r\n \"stroke-opacity\": 0.78695652173913,\r\n \"stroke-dasharray\": \"0\"\r\n }\r\n }\r\n },\r\n \"shapeGeneral\": {\r\n \"body\": {\r\n \"fill\": \"rgb(51, 153, 108)\",\r\n \"stroke\": \"rgb(117, 190, 250)\",\r\n \"fill-opacity\": 1,\r\n \"stroke-width\": 3,\r\n \"stroke-opacity\": 0.78695652173913,\r\n \"stroke-dasharray\": \"0\"\r\n },\r\n \"text\": {\r\n \"fill\": \"rgb(116, 212, 151)\",\r\n \"fontSize\": \"12\",\r\n \"font-style\": \"italic\",\r\n \"fontFamily\": \"思源黑体,\",\r\n \"textAnchor\": \"middle\",\r\n \"font-weight\": \"bold\",\r\n \"text-decoration\": \"underline\",\r\n \"textVerticalAnchor\": \"middle\"\r\n }\r\n },\r\n \"linkLine\": {\r\n \"body\": {\r\n \"fill\": \"rgb(183,185,189)\",\r\n \"stroke\": \"rgb(211, 122, 17)\",\r\n \"fill-opacity\": 1,\r\n \"stroke-width\": 3,\r\n \"stroke-opacity\": 0.78695652173913,\r\n \"stroke-dasharray\": \"0\"\r\n },\r\n \"text\": {\r\n \"fill\": \"\",\r\n \"fontSize\": \"12\",\r\n \"font-style\": \"italic\",\r\n \"fontFamily\": \"思源黑体,\",\r\n \"textAnchor\": \"middle\",\r\n \"font-weight\": \"bold\",\r\n \"text-decoration\": \"underline\",\r\n \"textVerticalAnchor\": \"middle\"\r\n }\r\n },\r\n \"textbox\": {\r\n \"body\": {\r\n \"fill\": \"rgb(183,185,189)\",\r\n \"fill-opacity\": 1\r\n },\r\n \"text\": {\r\n \"fill\": \"rgb(183, 185, 189)\",\r\n \"fontSize\": \"12\",\r\n \"font-style\": \"italic\",\r\n \"fontFamily\": \"Arial\",\r\n \"textAnchor\": \"start\",\r\n \"font-weight\": \"bold\",\r\n \"text-decoration\": \"underline\",\r\n \"textVerticalAnchor\": \"middle\"\r\n }\r\n }\r\n },\r\n \"type\": \"P\",\r\n \"defName\": \"物理模型ER图\",\r\n \"defKey\": \"dorm.p\",\r\n \"id\": \"P0297.B01.3NK4O2KEGMAA\"\r\n },\r\n \"timestamp\": \"1715822848893\",\r\n \"userName\": \"admin\",\r\n \"status\": \"SEND\",\r\n \"userId\": \"BREU3SAEM7AAB\"\r\n}", "messageTemplet": "{{\n var item = it.payload;\n}}{{=item.defKey+((item.defKey!=item.defName&&`${item.defName}`)?`[${item.defName}]`:'')}}" }, { "opceKey": "MOP_DIAGRAM_UPDATE", "opceName": "关系图修改", "opceIntro": "", "affectDdl": false, "orderValue": 21, "dataSample": "{\r\n \"ctId\": \"8E23D910-802E-4DFA-B67D-3A583B7DDCB0\",\r\n \"event\": \"MOP_DIAGRAM_UPDATE\",\r\n \"payload\": [\r\n {\r\n \"hierarchyType\": \"TREE\",\r\n \"pre\": {\r\n \"id\": \"P0276.B01.BRP47MFBMBEAF\",\r\n \"from\": \"P0276.B01.BRP47MFBMBEAD\",\r\n \"type\": \"peer\",\r\n \"position\": \"before\",\r\n \"data\": {\r\n \"id\": \"P0276.B01.BRP47MFBMBEAF\",\r\n \"type\": \"L\",\r\n \"defKey\": \"CRSE_CORE\",\r\n \"defName\": \"教学选课逻辑模型图\",\r\n \"intro\": null,\r\n \"entityRelationRank\": \"F\",\r\n \"mark\": null,\r\n \"props\": null,\r\n \"cellsData\": null,\r\n \"parentId\": \"P0276.B01.BRPLUMHV4BUAC\",\r\n \"nodeType\": \"diagram\",\r\n \"draggable\": false\r\n }\r\n },\r\n \"next\": {\r\n \"id\": \"P0276.B01.BRP47MFBMBEAF\",\r\n \"from\": \"P0276.B01.BRP47MFBMBEAF\",\r\n \"to\": \"P0276.B01.BRPLUMHV4BUAC\",\r\n \"type\": \"sub\",\r\n \"data\": {\r\n \"defKey\": \"CRSE_CORE\",\r\n \"defName\": \"教学选课逻辑模型\",\r\n \"intro\": \"\",\r\n \"type\": \"L\"\r\n }\r\n }\r\n }\r\n ],\r\n \"timestamp\": \"1714011727376\",\r\n \"userName\": \"admin\",\r\n \"status\": \"SEND\",\r\n \"userId\": \"BREU3SAEM7AAB\"\r\n}", "messageTemplet": "{{\n var payload = it.payload;\n}}{{~ payload:item}}{{\n var pre = item.pre;\n var next = item.next;\n var preDefKey = pre.data.defKey;\n var preDefName = pre.data.defName;\n var preIntro = pre.data.intro;\n var nextDefKey = next.data.defKey;\n var nextDefName = next.data.defName;\n var nextIntro = next.data.intro;\n}}{{? pre.data.type === \"C\"}}概念模型图{{?? pre.data.type === \"L\"}}逻辑模型图{{?? pre.data.type === \"P\"}}物理模型图{{?? pre.data.type === \"F\"}}流程图{{?? pre.data.type === \"M\"}}思维导图{{?}} {{=nextDefName}}{{? nextDefName !== nextDefKey && nextDefKey !== \"\"}}({{=nextDefKey}}){{?}} {{{? preDefKey !== nextDefKey}}代码:{{? preDefKey === \"\" || preDefKey === null}}<空>{{??}}{{=preDefKey}}{{?}} -> {{? nextDefKey === \"\" || nextDefKey === null}}<空>{{??}}{{=nextDefKey}}{{?}}; {{?}}{{? preDefName !== nextDefName}}名称:{{? preDefName === \"\" || preDefName === null}}<空>{{??}}{{=preDefName}}{{?}} -> {{? nextDefName === \"\" || nextDefName === null}}<空>{{??}}{{=nextDefName}}{{?}}; {{?}}{{? preIntro !== nextIntro}}注释:{{? preIntro === \"\" || preIntro === null}}<空>{{??}}{{=preIntro}}{{?}} -> {{? nextIntro === \"\" || nextIntro === null}}<空>{{??}}{{=nextIntro}}{{?}}{{?}}}\n{{~}}" }, { "opceKey": "MOP_ENTITY_BATCH_ADJUST", "opceName": "实体批量调整", "opceIntro": "", "affectDdl": false, "orderValue": 37, "dataSample": null, "messageTemplet": "" }, { "opceKey": "MOP_ENTITY_BATCH_REFERS", "opceName": "实体批量引用设置", "opceIntro": "", "affectDdl": false, "orderValue": 48, "dataSample": null, "messageTemplet": "" }, { "opceKey": "MOP_ENTITY_CATEGORY_CHANGE", "opceName": "实体改目录", "opceIntro": "", "affectDdl": false, "orderValue": 35, "dataSample": " {\n \"ctId\": \"FB084840-D994-469D-AFB2-9B33E99B6304\",\n \"event\": \"MOP_ENTITY_CATEGORY_CHANGE\",\n \"payload\": [\n {\n \"hierarchyType\": \"TREE\",\n \"pre\": {\n \"data\": {\n \"defKey\": \"categories_257\",\n \"defName\": null\n },\n \"id\": \"P0423.B01.V0D6C02D480K\",\n \"from\": null,\n \"position\": null,\n \"type\": \"sub\",\n \"entityType\": \"P\"\n },\n \"next\": {\n \"data\": {\n \"defKey\": \"categories_257\",\n \"defName\": null\n },\n \"id\": \"P0423.B01.V0D6C02D480K\",\n \"from\": null,\n \"to\": \"P0423.B01.V0021SND4800\",\n \"type\": \"sub\",\n \"entityType\": \"P\"\n }\n }\n ],\n \"userName\": \"xf\"\n}\n", "messageTemplet": "" }, { "opceKey": "MOP_ENTITY_CREATE", "opceName": "实体创建", "opceIntro": "", "affectDdl": true, "orderValue": 8, "dataSample": "{\n \"ctId\": \"6A369559-729A-44D3-98EC-F30D1C67A403\",\n \"event\": \"MOP_ENTITY_CREATE\",\n \"payload\": [\n {\n \"type\": \"sub\",\n \"to\": \"P0303.B01.3OJXVDG4HQAB\",\n \"position\": null,\n \"data\": [\n {\n \"id\": \"P0276.B01.3OKNELPYGIAA\",\n \"defKey\": \"SIMS_CLASS\",\n \"defName\": \"班级\",\n \"intro\": \"这是班级物理模型\",\n \"type\": \"P\"\n }\n ],\n \"hierarchyType\": \"TREE\"\n }\n ],\n \"timestamp\": \"1715940400705\",\n \"userName\": \"admin\",\n \"status\": \"SEND\",\n \"userId\": \"BREU3SAEM7AAB\"\n}", "messageTemplet": "{{~it.payload:item}}{{\n var data = item.data;\n}}{{~ data:item}}{{? item.type === \"C\"}}概念模型{{?? item.type === \"L\"}}逻辑模型{{?? item.type === \"P\"}}物理模型{{?? item.type === \"V\"}}视图{{?}} {{=item.defName}}{{? item.defKey !== item.defName && item.defKey !== \"\"}}({{=item.defKey}}){{?}}{{~}}\n{{~}}" }, { "opceKey": "MOP_ENTITY_DELETE", "opceName": "实体删除", "opceIntro": "", "affectDdl": true, "orderValue": 10, "dataSample": "{\n \"ctId\": \"7A6EA145-948A-4B3D-B4D1-DFF808435A57\",\n \"event\": \"MOP_ENTITY_DELETE\",\n \"payload\": [\n {\n \"from\": \"P0303.B01.3OKGS7IMEEAA\",\n \"type\": \"peer\",\n \"position\": \"after\",\n \"data\": {\n \"id\": \"P0303.B01.3OKNELPYGIAA\",\n \"type\": \"P\",\n \"defKey\": \"SIMS_TEACHER\",\n \"defName\": \"教师\",\n \"intro\": \"这是教师信息表\",\n \"schemaName\": null,\n \"props\": null,\n \"mark\": null,\n \"attr1\": null,\n \"attr2\": null,\n \"attr3\": null,\n \"attr4\": null,\n \"attr5\": null,\n \"attr6\": null,\n \"attr7\": null,\n \"attr8\": null,\n \"attr9\": null,\n \"attr10\": null,\n \"attr11\": null,\n \"attr12\": null,\n \"attr13\": null,\n \"attr14\": null,\n \"attr15\": null,\n \"attr16\": null,\n \"attr17\": null,\n \"attr18\": null,\n \"attr19\": null,\n \"attr20\": null,\n \"fields\": [\n\n ],\n \"correlations\": null,\n \"indexes\": [\n\n ],\n \"nodeType\": \"entity\",\n \"draggable\": true\n }\n }\n ],\n \"timestamp\": \"1715940550269\",\n \"userName\": \"admin\",\n \"status\": \"SEND\",\n \"userId\": \"BREU3SAEM7AAB\"\n}", "messageTemplet": "{{\n var payload = it.payload;\n}}{{~ payload:item}}{{? item.data.type === \"C\"}}概念模型{{?? item.data.type === \"L\"}}逻辑模型{{?? item.data.type === \"P\"}}物理模型{{?? item.data.type === \"V\"}}视图{{?}} {{=item.data.defName}}{{? item.data.defKey !== item.data.defName && item.data.defKey !== \"\"}}({{=item.data.defKey}}){{?}}\n{{~}}\n" }, { "opceKey": "MOP_ENTITY_DRAG", "opceName": "实体拖动", "opceIntro": "", "affectDdl": false, "orderValue": 11, "dataSample": "{\n \"ctId\": \"253E79CD-A692-456E-A62B-47430A0461C8\",\n \"event\": \"MOP_ENTITY_DRAG\",\n \"payload\": [\n {\n \"pre\": {\n \"from\": \"P0303.B01.3OJXVDG4HQAB\",\n \"type\": \"sub\",\n \"position\": null\n },\n \"next\": {\n \"from\": \"P0303.B01.3OKNELPYGIAA\",\n \"to\": \"P0303.B01.3OJF6U2AGIAA\",\n \"type\": \"sub\",\n \"data\": {\n \"id\": \"P0303.B01.3OKNELPYGIAA\",\n \"type\": \"P\",\n \"defKey\": \"SIMS_TEACHER\",\n \"defName\": \"教师\",\n \"intro\": \"这是教师信息表\",\n \"schemaName\": null,\n \"props\": null,\n \"mark\": null,\n \"attr1\": null,\n \"attr2\": null,\n \"attr3\": null,\n \"attr4\": null,\n \"attr5\": null,\n \"attr6\": null,\n \"attr7\": null,\n \"attr8\": null,\n \"attr9\": null,\n \"attr10\": null,\n \"attr11\": null,\n \"attr12\": null,\n \"attr13\": null,\n \"attr14\": null,\n \"attr15\": null,\n \"attr16\": null,\n \"attr17\": null,\n \"attr18\": null,\n \"attr19\": null,\n \"attr20\": null,\n \"fields\": [\n\n ],\n \"correlations\": null,\n \"indexes\": [\n\n ],\n \"parentId\": \"P0303.B01.3OJXVDG4HQAB\",\n \"nodeType\": \"entity\",\n \"draggable\": true\n }\n },\n \"hierarchyType\": \"TREE\"\n }\n ],\n \"timestamp\": \"1715940524701\",\n \"userName\": \"admin\",\n \"status\": \"SEND\",\n \"userId\": \"BREU3SAEM7AAB\"\n}", "messageTemplet": "{{~it.payload:item}}{{\n var data = item.next.data;\n}}{{? data.type === \"C\"}}概念模型{{?? data.type === \"L\"}}逻辑模型{{?? data.type === \"P\"}}物理模型{{?? data.type === \"V\"}}视图{{?}} {{=data.defName}}{{? data.defKey !== data.defName && data.defKey !== \"\"}}({{=data.defKey}}){{?}}\n{{~}}" }, { "opceKey": "MOP_ENTITY_UPDATE", "opceName": "实体修改", "opceIntro": "", "affectDdl": true, "orderValue": 9, "dataSample": "{\n \"ctId\": \"3CC4BF16-B557-4DBF-AFA5-CB37960F2D44\",\n \"event\": \"MOP_ENTITY_UPDATE\",\n \"payload\": [\n {\n \"hierarchyType\": \"TREE\",\n \"pre\": {\n \"id\": \"P0303.B01.3OKNELPYGIAA\",\n \"from\": \"P0303.B01.3OJXVDG4HQAB\",\n \"type\": \"sub\",\n \"position\": null,\n \"data\": {\n \"id\": \"P0303.B01.3OKNELPYGIAA\",\n \"type\": \"P\",\n \"defKey\": \"SIMS_CLASS\",\n \"defName\": \"班级\",\n \"intro\": \"这是班级物理模型\",\n \"schemaName\": null,\n \"props\": null,\n \"mark\": null,\n \"attr1\": null,\n \"attr2\": null,\n \"attr3\": null,\n \"attr4\": null,\n \"attr5\": null,\n \"attr6\": null,\n \"attr7\": null,\n \"attr8\": null,\n \"attr9\": null,\n \"attr10\": null,\n \"attr11\": null,\n \"attr12\": null,\n \"attr13\": null,\n \"attr14\": null,\n \"attr15\": null,\n \"attr16\": null,\n \"attr17\": null,\n \"attr18\": null,\n \"attr19\": null,\n \"attr20\": null,\n \"fields\": [\n\n ],\n \"correlations\": null,\n \"indexes\": [\n\n ],\n \"parentId\": \"P0303.B01.3OJXVDG4HQAB\",\n \"nodeType\": \"entity\",\n \"draggable\": true\n }\n },\n \"next\": {\n \"id\": \"P0303.B01.3OKNELPYGIAA\",\n \"from\": \"P0303.B01.3OKNELPYGIAA\",\n \"to\": \"P0303.B01.3OJXVDG4HQAB\",\n \"type\": \"sub\",\n \"data\": {\n \"defKey\": \"SIMS_TEACHER\",\n \"defName\": \"教师\",\n \"intro\": \"这是教师信息表\",\n \"type\": \"P\"\n }\n }\n }\n ],\n \"timestamp\": \"1715940486039\",\n \"userName\": \"admin\",\n \"status\": \"SEND\",\n \"userId\": \"BREU3SAEM7AAB\"\n}", "messageTemplet": "{{\n var payload = it.payload;\n}}{{~ payload:item}}{{\n var pre = item.pre;\n var next = item.next;\n var preDefKey = pre.data.defKey;\n var preDefName = pre.data.defName;\n var preIntro = pre.data.intro;\n var nextDefKey = next.data.defKey;\n var nextDefName = next.data.defName;\n var nextIntro = next.data.intro;\n}}{{? pre.data.type === \"C\"}}概念模型{{?? pre.data.type === \"L\"}}逻辑模型{{?? pre.data.type === \"P\"}}物理模型{{?? pre.data.type === \"V\"}}基本模型{{?}} {{=nextDefName}}{{? nextDefName !== nextDefKey && nextDefKey !== \"\"}}({{=nextDefKey}}){{?}} {{{? preDefKey !== nextDefKey}}代码:{{? preDefKey === \"\" || preDefKey === null}}<空>{{??}}{{=preDefKey}}{{?}} -> {{? nextDefKey === \"\" || nextDefKey === null}}<空>{{??}}{{=nextDefKey}}{{?}}; {{?}}{{? preDefName !== nextDefName}}名称:{{? preDefName === \"\" || preDefName === null}}<空>{{??}}{{=preDefName}}{{?}} -> {{? nextDefName === \"\" || nextDefName === null}}<空>{{??}}{{=nextDefName}}{{?}}; {{?}}{{? preIntro !== nextIntro}}注释:{{? preIntro === \"\" || preIntro === null}}<空>{{??}}{{=preIntro}}{{?}} -> {{? nextIntro === \"\" || nextIntro === null}}<空>{{??}}{{=nextIntro}}{{?}}{{?}}}\n{{~}}" }, { "opceKey": "MOP_FIELD_AUTO_MATCH_STND", "opceName": "智能贯标", "opceIntro": "模糊匹配/AI匹配/老项目匹配", "affectDdl": false, "orderValue": 43, "dataSample": null, "messageTemplet": "" }, { "opceKey": "MOP_FIELD_CREATE", "opceName": "字段创建", "opceIntro": "", "affectDdl": true, "orderValue": 12, "dataSample": "{\n \"ctId\": \"07CFAA4D-3803-4AA3-AEF7-63698DF7C0D7\",\n \"event\": \"MOP_FIELD_CREATE\",\n \"payload\": [\n {\n \"entityId\": \"P0303.B01.3OTBMNNMEMAA\",\n \"entityType\": \"P\",\n \"defName\": \"学院信息\",\n \"defKey\": \"SMIS_COLLAGE\",\n \"step\": 0,\n \"data\": [\n {\n \"id\": \"P0276.B01.3OTBMNNMEMAB\",\n \"defKey\": \"COLLEGE_ID\",\n \"defName\": \"学院ID\",\n \"intro\": \"\",\n \"baseDataType\": \"\",\n \"bizDomainType\": \"\",\n \"dbDataType\": \"\",\n \"dataLen\": \"\",\n \"numScale\": \"\",\n \"primaryKey\": 0,\n \"notNull\": 0,\n \"autoIncrement\": 0,\n \"defaultValue\": \"\",\n \"stndDictId\": \"\",\n \"stndFieldId\": \"\",\n \"attr1\": \"\",\n \"attr2\": \"\",\n \"attr3\": \"\",\n \"attr4\": \"\",\n \"attr5\": \"\",\n \"attr6\": \"\",\n \"attr7\": \"\",\n \"attr8\": \"\",\n \"attr9\": \"\",\n \"attr10\": \"\",\n \"attr11\": \"\",\n \"attr12\": \"\",\n \"attr13\": \"\",\n \"attr14\": \"\",\n \"attr15\": \"\",\n \"attr16\": \"\",\n \"attr17\": \"\",\n \"attr18\": \"\",\n \"attr19\": \"\",\n \"attr20\": \"\",\n \"origin\": \"UI\"\n }\n ]\n }\n ],\n \"timestamp\": \"1716012632510\",\n \"userName\": \"admin\",\n \"status\": \"SEND\",\n \"userId\": \"BREU3SAEM7AAB\"\n}", "messageTemplet": "{{~it.payload:payload}}{{\n var data = payload.data;\n var entityType = payload.entityType;\n var entityDefKey = payload.defKey;\n var entityDefName = payload.defName;\n}}{{~ data:item}}{{\n var defKey = item.defKey;\n var defName = item.defName;\n}}{{? entityType === \"C\"}}概念模型{{?? entityType === \"L\"}}逻辑模型{{?? entityType === \"P\"}}物理模型{{?? entityType === \"V\"}}视图{{?}} {{=entityDefName}}{{? entityDefName !== entityDefKey && entityDefKey !== \"\"}}({{=entityDefKey}}){{?}} {{=defName}}{{? defName !== defKey && defKey !== \"\"}}({{=defKey}}){{?}}\n{{~}}\n{{~}}" }, { "opceKey": "MOP_FIELD_DELETE", "opceName": "字段删除", "opceIntro": "", "affectDdl": true, "orderValue": 14, "dataSample": "{\n \"ctId\": \"98A98F07-2A55-42A0-9CA3-BB7F4AF1FC39\",\n \"event\": \"MOP_FIELD_DELETE\",\n \"payload\": [\n {\n \"entityId\": \"P0303.B01.3OTBMNNMEMAA\",\n \"entityType\": \"P\",\n \"defName\": \"学院信息\",\n \"defKey\": \"SMIS_COLLAGE\",\n \"data\": [\n {\n \"id\": \"P0276.B01.3OTBMNNMEMAC\",\n \"defKey\": \"COLLEGE_NAME\",\n \"defName\": \"学院名称\",\n \"intro\": \"\",\n \"baseDataType\": \"\",\n \"bizDomainType\": \"\",\n \"dbDataType\": \"\",\n \"dataLen\": \"\",\n \"numScale\": \"\",\n \"primaryKey\": 0,\n \"notNull\": 0,\n \"autoIncrement\": 0,\n \"defaultValue\": \"\",\n \"stndDictId\": \"\",\n \"stndFieldId\": \"\",\n \"attr1\": \"\",\n \"attr2\": \"\",\n \"attr3\": \"\",\n \"attr4\": \"\",\n \"attr5\": \"\",\n \"attr6\": \"\",\n \"attr7\": \"\",\n \"attr8\": \"\",\n \"attr9\": \"\",\n \"attr10\": \"\",\n \"attr11\": \"\",\n \"attr12\": \"\",\n \"attr13\": \"\",\n \"attr14\": \"\",\n \"attr15\": \"\",\n \"attr16\": \"\",\n \"attr17\": \"\",\n \"attr18\": \"\",\n \"attr19\": \"\",\n \"attr20\": \"\",\n \"origin\": \"UI\"\n }\n ]\n }\n ],\n \"timestamp\": \"1716012817205\",\n \"userName\": \"admin\",\n \"status\": \"SEND\",\n \"userId\": \"BREU3SAEM7AAB\"\n}", "messageTemplet": "{{~it.payload:payload}}{{\n var data = payload.data;\n var entityType = payload.entityType;\n var entityDefKey = payload.defKey;\n var entityDefName = payload.defName;\n}}{{~ data:item}}{{\n var defKey = item.defKey;\n var defName = item.defName;\n}}{{? entityType === \"C\"}}概念模型{{?? entityType === \"L\"}}逻辑模型{{?? entityType === \"P\"}}物理模型{{?? entityType === \"V\"}}视图{{?}} {{=entityDefName}}{{? entityDefName !== entityDefKey && entityDefKey !== \"\"}}({{=entityDefKey}}){{?}} {{=defName}}{{? defKey !== defName && defKey !== \"\"}}({{=defKey}}){{?}}\n{{~}}\n{{~}}" }, { "opceKey": "MOP_FIELD_DRAG", "opceName": "字段拖动", "opceIntro": "", "affectDdl": false, "orderValue": 15, "dataSample": "{\n \"ctId\": \"910FD4C7-D38B-46D4-AE11-9D9B8AB49340\",\n \"event\": \"MOP_FIELD_DRAG\",\n \"payload\": [\n {\n \"entityId\": \"P0303.B01.3OTBMNNMEMAA\",\n \"entityType\": \"P\",\n \"defName\": \"学院信息\",\n \"defKey\": \"SMIS_COLLAGE\",\n \"step\": -1,\n \"data\": [\n {\n \"id\": \"P0276.B01.3OTBMNNMEMAC\",\n \"defKey\": \"COLLEGE_NAME\",\n \"defName\": \"学院名称\"\n }\n ]\n }\n ],\n \"timestamp\": \"1716012781175\",\n \"userName\": \"admin\",\n \"status\": \"SEND\",\n \"userId\": \"BREU3SAEM7AAB\"\n}", "messageTemplet": "{{~it.payload:payload}}{{\n var data = payload.data;\n var entityType = payload.entityType;\n var entityDefName = payload.defName;\n var entityDefKey = payload.defKey;\n}}{{~ data:item}}{{\n var defKey = item.defKey;\n var defName = item.defName;\n}}{{? entityType === \"C\"}}概念模型{{?? entityType === \"L\"}}逻辑模型{{?? entityType === \"P\"}}物理模型{{?? entityType === \"V\"}}视图{{?}} {{=entityDefName}}{{? entityDefName !== entityDefKey && entityDefKey !== \"\"}}({{=entityDefKey}}){{?}} {{=defName}}{{? defKey !== defName && defKey !== \"\"}}({{=defKey}}){{?}}\n{{~}}\n{{~}}" }, { "opceKey": "MOP_FIELD_UPDATE", "opceName": "字段修改", "opceIntro": "", "affectDdl": true, "orderValue": 13, "dataSample": "{\n \"ctId\": \"AD94C1D4-47F3-47B0-AC4B-93C45103E49F\",\n \"event\": \"MOP_FIELD_UPDATE\",\n \"payload\": [\n {\n \"entityId\": \"P0303.B01.3OTBMNNMEMAA\",\n \"entityType\": \"P\",\n \"defName\": \"学院信息\",\n \"defKey\": \"SMIS_COLLAGE\",\n \"data\": [\n {\n \"id\": \"P0276.B01.3OTBMNNMEMAB\",\n \"defKey\": \"COLLEGE_ID\",\n \"defName\": \"学院ID\",\n \"updateKeys\": \"defName,\",\n \"pre\": {\n \"defName\": \"\"\n },\n \"next\": {\n \"defName\": \"学院ID\"\n }\n }\n ]\n }\n ],\n \"timestamp\": \"1716012694301\",\n \"userName\": \"admin\",\n \"status\": \"SEND\",\n \"userId\": \"BREU3SAEM7AAB\"\n}", "messageTemplet": "{{\n var keyMap = {\n \"defKey\":\"代码\",\n \"defName\":\"名称\",\n \"bizDomainType\":\"业务域类型\",\n \"baseDataType\":\"基本数据类型\",\n \"dbDataType\":\"数据库数据类型\",\n \"dataLen\":\"长度\",\n \"numScale\":\"小数\",\n \"primaryKey\":\"主键\",\n \"notNull\":\"非空\",\n \"autoIncrement\":\"自增\",\n \"intro\": \"备注\",\n \"stndComplianceLevel\":\"贯标等级\",\n \"stndComplianceType\":\"贯标要求\",\n \"stndDictId\":\"代码值标准\",\n \"stndDictKey\":\"代码值标准\",\n \"stndFieldId\":\"数据项标准\",\n \"stndFieldKey\":\"数据项标准\"\n \n };\n}}{{~it.payload:payload}}{{\n var data = payload.data;\n}}{{~ data:item}}{{\n var defKey = item.defKey;\n var defName = item.defName;\n var pre = item.pre;\n var next = item.next;\n var updateKeys = item.updateKeys.split(\",\").filter(key => key !== \"\");\n}}{{? payload.entityType === \"C\"}}概念模型{{?? payload.entityType === \"L\"}}逻辑模型{{?? payload.entityType === \"P\"}}物理模型{{?? payload.entityType === \"V\"}}视图{{?}} {{=payload.defName}}{{? payload.defName !== payload.defKey && payload.defKey !== \"\"}}({{=`${payload.defKey}.${defKey}`}}){{?}} {{? pre !== next}}{{{~updateKeys:updateKey}}{{=keyMap[updateKey]}}:{{? pre[updateKey] === \"\" || pre[updateKey] === null}}<空>{{??}}{{=pre[updateKey]}}{{?}} -> {{? next[updateKey] === \"\" || next[updateKey] === null}}<空>{{??}}{{=next[updateKey]}}{{?}}{{=updateKeys.length > 1 ? \", \" : \"\"}}{{~}}}{{?}}\n{{~}}\n{{~}}" }, { "opceKey": "MOP_INDEX_CREATE", "opceName": "索引创建", "opceIntro": "", "affectDdl": true, "orderValue": 16, "dataSample": "{\n \"ctId\": \"1E068338-1F1D-4B6F-A10A-14CB49908F46\",\n \"event\": \"MOP_INDEX_CREATE\",\n \"payload\": [\n {\n \"entityId\": \"P0303.B01.3OTBMNNMEMAA\",\n \"entityType\": \"P\",\n \"defName\": \"学院信息\",\n \"defKey\": \"SMIS_COLLEGE\",\n \"step\": 0,\n \"data\": [\n {\n \"id\": \"P0276.B01.3OTKZ4XQEMAA\",\n \"type\": \"\",\n \"defKey\": \"\",\n \"defName\": \"\",\n \"intro\": \"\",\n \"fields\": [\n\n ]\n }\n ]\n }\n ],\n \"timestamp\": \"1716015116520\",\n \"userName\": \"admin\",\n \"status\": \"SEND\",\n \"userId\": \"BREU3SAEM7AAB\"\n}", "messageTemplet": "{{~it.payload:payload}}{{\n var data = payload.data;\n var entityType = payload.entityType;\n var entityDefKey = payload.defKey;\n var entityDefName = payload.defName;\n}}{{~ data:item}}{{\n var defKey = item.defKey;\n var defName = item.defName;\n}}{{? entityType === \"C\"}}概念模型{{?? entityType === \"L\"}}逻辑模型{{?? payload.entityType === \"P\"}}物理模型{{?? payload.entityType === \"V\"}}视图{{?}} {{=entityDefName}}{{? entityDefName !== entityDefKey && entityDefKey !== \"\"}}({{=entityDefKey}}){{?}} {{? defName === \"\" || defName === undefined}}<空>{{??}}{{=defName}}{{?}}{{? defName !== defKey && defKey !== \"\"}}({{=defKey}}){{?}}\n{{~}}\n{{~}}" }, { "opceKey": "MOP_INDEX_DELETE", "opceName": "索引删除", "opceIntro": "", "affectDdl": true, "orderValue": 18, "dataSample": "{\n \"ctId\": \"2D5B5945-301D-4AE8-8773-B59C7C9B7F61\",\n \"event\": \"MOP_INDEX_DELETE\",\n \"payload\": [\n {\n \"entityId\": \"P0303.B01.3OTBMNNMEMAA\",\n \"entityType\": \"P\",\n \"defName\": \"学院信息\",\n \"defKey\": \"SMIS_COLLEGE\",\n \"data\": [\n {\n \"id\": \"P0276.B01.3OTKZ4XQEMAD\",\n \"type\": \"\",\n \"defKey\": \"\",\n \"defName\": \"\",\n \"intro\": \"\",\n \"fields\": [\n\n ]\n },\n {\n \"id\": \"P0276.B01.3OTKZ4XQEMAA\",\n \"type\": \"UNIQUE\",\n \"defKey\": \"ID\",\n \"defName\": \"\",\n \"intro\": \"\",\n \"fields\": [\n {\n \"id\": \"P0276.B01.3OTKZ4XQEMAB\",\n \"fieldId\": \"P0303.B01.3OTBMNNMEMAB\",\n \"fieldDefKey\": \"COLLEGE_ID\",\n \"sortType\": \"DESC\"\n },\n {\n \"id\": \"P0276.B01.3OTKZ4XQEMAC\",\n \"fieldId\": \"P0303.B01.3OTJCCQYEMAA\",\n \"fieldDefKey\": \"COLLEGE_NAME\",\n \"sortType\": \"ASC\"\n }\n ]\n }\n ]\n }\n ],\n \"timestamp\": \"1716015395198\",\n \"userName\": \"admin\",\n \"status\": \"SEND\",\n \"userId\": \"BREU3SAEM7AAB\"\n}", "messageTemplet": "{{~it.payload:payload}}{{\n var data = payload.data;\n var entityType = payload.entityType;\n var entityDefKey = payload.defKey;\n var entityDefName = payload.defName;\n}}{{~ data:item}}{{\n var defKey = item.defKey;\n var defName = item.defName;\n}}{{? entityType === \"C\"}}概念模型{{?? entityType === \"L\"}}逻辑模型{{?? entityType === \"P\"}}物理模型{{?? entityType === \"V\"}}视图{{?}} {{=entityDefName}}{{? entityDefName !== entityDefKey && entityDefKey !== \"\"}}({{=entityDefKey}}){{?}} {{? defName === \"\" || defName === undefined}}<空>{{??}}{{=defName}}{{?}}{{? defKey !== defName && defKey !== \"\"}}({{=defKey}}){{?}}\n{{~}}\n{{~}}" }, { "opceKey": "MOP_INDEX_DRAG", "opceName": "索引拖动", "opceIntro": "", "affectDdl": false, "orderValue": 19, "dataSample": "{\n \"ctId\": \"016735B0-1D2E-4055-9844-AFF07D9B1BD1\",\n \"event\": \"MOP_INDEX_DRAG\",\n \"payload\": [\n {\n \"entityId\": \"P0303.B01.3OTBMNNMEMAA\",\n \"entityType\": \"P\",\n \"defName\": \"学院信息\",\n \"defKey\": \"SMIS_COLLEGE\",\n \"step\": 1,\n \"data\": [\n {\n\n },\n {\n \"id\": \"P0276.B01.3OTKZ4XQEMAA\",\n \"defKey\": \"ID\",\n \"defName\": \"\"\n }\n ]\n }\n ],\n \"timestamp\": \"1716015360047\",\n \"userName\": \"admin\",\n \"status\": \"SEND\",\n \"userId\": \"BREU3SAEM7AAB\"\n}", "messageTemplet": "{{~it.payload:payload}}{{\n var data = payload.data;\n var entityType = payload.entityType;\n var entityDefName = payload.defName;\n var entityDefKey = payload.defKey;\n}}{{~ data:item}}{{\n var defKey = item.defKey;\n var defName = item.defName;\n}}{{? entityType === \"C\"}}概念模型{{?? entityType === \"L\"}}逻辑模型{{?? entityType === \"P\"}}物理模型{{?? entityType === \"V\"}}视图{{?}} {{=entityDefName}}{{? entityDefName !== entityDefKey && entityDefKey !== \"\"}}({{=entityDefKey}}){{?}} {{? defName === \"\" || defName === undefined}}<空>{{??}}{{=defName}}{{?}}{{? defName !== defKey && defKey !== \"\"}}({{=defKey}}){{?}}\n{{~}}\n{{~}}" }, { "opceKey": "MOP_INDEX_UPDATE", "opceName": "索引修改", "opceIntro": "", "affectDdl": true, "orderValue": 17, "dataSample": "{\n \"ctId\": \"7380D5FD-8A45-4E01-AE00-3157356DE6CE\",\n \"event\": \"MOP_INDEX_UPDATE\",\n \"payload\": [\n {\n \"entityId\": \"P0303.B01.3OTBMNNMEMAA\",\n \"entityType\": \"P\",\n \"defName\": \"学院信息\",\n \"defKey\": \"SMIS_COLLEGE\",\n \"data\": [\n {\n \"id\": \"P0276.B01.3OTKZ4XQEMAA\",\n \"defKey\": \"ID\",\n \"defName\": \"\",\n \"updateKeys\": \"fields\",\n \"pre\": {\n \"fields\": [\n\n ]\n },\n \"next\": {\n \"fields\": [\n {\n \"id\": \"P0276.B01.3OTKZ4XQEMAB\",\n \"fieldId\": \"P0303.B01.3OTBMNNMEMAB\",\n \"fieldDefKey\": \"COLLEGE_ID\",\n \"sortType\": \"DESC\"\n },\n {\n \"id\": \"P0276.B01.3OTKZ4XQEMAC\",\n \"fieldId\": \"P0303.B01.3OTJCCQYEMAA\",\n \"fieldDefKey\": \"COLLEGE_NAME\",\n \"sortType\": \"ASC\"\n }\n ]\n }\n }\n ]\n }\n ],\n \"timestamp\": \"1716015317967\",\n \"userName\": \"admin\",\n \"status\": \"SEND\",\n \"userId\": \"BREU3SAEM7AAB\"\n}", "messageTemplet": "{{\n var keyMap = {\n \"fields\":\"字段\",\n \"type\":\"类型\",\n \"defKey\":\"代码\",\n \"defName\":\"名称\",\n \"intro\":\"注释\"\n };\n}}{{~it.payload:payload}}{{\n var data = payload.data;\n var entityDefKey = payload.defKey;\n var entityDefName = payload.defName;\n var entityType = payload.entityType;\n function convert(arr) {\n return arr.map(item => ({\n fieldDefKey: item.fieldDefKey,\n sortType: item.sortType\n }));\n }\n}}{{~ data:item}}{{\n var indexDefKey = item.defKey;\n var indexDefName = item.defName;\n var updateKeys = item.updateKeys.split(\",\").filter(key => key !== \"\");\n var pre = item.pre;\n var next = item.next;\n}}{{? entityType === \"C\"}}概念模型{{?? entityType === \"L\"}}逻辑模型{{?? entityType === \"P\"}}物理模型{{?? entityType === \"V\"}}视图{{?}} {{=entityDefName}}{{? entityDefName !== entityDefKey && entityDefKey !== \"\"}}({{=entityDefKey}}){{?}} {{? indexDefName === \"\" || indexDefName === undefined}}<空>{{??}}{{=indexDefName}}{{?}}{{? indexDefName !== indexDefKey && indexDefKey !== \"\"}}({{=indexDefKey}}){{?}} {{{~updateKeys:updateKey}}{{=keyMap[updateKey]}}:{{? pre[updateKey].constructor === Array}}{{= JSON.stringify(pre[updateKey])}}{{??}}{{? pre[updateKey] === \"\" || pre[updateKey] === undefined}}<空>{{??}}{{=pre[updateKey]}}{{?}}{{?}} -> {{? next[updateKey].constructor === Array}}{{= JSON.stringify(convert(next[updateKey]))}}{{??}}{{? next[updateKey] === \"\" || next[updateKey] === undefined}}<空>{{??}}{{=next[updateKey]}}{{?}}{{?}}{{=updateKeys.length > 1 ? \", \" : \"\"}}{{~}}}\n{{~}}\n{{~}}" }, { "opceKey": "MOP_PROJECT_HOME_COVER_DIAGRAM", "opceName": "设置项目封面", "opceIntro": "", "affectDdl": false, "orderValue": 44, "dataSample": null, "messageTemplet": "" }, { "opceKey": "MOP_PROJECT_SETTING", "opceName": "项目设置", "opceIntro": "", "affectDdl": true, "orderValue": 24, "dataSample": "{\n \"ctId\": \"9569E24B-0D21-4061-8B64-EF83BD4FB3EC\",\n \"event\": \"MOP_PROJECT_SETTING\",\n \"payload\": {\n \"physicEntityPresetFields\": [],\n \"physicEntityAttr\": {\n \"attr9\": {\n \"enable\": false,\n \"title\": \"\",\n \"editType\": \"SingleText\",\n \"optionsData\": \"\",\n \"optionsFetcher\": \"\",\n \"defaultValue\": \"\",\n \"orderValue\": 9\n },\n \"attr19\": {\n \"enable\": false,\n \"title\": \"\",\n \"editType\": \"SingleText\",\n \"optionsData\": \"\",\n \"optionsFetcher\": \"\",\n \"defaultValue\": \"\",\n \"orderValue\": 19\n },\n \"attr18\": {\n \"enable\": false,\n \"title\": \"\",\n \"editType\": \"SingleText\",\n \"optionsData\": \"\",\n \"optionsFetcher\": \"\",\n \"defaultValue\": \"\",\n \"orderValue\": 18\n },\n \"attr17\": {\n \"enable\": false,\n \"title\": \"\",\n \"editType\": \"SingleText\",\n \"optionsData\": \"\",\n \"optionsFetcher\": \"\",\n \"defaultValue\": \"\",\n \"orderValue\": 17\n },\n \"attr6\": {\n \"enable\": false,\n \"title\": \"\",\n \"editType\": \"SingleText\",\n \"optionsData\": \"\",\n \"optionsFetcher\": \"\",\n \"defaultValue\": \"\",\n \"orderValue\": 6\n },\n \"attr5\": {\n \"enable\": false,\n \"title\": \"\",\n \"editType\": \"SingleText\",\n \"optionsData\": \"\",\n \"optionsFetcher\": \"\",\n \"defaultValue\": \"\",\n \"orderValue\": 5\n },\n \"attr16\": {\n \"enable\": false,\n \"title\": \"\",\n \"editType\": \"SingleText\",\n \"optionsData\": \"\",\n \"optionsFetcher\": \"\",\n \"defaultValue\": \"\",\n \"orderValue\": 16\n },\n \"attr15\": {\n \"enable\": false,\n \"title\": \"\",\n \"editType\": \"SingleText\",\n \"optionsData\": \"\",\n \"optionsFetcher\": \"\",\n \"defaultValue\": \"\",\n \"orderValue\": 15\n },\n \"attr8\": {\n \"enable\": false,\n \"title\": \"\",\n \"editType\": \"SingleText\",\n \"optionsData\": \"\",\n \"optionsFetcher\": \"\",\n \"defaultValue\": \"\",\n \"orderValue\": 8\n },\n \"attr7\": {\n \"enable\": false,\n \"title\": \"\",\n \"editType\": \"SingleText\",\n \"optionsData\": \"\",\n \"optionsFetcher\": \"\",\n \"defaultValue\": \"\",\n \"orderValue\": 7\n },\n \"attr14\": {\n \"enable\": false,\n \"title\": \"\",\n \"editType\": \"SingleText\",\n \"optionsData\": \"\",\n \"optionsFetcher\": \"\",\n \"defaultValue\": \"\",\n \"orderValue\": 14\n },\n \"attr13\": {\n \"enable\": false,\n \"title\": \"\",\n \"editType\": \"SingleText\",\n \"optionsData\": \"\",\n \"optionsFetcher\": \"\",\n \"defaultValue\": \"\",\n \"orderValue\": 13\n },\n \"attr2\": {\n \"enable\": false,\n \"title\": \"\",\n \"editType\": \"SingleText\",\n \"optionsData\": \"\",\n \"optionsFetcher\": \"\",\n \"defaultValue\": \"\",\n \"orderValue\": 2\n },\n \"attr12\": {\n \"enable\": false,\n \"title\": \"\",\n \"editType\": \"SingleText\",\n \"optionsData\": \"\",\n \"optionsFetcher\": \"\",\n \"defaultValue\": \"\",\n \"orderValue\": 12\n },\n \"attr1\": {\n \"enable\": false,\n \"title\": \"\",\n \"editType\": \"SingleText\",\n \"optionsData\": \"\",\n \"optionsFetcher\": \"\",\n \"defaultValue\": \"\",\n \"orderValue\": 1\n },\n \"attr4\": {\n \"enable\": false,\n \"title\": \"\",\n \"editType\": \"SingleText\",\n \"optionsData\": \"\",\n \"optionsFetcher\": \"\",\n \"defaultValue\": \"\",\n \"orderValue\": 4\n },\n \"attr11\": {\n \"enable\": false,\n \"title\": \"\",\n \"editType\": \"SingleText\",\n \"optionsData\": \"\",\n \"optionsFetcher\": \"\",\n \"defaultValue\": \"\",\n \"orderValue\": 11\n },\n \"attr3\": {\n \"enable\": false,\n \"title\": \"\",\n \"editType\": \"SingleText\",\n \"optionsData\": \"\",\n \"optionsFetcher\": \"\",\n \"defaultValue\": \"\",\n \"orderValue\": 3\n },\n \"attr10\": {\n \"enable\": false,\n \"title\": \"\",\n \"editType\": \"SingleText\",\n \"optionsData\": \"\",\n \"optionsFetcher\": \"\",\n \"defaultValue\": \"\",\n \"orderValue\": 10\n },\n \"attr20\": {\n \"enable\": false,\n \"title\": \"\",\n \"editType\": \"SingleText\",\n \"optionsData\": \"\",\n \"optionsFetcher\": \"\",\n \"defaultValue\": \"\",\n \"orderValue\": 20\n }\n },\n \"physicEntityFieldAttr\": {\n \"attr9\": {\n \"enable\": null,\n \"title\": \"\",\n \"editType\": \"SingleText\",\n \"optionsData\": \"\",\n \"optionsFetcher\": \"\",\n \"defaultValue\": \"\",\n \"orderValue\": null,\n \"columnWidth\": null\n },\n \"attr19\": {\n \"enable\": null,\n \"title\": \"\",\n \"editType\": \"SingleText\",\n \"optionsData\": \"\",\n \"optionsFetcher\": \"\",\n \"defaultValue\": \"\",\n \"orderValue\": null,\n \"columnWidth\": null\n },\n \"attr18\": {\n \"enable\": null,\n \"title\": \"\",\n \"editType\": \"SingleText\",\n \"optionsData\": \"\",\n \"optionsFetcher\": \"\",\n \"defaultValue\": \"\",\n \"orderValue\": null,\n \"columnWidth\": null\n },\n \"attr6\": {\n \"enable\": null,\n \"title\": \"\",\n \"editType\": \"SingleText\",\n \"optionsData\": \"\",\n \"optionsFetcher\": \"\",\n \"defaultValue\": \"\",\n \"orderValue\": null,\n \"columnWidth\": null\n },\n \"attr17\": {\n \"enable\": null,\n \"title\": \"\",\n \"editType\": \"SingleText\",\n \"optionsData\": \"\",\n \"optionsFetcher\": \"\",\n \"defaultValue\": \"\",\n \"orderValue\": null,\n \"columnWidth\": null\n },\n \"attr5\": {\n \"enable\": null,\n \"title\": \"\",\n \"editType\": \"SingleText\",\n \"optionsData\": \"\",\n \"optionsFetcher\": \"\",\n \"defaultValue\": \"\",\n \"orderValue\": null,\n \"columnWidth\": null\n },\n \"attr16\": {\n \"enable\": null,\n \"title\": \"\",\n \"editType\": \"SingleText\",\n \"optionsData\": \"\",\n \"optionsFetcher\": \"\",\n \"defaultValue\": \"\",\n \"orderValue\": null,\n \"columnWidth\": null\n },\n \"attr8\": {\n \"enable\": null,\n \"title\": \"\",\n \"editType\": \"SingleText\",\n \"optionsData\": \"\",\n \"optionsFetcher\": \"\",\n \"defaultValue\": \"\",\n \"orderValue\": null,\n \"columnWidth\": null\n },\n \"attr15\": {\n \"enable\": null,\n \"title\": \"\",\n \"editType\": \"SingleText\",\n \"optionsData\": \"\",\n \"optionsFetcher\": \"\",\n \"defaultValue\": \"\",\n \"orderValue\": null,\n \"columnWidth\": null\n },\n \"attr7\": {\n \"enable\": null,\n \"title\": \"\",\n \"editType\": \"SingleText\",\n \"optionsData\": \"\",\n \"optionsFetcher\": \"\",\n \"defaultValue\": \"\",\n \"orderValue\": null,\n \"columnWidth\": null\n },\n \"attr14\": {\n \"enable\": null,\n \"title\": \"\",\n \"editType\": \"SingleText\",\n \"optionsData\": \"\",\n \"optionsFetcher\": \"\",\n \"defaultValue\": \"\",\n \"orderValue\": null,\n \"columnWidth\": null\n },\n \"attr13\": {\n \"enable\": null,\n \"title\": \"\",\n \"editType\": \"SingleText\",\n \"optionsData\": \"\",\n \"optionsFetcher\": \"\",\n \"defaultValue\": \"\",\n \"orderValue\": null,\n \"columnWidth\": null\n },\n \"attr2\": {\n \"enable\": null,\n \"title\": \"\",\n \"editType\": \"SingleText\",\n \"optionsData\": \"\",\n \"optionsFetcher\": \"\",\n \"defaultValue\": \"\",\n \"orderValue\": null,\n \"columnWidth\": null\n },\n \"attr12\": {\n \"enable\": null,\n \"title\": \"\",\n \"editType\": \"SingleText\",\n \"optionsData\": \"\",\n \"optionsFetcher\": \"\",\n \"defaultValue\": \"\",\n \"orderValue\": null,\n \"columnWidth\": null\n },\n \"attr1\": {\n \"enable\": null,\n \"title\": \"\",\n \"editType\": \"SingleText\",\n \"optionsData\": \"\",\n \"optionsFetcher\": \"\",\n \"defaultValue\": \"\",\n \"orderValue\": null,\n \"columnWidth\": null\n },\n \"attr4\": {\n \"enable\": null,\n \"title\": \"\",\n \"editType\": \"SingleText\",\n \"optionsData\": \"\",\n \"optionsFetcher\": \"\",\n \"defaultValue\": \"\",\n \"orderValue\": null,\n \"columnWidth\": null\n },\n \"attr11\": {\n \"enable\": null,\n \"title\": \"\",\n \"editType\": \"SingleText\",\n \"optionsData\": \"\",\n \"optionsFetcher\": \"\",\n \"defaultValue\": \"\",\n \"orderValue\": null,\n \"columnWidth\": null\n },\n \"attr10\": {\n \"enable\": null,\n \"title\": \"\",\n \"editType\": \"SingleText\",\n \"optionsData\": \"\",\n \"optionsFetcher\": \"\",\n \"defaultValue\": \"\",\n \"orderValue\": null,\n \"columnWidth\": null\n },\n \"attr3\": {\n \"enable\": null,\n \"title\": \"\",\n \"editType\": \"SingleText\",\n \"optionsData\": \"\",\n \"optionsFetcher\": \"\",\n \"defaultValue\": \"\",\n \"orderValue\": null,\n \"columnWidth\": null\n },\n \"attr20\": {\n \"enable\": null,\n \"title\": \"\",\n \"editType\": \"SingleText\",\n \"optionsData\": \"\",\n \"optionsFetcher\": \"\",\n \"defaultValue\": \"\",\n \"orderValue\": null,\n \"columnWidth\": null\n }\n },\n \"physicEntityHeader\": {\n \"defKey\": {\n \"enable\": 1,\n \"columnWidth\": 100,\n \"orderValue\": 1\n },\n \"defName\": {\n \"enable\": 1,\n \"columnWidth\": 100,\n \"orderValue\": 2\n },\n \"baseDataType\": {\n \"enable\": 1,\n \"columnWidth\": 200,\n \"orderValue\": 3\n },\n \"bizDomainType\": {\n \"enable\": 1,\n \"columnWidth\": 200,\n \"orderValue\": 4\n },\n \"dbDataType\": {\n \"enable\": 1,\n \"columnWidth\": 200,\n \"orderValue\": 5\n },\n \"dataLen\": {\n \"enable\": 1,\n \"columnWidth\": 100,\n \"orderValue\": 6\n },\n \"numScale\": {\n \"enable\": 1,\n \"columnWidth\": 100,\n \"orderValue\": 7\n },\n \"primaryKey\": {\n \"enable\": 1,\n \"columnWidth\": 100,\n \"orderValue\": 8\n },\n \"notNull\": {\n \"enable\": 1,\n \"columnWidth\": 100,\n \"orderValue\": 9\n },\n \"autoIncrement\": {\n \"enable\": 1,\n \"columnWidth\": 100,\n \"orderValue\": 10\n },\n \"defaultValue\": {\n \"enable\": 1,\n \"columnWidth\": 100,\n \"orderValue\": 11\n },\n \"stndDictKey\": {\n \"enable\": 0,\n \"columnWidth\": 100,\n \"orderValue\": 12\n },\n \"stndFieldKey\": {\n \"enable\": 0,\n \"columnWidth\": 100,\n \"orderValue\": 13\n },\n \"attr1\": {\n \"enable\": 0,\n \"columnWidth\": 100,\n \"orderValue\": 14\n },\n \"attr2\": {\n \"enable\": 0,\n \"columnWidth\": 100,\n \"orderValue\": 15\n },\n \"attr3\": {\n \"enable\": 0,\n \"columnWidth\": 100,\n \"orderValue\": 16\n },\n \"attr4\": {\n \"enable\": 0,\n \"columnWidth\": 100,\n \"orderValue\": 17\n },\n \"attr5\": {\n \"enable\": 0,\n \"columnWidth\": 100,\n \"orderValue\": 18\n },\n \"attr6\": {\n \"enable\": 0,\n \"columnWidth\": 100,\n \"orderValue\": 19\n },\n \"attr7\": {\n \"enable\": 0,\n \"columnWidth\": 100,\n \"orderValue\": 20\n },\n \"attr8\": {\n \"enable\": 0,\n \"columnWidth\": 100,\n \"orderValue\": 21\n },\n \"attr9\": {\n \"enable\": 0,\n \"columnWidth\": 100,\n \"orderValue\": 22\n },\n \"attr10\": {\n \"enable\": 0,\n \"columnWidth\": 100,\n \"orderValue\": 23\n },\n \"attr11\": {\n \"enable\": 0,\n \"columnWidth\": 100,\n \"orderValue\": 24\n },\n \"attr12\": {\n \"enable\": 0,\n \"columnWidth\": 100,\n \"orderValue\": 25\n },\n \"attr13\": {\n \"enable\": 0,\n \"columnWidth\": 100,\n \"orderValue\": 26\n },\n \"attr14\": {\n \"enable\": 0,\n \"columnWidth\": 100,\n \"orderValue\": 27\n },\n \"attr15\": {\n \"enable\": 0,\n \"columnWidth\": 100,\n \"orderValue\": 28\n },\n \"attr16\": {\n \"enable\": 0,\n \"columnWidth\": 100,\n \"orderValue\": 29\n },\n \"attr17\": {\n \"enable\": 0,\n \"columnWidth\": 100,\n \"orderValue\": 30\n },\n \"attr18\": {\n \"enable\": 0,\n \"columnWidth\": 100,\n \"orderValue\": 31\n },\n \"attr19\": {\n \"enable\": 0,\n \"columnWidth\": 100,\n \"orderValue\": 32\n },\n \"attr20\": {\n \"enable\": 0,\n \"columnWidth\": 100,\n \"orderValue\": 33\n }\n }\n },\n \"timestamp\": \"1715823563825\",\n \"userName\": \"admin\",\n \"status\": \"SEND\",\n \"userId\": \"BREU3SAEM7AAB\"\n }\n", "messageTemplet": "" } ] }, "project": { "branch": "master", "dbDialect": "MySQL", "schema": null, "status": "EDIT", "allow": "W", "setting": { "physicEntityPresetFields": [ { "id": "7C0B4076-0DC9-41AB-9D0B-0A1D5924DC69", "defKey": "default", "defName": "默认方案", "data": [ { "id": "BFB2ADBB-B1E9-4963-BD1F-FA9074EFE4AD", "defKey": "id", "defName": "Id", "intro": "", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 1, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": [], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "978353B6-4795-4D07-9651-B20E4ED64C33", "defKey": "creator_id", "defName": "创建人 Id", "intro": " sys_user.id", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "89526ADA-2D33-4B5C-BEE0-CCBD59E9DE33", "defKey": "modifier_id", "defName": "修改人 Id", "intro": " sys_user.id", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": [], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "71943ECA-7843-4486-A378-C9F98399799A", "defKey": "create_time", "defName": "创建时间", "intro": "", "baseDataType": "DATETIME", "bizDomainType": "", "dbDataType": "DATETIME", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": [], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "B1397FFC-5517-42FC-8FD2-6701507784CB", "defKey": "modify_time", "defName": "修改时间", "intro": "", "baseDataType": "DATETIME", "bizDomainType": "", "dbDataType": "DATETIME", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": [], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "C1643BB8-90A0-46DB-8BCD-95A630200AC3", "defKey": "deleted", "defName": "是否删除", "intro": " 0-->未删除、1-->已删除", "baseDataType": "TINYINT", "bizDomainType": "", "dbDataType": "TINYINT", "dataLen": 1, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "0", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": [], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" } ], "isDefault": 1 } ], "physicEntityAttr": { "attr1": { "enable": 0, "title": "增强字段1", "editType": "SingleText", "optionsData": null, "optionsFetcher": null, "defaultValue": null, "orderValue": 1 }, "attr2": { "enable": 0, "title": "增强字段2", "editType": "SingleText", "optionsData": null, "optionsFetcher": null, "defaultValue": null, "orderValue": 2 }, "attr3": { "enable": 0, "title": "增强字段3", "editType": "SingleText", "optionsData": null, "optionsFetcher": null, "defaultValue": null, "orderValue": 3 }, "attr4": { "enable": 0, "title": "增强字段4", "editType": "SingleText", "optionsData": null, "optionsFetcher": null, "defaultValue": null, "orderValue": 4 }, "attr5": { "enable": 0, "title": "增强字段5", "editType": "SingleText", "optionsData": null, "optionsFetcher": null, "defaultValue": null, "orderValue": 5 }, "attr6": { "enable": 0, "title": "增强字段6", "editType": "SingleText", "optionsData": null, "optionsFetcher": null, "defaultValue": null, "orderValue": 6 }, "attr7": { "enable": 0, "title": "增强字段7", "editType": "SingleText", "optionsData": null, "optionsFetcher": null, "defaultValue": null, "orderValue": 7 }, "attr8": { "enable": 0, "title": "增强字段8", "editType": "SingleText", "optionsData": null, "optionsFetcher": null, "defaultValue": null, "orderValue": 8 }, "attr9": { "enable": 0, "title": "增强字段9", "editType": "SingleText", "optionsData": null, "optionsFetcher": null, "defaultValue": null, "orderValue": 9 }, "attr10": { "enable": 0, "title": "增强字段10", "editType": "SingleText", "optionsData": null, "optionsFetcher": null, "defaultValue": null, "orderValue": 10 }, "attr11": { "enable": 0, "title": "增强字段11", "editType": "SingleText", "optionsData": null, "optionsFetcher": null, "defaultValue": null, "orderValue": 11 }, "attr12": { "enable": 0, "title": "增强字段12", "editType": "MultiText", "optionsData": null, "optionsFetcher": null, "defaultValue": null, "orderValue": 12 }, "attr13": { "enable": 0, "title": "增强字段13", "editType": "DecimalInput", "optionsData": null, "optionsFetcher": null, "defaultValue": null, "orderValue": 13 }, "attr14": { "enable": 0, "title": "增强字段14", "editType": "IntegerInput", "optionsData": null, "optionsFetcher": null, "defaultValue": null, "orderValue": 14 }, "attr15": { "enable": 0, "title": "增强字段15", "editType": "MultiTreeSelect", "optionsData": null, "optionsFetcher": null, "defaultValue": null, "orderValue": 15 }, "attr16": { "enable": 0, "title": "增强字段16", "editType": "SingleTreeSelect", "optionsData": null, "optionsFetcher": null, "defaultValue": null, "orderValue": 16 }, "attr17": { "enable": 0, "title": "增强字段17", "editType": "MultiCheckbox", "optionsData": null, "optionsFetcher": null, "defaultValue": null, "orderValue": 17 }, "attr18": { "enable": 0, "title": "增强字段18", "editType": "MultiDropdown", "optionsData": null, "optionsFetcher": null, "defaultValue": null, "orderValue": 18 }, "attr19": { "enable": 0, "title": "增强字段19", "editType": "SingleDropdown", "optionsData": null, "optionsFetcher": null, "defaultValue": null, "orderValue": 19 }, "attr20": { "enable": 0, "title": "增强字段20", "editType": "SingleText", "optionsData": null, "optionsFetcher": null, "defaultValue": null, "orderValue": 20 } }, "physicEntityFieldAttr": { "attr1": { "enable": 0, "title": "增强字段1", "editType": "SingleText", "optionsData": null, "optionsFetcher": null, "defaultValue": null, "orderValue": 16, "columnWidth": null }, "attr2": { "enable": 0, "title": "增强字段2", "editType": "SingleText", "optionsData": null, "optionsFetcher": null, "defaultValue": null, "orderValue": 17, "columnWidth": null }, "attr3": { "enable": 0, "title": "增强字段3", "editType": "SingleText", "optionsData": null, "optionsFetcher": null, "defaultValue": null, "orderValue": 18, "columnWidth": null }, "attr4": { "enable": 0, "title": "增强字段4", "editType": "SingleText", "optionsData": null, "optionsFetcher": null, "defaultValue": null, "orderValue": 19, "columnWidth": null }, "attr5": { "enable": 0, "title": "增强字段5", "editType": "SingleText", "optionsData": null, "optionsFetcher": null, "defaultValue": null, "orderValue": 20, "columnWidth": null }, "attr6": { "enable": 0, "title": "增强字段6", "editType": "SingleText", "optionsData": null, "optionsFetcher": null, "defaultValue": null, "orderValue": 21, "columnWidth": null }, "attr7": { "enable": 0, "title": "增强字段7", "editType": "SingleText", "optionsData": null, "optionsFetcher": null, "defaultValue": null, "orderValue": 22, "columnWidth": null }, "attr8": { "enable": 0, "title": "增强字段8", "editType": "SingleText", "optionsData": null, "optionsFetcher": null, "defaultValue": null, "orderValue": 23, "columnWidth": null }, "attr9": { "enable": 0, "title": "增强字段9", "editType": "SingleText", "optionsData": null, "optionsFetcher": null, "defaultValue": null, "orderValue": 24, "columnWidth": null }, "attr10": { "enable": 0, "title": "增强字段10", "editType": "SingleText", "optionsData": null, "optionsFetcher": null, "defaultValue": null, "orderValue": 25, "columnWidth": null }, "attr11": { "enable": 0, "title": "增强字段11", "editType": "SingleText", "optionsData": null, "optionsFetcher": null, "defaultValue": null, "orderValue": 26, "columnWidth": null }, "attr12": { "enable": 0, "title": "增强字段12", "editType": "MultiText", "optionsData": null, "optionsFetcher": null, "defaultValue": null, "orderValue": 27, "columnWidth": null }, "attr13": { "enable": 0, "title": "增强字段13", "editType": "DecimalInput", "optionsData": null, "optionsFetcher": null, "defaultValue": null, "orderValue": 28, "columnWidth": null }, "attr14": { "enable": 0, "title": "增强字段14", "editType": "IntegerInput", "optionsData": null, "optionsFetcher": null, "defaultValue": null, "orderValue": 29, "columnWidth": null }, "attr15": { "enable": 0, "title": "增强字段15", "editType": "MultiTreeSelect", "optionsData": null, "optionsFetcher": null, "defaultValue": null, "orderValue": 30, "columnWidth": null }, "attr16": { "enable": 0, "title": "增强字段16", "editType": "SingleTreeSelect", "optionsData": null, "optionsFetcher": null, "defaultValue": null, "orderValue": 31, "columnWidth": null }, "attr17": { "enable": 0, "title": "增强字段17", "editType": "MultiCheckbox", "optionsData": null, "optionsFetcher": null, "defaultValue": null, "orderValue": 32, "columnWidth": null }, "attr18": { "enable": 0, "title": "增强字段18", "editType": "MultiDropdown", "optionsData": null, "optionsFetcher": null, "defaultValue": null, "orderValue": 33, "columnWidth": null }, "attr19": { "enable": 0, "title": "增强字段19", "editType": "SingleDropdown", "optionsData": null, "optionsFetcher": null, "defaultValue": null, "orderValue": 34, "columnWidth": null }, "attr20": { "enable": 0, "title": "增强字段20", "editType": "SingleText", "optionsData": null, "optionsFetcher": null, "defaultValue": null, "orderValue": 35, "columnWidth": null } }, "physicEntityHeader": { "defKey": { "columnWidth": 210, "enable": 1, "orderValue": 1 }, "defName": { "columnWidth": 230, "enable": 1, "orderValue": 2 }, "dbDataType": { "columnWidth": 150, "enable": 1, "orderValue": 3 }, "dataLen": { "columnWidth": 70, "enable": 1, "orderValue": 4 }, "numScale": { "columnWidth": 80, "enable": 1, "orderValue": 5 }, "defaultValue": { "columnWidth": 200, "enable": 1, "orderValue": 6 }, "intro": { "columnWidth": 300, "enable": 1, "orderValue": 7 }, "stndDictId": { "columnWidth": 230, "enable": 1, "orderValue": 8 }, "primaryKey": { "columnWidth": 70, "enable": 1, "orderValue": 9 }, "autoIncrement": { "columnWidth": 70, "enable": 1, "orderValue": 10 }, "notNull": { "columnWidth": 80, "enable": 1, "orderValue": 11 }, "baseDataType": { "columnWidth": 150, "enable": 0, "orderValue": 12 }, "bizDomainType": { "columnWidth": 180, "enable": 0, "orderValue": 13 }, "stndFieldId": { "columnWidth": 230, "enable": 0, "orderValue": 14 }, "stndComplianceType": { "columnWidth": 120, "enable": 0, "orderValue": 15 }, "stndComplianceLevel": { "columnWidth": 100, "enable": 0, "orderValue": 16 }, "fieldTier": { "columnWidth": 100, "enable": 0, "orderValue": 17 }, "attr1": { "columnWidth": 100, "enable": 0, "orderValue": 18 }, "attr2": { "columnWidth": 100, "enable": 0, "orderValue": 19 }, "attr3": { "columnWidth": 100, "enable": 0, "orderValue": 20 }, "attr4": { "columnWidth": 100, "enable": 0, "orderValue": 21 }, "attr5": { "columnWidth": 100, "enable": 0, "orderValue": 22 }, "attr6": { "columnWidth": 100, "enable": 0, "orderValue": 23 }, "attr7": { "columnWidth": 100, "enable": 0, "orderValue": 24 }, "attr8": { "columnWidth": 100, "enable": 0, "orderValue": 25 }, "attr9": { "columnWidth": 100, "enable": 0, "orderValue": 26 }, "attr10": { "columnWidth": 100, "enable": 0, "orderValue": 27 }, "attr11": { "columnWidth": 100, "enable": 0, "orderValue": 28 }, "attr12": { "columnWidth": 100, "enable": 0, "orderValue": 29 }, "attr13": { "columnWidth": 100, "enable": 0, "orderValue": 30 }, "attr14": { "columnWidth": 100, "enable": 0, "orderValue": 31 }, "attr15": { "columnWidth": 100, "enable": 0, "orderValue": 32 }, "attr16": { "columnWidth": 100, "enable": 0, "orderValue": 33 }, "attr17": { "columnWidth": 100, "enable": 0, "orderValue": 34 }, "attr18": { "columnWidth": 100, "enable": 0, "orderValue": 35 }, "attr19": { "columnWidth": 100, "enable": 0, "orderValue": 36 }, "attr20": { "columnWidth": 100, "enable": 0, "orderValue": 37 } }, "fieldTier": [ { "defKey": "1", "sortValue": 0, "defName": "核心级", "intro": "业务流程运转关键字段,缺失导致系统功能中断", "frequency": "90%+ (极高)", "illustrate": "order_id(主键)、user_id(外键)、amount(金额)、status(状态值)" }, { "defKey": "2", "sortValue": 1, "defName": "描述级", "intro": "实体静态特征描述,支撑业务语义理解与可视化", "frequency": "60%-80% (高)", "illustrate": "product_name(名称)、category(分类)、delivery_address(地址)、color_code(颜色编码)" }, { "defKey": "3", "sortValue": 2, "defName": "扩展级", "intro": "低频业务扩展属性,避免核心表频繁变更", "frequency": "20%-50% (中)", "illustrate": "config_options(JSON配置)、discounted_price(冗余计算值)" }, { "defKey": "4", "sortValue": 3, "defName": "技术级", "intro": "系统运维元数据,与业务逻辑解耦", "frequency": "<10% (低)", "illustrate": "created_by(创建人)、created_at(创建时间)、etl_batch_id(ETL批次号)、source_system(数据源编码)、debug_flag(调试标记)" }, { "defKey": "5", "sortValue": 4, "defName": "冗余级", "intro": "容错与灾备设计,提升系统可靠性", "frequency": "<5% (极低)", "illustrate": " data_hash(校验哈希)、is_deleted(软删除标记)、backup_shard_id(灾备分片ID)" } ], "dictExportTpl": [ { "defKey": "SQL-INSERT", "defName": "SQL-INSERT", "type": "SQL", "content": "{{~ it.stndDict:dict}}\n--代码对象:{{=dict.defKey}}-{{=dict.defName}}\nINSERT INTO sys_dict(dict_key,dict_name) values('{{=dict.defKey}}','{{=dict.defName}}');\n{{~ dict.dictItems:item}}\nINSERT INTO sys_dict_item(dict_key,item_key,item_name,sort,parent_key,intro) values('{{=dict.defKey}}','{{=item.itemKey}}','{{=item.itemName}}','{{=item.sort||\"\"}}','{{=item.parentKey||\"\"}}','{{=item.intro||\"\"}}');\n{{~}}\n{{~}}" } ] } }, "team": { "dbEnvironments": [ { "defKey": "dev", "defName": "dev", "dbDialect": "MySQL", "dbConnections": [ { "defName": "多合一", "usedFor": "ALL_IN_ONE", "dbDialectKey": "MySQL", "driverFiles": "mysql-connector-j-8.3.0.jar", "extParams": "schemaName=njzscloud_dispose", "password": "ZXcgoJqNVcVNLolCmBKQ2A==", "id": "FCD5D2AF-36D6-4ED7-AAC2-C5F5FB02332A", "username": "xa1HO8gevrFNnWjL9Bsgnw==", "driverClassName": "com.mysql.cj.jdbc.Driver", "url": "YJUIuHpIHkliSUlYOgt+kiXh6RwxUNQlw+q6q7GdYJXXXCk8rRlwALc95LX3iaP0BgmWTaMRbzM6hxOhqoB+KhvvYpNrizn8z9zAI+f/XEu48YMFNr8If4qtwZf0hGwZu51kcEmQ3Jr2OindlF6c3cr3UejpfyLtNpwJdeWJNtYNwb3Z9eSe8k9yfNl4Y64p", "envId": "572377B5-884E-47DB-835F-6326AB9561C7" } ], "id": "572377B5-884E-47DB-835F-6326AB9561C7" } ], "bizDomainTypes": [] }, "user": { "modelingNavDisplay": { "hierarchyType": "TREE", "nodeType": "ALL", "categoryNode": { "optionValue": "N", "customValue": "{defKey}-{defName}", "orderValue": 0 }, "conceptEntityNode": { "optionValue": "A", "customValue": "{defKey}-{defName}", "orderValue": 1 }, "logicEntityNode": { "optionValue": "A", "customValue": "{defKey}-{defName}", "orderValue": 2 }, "physicEntityNode": { "optionValue": "A", "customValue": "{defKey}-{defName}", "orderValue": 3 }, "diagramNode": { "optionValue": "A", "customValue": "{defKey}-{defName}", "orderValue": 4 } }, "freezeEntityHeader": { "physicEntity": { "defKey": { "width": 210, "fixed": "L" }, "defName": { "width": 166, "fixed": "L" }, "dbDataType": { "width": 121, "fixed": "" }, "dataLen": { "width": 70, "fixed": "" }, "numScale": { "width": 80, "fixed": "" }, "defaultValue": { "width": 128, "fixed": "" }, "intro": { "width": 300, "fixed": "" }, "stndDictId": { "width": 400, "fixed": "" }, "primaryKey": { "width": 70, "fixed": "" }, "autoIncrement": { "width": 70, "fixed": "" }, "notNull": { "width": 80, "fixed": "R" } } } } }, "project": { "avatar": "", "name": "njzscloud-dispose", "categories": [ { "id": "F4D7984D-7AEE-412E-B037-71D50D37B7C6", "defKey": "sys", "defName": "系统", "classifyType": "MANUAL", "manualClassify": "[\"P\"]", "bindSchema": 0, "children": null, "entityRefs": [ { "refObjectId": "8783C5A5-46D1-4CDC-868F-B604C776D114", "refObjectType": "E", "orderValue": 1 }, { "refObjectId": "C2604D57-F42D-4588-884D-E470DF238DD3", "refObjectType": "E", "orderValue": 2 }, { "refObjectId": "FEF038F4-4AEE-4930-9C4B-E08E7F4F3A23", "refObjectType": "P", "orderValue": 3 }, { "refObjectId": "0CE38F31-EFD9-43A6-9BA5-3E13696C8444", "refObjectType": "E", "orderValue": 4 }, { "refObjectId": "18C34285-97B3-48BD-BF1C-80FFD204878F", "refObjectType": "E", "orderValue": 5 }, { "refObjectId": "CA27E812-84DF-415B-A517-D8EE72A5851F", "refObjectType": "E", "orderValue": 6 }, { "refObjectId": "66210A03-E5D3-4AE3-9DF5-0A5FF1B55A2B", "refObjectType": "E", "orderValue": 7 }, { "refObjectId": "298B913C-A7EC-42CF-B869-6F8F3EEA5CEB", "refObjectType": "E", "orderValue": 8 }, { "refObjectId": "9B28F97D-A220-48BA-B256-99952BD84550", "refObjectType": "E", "orderValue": 9 }, { "refObjectId": "1F8CC750-13F7-406D-9667-C328491C1A6E", "refObjectType": "E", "orderValue": 10 }, { "refObjectId": "778D9EC8-362D-438D-8522-7DC1A9C4D55F", "refObjectType": "E", "orderValue": 11 }, { "refObjectId": "A0E6ACDD-B2DA-478D-B98F-ECEF0B624979", "refObjectType": "E", "orderValue": 12 }, { "refObjectId": "4C319989-B031-4A47-872B-632383A686EE", "refObjectType": "E", "orderValue": 13 }, { "refObjectId": "C6C96F4E-DDF2-4F8E-ABE9-3DFA6BE487C5", "refObjectType": "E", "orderValue": 14 }, { "refObjectId": "6AE16DDA-CDCA-4E66-80B5-775ACF4B124E", "refObjectType": "E", "orderValue": 15 }, { "refObjectId": "457D3BF0-A5A6-4636-A83E-3903ACD2C4A2", "refObjectType": "E", "orderValue": 16 }, { "refObjectId": "4DB0E9C1-05E9-47ED-A7AA-6BC7E87856D7", "refObjectType": "E", "orderValue": 17 }, { "refObjectId": "96FF7EC9-5753-46BC-AE85-E2BDFEE6E043", "refObjectType": "E", "orderValue": 18 }, { "refObjectId": "B724EF27-B827-4067-8F8F-43FD73F9DE24", "refObjectType": "E", "orderValue": 19 }, { "refObjectId": "BEC9C790-0D4F-477F-9F31-8A9F41A4977D", "refObjectType": "E", "orderValue": 20 }, { "refObjectId": "7F405312-ACDB-41FB-A8E0-6BD9CECA52D3", "refObjectType": "P", "orderValue": 21 }, { "refObjectId": "9433E723-2A22-4004-8EEC-EA148772C5D4", "refObjectType": "P", "orderValue": 22 } ], "diagramRefs": [], "peerOrder": 1 }, { "id": "76F28967-EDEA-4FA2-9E00-FC0A14C8D915", "defKey": "mfg", "defName": "生产", "classifyType": "MANUAL", "manualClassify": "[\"P\"]", "bindSchema": 0, "children": null, "entityRefs": [ { "refObjectId": "F911D1E8-57E3-4C1B-8F65-20ED00A70A76", "refObjectType": "P", "orderValue": 1 }, { "refObjectId": "DB9FCE82-2E82-48C7-A39D-33BC31AFE14E", "refObjectType": "E", "orderValue": 2 }, { "refObjectId": "0B223F50-E8AF-40F4-8444-1B22D1171407", "refObjectType": "P", "orderValue": 3 }, { "refObjectId": "B6FB46B6-0669-4946-B687-961098C80A39", "refObjectType": "E", "orderValue": 4 }, { "refObjectId": "CDADA174-8ECA-4330-A44B-0DB60C18F25D", "refObjectType": "E", "orderValue": 5 }, { "refObjectId": "78C76768-76BB-48CA-9938-6ED5F823D153", "refObjectType": "P", "orderValue": 6 }, { "refObjectId": "0D72401C-EA42-4DE0-B0F1-D05DAFF7D265", "refObjectType": "P", "orderValue": 7 }, { "refObjectId": "38F860DC-AECC-4D1C-ADC1-EF9503EA431F", "refObjectType": "P", "orderValue": 8 }, { "refObjectId": "A3717326-9BB6-497C-B379-114B5DDB1CFF", "refObjectType": "P", "orderValue": 9 } ], "diagramRefs": [], "peerOrder": 2 }, { "id": "C2ED7A76-B66C-4323-996C-0EB696D22C68", "defKey": "gds", "defName": "产品", "classifyType": "MANUAL", "manualClassify": "[\"P\"]", "bindSchema": 0, "children": null, "entityRefs": [ { "refObjectId": "133C0B4F-2437-4D95-A692-C34553963E28", "refObjectType": "P", "orderValue": 1 }, { "refObjectId": "286B768E-73F1-4390-9905-23684B92761F", "refObjectType": "P", "orderValue": 2 } ], "diagramRefs": [], "peerOrder": 3 }, { "id": "8FF17ADC-6C66-4DBD-B7FC-0C0B6E35A910", "defKey": "fin", "defName": "财务", "classifyType": "MANUAL", "manualClassify": "[\"P\"]", "bindSchema": 0, "children": null, "entityRefs": [ { "refObjectId": "31EE5227-5597-42B8-8D7A-B558F708C076", "refObjectType": "P", "orderValue": 1 }, { "refObjectId": "3B83C23F-D49C-4D67-830C-882D91A57927", "refObjectType": "P", "orderValue": 2 }, { "refObjectId": "EDDB991D-570B-493F-AF67-97787AC9BAFC", "refObjectType": "P", "orderValue": 3 }, { "refObjectId": "48C64C11-5A89-4DDD-95A6-3EBF40F399FB", "refObjectType": "P", "orderValue": 4 }, { "refObjectId": "4476CB18-4B15-486E-A0AD-DA49AB267305", "refObjectType": "P", "orderValue": 5 } ], "diagramRefs": [], "peerOrder": 4 }, { "id": "47A6C9D4-056A-48B0-B6B2-4BF5AC78D0E3", "defKey": "wh", "defName": "仓储", "classifyType": "MANUAL", "manualClassify": "[\"P\"]", "bindSchema": 0, "children": null, "entityRefs": [ { "refObjectId": "9645DE46-7F49-4C24-99F2-9C8D88C5B328", "refObjectType": "P", "orderValue": 1 }, { "refObjectId": "22ACAD57-2008-4E85-B7E6-A31C50221F49", "refObjectType": "P", "orderValue": 2 }, { "refObjectId": "5374D175-115A-42B6-A68B-DCD30D953B7E", "refObjectType": "P", "orderValue": 3 }, { "refObjectId": "DEBAD01B-B6FF-4EFB-9B03-29EB31F2E5CF", "refObjectType": "P", "orderValue": 4 }, { "refObjectId": "0B25C484-FFCC-4583-8DE5-26402A7104BA", "refObjectType": "P", "orderValue": 5 }, { "refObjectId": "FC24E76A-8EA4-4A60-BC0F-B0B5AE154AFE", "refObjectType": "P", "orderValue": 6 }, { "refObjectId": "153541F6-C971-4324-B97C-BEF689627B24", "refObjectType": "P", "orderValue": 7 }, { "refObjectId": "C9A36E0B-ECA6-4D3C-AEE5-691F607359F6", "refObjectType": "P", "orderValue": 8 } ], "diagramRefs": [], "peerOrder": 5 }, { "id": "33C5A65F-6DAF-4CE2-9E03-E170AA482B8F", "defKey": "cst", "defName": "收/销/运", "classifyType": "MANUAL", "manualClassify": "[\"P\"]", "bindSchema": 0, "children": null, "entityRefs": [ { "refObjectId": "1A2D551C-214D-469D-B0C5-917C29D725B2", "refObjectType": "P", "orderValue": 1 }, { "refObjectId": "1DF0083F-E75C-45CA-BCCF-62018CC23FC3", "refObjectType": "P", "orderValue": 2 }, { "refObjectId": "DECB0762-9BE3-429A-81F7-891B7C960B04", "refObjectType": "P", "orderValue": 3 }, { "refObjectId": "167D299F-EC34-4B05-97F9-C2A0F2CD034E", "refObjectType": "P", "orderValue": 4 }, { "refObjectId": "DF643AC9-1A78-408B-9F20-9C659BC475FA", "refObjectType": "P", "orderValue": 5 }, { "refObjectId": "718C57B0-4799-48E1-8651-57527A3BFF8B", "refObjectType": "P", "orderValue": 6 }, { "refObjectId": "3A0C2179-8576-40CB-8A4D-647318E432BC", "refObjectType": "P", "orderValue": 7 }, { "refObjectId": "F13139EC-3554-4C1E-8C09-1A6C238C539A", "refObjectType": "P", "orderValue": 8 }, { "refObjectId": "F573B178-BE6E-48AB-8AF0-6121E7320EB9", "refObjectType": "P", "orderValue": 9 }, { "refObjectId": "14DAB3C1-5814-401B-AC62-E15036FE31F6", "refObjectType": "P", "orderValue": 10 }, { "refObjectId": "38B910DC-4D79-448E-9EA4-CED1E92B03DE", "refObjectType": "P", "orderValue": 11 }, { "refObjectId": "7B09A315-2996-4455-8893-EE3FC4EE6957", "refObjectType": "P", "orderValue": 12 } ], "diagramRefs": [], "peerOrder": 6 } ], "flat": { "entityRefs": [ { "refObjectId": "8783C5A5-46D1-4CDC-868F-B604C776D114", "refObjectType": "P", "orderValue": 1 }, { "refObjectId": "298B913C-A7EC-42CF-B869-6F8F3EEA5CEB", "refObjectType": "P", "orderValue": 2 }, { "refObjectId": "C2604D57-F42D-4588-884D-E470DF238DD3", "refObjectType": "P", "orderValue": 3 }, { "refObjectId": "CA27E812-84DF-415B-A517-D8EE72A5851F", "refObjectType": "P", "orderValue": 4 }, { "refObjectId": "66210A03-E5D3-4AE3-9DF5-0A5FF1B55A2B", "refObjectType": "P", "orderValue": 5 }, { "refObjectId": "1F8CC750-13F7-406D-9667-C328491C1A6E", "refObjectType": "P", "orderValue": 6 }, { "refObjectId": "778D9EC8-362D-438D-8522-7DC1A9C4D55F", "refObjectType": "P", "orderValue": 7 }, { "refObjectId": "A0E6ACDD-B2DA-478D-B98F-ECEF0B624979", "refObjectType": "P", "orderValue": 8 }, { "refObjectId": "4C319989-B031-4A47-872B-632383A686EE", "refObjectType": "P", "orderValue": 9 }, { "refObjectId": "0CE38F31-EFD9-43A6-9BA5-3E13696C8444", "refObjectType": "P", "orderValue": 10 }, { "refObjectId": "C6C96F4E-DDF2-4F8E-ABE9-3DFA6BE487C5", "refObjectType": "P", "orderValue": 11 }, { "refObjectId": "457D3BF0-A5A6-4636-A83E-3903ACD2C4A2", "refObjectType": "P", "orderValue": 12 }, { "refObjectId": "6AE16DDA-CDCA-4E66-80B5-775ACF4B124E", "refObjectType": "P", "orderValue": 13 }, { "refObjectId": "9B28F97D-A220-48BA-B256-99952BD84550", "refObjectType": "P", "orderValue": 14 }, { "refObjectId": "18C34285-97B3-48BD-BF1C-80FFD204878F", "refObjectType": "P", "orderValue": 15 }, { "refObjectId": "4DB0E9C1-05E9-47ED-A7AA-6BC7E87856D7", "refObjectType": "P", "orderValue": 16 }, { "refObjectId": "BEC9C790-0D4F-477F-9F31-8A9F41A4977D", "refObjectType": "P", "orderValue": 17 }, { "refObjectId": "B724EF27-B827-4067-8F8F-43FD73F9DE24", "refObjectType": "P", "orderValue": 18 }, { "refObjectId": "96FF7EC9-5753-46BC-AE85-E2BDFEE6E043", "refObjectType": "P", "orderValue": 19 }, { "refObjectId": "9433E723-2A22-4004-8EEC-EA148772C5D4", "refObjectType": "P", "orderValue": 20 }, { "refObjectId": "7F405312-ACDB-41FB-A8E0-6BD9CECA52D3", "refObjectType": "P", "orderValue": 21 }, { "refObjectId": "133C0B4F-2437-4D95-A692-C34553963E28", "refObjectType": "P", "orderValue": 22 }, { "refObjectId": "286B768E-73F1-4390-9905-23684B92761F", "refObjectType": "P", "orderValue": 23 }, { "refObjectId": "FEF038F4-4AEE-4930-9C4B-E08E7F4F3A23", "refObjectType": "P", "orderValue": 24 }, { "refObjectId": "9645DE46-7F49-4C24-99F2-9C8D88C5B328", "refObjectType": "P", "orderValue": 25 }, { "refObjectId": "153541F6-C971-4324-B97C-BEF689627B24", "refObjectType": "P", "orderValue": 26 }, { "refObjectId": "C9A36E0B-ECA6-4D3C-AEE5-691F607359F6", "refObjectType": "P", "orderValue": 27 }, { "refObjectId": "3B83C23F-D49C-4D67-830C-882D91A57927", "refObjectType": "P", "orderValue": 28 }, { "refObjectId": "EDDB991D-570B-493F-AF67-97787AC9BAFC", "refObjectType": "P", "orderValue": 29 }, { "refObjectId": "48C64C11-5A89-4DDD-95A6-3EBF40F399FB", "refObjectType": "P", "orderValue": 30 }, { "refObjectId": "4476CB18-4B15-486E-A0AD-DA49AB267305", "refObjectType": "P", "orderValue": 31 }, { "refObjectId": "31EE5227-5597-42B8-8D7A-B558F708C076", "refObjectType": "P", "orderValue": 32 }, { "refObjectId": "0B223F50-E8AF-40F4-8444-1B22D1171407", "refObjectType": "P", "orderValue": 33 }, { "refObjectId": "1A2D551C-214D-469D-B0C5-917C29D725B2", "refObjectType": "P", "orderValue": 34 }, { "refObjectId": "DECB0762-9BE3-429A-81F7-891B7C960B04", "refObjectType": "P", "orderValue": 35 }, { "refObjectId": "718C57B0-4799-48E1-8651-57527A3BFF8B", "refObjectType": "P", "orderValue": 36 }, { "refObjectId": "F13139EC-3554-4C1E-8C09-1A6C238C539A", "refObjectType": "P", "orderValue": 37 }, { "refObjectId": "38B910DC-4D79-448E-9EA4-CED1E92B03DE", "refObjectType": "P", "orderValue": 38 }, { "refObjectId": "F573B178-BE6E-48AB-8AF0-6121E7320EB9", "refObjectType": "P", "orderValue": 39 }, { "refObjectId": "DF643AC9-1A78-408B-9F20-9C659BC475FA", "refObjectType": "P", "orderValue": 40 }, { "refObjectId": "167D299F-EC34-4B05-97F9-C2A0F2CD034E", "refObjectType": "P", "orderValue": 41 }, { "refObjectId": "14DAB3C1-5814-401B-AC62-E15036FE31F6", "refObjectType": "P", "orderValue": 42 }, { "refObjectId": "5374D175-115A-42B6-A68B-DCD30D953B7E", "refObjectType": "P", "orderValue": 43 }, { "refObjectId": "DEBAD01B-B6FF-4EFB-9B03-29EB31F2E5CF", "refObjectType": "P", "orderValue": 44 }, { "refObjectId": "0B25C484-FFCC-4583-8DE5-26402A7104BA", "refObjectType": "P", "orderValue": 45 }, { "refObjectId": "FC24E76A-8EA4-4A60-BC0F-B0B5AE154AFE", "refObjectType": "P", "orderValue": 46 }, { "refObjectId": "22ACAD57-2008-4E85-B7E6-A31C50221F49", "refObjectType": "P", "orderValue": 47 }, { "refObjectId": "3A0C2179-8576-40CB-8A4D-647318E432BC", "refObjectType": "P", "orderValue": 48 }, { "refObjectId": "1DF0083F-E75C-45CA-BCCF-62018CC23FC3", "refObjectType": "P", "orderValue": 49 }, { "refObjectId": "F911D1E8-57E3-4C1B-8F65-20ED00A70A76", "refObjectType": "P", "orderValue": 50 }, { "refObjectId": "DB9FCE82-2E82-48C7-A39D-33BC31AFE14E", "refObjectType": "P", "orderValue": 51 }, { "refObjectId": "B6FB46B6-0669-4946-B687-961098C80A39", "refObjectType": "P", "orderValue": 52 }, { "refObjectId": "CDADA174-8ECA-4330-A44B-0DB60C18F25D", "refObjectType": "P", "orderValue": 53 }, { "refObjectId": "78C76768-76BB-48CA-9938-6ED5F823D153", "refObjectType": "P", "orderValue": 54 }, { "refObjectId": "0D72401C-EA42-4DE0-B0F1-D05DAFF7D265", "refObjectType": "P", "orderValue": 55 }, { "refObjectId": "38F860DC-AECC-4D1C-ADC1-EF9503EA431F", "refObjectType": "P", "orderValue": 56 }, { "refObjectId": "A3717326-9BB6-497C-B379-114B5DDB1CFF", "refObjectType": "P", "orderValue": 57 }, { "refObjectId": "7B09A315-2996-4455-8893-EE3FC4EE6957", "refObjectType": "P", "orderValue": 58 } ], "diagramRefs": [] }, "entities": [ { "id": "8783C5A5-46D1-4CDC-868F-B604C776D114", "type": "P", "schemaName": null, "defKey": "sys_user", "defName": "用户信息表", "intro": "", "fields": [ { "id": "B5950DAC-691C-4AA3-B290-2C5D49B9E70B", "defKey": "id", "defName": "Id", "intro": "", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 1, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndDictKey": "", "stndFieldId": "", "stndFieldKey": "", "dictFrom": "", "dictItems": [], "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "IMPORT" }, { "id": "6F669BBD-A0F4-46E5-9640-0D0063A037E2", "defKey": "nickname", "defName": "昵称", "intro": "", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 255, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndDictKey": "", "stndFieldId": "", "stndFieldKey": "", "dictFrom": "", "dictItems": [], "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "IMPORT" }, { "id": "2D82A6A6-697D-4952-9672-AE7B2B4840A8", "defKey": "avatar", "defName": "头像", "intro": "", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 255, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "''", "stndDictId": "", "stndDictKey": "", "stndFieldId": "", "stndFieldKey": "", "dictFrom": "", "dictItems": [], "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "IMPORT" }, { "id": "7AAAD217-C79A-4D34-BEC3-95F0562EDF7E", "defKey": "email", "defName": "邮箱", "intro": "", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 64, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "''", "stndDictId": "", "stndDictKey": "", "stndFieldId": "", "stndFieldKey": "", "dictFrom": "", "dictItems": [], "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "IMPORT" }, { "id": "E0B29717-7ECB-4A86-94D5-EDEA731D8F95", "defKey": "phone", "defName": "手机号", "intro": "", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 20, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndDictKey": "", "stndFieldId": "", "stndFieldKey": "", "dictFrom": "", "dictItems": [], "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "IMPORT" }, { "id": "81524E8A-11F7-4A22-8668-E2A8E2DFC8B9", "defKey": "creator_id", "defName": "创建人 Id", "intro": " sys_user.id", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "SCOPE", "stndDictKey": "", "stndFieldId": "", "stndFieldKey": "", "dictFrom": "", "dictItems": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "IMPORT" }, { "id": "6ECC8DE8-543F-49F2-8354-DD25828BC960", "defKey": "modifier_id", "defName": "修改人 Id", "intro": " sys_user.id", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndDictKey": "", "stndFieldId": "", "stndFieldKey": "", "dictFrom": "", "dictItems": [], "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "IMPORT" }, { "id": "B54E24E2-D8EB-447A-A93E-65DB72F31138", "defKey": "create_time", "defName": "创建时间", "intro": "", "baseDataType": "DATETIME", "bizDomainType": "", "dbDataType": "DATETIME", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndDictKey": "", "stndFieldId": "", "stndFieldKey": "", "dictFrom": "", "dictItems": [], "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "IMPORT" }, { "id": "74984F37-9AB3-4A37-A847-8A5E6E86E4AC", "defKey": "modify_time", "defName": "修改时间", "intro": "", "baseDataType": "DATETIME", "bizDomainType": "", "dbDataType": "DATETIME", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndDictKey": "", "stndFieldId": "", "stndFieldKey": "", "dictFrom": "", "dictItems": [], "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "IMPORT" }, { "id": "F5E3171C-3552-46D3-B9CF-2E8C108089CF", "defKey": "deleted", "defName": "是否删除", "intro": " 0-->未删除、1-->已删除", "baseDataType": "TINYINT", "bizDomainType": "", "dbDataType": "TINYINT", "dataLen": 1, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "0", "stndDictId": "", "stndDictKey": "", "stndFieldId": "", "stndFieldKey": "", "dictFrom": "", "dictItems": [], "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "IMPORT" } ], "indexes": [], "props": "{\"codegen\":{\"Java_MybatisPlus\":{\"root\":\"\",\"nameSpace\":\"com.zsy\",\"baseName\":\"sys\",\"path\":{},\"var\":{}},\"NodeJS_Ts\":{\"root\":\"C:\\\\Users\\\\24955\\\\Desktop\\\\code\\\\njzscloud-dispose-web\\\\src\\\\pages\",\"nameSpace\":\"sys\",\"baseName\":\"user\",\"path\":{\"page.vue\":{\"value\":\"{{=it.genCode.nameSpace}}/{{=it.genCode.baseName}}/{{=it.func.camel(it.genCode.baseName,true)}}.vue\",\"enable\":1},\"page.ts\":{\"enable\":1,\"value\":\"{{=it.genCode.nameSpace}}/{{=it.genCode.baseName}}/page.ts\"},\"form.vue\":{\"value\":\"{{=it.genCode.nameSpace}}/{{=it.genCode.baseName}}/{{=it.func.camel(it.genCode.baseName,true)}}Form.vue\",\"enable\":1},\"api.ts\":{\"value\":\"{{=it.genCode.nameSpace}}/{{=it.genCode.baseName}}/{{=it.genCode.baseName}}-api.ts\",\"enable\":1},\"d.ts\":{\"value\":\"{{=it.genCode.nameSpace}}/{{=it.genCode.baseName}}/{{=it.genCode.baseName}}.d.ts\",\"enable\":1}},\"var\":{}}}}", "refers": [] }, { "id": "298B913C-A7EC-42CF-B869-6F8F3EEA5CEB", "type": "P", "schemaName": null, "defKey": "sys_role_resource", "defName": "角色-资源关系表", "intro": "", "fields": [ { "id": "CD5CDECD-F531-4431-95C7-8CA0C50CE99D", "defKey": "id", "defName": "Id", "intro": "", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 1, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndDictKey": "", "stndFieldId": "", "stndFieldKey": "", "dictFrom": "", "dictItems": [], "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "IMPORT" }, { "id": "62994428-8B0B-447B-800D-875787E38AD8", "defKey": "role_id", "defName": "角色 Id", "intro": " sys_role.id", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndDictKey": "", "stndFieldId": "", "stndFieldKey": "", "dictFrom": "", "dictItems": [], "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "IMPORT" }, { "id": "C83AC13D-CF7F-422B-8A24-F1DF5475A15A", "defKey": "res_id", "defName": "资源 Id", "intro": " sys_resource.id", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndDictKey": "", "stndFieldId": "", "stndFieldKey": "", "dictFrom": "", "dictItems": [], "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "IMPORT" }, { "id": "7C56FB41-1C18-4DCC-B6AE-2DCE98296D5D", "defKey": "res_sn", "defName": "资源编码", "intro": " sys_resource.sn", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 255, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndDictKey": "", "stndFieldId": "", "stndFieldKey": "", "dictFrom": "", "dictItems": [], "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "IMPORT" }, { "id": "AADF21B6-99EE-45CF-8919-8AF4695BC9DB", "defKey": "table_name", "defName": "表名称", "intro": "", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 255, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "table_name", "stndDictKey": "table_name", "stndFieldId": "", "stndFieldKey": "", "dictFrom": "Manual", "dictItems": [ { "itemKey": "sys_endpoint", "itemName": "sys_endpoint", "parentKey": "", "intro": "", "id": "56B841B5-A962-439B-A976-87923267960A" }, { "itemKey": "sys_menu", "itemName": "sys_menu", "parentKey": "", "intro": "", "id": "F7A09664-A91C-42B1-8F86-BDC1AB4145A8" } ], "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "IMPORT" }, { "id": "FC858145-BFD8-48A2-B437-81277B454839", "defKey": "data_id", "defName": "数据行 Id", "intro": "", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndDictKey": "", "stndFieldId": "", "stndFieldKey": "", "dictFrom": "", "dictItems": [], "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "IMPORT" } ], "indexes": [ { "id": "2F1EBA99-DF4A-4887-98D3-176A0CC2DEB3", "type": "UNIQUE", "defKey": "uk__role_id__res_id", "defName": null, "intro": "", "fields": [ { "id": "0C5E350A-6D80-406F-B390-EF34E8CA180E", "fieldId": "62994428-8B0B-447B-800D-875787E38AD8", "fieldDefKey": "role_id", "sortType": "ASC" }, { "id": "A19250EF-10A5-423C-A0E7-2A680FABF1E6", "fieldId": "C83AC13D-CF7F-422B-8A24-F1DF5475A15A", "fieldDefKey": "res_id", "sortType": "ASC" } ] } ], "refers": [] }, { "id": "C2604D57-F42D-4588-884D-E470DF238DD3", "type": "P", "schemaName": null, "defKey": "sys_user_account", "defName": "用户账号信息表", "intro": "", "fields": [ { "id": "D4C7148C-5E5D-4B92-8E3D-051A32D0363B", "defKey": "id", "defName": "Id", "intro": "", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 1, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndDictKey": "", "stndFieldId": "", "stndFieldKey": "", "dictFrom": "", "dictItems": [], "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "IMPORT" }, { "id": "E22A0379-10F5-49B6-809F-54482C36E903", "defKey": "user_id", "defName": "用户 Id", "intro": " sys_user.id", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndDictKey": "", "stndFieldId": "", "stndFieldKey": "", "dictFrom": "", "dictItems": [], "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "IMPORT" }, { "id": "49B6D867-C9AD-4416-BFEF-EAE09143D7E5", "defKey": "username", "defName": "用户名", "intro": "", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 255, "numScale": "", "primaryKey": 0, "notNull": 0, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndDictKey": "", "stndFieldId": "", "stndFieldKey": "", "dictFrom": "", "dictItems": [], "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "IMPORT" }, { "id": "A549F85E-1299-4CFB-A579-D50957BE9484", "defKey": "phone", "defName": "手机号", "intro": "", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 20, "numScale": "", "primaryKey": 0, "notNull": 0, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndDictKey": "", "stndFieldId": "", "stndFieldKey": "", "dictFrom": "", "dictItems": [], "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "IMPORT" }, { "id": "C06D436D-29FC-4606-9347-793BE332880C", "defKey": "secret", "defName": "密码", "intro": "", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 255, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "''", "stndDictId": "", "stndDictKey": "", "stndFieldId": "", "stndFieldKey": "", "dictFrom": "", "dictItems": [], "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "IMPORT" }, { "id": "67AA7D5E-8AED-4F26-BE0C-7AC13A0161EA", "defKey": "wechat_openid", "defName": "微信 openid", "intro": "", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 255, "numScale": "", "primaryKey": 0, "notNull": 0, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndDictKey": "", "stndFieldId": "", "stndFieldKey": "", "dictFrom": "", "dictItems": [], "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "IMPORT" }, { "id": "FE622241-51D0-4179-9DF7-ABB7645C46C6", "defKey": "wechat_unionid", "defName": "微信 unionid", "intro": "", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 255, "numScale": "", "primaryKey": 0, "notNull": 0, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndDictKey": "", "stndFieldId": "", "stndFieldKey": "", "dictFrom": "", "dictItems": [], "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "IMPORT" }, { "id": "41F855D6-1A0B-4768-BEAC-EF4F6B2223D3", "defKey": "regdate", "defName": "注册时间", "intro": "", "baseDataType": "DATETIME", "bizDomainType": "", "dbDataType": "DATETIME", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndDictKey": "", "stndFieldId": "", "stndFieldKey": "", "dictFrom": "", "dictItems": [], "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "IMPORT" }, { "id": "62F30E2D-D755-4F5B-83E9-9FA3C7BA77BA", "defKey": "client_code", "defName": "允许登录的客户端", "intro": "位权码", "baseDataType": "INT", "bizDomainType": "", "dbDataType": "INT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "0", "stndDictId": "", "stndDictKey": "client_code", "stndFieldId": "", "stndFieldKey": "", "dictFrom": "Manual", "dictItems": [ { "itemKey": "0", "itemName": "WEB 后台", "intro": "第 0 位", "id": "68123977-C53D-4AAA-9B8E-44CCFFF96518" }, { "itemKey": "1", "itemName": "微信小程序", "intro": "第 1 位", "id": "0AB3C4CB-01C5-40E7-8C3C-C5EF71BC4BAC" }, { "itemKey": "2", "itemName": "手机 APP", "intro": "第 2 位", "id": "22B26C48-0C87-442F-ABDC-D9E9D2D2DB9D" } ], "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "68EE2E5E-F775-458D-8686-B8834995C062", "attr20": "", "origin": "IMPORT" }, { "id": "E895BB09-59D2-49C0-BC3F-905934482D99", "defKey": "disabled", "defName": "是否禁用", "intro": " 0-->启用、1-->禁用", "baseDataType": "TINYINT", "bizDomainType": "", "dbDataType": "TINYINT", "dataLen": 1, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "0", "stndDictId": "", "stndDictKey": "", "stndFieldId": "", "stndFieldKey": "", "dictFrom": "", "dictItems": [], "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "IMPORT" }, { "id": "160ECF62-5E00-41B6-8201-AC2F00FA5DDC", "defKey": "creator_id", "defName": "创建人 Id", "intro": " sys_user.id", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndDictKey": "", "stndFieldId": "", "stndFieldKey": "", "dictFrom": "", "dictItems": [], "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "IMPORT" }, { "id": "465A5DC8-90A0-45C6-BC50-2D15886E0098", "defKey": "modifier_id", "defName": "修改人 Id", "intro": " sys_user.id", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndDictKey": "", "stndFieldId": "", "stndFieldKey": "", "dictFrom": "", "dictItems": [], "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "IMPORT" }, { "id": "0A2CB255-ED45-46C8-9EE8-F5BEB3106F68", "defKey": "create_time", "defName": "创建时间", "intro": "", "baseDataType": "DATETIME", "bizDomainType": "", "dbDataType": "DATETIME", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndDictKey": "", "stndFieldId": "", "stndFieldKey": "", "dictFrom": "", "dictItems": [], "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "IMPORT" }, { "id": "AC8CBF6F-3DA2-449B-B652-0A16279BB24F", "defKey": "modify_time", "defName": "修改时间", "intro": "", "baseDataType": "DATETIME", "bizDomainType": "", "dbDataType": "DATETIME", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndDictKey": "", "stndFieldId": "", "stndFieldKey": "", "dictFrom": "", "dictItems": [], "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "IMPORT" }, { "id": "E6037BEF-AF5A-4134-B6DF-3CF9538A055C", "defKey": "deleted", "defName": "是否删除", "intro": " 0-->未删除、1-->已删除", "baseDataType": "TINYINT", "bizDomainType": "", "dbDataType": "TINYINT", "dataLen": 1, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "0", "stndDictId": "", "stndDictKey": "", "stndFieldId": "", "stndFieldKey": "", "dictFrom": "", "dictItems": [], "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "IMPORT" } ], "indexes": [ { "id": "8E72EA7E-E0F7-41AD-9737-834BEED084A2", "type": "UNIQUE", "defKey": "uk__user_id", "defName": null, "intro": "", "fields": [ { "id": "FE6DE934-E19B-4C18-8B1B-2061847F3E3F", "fieldId": "E22A0379-10F5-49B6-809F-54482C36E903", "fieldDefKey": "user_id", "sortType": "ASC" } ] }, { "id": "31FEAE83-01E4-4664-A51C-D86E990DEE4E", "type": "UNIQUE", "defKey": "uk__username", "defName": null, "intro": "", "fields": [ { "id": "107497C7-E327-4F15-87A7-AF0C7D1D368D", "fieldId": "49B6D867-C9AD-4416-BFEF-EAE09143D7E5", "fieldDefKey": "username", "sortType": "ASC" } ] }, { "id": "89BFA413-4BD9-4D82-AFAF-8FCE550B9B00", "type": "UNIQUE", "defKey": "uk__phone", "defName": null, "intro": "", "fields": [ { "id": "382F4191-A71B-48B1-9296-17EED007CF4A", "fieldId": "A549F85E-1299-4CFB-A579-D50957BE9484", "fieldDefKey": "phone", "sortType": "ASC" } ] }, { "id": "7240ED10-0037-48A3-A7DE-AFF3CE5B9D77", "type": "UNIQUE", "defKey": "uk__wechat_openid__wechat_unionid", "defName": null, "intro": "", "fields": [ { "id": "172BBB2E-99FB-4CC5-9A4E-DA4F62EBC410", "fieldId": "67AA7D5E-8AED-4F26-BE0C-7AC13A0161EA", "fieldDefKey": "wechat_openid", "sortType": "ASC" }, { "id": "9C8CF1AB-8CE4-4908-97EC-4D192DCB0B9C", "fieldId": "FE622241-51D0-4179-9DF7-ABB7645C46C6", "fieldDefKey": "wechat_unionid", "sortType": "ASC" } ] } ], "refers": [] }, { "id": "CA27E812-84DF-415B-A517-D8EE72A5851F", "type": "P", "schemaName": null, "defKey": "sys_user_role", "defName": "用户-角色关系表", "intro": "", "fields": [ { "id": "16C43DD8-54D6-4CFF-BA94-9CF3BE3D8FA9", "defKey": "id", "defName": "Id", "intro": "", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 1, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndDictKey": "", "stndFieldId": "", "stndFieldKey": "", "dictFrom": "", "dictItems": [], "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "IMPORT" }, { "id": "2C36197E-517F-4D85-A4CD-68ED933FA569", "defKey": "user_id", "defName": "用户 Id", "intro": " sys_user.id", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndDictKey": "", "stndFieldId": "", "stndFieldKey": "", "dictFrom": "", "dictItems": [], "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "IMPORT" }, { "id": "96090B5A-CEA8-49F2-82EF-0745B933B603", "defKey": "role_id", "defName": "角色 Id", "intro": " sys_role.id", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndDictKey": "", "stndFieldId": "", "stndFieldKey": "", "dictFrom": "", "dictItems": [], "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "IMPORT" } ], "indexes": [ { "id": "144C1E96-DE72-41E5-A1D6-BFC83E97D8C2", "type": "UNIQUE", "defKey": "uk__user_id__role_id", "defName": null, "intro": "", "fields": [ { "id": "5286A7E4-C94D-4FA8-ACF7-8D9DA15640EB", "fieldId": "2C36197E-517F-4D85-A4CD-68ED933FA569", "fieldDefKey": "user_id", "sortType": "ASC" }, { "id": "7A8B49F9-BC64-445B-A1C7-F51697B6D371", "fieldId": "96090B5A-CEA8-49F2-82EF-0745B933B603", "fieldDefKey": "role_id", "sortType": "ASC" } ] } ], "refers": [] }, { "id": "66210A03-E5D3-4AE3-9DF5-0A5FF1B55A2B", "type": "P", "schemaName": null, "defKey": "sys_role", "defName": "角色表", "intro": "", "fields": [ { "id": "743DC55A-46AB-48CA-B453-3449A61C966C", "defKey": "id", "defName": "Id", "intro": "", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 1, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndDictKey": "", "stndFieldId": "", "stndFieldKey": "", "dictFrom": "", "dictItems": [], "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "IMPORT" }, { "id": "3E243155-4226-431F-A446-A670BF40E8C5", "defKey": "role_code", "defName": "角色代码", "intro": " 以 ROLE_ 开头", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 64, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndDictKey": "", "stndFieldId": "", "stndFieldKey": "", "dictFrom": "", "dictItems": [], "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "IMPORT" }, { "id": "F65EE38B-1826-494D-A421-AA642BA9FFF0", "defKey": "role_name", "defName": "角色名称", "intro": "", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 64, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndDictKey": "", "stndFieldId": "", "stndFieldKey": "", "dictFrom": "", "dictItems": [], "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "IMPORT" }, { "id": "23EF1861-4EAE-45E6-B8A5-5664E9A8BF83", "defKey": "memo", "defName": "备注", "intro": "", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 512, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "''", "stndDictId": "", "stndDictKey": "", "stndFieldId": "", "stndFieldKey": "", "dictFrom": "", "dictItems": [], "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "IMPORT" } ], "indexes": [ { "id": "937275A2-45A3-47B4-BB64-D001A710086A", "type": "UNIQUE", "defKey": "uk__role_code", "defName": null, "intro": "", "fields": [ { "id": "FF553D81-46EB-4FF9-AF33-1DCEDB4E2D27", "fieldId": "3E243155-4226-431F-A446-A670BF40E8C5", "fieldDefKey": "role_code", "sortType": "ASC" } ] } ], "refers": [], "props": "{\"codegen\":{\"NodeJS_Ts\":{\"root\":\"D:\\\\DaiMa\\\\WebStorm\\\\njzscloud-dispose-web\\\\src\\\\pages\",\"nameSpace\":\"sys\",\"baseName\":\"role\",\"path\":{\"page.vue\":{\"value\":\"{{=it.genCode.nameSpace}}/{{=it.genCode.baseName}}/{{=it.func.camel(it.genCode.baseName,true)}}.vue\",\"enable\":1},\"page.ts\":{\"enable\":1,\"value\":\"{{=it.genCode.nameSpace}}/{{=it.genCode.baseName}}/page.ts\"},\"form.vue\":{\"value\":\"{{=it.genCode.nameSpace}}/{{=it.genCode.baseName}}/{{=it.func.camel(it.genCode.baseName,true)}}Form.vue\",\"enable\":1},\"api.ts\":{\"value\":\"{{=it.genCode.nameSpace}}/{{=it.genCode.baseName}}/{{=it.genCode.baseName}}-api.ts\",\"enable\":1},\"d.ts\":{\"value\":\"{{=it.genCode.nameSpace}}/{{=it.genCode.baseName}}/{{=it.genCode.baseName}}.d.ts\",\"enable\":1}},\"var\":{}}}}" }, { "id": "1F8CC750-13F7-406D-9667-C328491C1A6E", "type": "P", "schemaName": null, "defKey": "sys_endpoint", "defName": "端点信息表", "intro": "", "fields": [ { "id": "AF4F6A2A-7207-49AC-B55F-F90B2B1D49AB", "defKey": "id", "defName": "Id", "intro": "", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 1, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndDictKey": "", "stndFieldId": "", "stndFieldKey": "", "dictFrom": "", "dictItems": [], "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "IMPORT" }, { "id": "E6A31C7A-4E2B-4175-9BF0-C6FCC63A465F", "defKey": "request_method", "defName": "请求方式", "intro": "字典代码:request_method", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 10, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndDictKey": "", "stndFieldId": "", "stndFieldKey": "", "dictFrom": "", "dictItems": [], "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "IMPORT" }, { "id": "FAA53BDF-EE3F-4437-8323-0ACCB60F2804", "defKey": "routing_path", "defName": "路由前缀", "intro": " 以 / 开头 或 为空", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 255, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndDictKey": "", "stndFieldId": "", "stndFieldKey": "", "dictFrom": "", "dictItems": [], "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "IMPORT" }, { "id": "A1222DCF-9571-4AEC-8EA1-61E0EE9A4DEA", "defKey": "endpoint_path", "defName": "端点地址", "intro": " 以 / 开头, Ant 匹配模式", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 255, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndDictKey": "", "stndFieldId": "", "stndFieldKey": "", "dictFrom": "", "dictItems": [], "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "IMPORT" }, { "id": "E62C7F67-D35A-4EB4-BE09-8B980D1C62C1", "defKey": "access_model", "defName": "接口访问模式", "intro": "字典代码:endpoint_access_model", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 64, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "'Logined'", "stndDictId": "endpoint_access_model", "stndDictKey": "endpoint_access_model", "stndFieldId": "", "stndFieldKey": "", "dictFrom": "Manual", "dictItems": [ { "itemKey": "Anonymous", "itemName": "允许匿名访问", "parentKey": "", "intro": "", "id": "10CDFFD0-BDE2-42AB-9F0E-51B0BAA3CD51" }, { "itemKey": "Logined", "itemName": "允许已登录用户访问", "parentKey": "", "intro": "", "id": "A6776ACA-7AD1-47DB-83EB-EC5FBEAE7310" }, { "itemKey": "Authenticated", "itemName": "仅拥有权限的用户访问", "parentKey": "", "intro": "", "id": "13FDE2FA-7989-4944-90EE-AD9C9BDE6819" }, { "itemKey": "Forbidden", "itemName": "禁止访问", "parentKey": "", "intro": "", "id": "9BD8E9DE-0C3F-49ED-8D52-F12282E755EB" } ], "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "IMPORT" }, { "id": "6FB60616-FC15-4D16-AEEB-0FF87DAC6F43", "defKey": "memo", "defName": "备注", "intro": "", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 512, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndDictKey": "", "stndFieldId": "", "stndFieldKey": "", "dictFrom": "", "dictItems": [], "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "IMPORT" } ], "indexes": [ { "id": "2F3EF501-A1D2-4405-8D3E-EDF22CF33C81", "type": "UNIQUE", "defKey": "uk__method__routing__endpoint", "defName": null, "intro": "", "fields": [ { "id": "8D8098D6-AEEE-441D-9B1C-72DD44B9C3DF", "fieldId": "E6A31C7A-4E2B-4175-9BF0-C6FCC63A465F", "fieldDefKey": "request_method", "sortType": "ASC" }, { "id": "5D46AF1B-BBF9-4C52-A0C7-72A76F5854A3", "fieldId": "FAA53BDF-EE3F-4437-8323-0ACCB60F2804", "fieldDefKey": "routing_path", "sortType": "ASC" }, { "id": "EEEC1769-5587-4C44-9FF4-E0C2A2F57EE5", "fieldId": "A1222DCF-9571-4AEC-8EA1-61E0EE9A4DEA", "fieldDefKey": "endpoint_path", "sortType": "ASC" } ] } ], "refers": [] }, { "id": "778D9EC8-362D-438D-8522-7DC1A9C4D55F", "type": "P", "schemaName": null, "defKey": "sys_menu", "defName": "菜单信息表", "intro": "", "fields": [ { "id": "72D2810C-0AEA-4D83-94C6-C7F3AEB3BF4D", "defKey": "id", "defName": "Id", "intro": "", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 1, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndDictKey": "", "stndFieldId": "", "stndFieldKey": "", "dictFrom": "", "dictItems": [], "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "IMPORT" }, { "id": "7D98C996-2848-4BDB-9A41-27A1E3A209FD", "defKey": "client_code", "defName": "客户端", "intro": "位权码", "baseDataType": "INT", "bizDomainType": "", "dbDataType": "INT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "0", "stndDictId": "", "stndFieldId": "", "stndDictKey": "client_code", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "Manual", "dictItems": [ { "itemKey": "0", "itemName": "WEB 后台", "intro": "第 0 位", "id": "68123977-C53D-4AAA-9B8E-44CCFFF96518" }, { "itemKey": "1", "itemName": "微信小程序", "intro": "第 1 位", "id": "0AB3C4CB-01C5-40E7-8C3C-C5EF71BC4BAC" }, { "itemKey": "2", "itemName": "手机 APP", "intro": "第 2 位", "id": "22B26C48-0C87-442F-ABDC-D9E9D2D2DB9D" } ], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "68EE2E5E-F775-458D-8686-B8834995C062", "attr20": "", "origin": "UI" }, { "id": "887EF609-A47C-45A4-942C-8AA5DA81AD76", "defKey": "sn", "defName": "编号", "intro": "", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 255, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndDictKey": "", "stndFieldId": "", "stndFieldKey": "", "dictFrom": "", "dictItems": [], "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "2F3E9658-790E-40CA-9242-7B5F2A4AECDC", "origin": "IMPORT" }, { "id": "FE7A4AD4-333D-41D6-AE5E-CDD41AA66724", "defKey": "pid", "defName": "上级 Id", "intro": " 层级为 1 的节点值为 0", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndDictKey": "", "stndFieldId": "", "stndFieldKey": "", "dictFrom": "", "dictItems": [], "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "IMPORT" }, { "id": "FD702A5A-6424-4FF3-8575-41F1E3695B0A", "defKey": "title", "defName": "菜单名称", "intro": "", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 255, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndDictKey": "", "stndFieldId": "", "stndFieldKey": "", "dictFrom": "", "dictItems": [], "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "IMPORT" }, { "id": "97FCFEA1-7BE1-4A6D-97B1-9B8E285EFEC4", "defKey": "icon", "defName": "图标", "intro": "", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 255, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "''", "stndDictId": "", "stndDictKey": "", "stndFieldId": "", "stndFieldKey": "", "dictFrom": "", "dictItems": [], "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "IMPORT" }, { "id": "577B1180-D8D3-4862-A912-55B9D8233E50", "defKey": "tier", "defName": "层级", "intro": " >= 1", "baseDataType": "INT", "bizDomainType": "", "dbDataType": "INT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndDictKey": "", "stndFieldId": "", "stndFieldKey": "", "dictFrom": "", "dictItems": [], "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "IMPORT" }, { "id": "2560127A-4119-40ED-954A-A0FE0DFBA77E", "defKey": "breadcrumb", "defName": "面包路径", "intro": "JSON 数组", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 512, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "'[]'", "stndDictId": "", "stndDictKey": "", "stndFieldId": "", "stndFieldKey": "", "dictFrom": "", "dictItems": [], "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "IMPORT" }, { "id": "CEDC35DA-6C0F-45A7-B458-F8CD3005FDAE", "defKey": "menu_category", "defName": "类型", "intro": "字典代码:menu_category", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 32, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "menu_category", "stndDictKey": "menu_category", "stndFieldId": "", "stndFieldKey": "", "dictFrom": "Manual", "dictItems": [ { "itemKey": "Catalog", "itemName": "目录", "parentKey": "", "intro": "", "id": "2148662C-5857-4291-9962-2149D9DF7685" }, { "itemKey": "Group", "itemName": "组", "parentKey": "", "intro": "", "id": "41588751-5966-4726-B7A6-8195C667BDF2" }, { "itemKey": "Page", "itemName": "页面", "parentKey": "", "intro": "", "id": "E2012B5B-3753-4579-A76A-B10980EB1E04" }, { "itemKey": "SubPage", "itemName": "子页面", "parentKey": "", "intro": "", "id": "EE132C95-CF18-4DC7-8611-EA4D25B40350" }, { "itemKey": "Btn", "itemName": "按钮", "parentKey": "", "intro": "", "id": "99DA2011-BA59-470A-8E86-50C610E1D480" } ], "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "IMPORT" }, { "id": "A82A797C-22A5-4E10-8431-403EF26B13FB", "defKey": "freeze", "defName": "标签是否冻结", "intro": " 0-->否、1-->是", "baseDataType": "TINYINT", "bizDomainType": "", "dbDataType": "TINYINT", "dataLen": 1, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "0", "stndDictId": "", "stndDictKey": "", "stndFieldId": "", "stndFieldKey": "", "dictFrom": "", "dictItems": [], "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "IMPORT" }, { "id": "5E3F219F-6E8C-42D9-8D19-7C963A45F0DD", "defKey": "sort", "defName": "排序", "intro": "", "baseDataType": "INT", "bizDomainType": "", "dbDataType": "INT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "0", "stndDictId": "", "stndDictKey": "", "stndFieldId": "", "stndFieldKey": "", "dictFrom": "", "dictItems": [], "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "IMPORT" }, { "id": "4142DCB1-C26D-4C18-85B7-A8006C985F10", "defKey": "route_name", "defName": "路由名称", "intro": "", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 128, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "''", "stndDictId": "", "stndDictKey": "", "stndFieldId": "", "stndFieldKey": "", "dictFrom": "", "dictItems": [], "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "IMPORT" }, { "id": "1D7C01F2-9DC0-47A2-8EF1-3081F05B91ED", "defKey": "route_path", "defName": "路由地址", "intro": "", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 255, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "''", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "UI" }, { "id": "E0E3A4AB-B37C-498D-BFF4-BFFDE224BDD6", "defKey": "creator_id", "defName": "创建人 Id", "intro": " sys_user.id", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndDictKey": "", "stndFieldId": "", "stndFieldKey": "", "dictFrom": "", "dictItems": [], "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "IMPORT" }, { "id": "F21B74FB-339D-45BA-82EC-F4E6BF91B363", "defKey": "modifier_id", "defName": "修改人 Id", "intro": " sys_user.id", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndDictKey": "", "stndFieldId": "", "stndFieldKey": "", "dictFrom": "", "dictItems": [], "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "IMPORT" }, { "id": "D798F126-A1F6-4128-B414-FDB0A94E862C", "defKey": "create_time", "defName": "创建时间", "intro": "", "baseDataType": "DATETIME", "bizDomainType": "", "dbDataType": "DATETIME", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndDictKey": "", "stndFieldId": "", "stndFieldKey": "", "dictFrom": "", "dictItems": [], "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "IMPORT" }, { "id": "B6EAE759-DB92-441C-BD41-895E9EA6B459", "defKey": "modify_time", "defName": "修改时间", "intro": "", "baseDataType": "DATETIME", "bizDomainType": "", "dbDataType": "DATETIME", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndDictKey": "", "stndFieldId": "", "stndFieldKey": "", "dictFrom": "", "dictItems": [], "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "IMPORT" }, { "id": "B8B1BC9C-BB99-4394-AC7F-D2F121D8F7C5", "defKey": "deleted", "defName": "是否删除", "intro": " 0-->未删除、1-->已删除", "baseDataType": "TINYINT", "bizDomainType": "", "dbDataType": "TINYINT", "dataLen": 1, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "0", "stndDictId": "", "stndDictKey": "", "stndFieldId": "", "stndFieldKey": "", "dictFrom": "", "dictItems": [], "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "IMPORT" } ], "indexes": [ { "id": "B147D317-D2BE-4ACE-AE96-1A937D329090", "type": "UNIQUE", "defKey": "uk__sn", "defName": "", "intro": "", "fields": [ { "id": "02057D9D-DC9A-4B14-8B5B-651C0116AF5B", "fieldId": "887EF609-A47C-45A4-942C-8AA5DA81AD76", "fieldDefKey": "sn", "sortType": "ASC" } ] }, { "id": "79B540FC-ABDF-482D-998D-34557115027F", "type": "UNIQUE", "defKey": "uk__route_name", "defName": "", "intro": "", "fields": [ { "id": "67CF8098-3CA9-4B32-BC8F-A746B8BBD03D", "fieldId": "4142DCB1-C26D-4C18-85B7-A8006C985F10", "fieldDefKey": "route_name", "sortType": "ASC" } ] }, { "id": "DDF10EA4-3117-4D19-BC82-586A32E6D306", "type": "UNIQUE", "defKey": "uk__route_path", "defName": "", "intro": "", "fields": [ { "id": "78E4EC67-F5A8-4A45-82B8-DFFD420A826D", "fieldId": "1D7C01F2-9DC0-47A2-8EF1-3081F05B91ED", "fieldDefKey": "route_path", "sortType": "ASC" } ] } ], "refers": [] }, { "id": "A0E6ACDD-B2DA-478D-B98F-ECEF0B624979", "type": "P", "schemaName": null, "defKey": "sys_file", "defName": "文件记录表", "intro": "", "fields": [ { "id": "EB029413-1348-4C05-BB6E-E9E86A221280", "defKey": "id", "defName": "Id", "intro": "", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 1, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndDictKey": "", "stndFieldId": "", "stndFieldKey": "", "dictFrom": "", "dictItems": [], "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "IMPORT" }, { "id": "C5224ECC-9AE2-464C-8510-DEBC41761214", "defKey": "file_service", "defName": "存储服务", "intro": "字典代码:file_service", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 10, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "'OSS'", "stndDictId": "file_service", "stndDictKey": "file_service", "stndFieldId": "", "stndFieldKey": "", "dictFrom": "Manual", "dictItems": [ { "itemKey": "OSS", "itemName": "OSS", "parentKey": "", "intro": "", "id": "E88CA49B-90AA-4E89-AEB6-F47308A159B8" } ], "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "IMPORT" }, { "id": "C6AE2262-E56F-4E2E-BCC0-D0182171FB92", "defKey": "bucket_name", "defName": "桶名称", "intro": "", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 10, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndDictKey": "", "stndFieldId": "", "stndFieldKey": "", "dictFrom": "", "dictItems": [], "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "IMPORT" }, { "id": "D179DDEB-6A89-49A5-9FBE-7DA0CD39977D", "defKey": "object_name", "defName": "对象名称", "intro": "", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 128, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndDictKey": "", "stndFieldId": "", "stndFieldKey": "", "dictFrom": "", "dictItems": [], "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "IMPORT" }, { "id": "451007FB-213D-46C2-8807-95546B9387A7", "defKey": "original_name", "defName": "原文件名称", "intro": "", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 255, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndDictKey": "", "stndFieldId": "", "stndFieldKey": "", "dictFrom": "", "dictItems": [], "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "IMPORT" }, { "id": "929BC182-5068-4FAF-9E9D-E1DE12C5A859", "defKey": "size", "defName": "文件大小", "intro": " 单位: 字节", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndDictKey": "", "stndFieldId": "", "stndFieldKey": "", "dictFrom": "", "dictItems": [], "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "IMPORT" }, { "id": "0F5BBA4A-A733-473F-A77D-1BAC4B8BF513", "defKey": "mime", "defName": "MIME 类型", "intro": "", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 255, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndDictKey": "", "stndFieldId": "", "stndFieldKey": "", "dictFrom": "", "dictItems": [], "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "IMPORT" }, { "id": "8C2CFCE5-8B07-46A1-AC4C-F61243D088F5", "defKey": "link", "defName": "访问链接", "intro": "", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 512, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndDictKey": "", "stndFieldId": "", "stndFieldKey": "", "dictFrom": "", "dictItems": [], "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "IMPORT" }, { "id": "E000685B-9D7E-446F-B0A6-6438325DC1DF", "defKey": "creator_id", "defName": "创建人 Id", "intro": " sys_user.id", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndDictKey": "", "stndFieldId": "", "stndFieldKey": "", "dictFrom": "", "dictItems": [], "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "IMPORT" }, { "id": "6C077F13-1288-418B-8549-89A2E52D58DF", "defKey": "modifier_id", "defName": "修改人 Id", "intro": " sys_user.id", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndDictKey": "", "stndFieldId": "", "stndFieldKey": "", "dictFrom": "", "dictItems": [], "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "IMPORT" }, { "id": "1964E3BE-43BC-4270-B03D-918D25B1AF31", "defKey": "create_time", "defName": "创建时间", "intro": "", "baseDataType": "DATETIME", "bizDomainType": "", "dbDataType": "DATETIME", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndDictKey": "", "stndFieldId": "", "stndFieldKey": "", "dictFrom": "", "dictItems": [], "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "IMPORT" }, { "id": "FFEB10C3-BE8D-4F73-A98F-93B2D9D35C0D", "defKey": "modify_time", "defName": "修改时间", "intro": "", "baseDataType": "DATETIME", "bizDomainType": "", "dbDataType": "DATETIME", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndDictKey": "", "stndFieldId": "", "stndFieldKey": "", "dictFrom": "", "dictItems": [], "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "IMPORT" }, { "id": "ABA168AF-3395-47C0-9EC1-C7E1DEBFA265", "defKey": "deleted", "defName": "是否删除", "intro": " 0-->未删除、1-->已删除", "baseDataType": "TINYINT", "bizDomainType": "", "dbDataType": "TINYINT", "dataLen": 1, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "0", "stndDictId": "", "stndDictKey": "", "stndFieldId": "", "stndFieldKey": "", "dictFrom": "", "dictItems": [], "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "IMPORT" } ], "indexes": [ { "id": "14261525-812F-4CB5-86D5-08C927E6BCFE", "type": "UNIQUE", "defKey": "uk_file", "defName": "", "intro": "", "fields": [ { "id": "9819417E-89D8-4909-A2FA-3924EC56E313", "fieldId": "D179DDEB-6A89-49A5-9FBE-7DA0CD39977D", "fieldDefKey": "object_name", "sortType": "ASC" }, { "id": "152E7A40-1520-4797-ADD1-D2727555840A", "fieldId": "C6AE2262-E56F-4E2E-BCC0-D0182171FB92", "fieldDefKey": "bucket_name", "sortType": "ASC" }, { "id": "5C0CACF7-8D67-43DB-98BE-06DF5E3B4E5D", "fieldId": "C5224ECC-9AE2-464C-8510-DEBC41761214", "fieldDefKey": "file_service", "sortType": "ASC" } ] } ], "refers": [] }, { "id": "4C319989-B031-4A47-872B-632383A686EE", "type": "P", "schemaName": null, "defKey": "sys_file_ref", "defName": "文件引用表", "intro": "", "fields": [ { "id": "7E286292-A20B-4406-8A28-577D33445472", "defKey": "id", "defName": "Id", "intro": "", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 1, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndDictKey": "", "stndFieldId": "", "stndFieldKey": "", "dictFrom": "", "dictItems": [], "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "IMPORT" }, { "id": "98A15F46-04B5-4195-8024-22AAB149847A", "defKey": "coord_table", "defName": "表名称", "intro": "", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 255, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndDictKey": "", "stndFieldId": "", "stndFieldKey": "", "dictFrom": "", "dictItems": [], "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "IMPORT" }, { "id": "846E2989-0BA0-4ED3-B838-A70075B64B7C", "defKey": "coord_field", "defName": "表字段", "intro": "", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 255, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndDictKey": "", "stndFieldId": "", "stndFieldKey": "", "dictFrom": "", "dictItems": [], "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "IMPORT" }, { "id": "8D688BA4-9DC5-4942-B3BD-6B2CCC66A2F3", "defKey": "coord_id", "defName": "表记录 Id", "intro": "", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndDictKey": "", "stndFieldId": "", "stndFieldKey": "", "dictFrom": "", "dictItems": [], "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "IMPORT" }, { "id": "AEA7A84C-CE20-4913-950F-422813F76E75", "defKey": "file_id", "defName": "文件 Id", "intro": " sys_file.id", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndDictKey": "", "stndFieldId": "", "stndFieldKey": "", "dictFrom": "", "dictItems": [], "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "IMPORT" }, { "id": "D263B965-28A7-45AA-B552-F699470D1489", "defKey": "link", "defName": "访问链接", "intro": " sys_file.link", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 512, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndDictKey": "", "stndFieldId": "", "stndFieldKey": "", "dictFrom": "", "dictItems": [], "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "IMPORT" } ], "indexes": [ { "id": "77FBBC89-61B3-4036-928A-3F453C0E64D9", "type": "UNIQUE", "defKey": "uk__coord_id__coord_field__coord_table__file_id", "defName": null, "intro": "", "fields": [ { "id": "ABD1C80D-07C6-4240-92C0-8D3F0E4B90E2", "fieldId": "8D688BA4-9DC5-4942-B3BD-6B2CCC66A2F3", "fieldDefKey": "coord_id", "sortType": "ASC" }, { "id": "C4588572-D32C-46B2-8993-46B2D8A233AC", "fieldId": "846E2989-0BA0-4ED3-B838-A70075B64B7C", "fieldDefKey": "coord_field", "sortType": "ASC" }, { "id": "2F4D352C-C0F9-4690-AEDD-6B2416925BD5", "fieldId": "98A15F46-04B5-4195-8024-22AAB149847A", "fieldDefKey": "coord_table", "sortType": "ASC" }, { "id": "194EA6F4-D427-4104-98F5-B0829C523C15", "fieldId": "AEA7A84C-CE20-4913-950F-422813F76E75", "fieldDefKey": "file_id", "sortType": "ASC" } ] } ], "refers": [] }, { "id": "0CE38F31-EFD9-43A6-9BA5-3E13696C8444", "type": "P", "schemaName": null, "defKey": "sys_user_login_record", "defName": "用户登录记录表", "intro": "", "fields": [ { "id": "85DB9029-6D98-46E4-A493-C717912D1107", "defKey": "id", "defName": "Id", "intro": "", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 1, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndDictKey": "", "stndFieldId": "", "stndFieldKey": "", "dictFrom": "", "dictItems": [], "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "IMPORT" }, { "id": "76F70FC0-CD0F-4CFF-915C-6FC7B9ADEE7F", "defKey": "user_id", "defName": "用户 Id", "intro": " sys_user.id", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndDictKey": "", "stndFieldId": "", "stndFieldKey": "", "dictFrom": "", "dictItems": [], "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "IMPORT" }, { "id": "1C184F7B-8929-41FC-87F1-CACF0CD0BAA2", "defKey": "user_account_id", "defName": "用户账号 Id", "intro": " sys_user_account.id", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndDictKey": "", "stndFieldId": "", "stndFieldKey": "", "dictFrom": "", "dictItems": [], "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "IMPORT" }, { "id": "0F2EB4BC-8B26-4945-A6AD-4F2B1CED1ED0", "defKey": "login_time", "defName": "登录时间", "intro": "", "baseDataType": "DATETIME", "bizDomainType": "", "dbDataType": "DATETIME", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndDictKey": "", "stndFieldId": "", "stndFieldKey": "", "dictFrom": "", "dictItems": [], "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "IMPORT" }, { "id": "3B1BA347-986A-4EB9-8FEB-7654A74D234A", "defKey": "client_code", "defName": "本次登录使用的客户端", "intro": " 字典代码:client_code", "baseDataType": "INT", "bizDomainType": "", "dbDataType": "INT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "client_code", "stndDictKey": "client_code", "stndFieldId": "", "stndFieldKey": "", "dictFrom": "Manual", "dictItems": [ { "itemKey": "0", "itemName": "WEB 后台", "intro": "第 0 位", "id": "68123977-C53D-4AAA-9B8E-44CCFFF96518" }, { "itemKey": "1", "itemName": "微信小程序", "intro": "第 1 位", "id": "0AB3C4CB-01C5-40E7-8C3C-C5EF71BC4BAC" }, { "itemKey": "2", "itemName": "手机 APP", "intro": "第 2 位", "id": "22B26C48-0C87-442F-ABDC-D9E9D2D2DB9D" } ], "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "IMPORT" }, { "id": "6C4A899F-41C2-4B7A-9BE8-675BF970771F", "defKey": "auth_way", "defName": "登录方式", "intro": " 字典代码:auth_way", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 50, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "auth_way", "stndDictKey": "auth_way", "stndFieldId": "", "stndFieldKey": "", "dictFrom": "Manual", "dictItems": [ { "itemKey": "Anonymous", "itemName": "匿名登录", "parentKey": "", "intro": "", "id": "C9836BF6-B245-4A46-A985-2DEE983F6A47" }, { "itemKey": "Password", "itemName": "账号密码登录", "parentKey": "", "intro": "", "id": "52656A22-3810-46D3-A042-3341E2864EFF" }, { "itemKey": "Phone", "itemName": "手机验证码登录", "parentKey": "", "intro": "", "id": "860EF9F7-1FD9-4A4A-8AC3-4410BADA6438" }, { "itemKey": "Wechat", "itemName": "微信登录", "parentKey": "", "intro": "", "id": "37F234E7-715B-4E6B-BE7D-6E4C54F12241" }, { "itemKey": "WechatMini", "itemName": "微信小程序登录", "parentKey": "", "intro": "", "id": "265C5F99-E67B-4BBB-B240-41939C2C05F1" } ], "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "IMPORT" }, { "id": "63A4F667-91DF-4C5D-AEBD-2CF005004A67", "defKey": "user_agent", "defName": "用户代理", "intro": "", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 512, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndDictKey": "", "stndFieldId": "", "stndFieldKey": "", "dictFrom": "", "dictItems": [], "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "IMPORT" }, { "id": "DA763D74-5274-4F5D-BFCF-B1C9044B905F", "defKey": "ip", "defName": "IP 地址", "intro": "", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 128, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndDictKey": "", "stndFieldId": "", "stndFieldKey": "", "dictFrom": "", "dictItems": [], "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "IMPORT" }, { "id": "888843A8-DE6E-475C-9E30-F16883ED3FFD", "defKey": "province_code", "defName": "IP 归属地, 省 (编码)", "intro": " sys_district.id", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 0, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndDictKey": "", "stndFieldId": "", "stndFieldKey": "", "dictFrom": "", "dictItems": [], "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "IMPORT" }, { "id": "54129530-D607-4D00-A5E1-CD02CE1F7B24", "defKey": "province_name", "defName": "IP 归属地, 省 (名称)", "intro": " sys_district.name", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 255, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "''", "stndDictId": "", "stndDictKey": "", "stndFieldId": "", "stndFieldKey": "", "dictFrom": "", "dictItems": [], "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "IMPORT" }, { "id": "0951F0C7-5199-42A9-AC2C-5B3728192D2B", "defKey": "city_code", "defName": "IP 归属地, 市 (编码)", "intro": " sys_district.id", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 0, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndDictKey": "", "stndFieldId": "", "stndFieldKey": "", "dictFrom": "", "dictItems": [], "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "IMPORT" }, { "id": "F3C3782E-E3C0-4496-A354-55A22EA97B1E", "defKey": "city_name", "defName": "IP 归属地, 市 (名称)", "intro": " sys_district.name", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 255, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "''", "stndDictId": "", "stndDictKey": "", "stndFieldId": "", "stndFieldKey": "", "dictFrom": "", "dictItems": [], "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "IMPORT" }, { "id": "35D84AA7-AC29-44F1-BDDF-AEBF190E00FB", "defKey": "area_code", "defName": "IP 归属地, 区 (编码)", "intro": " sys_district.id", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 0, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndDictKey": "", "stndFieldId": "", "stndFieldKey": "", "dictFrom": "", "dictItems": [], "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "IMPORT" }, { "id": "12C1F926-B11B-469B-B6ED-6575F028341A", "defKey": "area_name", "defName": "IP 归属地, 区 (名称)", "intro": " sys_district.name", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 255, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "''", "stndDictId": "", "stndDictKey": "", "stndFieldId": "", "stndFieldKey": "", "dictFrom": "", "dictItems": [], "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "IMPORT" } ], "indexes": [ { "id": "24DB4170-1643-4671-9D00-1412B00A1E62", "type": "NORMAL", "defKey": "ix__user_id", "defName": null, "intro": "", "fields": [ { "id": "3855120E-64C2-4BF9-AE8D-AB5564E3D433", "fieldId": "76F70FC0-CD0F-4CFF-915C-6FC7B9ADEE7F", "fieldDefKey": "user_id", "sortType": "ASC" } ] }, { "id": "2D1591F5-D713-447B-B2AD-EBAEC0528757", "type": "NORMAL", "defKey": "ix__user_account_id", "defName": null, "intro": "", "fields": [ { "id": "6EAB00BB-40D7-45BB-A271-2F29C656E60D", "fieldId": "1C184F7B-8929-41FC-87F1-CACF0CD0BAA2", "fieldDefKey": "user_account_id", "sortType": "ASC" } ] } ], "refers": [] }, { "id": "C6C96F4E-DDF2-4F8E-ABE9-3DFA6BE487C5", "type": "P", "schemaName": null, "defKey": "sys_dict", "defName": "字典表", "intro": "", "fields": [ { "id": "7951EF6F-7F20-49DF-9724-163654B36816", "defKey": "id", "defName": "Id", "intro": "", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 1, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndDictKey": "", "stndFieldId": "", "stndFieldKey": "", "dictFrom": "", "dictItems": [], "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "IMPORT" }, { "id": "911DDD38-FDB2-419D-B348-92B1CFF24D75", "defKey": "dict_key", "defName": "字典标识", "intro": "", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 255, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndDictKey": "", "stndFieldId": "", "stndFieldKey": "", "dictFrom": "", "dictItems": [], "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "IMPORT" }, { "id": "178626EA-98BD-484A-87AF-F125A7AC86EB", "defKey": "dict_name", "defName": "字典名称", "intro": "", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 255, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndDictKey": "", "stndFieldId": "", "stndFieldKey": "", "dictFrom": "", "dictItems": [], "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "IMPORT" }, { "id": "48409F70-35FB-4976-A21C-144709C7CB87", "defKey": "memo", "defName": "备注", "intro": "", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 512, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "''", "stndDictId": "", "stndDictKey": "", "stndFieldId": "", "stndFieldKey": "", "dictFrom": "", "dictItems": [], "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "1445C463-8DF1-46FD-91E6-83FE4EE2A228", "origin": "IMPORT" }, { "id": "95B6AAA5-40B4-4FDD-828D-BDA7682E859B", "defKey": "deleted", "defName": "是否删除", "intro": " 0-->未删除、1-->已删除", "baseDataType": "TINYINT", "bizDomainType": "", "dbDataType": "TINYINT", "dataLen": 1, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "0", "stndDictId": "", "stndDictKey": "", "stndFieldId": "", "stndFieldKey": "", "dictFrom": "", "dictItems": [], "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "IMPORT" } ], "indexes": [ { "id": "86CC63D1-0412-4D70-AE54-B15803463F85", "type": "UNIQUE", "defKey": "uk__dict_key", "defName": null, "intro": "", "fields": [ { "id": "72A9A4DF-19EC-466F-8B9E-B82047DDC62E", "fieldId": "911DDD38-FDB2-419D-B348-92B1CFF24D75", "fieldDefKey": "dict_key", "sortType": "ASC" } ] } ], "refers": [], "props": "{\"codegen\":{\"NodeJS_Ts\":{\"root\":\"D:\\\\DaiMa\\\\WebStorm\\\\njzscloud-dispose-web\\\\src\\\\pages\",\"nameSpace\":\"sys\",\"baseName\":\"dict\",\"path\":{\"page.vue\":{\"value\":\"{{=it.genCode.nameSpace}}/{{=it.genCode.baseName}}/{{=it.func.camel(it.genCode.baseName,true)}}.vue\",\"enable\":1},\"page.ts\":{\"enable\":1,\"value\":\"{{=it.genCode.nameSpace}}/{{=it.genCode.baseName}}/page.ts\"},\"form.vue\":{\"value\":\"{{=it.genCode.nameSpace}}/{{=it.genCode.baseName}}/{{=it.func.camel(it.genCode.baseName,true)}}Form.vue\",\"enable\":1},\"api.ts\":{\"value\":\"{{=it.genCode.nameSpace}}/{{=it.genCode.baseName}}/{{=it.genCode.baseName}}-api.ts\",\"enable\":1},\"d.ts\":{\"value\":\"{{=it.genCode.nameSpace}}/{{=it.genCode.baseName}}/{{=it.genCode.baseName}}.d.ts\",\"enable\":1}},\"var\":{}}}}" }, { "id": "457D3BF0-A5A6-4636-A83E-3903ACD2C4A2", "type": "P", "schemaName": null, "defKey": "sys_district", "defName": "省市区表", "intro": "", "fields": [ { "id": "78EA8506-57D1-4294-8734-90EE8A2E4A2A", "defKey": "id", "defName": "Id", "intro": " 地区代码", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 16, "numScale": "", "primaryKey": 1, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndDictKey": "", "stndFieldId": "", "stndFieldKey": "", "dictFrom": "", "dictItems": [], "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "IMPORT" }, { "id": "2B403C98-B847-4747-92B1-05C362EC2842", "defKey": "pid", "defName": "上级地区代码", "intro": "", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 16, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndDictKey": "", "stndFieldId": "", "stndFieldKey": "", "dictFrom": "", "dictItems": [], "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "IMPORT" }, { "id": "8B7D662B-70EC-42FF-BAE9-3D8D0E294F78", "defKey": "province", "defName": "省", "intro": "", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 16, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "''", "stndDictId": "", "stndDictKey": "", "stndFieldId": "", "stndFieldKey": "", "dictFrom": "", "dictItems": [], "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "IMPORT" }, { "id": "DCC77779-B28F-41DE-B824-346DC5A88F94", "defKey": "city", "defName": "市", "intro": "", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 16, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "''", "stndDictId": "", "stndDictKey": "", "stndFieldId": "", "stndFieldKey": "", "dictFrom": "", "dictItems": [], "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "IMPORT" }, { "id": "89217C5F-5E51-4A19-BDD2-0697846CF4B0", "defKey": "area", "defName": "区县", "intro": "", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 16, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "''", "stndDictId": "", "stndDictKey": "", "stndFieldId": "", "stndFieldKey": "", "dictFrom": "", "dictItems": [], "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "IMPORT" }, { "id": "73D40062-F2FE-4901-87B1-F608384927E5", "defKey": "town", "defName": "乡镇街道", "intro": "", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 16, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "''", "stndDictId": "", "stndDictKey": "", "stndFieldId": "", "stndFieldKey": "", "dictFrom": "", "dictItems": [], "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "IMPORT" }, { "id": "AA850AAE-93F3-495B-832B-C8A6CAE59A42", "defKey": "district_name", "defName": "地区名称", "intro": "", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 255, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndDictKey": "", "stndFieldId": "", "stndFieldKey": "", "dictFrom": "", "dictItems": [], "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "IMPORT" }, { "id": "987E5EE9-6B6F-482E-B0FB-B215D80CD3D8", "defKey": "tier", "defName": "层级", "intro": " >= 1", "baseDataType": "INT", "bizDomainType": "", "dbDataType": "INT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndDictKey": "", "stndFieldId": "", "stndFieldKey": "", "dictFrom": "", "dictItems": [], "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "IMPORT" }, { "id": "C529C4A6-731A-4049-B757-0FBBEFEF6D5B", "defKey": "sort", "defName": "排序", "intro": "", "baseDataType": "INT", "bizDomainType": "", "dbDataType": "INT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "0", "stndDictId": "", "stndDictKey": "", "stndFieldId": "", "stndFieldKey": "", "dictFrom": "", "dictItems": [], "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "IMPORT" } ], "indexes": [], "refers": [] }, { "id": "6AE16DDA-CDCA-4E66-80B5-775ACF4B124E", "type": "P", "schemaName": null, "defKey": "sys_dict_item", "defName": "字典条目表", "intro": "", "fields": [ { "id": "6D991AE5-E540-4058-BEDA-54906993AD68", "defKey": "id", "defName": "Id", "intro": "", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 1, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndDictKey": "", "stndFieldId": "", "stndFieldKey": "", "dictFrom": "", "dictItems": [], "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "IMPORT" }, { "id": "827FF9C1-7898-4FCD-A25E-71059AFEF877", "defKey": "dict_id", "defName": "字典 Id", "intro": " sys_dict.id", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndDictKey": "", "stndFieldId": "", "stndFieldKey": "", "dictFrom": "", "dictItems": [], "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "IMPORT" }, { "id": "D12082FA-A959-4777-A7DE-0F11526BF794", "defKey": "dict_key", "defName": "字典标识", "intro": " sys_dict.dict_key", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 255, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndDictKey": "", "stndFieldId": "", "stndFieldKey": "", "dictFrom": "", "dictItems": [], "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "IMPORT" }, { "id": "66F76230-DD96-4ED6-9552-3D967C3593BE", "defKey": "val", "defName": "值", "intro": " 分类值/字典项值", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 100, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndDictKey": "", "stndFieldId": "", "stndFieldKey": "", "dictFrom": "", "dictItems": [], "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "IMPORT" }, { "id": "85D0039C-040B-4D15-8611-A12D4DEB7F48", "defKey": "txt", "defName": "显示文本", "intro": " 分类显示文本/字典项显示文本", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 100, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndDictKey": "", "stndFieldId": "", "stndFieldKey": "", "dictFrom": "", "dictItems": [], "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "IMPORT" }, { "id": "AF899BFF-37AD-427C-81B9-73F0CC656409", "defKey": "sort", "defName": "排序", "intro": "", "baseDataType": "INT", "bizDomainType": "", "dbDataType": "INT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "0", "stndDictId": "", "stndDictKey": "", "stndFieldId": "", "stndFieldKey": "", "dictFrom": "", "dictItems": [], "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "IMPORT" }, { "id": "EDB29EB5-7A44-4B5B-9649-28E4E38FEA90", "defKey": "memo", "defName": "备注", "intro": "", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 512, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "''", "stndDictId": "", "stndDictKey": "", "stndFieldId": "", "stndFieldKey": "", "dictFrom": "", "dictItems": [], "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "1445C463-8DF1-46FD-91E6-83FE4EE2A228", "origin": "IMPORT" }, { "id": "FD577885-590A-4751-8DA1-ED1B5FFFACD2", "defKey": "deleted", "defName": "是否删除", "intro": " 0-->未删除、1-->已删除", "baseDataType": "TINYINT", "bizDomainType": "", "dbDataType": "TINYINT", "dataLen": 1, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "0", "stndDictId": "", "stndDictKey": "", "stndFieldId": "", "stndFieldKey": "", "dictFrom": "", "dictItems": [], "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "IMPORT" } ], "indexes": [ { "id": "410C8754-40E8-40C6-9032-F518398EAE03", "type": "UNIQUE", "defKey": "ix__k__v", "defName": null, "intro": "", "fields": [ { "id": "2EAECBEF-4430-4EC1-999F-6741A8FA5E05", "fieldId": "D12082FA-A959-4777-A7DE-0F11526BF794", "fieldDefKey": "dict_key", "sortType": "ASC" }, { "id": "414EF957-898C-4CFE-9708-BC107E7D5103", "fieldId": "66F76230-DD96-4ED6-9552-3D967C3593BE", "fieldDefKey": "val", "sortType": "ASC" } ] } ], "refers": [], "props": "{\"codegen\":{\"NodeJS_Ts\":{\"root\":\"D:\\\\DaiMa\\\\WebStorm\\\\njzscloud-dispose-web\\\\src\\\\pages\",\"nameSpace\":\"sys\",\"baseName\":\"dict-item\",\"path\":{\"page.vue\":{\"value\":\"{{=it.genCode.nameSpace}}/{{=it.genCode.baseName}}/{{=it.func.camel(it.genCode.baseName,true)}}.vue\",\"enable\":1},\"page.ts\":{\"enable\":1,\"value\":\"{{=it.genCode.nameSpace}}/{{=it.genCode.baseName}}/page.ts\"},\"form.vue\":{\"value\":\"{{=it.genCode.nameSpace}}/{{=it.genCode.baseName}}/{{=it.func.camel(it.genCode.baseName,true)}}Form.vue\",\"enable\":1},\"api.ts\":{\"value\":\"{{=it.genCode.nameSpace}}/{{=it.genCode.baseName}}/{{=it.genCode.baseName}}-api.ts\",\"enable\":1},\"d.ts\":{\"value\":\"{{=it.genCode.nameSpace}}/{{=it.genCode.baseName}}/{{=it.genCode.baseName}}.d.ts\",\"enable\":1}},\"var\":{}}}}" }, { "id": "9B28F97D-A220-48BA-B256-99952BD84550", "type": "P", "schemaName": null, "defKey": "sys_resource", "defName": "系统资源表", "intro": "", "fields": [ { "id": "AC57CE2C-620D-4E43-A298-D561226E588D", "defKey": "id", "defName": "Id", "intro": "", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 1, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndDictKey": "", "stndFieldId": "", "stndFieldKey": "", "dictFrom": "", "dictItems": [], "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "IMPORT" }, { "id": "A203D48B-BBFF-4DF4-BA9D-3F33A6ED4667", "defKey": "sn", "defName": "编号", "intro": "", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 255, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndDictKey": "", "stndFieldId": "", "stndFieldKey": "", "dictFrom": "", "dictItems": [], "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "2F3E9658-790E-40CA-9242-7B5F2A4AECDC", "origin": "IMPORT" }, { "id": "88AC1A46-1331-4BD6-90EF-D7AE6D790ECC", "defKey": "table_name", "defName": "表名称", "intro": "", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 255, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "table_name", "stndDictKey": "table_name", "stndFieldId": "", "stndFieldKey": "", "dictFrom": "Manual", "dictItems": [ { "itemKey": "sys_menu", "itemName": "sys_menu", "parentKey": "", "intro": "", "id": "E034F5BF-B90A-48BE-8559-6997C32A86ED" }, { "itemKey": "sys_endpoint", "itemName": "sys_endpoint", "parentKey": "", "intro": "", "id": "B82A6EEC-E524-4D53-A673-B64CEC2667EA" } ], "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "DDACD242-588D-4683-9A9B-206A34665ED2", "origin": "IMPORT" }, { "id": "1CB48909-11F7-4B45-9B47-DC48B1152D8F", "defKey": "data_id", "defName": "数据行 Id", "intro": "", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndDictKey": "", "stndFieldId": "", "stndFieldKey": "", "dictFrom": "", "dictItems": [], "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "IMPORT" }, { "id": "226B6D26-24EF-4438-A07C-461EF8953E76", "defKey": "memo", "defName": "备注", "intro": "", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 512, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndDictKey": "", "stndFieldId": "", "stndFieldKey": "", "dictFrom": "", "dictItems": [], "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "1445C463-8DF1-46FD-91E6-83FE4EE2A228", "origin": "IMPORT" } ], "indexes": [ { "id": "88C775B3-6F86-4B41-A083-A846C873D9E6", "type": "UNIQUE", "defKey": "uk__sn", "defName": "", "intro": "", "fields": [ { "id": "75D154D2-D9CE-437F-BF08-2B11D3899011", "fieldId": "A203D48B-BBFF-4DF4-BA9D-3F33A6ED4667", "fieldDefKey": "sn", "sortType": "ASC" } ] }, { "id": "3D5D62FB-C418-47B3-A255-5D38A841493B", "type": "UNIQUE", "defKey": "uk__table_name__data_id", "defName": "", "intro": "", "fields": [ { "id": "95B6639D-C9B5-47CF-894B-673B9B224CB5", "fieldId": "88AC1A46-1331-4BD6-90EF-D7AE6D790ECC", "fieldDefKey": "table_name", "sortType": "ASC" }, { "id": "F8606F62-F704-4D88-B77B-53E70F06AE98", "fieldId": "1CB48909-11F7-4B45-9B47-DC48B1152D8F", "fieldDefKey": "data_id", "sortType": "ASC" } ] } ], "refers": [] }, { "id": "18C34285-97B3-48BD-BF1C-80FFD204878F", "type": "P", "schemaName": null, "defKey": "sys_user_token", "defName": "登录令牌表", "intro": "", "fields": [ { "id": "FD42A5D2-2454-4D66-AD76-2F3080AB30AD", "defKey": "id", "defName": "Id", "intro": "", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 1, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndDictKey": "", "stndFieldId": "", "stndFieldKey": "", "dictFrom": "", "dictItems": [], "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "IMPORT" }, { "id": "4E4B45A6-6F9E-4C51-8DBB-EB6C8F680B92", "defKey": "user_id", "defName": "用户 Id", "intro": "", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndDictKey": "", "stndFieldId": "", "stndFieldKey": "", "dictFrom": "", "dictItems": [], "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "IMPORT" }, { "id": "A4DD7383-0EBB-4848-A8DF-CD2E0604829A", "defKey": "tid", "defName": "Token Id", "intro": "", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 128, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndDictKey": "", "stndFieldId": "", "stndFieldKey": "", "dictFrom": "", "dictItems": [], "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "IMPORT" }, { "id": "06DC0E08-1C6B-4C52-B74C-3AF24B191DF4", "defKey": "tkey", "defName": "Token 键", "intro": "", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 512, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndDictKey": "", "stndFieldId": "", "stndFieldKey": "", "dictFrom": "", "dictItems": [], "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "IMPORT" }, { "id": "C47238C5-38BF-461D-9638-8A05A2B4D483", "defKey": "tval", "defName": "Token 值", "intro": "", "baseDataType": "TEXT", "bizDomainType": "", "dbDataType": "TEXT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndDictKey": "", "stndFieldId": "", "stndFieldKey": "", "dictFrom": "", "dictItems": [], "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "IMPORT" }, { "id": "76079C04-EAA5-4759-9EAC-9553DADAFB44", "defKey": "user_detail", "defName": "用户信息", "intro": "", "baseDataType": "TEXT", "bizDomainType": "", "dbDataType": "TEXT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndDictKey": "", "stndFieldId": "", "stndFieldKey": "", "dictFrom": "", "dictItems": [], "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "IMPORT" } ], "indexes": [], "refers": [] }, { "id": "4DB0E9C1-05E9-47ED-A7AA-6BC7E87856D7", "type": "P", "schemaName": null, "defKey": "sys_tpl", "defName": "代码模板", "intro": "", "fields": [ { "id": "907BD07E-BE66-4CDC-A3D9-DFF1BE66B696", "defKey": "id", "defName": "Id", "intro": "", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 1, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndDictKey": "", "stndFieldId": "", "stndFieldKey": "", "dictFrom": "", "dictItems": [], "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "IMPORT" }, { "id": "4E8AD734-8083-4012-BA38-80AA011CB965", "defKey": "tpl_name", "defName": "模板名称", "intro": "", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 255, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndDictKey": "", "stndFieldId": "", "stndFieldKey": "", "dictFrom": "", "dictItems": [], "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "IMPORT" }, { "id": "1752A8C7-C185-4925-91DB-2997B7D162D5", "defKey": "lang", "defName": "语言", "intro": "", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 64, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "lang", "stndDictKey": "lang", "stndFieldId": "", "stndFieldKey": "", "dictFrom": "Manual", "dictItems": [ { "itemKey": "java", "itemName": "java", "parentKey": "", "intro": "", "id": "0EE38793-3351-41C8-8734-5BC07836F213" }, { "itemKey": "ts", "itemName": "ts", "parentKey": "", "intro": "", "id": "BF795CCF-2921-48B2-9226-0D4F9A25CDB4" } ], "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "IMPORT" }, { "id": "C95E4A89-BD9F-4CD5-9785-F05A26E5E5BD", "defKey": "tpl", "defName": "模板内容", "intro": "", "baseDataType": "LONGTEXT", "bizDomainType": "", "dbDataType": "LONGTEXT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndDictKey": "", "stndFieldId": "", "stndFieldKey": "", "dictFrom": "", "dictItems": [], "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "IMPORT" } ], "indexes": [], "refers": [], "props": "{\"codegen\":{\"NodeJS_Ts\":{\"root\":\"C:\\\\Users\\\\24955\\\\Desktop\\\\code\\\\njzscloud-dispose-web\\\\src\\\\pages\\\\sys\\\\gen\",\"nameSpace\":\"sys\",\"baseName\":\"tpl\",\"path\":{\"page.vue\":{\"value\":\"{{=it.genCode.nameSpace}}/{{=it.genCode.baseName}}/{{=it.func.camel(it.genCode.baseName,true)}}.vue\",\"enable\":1},\"page.ts\":{\"enable\":1,\"value\":\"{{=it.genCode.nameSpace}}/{{=it.genCode.baseName}}/page.ts\"},\"form.vue\":{\"value\":\"{{=it.genCode.nameSpace}}/{{=it.genCode.baseName}}/{{=it.func.camel(it.genCode.baseName,true)}}Form.vue\",\"enable\":1},\"api.ts\":{\"value\":\"{{=it.genCode.nameSpace}}/{{=it.genCode.baseName}}/{{=it.genCode.baseName}}-api.ts\",\"enable\":1},\"d.ts\":{\"value\":\"{{=it.genCode.nameSpace}}/{{=it.genCode.baseName}}/{{=it.genCode.baseName}}.d.ts\",\"enable\":1}},\"var\":{}}}}" }, { "id": "BEC9C790-0D4F-477F-9F31-8A9F41A4977D", "type": "P", "defKey": "sys_task_execute_log", "defName": "任务执行日志表", "intro": null, "schemaName": null, "props": "{\"codegen\":{\"NodeJS_Ts\":{\"root\":\"D:\\\\DaiMa\\\\WebStorm\\\\njzscloud-dispose-web\\\\src\\\\pages\",\"nameSpace\":\"sys\",\"baseName\":\"executeLog\",\"path\":{\"page.vue\":{\"value\":\"{{=it.genCode.nameSpace}}/{{=it.genCode.baseName}}/{{=it.func.camel(it.genCode.baseName,true)}}.vue\",\"enable\":1},\"page.ts\":{\"enable\":1,\"value\":\"{{=it.genCode.nameSpace}}/{{=it.genCode.baseName}}/page.ts\"},\"form.vue\":{\"value\":\"{{=it.genCode.nameSpace}}/{{=it.genCode.baseName}}/{{=it.func.camel(it.genCode.baseName,true)}}Form.vue\",\"enable\":1},\"api.ts\":{\"value\":\"{{=it.genCode.nameSpace}}/{{=it.genCode.baseName}}/{{=it.genCode.baseName}}-api.ts\",\"enable\":1},\"d.ts\":{\"value\":\"{{=it.genCode.nameSpace}}/{{=it.genCode.baseName}}/{{=it.genCode.baseName}}.d.ts\",\"enable\":1}},\"var\":{}}}}", "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "fields": [ { "id": "EE5F52D0-D6DC-4376-B40A-AC9E4D8EE5AF", "defKey": "id", "defName": "Id", "intro": null, "orderValue": null, "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": null, "numScale": null, "primaryKey": 1, "notNull": 1, "autoIncrement": null, "defaultValue": null, "stndDictId": null, "stndDictKey": null, "stndFieldId": null, "stndFieldKey": null, "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": null, "stndComplianceType": null, "stndComplianceLevel": null, "updatedUserId": null, "createdUserId": null }, { "id": "170AD29D-B588-40FE-8650-7D1CA885D4C2", "defKey": "schedule_id", "defName": "调度 Id", "intro": "sys_task_schedule_recode.id", "orderValue": null, "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": null, "numScale": null, "primaryKey": null, "notNull": 1, "autoIncrement": null, "defaultValue": null, "stndDictId": null, "stndDictKey": null, "stndFieldId": null, "stndFieldKey": null, "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": null, "stndComplianceType": null, "stndComplianceLevel": null, "updatedUserId": null, "createdUserId": null }, { "id": "00B3A9E6-773A-4390-8233-1FCD1AA05DDD", "defKey": "log_level", "defName": "日志等级", "intro": null, "orderValue": null, "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 32, "numScale": null, "primaryKey": null, "notNull": 1, "autoIncrement": null, "defaultValue": null, "stndDictId": null, "stndDictKey": null, "stndFieldId": null, "stndFieldKey": null, "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": null, "stndComplianceType": null, "stndComplianceLevel": null, "updatedUserId": null, "createdUserId": null }, { "id": "F15E16CD-D780-4DA2-BBCB-48A9E1C3267C", "defKey": "log_time", "defName": "日志时间", "intro": null, "orderValue": null, "baseDataType": "DATETIME", "bizDomainType": "", "dbDataType": "DATETIME", "dataLen": null, "numScale": null, "primaryKey": null, "notNull": 1, "autoIncrement": null, "defaultValue": null, "stndDictId": null, "stndDictKey": null, "stndFieldId": null, "stndFieldKey": null, "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": null, "stndComplianceType": null, "stndComplianceLevel": null, "updatedUserId": null, "createdUserId": null }, { "id": "F4ACE66E-2F98-43E7-A3F9-7B94AA253DE7", "defKey": "place", "defName": "位置", "intro": null, "orderValue": null, "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 512, "numScale": null, "primaryKey": null, "notNull": 1, "autoIncrement": null, "defaultValue": "''", "stndDictId": null, "stndDictKey": null, "stndFieldId": null, "stndFieldKey": null, "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": null, "stndComplianceType": null, "stndComplianceLevel": null, "updatedUserId": null, "createdUserId": null }, { "id": "3B742E11-8E70-4DBB-99F7-9D4B28BEC625", "defKey": "line", "defName": "行号", "intro": null, "orderValue": null, "baseDataType": "MEDIUMINT", "bizDomainType": "", "dbDataType": "MEDIUMINT", "dataLen": null, "numScale": null, "primaryKey": null, "notNull": null, "autoIncrement": null, "defaultValue": null, "stndDictId": null, "stndDictKey": null, "stndFieldId": null, "stndFieldKey": null, "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": null, "stndComplianceType": null, "stndComplianceLevel": null, "updatedUserId": null, "createdUserId": null }, { "id": "9F8A5798-2F6C-4E92-AC98-2CC48D3EF575", "defKey": "msg", "defName": "日志信息", "intro": null, "orderValue": null, "baseDataType": "TEXT", "bizDomainType": "", "dbDataType": "TEXT", "dataLen": "", "numScale": null, "primaryKey": null, "notNull": 1, "autoIncrement": null, "defaultValue": null, "stndDictId": null, "stndDictKey": null, "stndFieldId": null, "stndFieldKey": null, "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": null, "stndComplianceType": null, "stndComplianceLevel": null, "updatedUserId": null, "createdUserId": null }, { "id": "B6F7D474-103C-4769-99FE-0B303A85F52A", "defKey": "err", "defName": "错误信息", "intro": null, "orderValue": null, "baseDataType": "TEXT", "bizDomainType": "", "dbDataType": "TEXT", "dataLen": null, "numScale": null, "primaryKey": null, "notNull": 1, "autoIncrement": null, "defaultValue": null, "stndDictId": null, "stndDictKey": null, "stndFieldId": null, "stndFieldKey": null, "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": null, "stndComplianceType": null, "stndComplianceLevel": null, "updatedUserId": null, "createdUserId": null }, { "id": "B038DBF8-2FB7-4A95-88EF-24B1572E90F8", "defKey": "create_time", "defName": "创建时间", "intro": null, "orderValue": null, "baseDataType": "DATETIME", "bizDomainType": "", "dbDataType": "DATETIME", "dataLen": null, "numScale": null, "primaryKey": null, "notNull": 1, "autoIncrement": null, "defaultValue": null, "stndDictId": null, "stndDictKey": null, "stndFieldId": null, "stndFieldKey": null, "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": null, "stndComplianceType": null, "stndComplianceLevel": null, "updatedUserId": null, "createdUserId": null } ], "correlations": null, "indexes": [ { "id": "546303A9-893B-474C-B731-18D1EE0105B4", "type": "NORMAL", "defKey": "ix__schedule_id", "defName": "", "intro": "", "fields": [ { "id": "A6E0C346-5454-4F51-95EA-167C94BB9D74", "fieldId": "170AD29D-B588-40FE-8650-7D1CA885D4C2", "fieldDefKey": "schedule_id", "sortType": "ASC" } ] } ], "refers": [] }, { "id": "B724EF27-B827-4067-8F8F-43FD73F9DE24", "type": "P", "defKey": "sys_task_schedule_recode", "defName": "任务调度记录表", "intro": null, "schemaName": null, "props": "{\"codegen\":{\"NodeJS_Ts\":{\"root\":\"D:\\\\DaiMa\\\\WebStorm\\\\njzscloud-dispose-web\\\\src\\\\pages\",\"nameSpace\":\"sys\",\"baseName\":\"scheduleRecode\",\"path\":{\"page.vue\":{\"value\":\"{{=it.genCode.nameSpace}}/{{=it.genCode.baseName}}/{{=it.func.camel(it.genCode.baseName,true)}}.vue\",\"enable\":1},\"page.ts\":{\"enable\":1,\"value\":\"{{=it.genCode.nameSpace}}/{{=it.genCode.baseName}}/page.ts\"},\"form.vue\":{\"value\":\"{{=it.genCode.nameSpace}}/{{=it.genCode.baseName}}/{{=it.func.camel(it.genCode.baseName,true)}}Form.vue\",\"enable\":1},\"api.ts\":{\"value\":\"{{=it.genCode.nameSpace}}/{{=it.genCode.baseName}}/{{=it.genCode.baseName}}-api.ts\",\"enable\":1},\"d.ts\":{\"value\":\"{{=it.genCode.nameSpace}}/{{=it.genCode.baseName}}/{{=it.genCode.baseName}}.d.ts\",\"enable\":1}},\"var\":{}}}}", "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "fields": [ { "id": "84FD3DCD-1A56-4D22-8150-FEB06F33F38F", "defKey": "id", "defName": "Id", "intro": null, "orderValue": null, "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": null, "numScale": null, "primaryKey": 1, "notNull": 1, "autoIncrement": null, "defaultValue": null, "stndDictId": null, "stndDictKey": null, "stndFieldId": null, "stndFieldKey": null, "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": null, "stndComplianceType": null, "stndComplianceLevel": null, "updatedUserId": null, "createdUserId": null }, { "id": "A4D2BD9D-6C11-40D5-948C-7AEB3DC2831B", "defKey": "task_id", "defName": "任务 Id", "intro": null, "orderValue": null, "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": null, "numScale": null, "primaryKey": null, "notNull": 1, "autoIncrement": null, "defaultValue": null, "stndDictId": null, "stndDictKey": null, "stndFieldId": null, "stndFieldKey": null, "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": null, "stndComplianceType": null, "stndComplianceLevel": null, "updatedUserId": null, "createdUserId": null }, { "id": "DD8E2295-0ECC-4BE6-9DC5-4662062C6549", "defKey": "task_name", "defName": "任务名称", "intro": null, "orderValue": null, "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 128, "numScale": null, "primaryKey": null, "notNull": 1, "autoIncrement": null, "defaultValue": null, "stndDictId": null, "stndDictKey": null, "stndFieldId": null, "stndFieldKey": null, "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": null, "stndComplianceType": null, "stndComplianceLevel": null, "updatedUserId": null, "createdUserId": null }, { "id": "DC731405-B925-425F-B44F-767E905DABCB", "defKey": "fn", "defName": "任务执行函数", "intro": null, "orderValue": null, "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 128, "numScale": null, "primaryKey": null, "notNull": 1, "autoIncrement": null, "defaultValue": null, "stndDictId": null, "stndDictKey": null, "stndFieldId": null, "stndFieldKey": null, "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": null, "stndComplianceType": null, "stndComplianceLevel": null, "updatedUserId": null, "createdUserId": null }, { "id": "1050C775-2266-4B81-BF76-586054C4ACF6", "defKey": "schedule_type", "defName": "调度方式", "intro": "字典代码:schedule_type", "orderValue": null, "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 32, "numScale": null, "primaryKey": null, "notNull": 1, "autoIncrement": null, "defaultValue": null, "stndDictId": "schedule_type", "stndDictKey": "schedule_type", "stndFieldId": null, "stndFieldKey": null, "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": null, "stndComplianceType": null, "stndComplianceLevel": null, "updatedUserId": null, "createdUserId": null, "dictFrom": "Manual", "dictItems": [ { "itemKey": "Manually", "itemName": "手动", "parentKey": "", "intro": "", "id": "D0E4EA6B-3B64-4FFA-8363-57937816FCC3" }, { "itemKey": "Fixed", "itemName": "固定周期", "parentKey": "", "intro": "", "id": "1A90351E-E8C8-44FA-B1FD-BDAF0AF6A71A" }, { "itemKey": "Cron", "itemName": "表达式", "parentKey": "", "intro": "", "id": "CC9F5892-3EF1-4EC8-897C-B551E39A7CD7" } ] }, { "id": "E2CF396D-E929-4DB5-94B1-6A5DED42CF9A", "defKey": "schedule_conf", "defName": "调度配置", "intro": "手动时为空,固定周期时单位为秒", "orderValue": null, "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 24, "numScale": null, "primaryKey": null, "notNull": 1, "autoIncrement": null, "defaultValue": null, "stndDictId": null, "stndDictKey": null, "stndFieldId": null, "stndFieldKey": null, "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": null, "stndComplianceType": null, "stndComplianceLevel": null, "updatedUserId": null, "createdUserId": null }, { "id": "66921721-42D3-477F-A3B4-497F5820CF77", "defKey": "schedule_time", "defName": "调度时间", "intro": null, "orderValue": null, "baseDataType": "DATETIME", "bizDomainType": "", "dbDataType": "DATETIME", "dataLen": null, "numScale": null, "primaryKey": null, "notNull": 1, "autoIncrement": null, "defaultValue": null, "stndDictId": null, "stndDictKey": null, "stndFieldId": null, "stndFieldKey": null, "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": null, "stndComplianceType": null, "stndComplianceLevel": null, "updatedUserId": null, "createdUserId": null }, { "id": "2528EDDF-5535-435F-A84C-F8275DD0F64C", "defKey": "start_time", "defName": "任务开始时间", "intro": null, "orderValue": null, "baseDataType": "DATETIME", "bizDomainType": "", "dbDataType": "DATETIME", "dataLen": null, "numScale": null, "primaryKey": null, "notNull": null, "autoIncrement": null, "defaultValue": null, "stndDictId": null, "stndDictKey": null, "stndFieldId": null, "stndFieldKey": null, "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": null, "stndComplianceType": null, "stndComplianceLevel": null, "updatedUserId": null, "createdUserId": null }, { "id": "543D729D-A2F6-4261-80B0-7E9E0FA99523", "defKey": "end_time", "defName": "任务结束时间", "intro": null, "orderValue": null, "baseDataType": "DATETIME", "bizDomainType": "", "dbDataType": "DATETIME", "dataLen": null, "numScale": null, "primaryKey": null, "notNull": null, "autoIncrement": null, "defaultValue": null, "stndDictId": null, "stndDictKey": null, "stndFieldId": null, "stndFieldKey": null, "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": null, "stndComplianceType": null, "stndComplianceLevel": null, "updatedUserId": null, "createdUserId": null }, { "id": "C1D000B8-A155-4F0D-8DA4-AFBE3CCDA7D1", "defKey": "task_status", "defName": "任务状态", "intro": "字典代码:task_status", "orderValue": null, "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 32, "numScale": null, "primaryKey": null, "notNull": 1, "autoIncrement": null, "defaultValue": null, "stndDictId": "task_status", "stndDictKey": "task_status", "stndFieldId": null, "stndFieldKey": null, "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": null, "stndComplianceType": null, "stndComplianceLevel": null, "updatedUserId": null, "createdUserId": null, "dictFrom": "Manual", "dictItems": [ { "itemKey": "Waiting", "itemName": "等待调度", "parentKey": "", "intro": "", "id": "58B5D29A-2BB7-4AAC-9A24-C1A5DB5F81A6" }, { "itemKey": "Pending", "itemName": "排队中", "parentKey": "", "intro": "", "id": "0F78CF98-2B73-4043-B294-476A38A946E1" }, { "itemKey": "Running", "itemName": "运行中", "parentKey": "", "intro": "", "id": "29761C8F-0F87-43E8-9411-3A31B5B1A186" }, { "itemKey": "Completed", "itemName": "已完成", "parentKey": "", "intro": "", "id": "C103CCBA-1CFE-4477-911A-41B07A81C9C2" }, { "itemKey": "Error", "itemName": "错误", "parentKey": "", "intro": "", "id": "D9E6684E-F9E2-4531-83DF-5998F6B6B76F" } ] }, { "id": "91CBDB39-4CA0-4B04-9918-2A6130F3154F", "defKey": "builtin", "defName": "是否为内内置任务", "intro": "0-->否、1-->是", "orderValue": null, "baseDataType": "TINYINT", "bizDomainType": "", "dbDataType": "TINYINT", "dataLen": 1, "numScale": null, "primaryKey": null, "notNull": 1, "autoIncrement": null, "defaultValue": null, "stndDictId": null, "stndDictKey": null, "stndFieldId": null, "stndFieldKey": null, "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": null, "stndComplianceType": null, "stndComplianceLevel": null, "updatedUserId": null, "createdUserId": null }, { "id": "E7D429F7-4C45-410C-AA38-1E0752A46A2C", "defKey": "manually", "defName": "本次调度是否为手动触发", "intro": "0-->否、1-->是", "orderValue": null, "baseDataType": "TINYINT", "bizDomainType": "", "dbDataType": "TINYINT", "dataLen": 1, "numScale": null, "primaryKey": null, "notNull": 1, "autoIncrement": null, "defaultValue": null, "stndDictId": null, "stndDictKey": null, "stndFieldId": null, "stndFieldKey": null, "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": null, "stndComplianceType": null, "stndComplianceLevel": null, "updatedUserId": null, "createdUserId": null }, { "id": "BB0F6ED0-1AFF-4DD0-8BD7-79C11361C406", "defKey": "memo", "defName": "备注", "intro": null, "orderValue": null, "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 255, "numScale": null, "primaryKey": null, "notNull": 1, "autoIncrement": null, "defaultValue": "", "stndDictId": null, "stndDictKey": null, "stndFieldId": null, "stndFieldKey": null, "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": null, "stndComplianceType": null, "stndComplianceLevel": null, "updatedUserId": null, "createdUserId": null }, { "id": "6F7CC7C6-DAAC-41C8-B021-DC1146A28842", "defKey": "create_time", "defName": "创建时间", "intro": null, "orderValue": null, "baseDataType": "DATETIME", "bizDomainType": "", "dbDataType": "DATETIME", "dataLen": null, "numScale": null, "primaryKey": null, "notNull": 1, "autoIncrement": null, "defaultValue": null, "stndDictId": null, "stndDictKey": null, "stndFieldId": null, "stndFieldKey": null, "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": null, "stndComplianceType": null, "stndComplianceLevel": null, "updatedUserId": null, "createdUserId": null } ], "correlations": null, "indexes": [ { "id": "824EB397-7D7A-4250-BAAC-2B2497D77C8D", "type": "NORMAL", "defKey": "ix__task_id", "defName": "", "intro": "", "fields": [ { "id": "E88CCABC-9C7B-44DA-BFE8-F5DB632E19F8", "fieldId": "A4D2BD9D-6C11-40D5-948C-7AEB3DC2831B", "fieldDefKey": "task_id", "sortType": "ASC" } ] } ], "refers": [] }, { "id": "96FF7EC9-5753-46BC-AE85-E2BDFEE6E043", "type": "P", "defKey": "sys_task", "defName": "定时任务表", "intro": null, "schemaName": null, "props": "{\"codegen\":{\"NodeJS_Ts\":{\"root\":\"D:\\\\DaiMa\\\\WebStorm\\\\njzscloud-dispose-web\\\\src\\\\pages\",\"nameSpace\":\"sys\",\"baseName\":\"task\",\"path\":{\"page.vue\":{\"value\":\"{{=it.genCode.nameSpace}}/{{=it.genCode.baseName}}/{{=it.func.camel(it.genCode.baseName,true)}}.vue\",\"enable\":1},\"page.ts\":{\"enable\":1,\"value\":\"{{=it.genCode.nameSpace}}/{{=it.genCode.baseName}}/page.ts\"},\"form.vue\":{\"value\":\"{{=it.genCode.nameSpace}}/{{=it.genCode.baseName}}/{{=it.func.camel(it.genCode.baseName,true)}}Form.vue\",\"enable\":1},\"api.ts\":{\"value\":\"{{=it.genCode.nameSpace}}/{{=it.genCode.baseName}}/{{=it.genCode.baseName}}-api.ts\",\"enable\":1},\"d.ts\":{\"value\":\"{{=it.genCode.nameSpace}}/{{=it.genCode.baseName}}/{{=it.genCode.baseName}}.d.ts\",\"enable\":1}},\"var\":{}},\"Java_MybatisPlus\":{\"root\":\"D:\\\\DaiMa\\\\Idea\\\\njzscloud-dispose\\\\njzscloud-svr\\\\src\\\\main\\\\java\",\"nameSpace\":\"com.njzscloud.supervisory.sys\",\"baseName\":\"task\",\"path\":{\"Entity\":{\"enable\":1},\"Mapper\":{\"enable\":1},\"Mapper.xml\":{\"enable\":1},\"Service\":{\"enable\":1},\"Controller\":{\"enable\":1}},\"var\":{}}}}", "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "fields": [ { "id": "15D08AEA-D5E6-49BC-B5EF-CC9D56C7F742", "defKey": "id", "defName": "Id", "intro": null, "orderValue": null, "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": null, "numScale": null, "primaryKey": 1, "notNull": 1, "autoIncrement": null, "defaultValue": null, "stndDictId": null, "stndDictKey": null, "stndFieldId": null, "stndFieldKey": null, "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": null, "stndComplianceType": null, "stndComplianceLevel": null, "updatedUserId": null, "createdUserId": null }, { "id": "5FA761F0-91D9-4266-ACAE-A1753B64FDF7", "defKey": "task_name", "defName": "任务名称", "intro": null, "orderValue": null, "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 128, "numScale": null, "primaryKey": null, "notNull": 1, "autoIncrement": null, "defaultValue": null, "stndDictId": null, "stndDictKey": null, "stndFieldId": null, "stndFieldKey": null, "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": null, "stndComplianceType": null, "stndComplianceLevel": null, "updatedUserId": null, "createdUserId": null }, { "id": "BF5B25D5-4AAD-4ECD-A65D-0D6397E7DC2A", "defKey": "fn", "defName": "任务执行函数", "intro": null, "orderValue": null, "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 128, "numScale": null, "primaryKey": null, "notNull": 1, "autoIncrement": null, "defaultValue": null, "stndDictId": null, "stndDictKey": null, "stndFieldId": null, "stndFieldKey": null, "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": null, "stndComplianceType": null, "stndComplianceLevel": null, "updatedUserId": null, "createdUserId": null }, { "id": "5BF762A9-4851-4622-8C25-5172FCE9DF5B", "defKey": "log_level", "defName": "日志等级", "intro": null, "orderValue": null, "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 32, "numScale": null, "primaryKey": null, "notNull": 1, "autoIncrement": null, "defaultValue": "'INFO'", "stndDictId": null, "stndDictKey": null, "stndFieldId": null, "stndFieldKey": null, "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": null, "stndComplianceType": null, "stndComplianceLevel": null, "updatedUserId": null, "createdUserId": null }, { "id": "583F0CF9-5981-45EB-9BD5-E124EA2C5091", "defKey": "schedule_type", "defName": "调度方式", "intro": "字典代码:schedule_type", "orderValue": null, "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 32, "numScale": null, "primaryKey": null, "notNull": 1, "autoIncrement": null, "defaultValue": null, "stndDictId": "schedule_type", "stndDictKey": "schedule_type", "stndFieldId": null, "stndFieldKey": null, "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": null, "stndComplianceType": null, "stndComplianceLevel": null, "updatedUserId": null, "createdUserId": null, "dictFrom": "Manual", "dictItems": [ { "itemKey": "Manually", "itemName": "手动", "parentKey": "", "intro": "", "id": "D0E4EA6B-3B64-4FFA-8363-57937816FCC3" }, { "itemKey": "Fixed", "itemName": "固定周期", "parentKey": "", "intro": "", "id": "1A90351E-E8C8-44FA-B1FD-BDAF0AF6A71A" }, { "itemKey": "Cron", "itemName": "表达式", "parentKey": "", "intro": "", "id": "CC9F5892-3EF1-4EC8-897C-B551E39A7CD7" } ] }, { "id": "A369B9F7-13AE-438C-9373-B2385CC176CD", "defKey": "schedule_conf", "defName": "调度配置", "intro": "手动时为空,固定周期时单位为秒", "orderValue": null, "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 24, "numScale": null, "primaryKey": null, "notNull": 1, "autoIncrement": null, "defaultValue": null, "stndDictId": null, "stndDictKey": null, "stndFieldId": null, "stndFieldKey": null, "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": null, "stndComplianceType": null, "stndComplianceLevel": null, "updatedUserId": null, "createdUserId": null }, { "id": "371B9790-CDC6-480E-AA0C-4314409ADDBB", "defKey": "critical_timing", "defName": "临界时间", "intro": "时间戳,单位:秒", "orderValue": null, "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": null, "numScale": null, "primaryKey": null, "notNull": 1, "autoIncrement": null, "defaultValue": null, "stndDictId": null, "stndDictKey": null, "stndFieldId": null, "stndFieldKey": null, "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": null, "stndComplianceType": null, "stndComplianceLevel": null, "updatedUserId": null, "createdUserId": null }, { "id": "0A563160-8BF8-4AED-9B5B-A03A2F02ADFE", "defKey": "disabled", "defName": "是否禁用", "intro": "0-->否、1-->是", "orderValue": null, "baseDataType": "TINYINT", "bizDomainType": "", "dbDataType": "TINYINT", "dataLen": 1, "numScale": null, "primaryKey": null, "notNull": 1, "autoIncrement": null, "defaultValue": "0", "stndDictId": null, "stndDictKey": null, "stndFieldId": null, "stndFieldKey": null, "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": null, "stndComplianceType": null, "stndComplianceLevel": null, "updatedUserId": null, "createdUserId": null }, { "id": "9CB2EDFC-3582-494F-81F2-A90C175327A3", "defKey": "memo", "defName": "备注", "intro": null, "orderValue": null, "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 255, "numScale": null, "primaryKey": null, "notNull": 1, "autoIncrement": null, "defaultValue": "''", "stndDictId": null, "stndDictKey": null, "stndFieldId": null, "stndFieldKey": null, "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": null, "stndComplianceType": null, "stndComplianceLevel": null, "updatedUserId": null, "createdUserId": null }, { "id": "CF21B015-4E58-403E-9E88-5CFC1B6E2940", "defKey": "create_time", "defName": "创建时间", "intro": null, "orderValue": null, "baseDataType": "DATETIME", "bizDomainType": "", "dbDataType": "DATETIME", "dataLen": null, "numScale": null, "primaryKey": null, "notNull": 1, "autoIncrement": null, "defaultValue": null, "stndDictId": null, "stndDictKey": null, "stndFieldId": null, "stndFieldKey": null, "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": null, "stndComplianceType": null, "stndComplianceLevel": null, "updatedUserId": null, "createdUserId": null } ], "correlations": null, "indexes": [], "refers": [] }, { "id": "9433E723-2A22-4004-8EEC-EA148772C5D4", "type": "P", "defKey": "sys_sn_inc", "defName": "递增编码表", "intro": null, "schemaName": null, "props": null, "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "fields": [ { "id": "315725B4-8275-4243-AD40-02AA62EB9473", "defKey": "id", "defName": "Id", "intro": null, "orderValue": null, "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": null, "numScale": null, "primaryKey": 1, "notNull": 1, "autoIncrement": null, "defaultValue": null, "stndDictId": null, "stndDictKey": null, "stndFieldId": null, "stndFieldKey": null, "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": null, "stndComplianceType": null, "stndComplianceLevel": null, "updatedUserId": null, "createdUserId": null }, { "id": "244E6EEA-BB19-4BC5-8329-EEF9C4DBBF52", "defKey": "code", "defName": "标识", "intro": null, "orderValue": null, "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 128, "numScale": null, "primaryKey": null, "notNull": 1, "autoIncrement": null, "defaultValue": null, "stndDictId": null, "stndDictKey": null, "stndFieldId": null, "stndFieldKey": null, "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": null, "stndComplianceType": null, "stndComplianceLevel": null, "updatedUserId": null, "createdUserId": null }, { "id": "30DA604B-1DBA-4AB9-93C8-387E56E8010F", "defKey": "val", "defName": "当前值", "intro": null, "orderValue": null, "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": null, "numScale": null, "primaryKey": null, "notNull": 1, "autoIncrement": null, "defaultValue": null, "stndDictId": null, "stndDictKey": null, "stndFieldId": null, "stndFieldKey": null, "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": null, "stndComplianceType": null, "stndComplianceLevel": null, "updatedUserId": null, "createdUserId": null }, { "id": "6307DA42-F36B-4004-81AF-3CDD5C640FB0", "defKey": "step", "defName": "步长", "intro": null, "orderValue": null, "baseDataType": "MEDIUMINT", "bizDomainType": "", "dbDataType": "MEDIUMINT", "dataLen": null, "numScale": null, "primaryKey": null, "notNull": 1, "autoIncrement": null, "defaultValue": null, "stndDictId": null, "stndDictKey": null, "stndFieldId": null, "stndFieldKey": null, "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": null, "stndComplianceType": null, "stndComplianceLevel": null, "updatedUserId": null, "createdUserId": null }, { "id": "9A1B868A-AE52-4BF1-B02C-561FC638D251", "defKey": "initial_val", "defName": "初始值", "intro": null, "orderValue": null, "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": null, "numScale": null, "primaryKey": null, "notNull": 1, "autoIncrement": null, "defaultValue": null, "stndDictId": null, "stndDictKey": null, "stndFieldId": null, "stndFieldKey": null, "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": null, "stndComplianceType": null, "stndComplianceLevel": null, "updatedUserId": null, "createdUserId": null }, { "id": "35A78735-6FB1-41B0-937F-139B458A0662", "defKey": "pad_mode", "defName": "填充模式", "intro": "字典编码:pad_mode", "orderValue": null, "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 32, "numScale": null, "primaryKey": null, "notNull": 1, "autoIncrement": null, "defaultValue": null, "stndDictId": "pad_mode", "stndDictKey": "pad_mode", "stndFieldId": null, "stndFieldKey": null, "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": null, "stndComplianceType": null, "stndComplianceLevel": null, "updatedUserId": null, "createdUserId": null, "dictFrom": "Manual", "dictItems": [ { "itemKey": "Wu", "itemName": "无", "parentKey": "", "intro": "", "id": "F7EAC716-2993-4579-9ED4-6F9BCBF1390B" }, { "itemKey": "Zuo", "itemName": "左", "parentKey": "", "intro": "", "id": "0EC109C4-07F5-43C2-B8C6-7D78056F6ADD" }, { "itemKey": "You", "itemName": "右", "parentKey": "", "intro": "", "id": "B5F82E07-00F3-4BDA-948C-3CF1E0A40823" } ] }, { "id": "5B32D69C-4DEF-4F6F-8CA0-DE0FD4967141", "defKey": "pad_val", "defName": "填充值", "intro": null, "orderValue": null, "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 64, "numScale": null, "primaryKey": null, "notNull": 1, "autoIncrement": null, "defaultValue": null, "stndDictId": null, "stndDictKey": null, "stndFieldId": null, "stndFieldKey": null, "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": null, "stndComplianceType": null, "stndComplianceLevel": null, "updatedUserId": null, "createdUserId": null }, { "id": "63B66A4F-B6B5-4C14-8302-EFE50694C92C", "defKey": "pad_len", "defName": "填充长度", "intro": null, "orderValue": null, "baseDataType": "MEDIUMINT", "bizDomainType": "", "dbDataType": "MEDIUMINT", "dataLen": null, "numScale": null, "primaryKey": null, "notNull": 1, "autoIncrement": null, "defaultValue": null, "stndDictId": null, "stndDictKey": null, "stndFieldId": null, "stndFieldKey": null, "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": null, "stndComplianceType": null, "stndComplianceLevel": null, "updatedUserId": null, "createdUserId": null }, { "id": "3B3C97EC-74B5-4A98-B3E7-A1D1D95D1AB7", "defKey": "rollback_mode", "defName": "回卷策略", "intro": "字典编码:rollback_mode", "orderValue": null, "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 32, "numScale": null, "primaryKey": null, "notNull": 1, "autoIncrement": null, "defaultValue": "'Wu'", "stndDictId": "rollback_mode", "stndDictKey": "rollback_mode", "stndFieldId": null, "stndFieldKey": null, "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": null, "stndComplianceType": null, "stndComplianceLevel": null, "updatedUserId": null, "createdUserId": null, "dictFrom": "Manual", "dictItems": [ { "itemKey": "Wu", "itemName": "不回卷", "parentKey": "", "intro": "", "id": "D1C2C49A-8161-4F9E-B7AB-8AAF9B6B6988" }, { "itemKey": "Ri", "itemName": "每日", "parentKey": "", "intro": "", "id": "723D741A-E2F9-4AAD-9448-D3288019C2CA" }, { "itemKey": "Zhou", "itemName": "每周", "parentKey": "", "intro": "", "id": "118349A4-B992-4EA8-9889-E17FBABE1D0C" }, { "itemKey": "Yue", "itemName": "每月", "parentKey": "", "intro": "", "id": "D9E15A2A-FB45-4A30-A321-2C7DA0AC224C" }, { "itemKey": "Nian", "itemName": "每年", "parentKey": "", "intro": "", "id": "C1F4918D-23C9-4DE0-BD2E-51195DDACB58" }, { "itemKey": "Pi", "itemName": "每批", "parentKey": "", "intro": "", "id": "F62A63B3-1C17-4C47-B63A-8E59CD78FF60" } ] }, { "id": "956003EE-0A72-44F4-BD02-F2419E103D84", "defKey": "allow_overflow", "defName": "是否允许溢出(溢出时回卷)", "intro": "0-->否、1-->是", "orderValue": null, "baseDataType": "TINYINT", "bizDomainType": "", "dbDataType": "TINYINT", "dataLen": 1, "numScale": null, "primaryKey": null, "notNull": 1, "autoIncrement": null, "defaultValue": "1", "stndDictId": null, "stndDictKey": null, "stndFieldId": null, "stndFieldKey": null, "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": null, "stndComplianceType": null, "stndComplianceLevel": null, "updatedUserId": null, "createdUserId": null }, { "id": "0F3A15A5-AEEC-4CAB-B226-F34A745D758F", "defKey": "last_time", "defName": "上次生成时间", "intro": null, "orderValue": null, "baseDataType": "DATETIME", "bizDomainType": "", "dbDataType": "DATETIME", "dataLen": null, "numScale": null, "primaryKey": null, "notNull": 0, "autoIncrement": null, "defaultValue": "", "stndDictId": null, "stndDictKey": null, "stndFieldId": null, "stndFieldKey": null, "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": null, "stndComplianceType": null, "stndComplianceLevel": null, "updatedUserId": null, "createdUserId": null }, { "id": "8764C444-F9A5-4BFB-8ED9-7FB9BFC61D29", "defKey": "last_pici", "defName": "上一批编号", "intro": null, "orderValue": null, "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 255, "numScale": null, "primaryKey": null, "notNull": 1, "autoIncrement": null, "defaultValue": "''", "stndDictId": null, "stndDictKey": null, "stndFieldId": null, "stndFieldKey": null, "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": null, "stndComplianceType": null, "stndComplianceLevel": null, "updatedUserId": null, "createdUserId": null }, { "id": "141C5515-00C4-4963-80A3-3A727E17FBB0", "defKey": "max_val", "defName": "最大值", "intro": null, "orderValue": null, "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": null, "numScale": null, "primaryKey": null, "notNull": 1, "autoIncrement": null, "defaultValue": "9223372036854775807", "stndDictId": null, "stndDictKey": null, "stndFieldId": null, "stndFieldKey": null, "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": null, "stndComplianceType": null, "stndComplianceLevel": null, "updatedUserId": null, "createdUserId": null } ], "correlations": null, "indexes": [ { "id": "0EAD53BA-6E44-4EFA-BA4E-0A4C9F5CC8C6", "type": "UNIQUE", "defKey": "uk__code", "defName": "", "intro": "", "fields": [ { "id": "E8B90AB3-89EE-47DA-BE83-C345F2F06387", "fieldId": "244E6EEA-BB19-4BC5-8329-EEF9C4DBBF52", "fieldDefKey": "code", "sortType": "ASC" } ] } ] }, { "id": "7F405312-ACDB-41FB-A8E0-6BD9CECA52D3", "type": "P", "defKey": "sys_sn_config", "defName": "编码配置表", "intro": null, "schemaName": null, "props": null, "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "fields": [ { "id": "D3E11252-2864-4E18-A198-306936B8D73D", "defKey": "id", "defName": "Id", "intro": null, "orderValue": null, "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": null, "numScale": null, "primaryKey": 1, "notNull": 1, "autoIncrement": null, "defaultValue": null, "stndDictId": null, "stndDictKey": null, "stndFieldId": null, "stndFieldKey": null, "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": null, "stndComplianceType": null, "stndComplianceLevel": null, "updatedUserId": null, "createdUserId": null }, { "id": "9EE8A2F3-73E0-49CA-8598-02EB7794F6E4", "defKey": "sncode", "defName": "配置编码", "intro": "", "orderValue": null, "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 128, "numScale": null, "primaryKey": null, "notNull": 1, "autoIncrement": null, "defaultValue": null, "stndDictId": null, "stndDictKey": null, "stndFieldId": null, "stndFieldKey": null, "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": null, "stndComplianceType": null, "stndComplianceLevel": null, "updatedUserId": null, "createdUserId": null }, { "id": "4F728095-D14B-477F-B52A-BBF48AD7095A", "defKey": "snname", "defName": "配置名称", "intro": null, "orderValue": null, "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 255, "numScale": null, "primaryKey": null, "notNull": 1, "autoIncrement": null, "defaultValue": "", "stndDictId": null, "stndDictKey": null, "stndFieldId": null, "stndFieldKey": null, "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": null, "stndComplianceType": null, "stndComplianceLevel": null, "updatedUserId": null, "createdUserId": null }, { "id": "89344BDF-5C27-4743-AE76-C3E2CDFE0A45", "defKey": "example", "defName": "示例", "intro": null, "orderValue": null, "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 128, "numScale": null, "primaryKey": null, "notNull": 1, "autoIncrement": null, "defaultValue": "", "stndDictId": null, "stndDictKey": null, "stndFieldId": null, "stndFieldKey": null, "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": null, "stndComplianceType": null, "stndComplianceLevel": null, "updatedUserId": null, "createdUserId": null }, { "id": "9733586F-58CD-4E07-AEE2-ABE3245EDB4A", "defKey": "config", "defName": "配置", "intro": null, "orderValue": null, "baseDataType": "TEXT", "bizDomainType": "", "dbDataType": "TEXT", "dataLen": "", "numScale": null, "primaryKey": null, "notNull": 1, "autoIncrement": null, "defaultValue": null, "stndDictId": null, "stndDictKey": null, "stndFieldId": null, "stndFieldKey": null, "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": null, "stndComplianceType": null, "stndComplianceLevel": null, "updatedUserId": null, "createdUserId": null }, { "id": "2F0E9DEB-DEDC-4E79-86F2-6A900DE7CC60", "defKey": "memo", "defName": "备注", "intro": null, "orderValue": null, "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 128, "numScale": null, "primaryKey": null, "notNull": 1, "autoIncrement": null, "defaultValue": null, "stndDictId": null, "stndDictKey": null, "stndFieldId": null, "stndFieldKey": null, "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": null, "stndComplianceType": null, "stndComplianceLevel": null, "updatedUserId": null, "createdUserId": null } ], "correlations": null, "indexes": [ { "id": "2C9B658C-5B48-4874-9A75-9EF50CF72E92", "type": "UNIQUE", "defKey": "uk__sncode", "defName": "", "intro": "", "fields": [ { "id": "C46A2261-C149-402C-8854-43A948061510", "fieldId": "9EE8A2F3-73E0-49CA-8598-02EB7794F6E4", "fieldDefKey": "sncode", "sortType": "ASC" } ] } ] }, { "id": "133C0B4F-2437-4D95-A692-C34553963E28", "schemaName": null, "defKey": "gds_goods_category", "defName": "产品分类", "intro": "", "type": "P", "fields": [ { "id": "53E8A8F8-30E7-4C5A-82AF-18DB3B79512E", "defKey": "id", "defName": "Id", "intro": "", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 1, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": [], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "93A9F5CA-10CB-4E9C-A011-DFF5FF5BBB4B", "defKey": "sn", "defName": "分类码", "intro": "回收品:国标统一码,再生品:自动生成", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 32, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "UI" }, { "id": "EBF87EB9-8CD7-454E-8524-8AD01F924E4C", "defKey": "biz_type", "defName": "业务类型", "intro": "字典代码:biz_type", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 16, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "biz_type", "stndFieldId": "", "stndDictKey": "biz_type", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "Manual", "dictItems": [ { "itemKey": "ZaiShengPin", "itemName": "再生品", "parentKey": "", "intro": "", "id": "69377C1B-B55E-464E-AD4B-16C5A920931C" }, { "itemKey": "HuiShouPin", "itemName": "回收品", "parentKey": "", "intro": "", "id": "00CE1E03-41C5-473C-AF3A-F0F06F4311A0" }, { "itemKey": "QiTa", "itemName": "其他", "parentKey": "", "intro": "", "id": "0CE8D097-614F-487C-A556-075A5B16AE38" } ], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "UI" }, { "id": "1546E246-FD53-435C-8956-4F453BA9C096", "defKey": "category_name", "defName": "分类名称", "intro": "", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 128, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "UI" }, { "id": "5DE64791-E980-48D8-AD7C-BF509B3638FD", "defKey": "picture", "defName": "图片", "intro": "", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 255, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "''", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "UI" }, { "id": "0EF2D2B7-8458-450D-8515-DFFAE8AAF42F", "defKey": "sort", "defName": "排序", "intro": "", "baseDataType": "INT", "bizDomainType": "", "dbDataType": "INT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "0", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "UI" }, { "id": "E5F0E798-F048-4A55-AAC8-630249E1F758", "defKey": "memo", "defName": "备注", "intro": "", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 512, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "''", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": [], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "33025475-7640-46C6-93AE-79AEAFD628FF", "defKey": "creator_id", "defName": "创建人 Id", "intro": "sys_user.id", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "FB6B8625-AE7B-4463-BB71-40F80F97E934", "defKey": "modifier_id", "defName": "修改人 Id", "intro": "sys_user.id", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": [], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "D3F94CC9-010D-4E75-8DE5-77308B195C1C", "defKey": "create_time", "defName": "创建时间", "intro": "", "baseDataType": "DATETIME", "bizDomainType": "", "dbDataType": "DATETIME", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": [], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "A77B395B-C290-4930-9D5A-A9B8F7DF90C6", "defKey": "modify_time", "defName": "修改时间", "intro": "", "baseDataType": "DATETIME", "bizDomainType": "", "dbDataType": "DATETIME", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": [], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "839B1ECA-A18B-45DE-9F63-FECC409A2E44", "defKey": "deleted", "defName": "是否删除", "intro": " 0-->未删除、1-->已删除", "baseDataType": "TINYINT", "bizDomainType": "", "dbDataType": "TINYINT", "dataLen": 1, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "0", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": [], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" } ], "indexes": [], "props": "{\"codegen\":{\"Java_MybatisPlus\":{\"root\":\"\",\"nameSpace\":\"\",\"baseName\":\"\",\"path\":{},\"var\":{}}}}" }, { "id": "286B768E-73F1-4390-9905-23684B92761F", "schemaName": null, "defKey": "gds_goods", "defName": "产品", "intro": "", "type": "P", "fields": [ { "id": "E2205762-9784-41D0-8F6A-CE1FAD0117AD", "defKey": "id", "defName": "Id", "intro": "", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 1, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": [], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "20E8584E-F1DE-4620-8B6F-DE6EA3DB4AF0", "defKey": "goods_category_id", "defName": "产品类型 Id", "intro": "", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": "{}", "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "UI" }, { "id": "98E972DB-70DD-4096-A1ED-E71A906F991B", "defKey": "sn", "defName": "商品编码", "intro": "", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 128, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "UI" }, { "id": "DB75E8FF-191C-4B6E-A8DA-124AEC238F12", "defKey": "goods_name", "defName": "产品名称", "intro": "", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 128, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "UI" }, { "id": "67A16293-6A68-407C-A045-CB085BD0A181", "defKey": "spec_params", "defName": "规格", "intro": "", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 128, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "''", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "UI" }, { "id": "DC0A7BFF-DBC9-4AA4-8202-00F1C31947AD", "defKey": "picture", "defName": "图片", "intro": "", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 255, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "''", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "F9C217EB-CE55-419A-BAAA-A96AB03DBA5C", "defKey": "unit", "defName": "计量单位", "intro": "字典代码:unit", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 16, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "unit", "stndFieldId": "", "stndDictKey": "unit", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "Manual", "dictItems": [ { "itemKey": "Che", "itemName": "车", "parentKey": "", "intro": "", "id": "024EEBD1-5C0E-4AA4-A5EA-3E2BAA80628A" }, { "itemKey": "Fang", "itemName": "方", "parentKey": "", "intro": "", "id": "10F8E718-DADC-4ACA-A522-6EDF8B50A4EB" }, { "itemKey": "GongLi", "itemName": "公里", "parentKey": "", "intro": "", "id": "9CE6E51D-6066-451B-81C3-197B3B8D2D06" }, { "itemKey": "Dun", "itemName": "吨", "parentKey": "", "intro": "", "id": "9936866A-FAFA-4CE5-8577-2663B11F662F" } ], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "69C36FA2-0F56-421C-9FF0-051FC563FE64", "defName": "排序", "intro": "", "baseDataType": "INT", "bizDomainType": "", "dbDataType": "INT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "0", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": [], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "UI", "defKey": "sort" }, { "id": "88E165E5-FC8F-4E07-87FD-A0E68628DFC4", "defKey": "canuse", "defName": "是否可用", "intro": "0-->否、1-->是", "baseDataType": "TINYINT", "bizDomainType": "", "dbDataType": "TINYINT", "dataLen": 1, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "1", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "UI" }, { "id": "2FCC61E1-1433-4491-AC59-E09D63B762B3", "defKey": "memo", "defName": "备注", "intro": "", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 512, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "''", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": [], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "UI" }, { "id": "8AF726FB-0918-4FED-A0D0-604C48B01ADD", "defKey": "creator_id", "defName": "创建人 Id", "intro": "sys_user.id", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "645CB92C-145B-4560-A43D-4C8AAE35CF32", "defKey": "modifier_id", "defName": "修改人 Id", "intro": "sys_user.id", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": [], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "8F95481B-367D-49E7-9961-9A281119D2D1", "defKey": "create_time", "defName": "创建时间", "intro": "", "baseDataType": "DATETIME", "bizDomainType": "", "dbDataType": "DATETIME", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": [], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "B5425FB8-A01B-4148-8BF3-91A57F8B30C9", "defKey": "modify_time", "defName": "修改时间", "intro": "", "baseDataType": "DATETIME", "bizDomainType": "", "dbDataType": "DATETIME", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": [], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "8D44484E-F903-4914-9507-BC8A45400FAD", "defKey": "deleted", "defName": "是否删除", "intro": " 0-->未删除、1-->已删除", "baseDataType": "TINYINT", "bizDomainType": "", "dbDataType": "TINYINT", "dataLen": 1, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "0", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": [], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" } ], "indexes": [] }, { "id": "FEF038F4-4AEE-4930-9C4B-E08E7F4F3A23", "type": "P", "defKey": "sys_token", "defName": "登录令牌表", "intro": null, "schemaName": null, "props": null, "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "fields": [ { "id": "C19174D2-7943-4BDF-8316-432C36B91DDF", "defKey": "id", "defName": "Id", "intro": null, "orderValue": null, "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": null, "numScale": null, "primaryKey": 1, "notNull": 1, "autoIncrement": null, "defaultValue": null, "stndDictId": null, "stndDictKey": null, "stndFieldId": null, "stndFieldKey": null, "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": null, "stndComplianceType": null, "stndComplianceLevel": null, "updatedUserId": null, "createdUserId": null }, { "id": "3618FFCA-CE3D-4A17-85F1-2CC0EA27D21C", "defKey": "user_id", "defName": "用户 Id", "intro": null, "orderValue": null, "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": null, "numScale": null, "primaryKey": null, "notNull": 1, "autoIncrement": null, "defaultValue": null, "stndDictId": null, "stndDictKey": null, "stndFieldId": null, "stndFieldKey": null, "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": null, "stndComplianceType": null, "stndComplianceLevel": null, "updatedUserId": null, "createdUserId": null }, { "id": "0C71BB99-2CE3-49BE-9AAA-12237E6432BE", "defKey": "tid", "defName": "Token Id", "intro": null, "orderValue": null, "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 128, "numScale": null, "primaryKey": null, "notNull": 1, "autoIncrement": null, "defaultValue": null, "stndDictId": null, "stndDictKey": null, "stndFieldId": null, "stndFieldKey": null, "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": null, "stndComplianceType": null, "stndComplianceLevel": null, "updatedUserId": null, "createdUserId": null }, { "id": "F6C2D625-5FC5-41DC-AFAD-5BE4E5BEA5DA", "defKey": "tkey", "defName": "Token 键", "intro": null, "orderValue": null, "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 512, "numScale": null, "primaryKey": null, "notNull": 1, "autoIncrement": null, "defaultValue": null, "stndDictId": null, "stndDictKey": null, "stndFieldId": null, "stndFieldKey": null, "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": null, "stndComplianceType": null, "stndComplianceLevel": null, "updatedUserId": null, "createdUserId": null }, { "id": "C86DD7B3-38C5-4D83-B186-72384925B943", "defKey": "tval", "defName": "Token 值", "intro": null, "orderValue": null, "baseDataType": "TEXT", "bizDomainType": "", "dbDataType": "TEXT", "dataLen": "", "numScale": null, "primaryKey": null, "notNull": 1, "autoIncrement": null, "defaultValue": null, "stndDictId": null, "stndDictKey": null, "stndFieldId": null, "stndFieldKey": null, "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": null, "stndComplianceType": null, "stndComplianceLevel": null, "updatedUserId": null, "createdUserId": null }, { "id": "3DD1ECA7-0611-40F6-84AE-27A79450D5AA", "defKey": "user_detail", "defName": "用户信息", "intro": null, "orderValue": null, "baseDataType": "TEXT", "bizDomainType": "", "dbDataType": "TEXT", "dataLen": null, "numScale": null, "primaryKey": null, "notNull": 1, "autoIncrement": null, "defaultValue": null, "stndDictId": null, "stndDictKey": null, "stndFieldId": null, "stndFieldKey": null, "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": null, "stndComplianceType": null, "stndComplianceLevel": null, "updatedUserId": null, "createdUserId": null } ], "correlations": null, "indexes": [] }, { "id": "9645DE46-7F49-4C24-99F2-9C8D88C5B328", "type": "P", "defKey": "wh_warehouse", "defName": "仓库信息", "intro": null, "schemaName": null, "props": null, "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "fields": [ { "id": "E3CCB761-CD13-4844-9312-A73789EF5723", "defKey": "id", "defName": "Id", "intro": null, "orderValue": null, "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": null, "numScale": null, "primaryKey": 1, "notNull": 1, "autoIncrement": null, "defaultValue": null, "stndDictId": null, "stndDictKey": null, "stndFieldId": null, "stndFieldKey": null, "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": null, "stndComplianceType": null, "stndComplianceLevel": null, "updatedUserId": null, "createdUserId": null }, { "id": "E7104059-7973-4FB3-AA0C-25D03F55EAA2", "defKey": "warehouse_name", "defName": "仓库名称", "intro": null, "orderValue": null, "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 128, "numScale": null, "primaryKey": null, "notNull": 1, "autoIncrement": null, "defaultValue": null, "stndDictId": null, "stndDictKey": null, "stndFieldId": null, "stndFieldKey": null, "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": null, "stndComplianceType": null, "stndComplianceLevel": null, "updatedUserId": null, "createdUserId": null }, { "id": "94991B9E-1303-406C-BD42-EDBDBE2454C9", "defKey": "location", "defName": "位置", "intro": null, "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 128, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": null, "stndFieldId": null, "stndDictKey": null, "stndFieldKey": null, "stndComplianceLevel": null, "stndComplianceType": null, "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": "PASTE" }, { "id": "A1989973-59EA-4336-B75D-4A09B84600A5", "defKey": "creator_id", "defName": "创建人 Id", "intro": " sys_user.id", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "F260333D-1C1F-4FB5-A6A8-6A724FE3CAB3", "defKey": "modifier_id", "defName": "修改人 Id", "intro": "sys_user.id", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": [], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "458B9A92-69D1-4CDB-81B4-6739C8D53C33", "defKey": "create_time", "defName": "创建时间", "intro": "", "baseDataType": "DATETIME", "bizDomainType": "", "dbDataType": "DATETIME", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": [], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "B1D24785-0CC4-4A13-A33A-9F2C5FFA3F13", "defKey": "modify_time", "defName": "修改时间", "intro": "", "baseDataType": "DATETIME", "bizDomainType": "", "dbDataType": "DATETIME", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": [], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "575DB731-B801-424D-AD9D-FFAB93F11AC3", "defKey": "deleted", "defName": "是否删除", "intro": " 0-->未删除、1-->已删除", "baseDataType": "TINYINT", "bizDomainType": "", "dbDataType": "TINYINT", "dataLen": 1, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "0", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": [], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" } ], "correlations": null, "indexes": [] }, { "id": "153541F6-C971-4324-B97C-BEF689627B24", "type": "P", "defKey": "wh_warehouse_check_plan", "defName": "库存盘点计划", "intro": null, "schemaName": null, "props": null, "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "fields": [ { "id": "77F8F702-A08D-4C91-8859-2EA8A16FABAF", "defKey": "id", "defName": "Id", "intro": null, "orderValue": null, "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": null, "numScale": null, "primaryKey": 1, "notNull": 1, "autoIncrement": null, "defaultValue": null, "stndDictId": null, "stndDictKey": null, "stndFieldId": null, "stndFieldKey": null, "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": null, "stndComplianceType": null, "stndComplianceLevel": null, "updatedUserId": null, "createdUserId": null }, { "id": "47D7EC42-0B7E-4224-AAB8-C26A39AC842B", "defKey": "sn", "defName": "编号", "intro": null, "orderValue": null, "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 128, "numScale": null, "primaryKey": null, "notNull": 1, "autoIncrement": null, "defaultValue": null, "stndDictId": "", "stndDictKey": "", "stndFieldId": null, "stndFieldKey": null, "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": null, "stndComplianceType": null, "stndComplianceLevel": null, "updatedUserId": null, "createdUserId": null, "dictFrom": "" }, { "id": "C831DF36-FB66-4CF3-851B-D4E81463C114", "defKey": "plan_status", "defName": "状态", "intro": "", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 32, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "plan_status", "stndFieldId": "", "stndDictKey": "plan_status", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "Manual", "dictItems": [ { "itemKey": "DaiZhiXing", "itemName": "待执行", "parentKey": "", "intro": "", "id": "781E9A57-8FB7-4D44-9CA0-1DB836BCC2FD" }, { "itemKey": "ZhiXingZhong", "itemName": "执行中", "parentKey": "", "intro": "", "id": "DB8E76CA-21CE-4B1E-95D4-A57534E40E92" }, { "itemKey": "WanCheng", "itemName": "完成", "parentKey": "", "intro": "", "id": "C68C27DC-9927-4F55-B71A-8DED55F6743C" }, { "itemKey": "QuXiao", "itemName": "取消", "parentKey": "", "intro": "", "id": "C8D688B5-3D4D-477F-A453-C4CD8D78F470" } ], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "UI" }, { "id": "DA766A3D-1668-42C6-9CFB-1F9D00103263", "defKey": "warehouse_id", "defName": "盘点仓库 Id", "intro": null, "orderValue": null, "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": null, "numScale": null, "primaryKey": null, "notNull": 1, "autoIncrement": null, "defaultValue": null, "stndDictId": null, "stndDictKey": null, "stndFieldId": null, "stndFieldKey": null, "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": null, "stndComplianceType": null, "stndComplianceLevel": null, "updatedUserId": null, "createdUserId": null }, { "id": "2AEF93A4-2704-41E4-BDC6-768DBC192EE9", "defKey": "plan_complete_time", "defName": "计划完成时间", "intro": null, "orderValue": null, "baseDataType": "DATETIME", "bizDomainType": "", "dbDataType": "DATETIME", "dataLen": null, "numScale": null, "primaryKey": null, "notNull": 1, "autoIncrement": null, "defaultValue": null, "stndDictId": null, "stndDictKey": null, "stndFieldId": null, "stndFieldKey": null, "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": null, "stndComplianceType": null, "stndComplianceLevel": null, "updatedUserId": null, "createdUserId": null }, { "id": "D1DE9F74-74BF-441B-9040-AC9363F9FDB9", "defKey": "complete_time", "defName": "实际完成时间", "intro": "", "baseDataType": "DATETIME", "bizDomainType": "", "dbDataType": "DATETIME", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 0, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "UI" }, { "id": "33580E5A-0E39-469F-A0DC-A18904B89557", "defKey": "memo", "defName": "备注", "intro": null, "orderValue": null, "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 512, "numScale": null, "primaryKey": null, "notNull": 1, "autoIncrement": null, "defaultValue": "''", "stndDictId": null, "stndDictKey": null, "stndFieldId": null, "stndFieldKey": null, "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": "PDManer", "attr19": null, "attr20": null, "origin": null, "stndComplianceType": null, "stndComplianceLevel": null, "updatedUserId": null, "createdUserId": null, "dictItems": [] }, { "id": "D7804FC1-95F1-450A-8DB0-DA3FC330ACF8", "defKey": "creator_id", "defName": "创建人 Id", "intro": " sys_user.id", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "A98E8CEC-565C-47EF-880D-0275DFB81451", "defKey": "modifier_id", "defName": "修改人 Id", "intro": " sys_user.id", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": [], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "0974A666-5A74-48A9-81FE-5B87567103B7", "defKey": "create_time", "defName": "创建时间", "intro": "", "baseDataType": "DATETIME", "bizDomainType": "", "dbDataType": "DATETIME", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": [], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "CB978321-039B-488F-8CF7-62D7BCE3DD3F", "defKey": "modify_time", "defName": "修改时间", "intro": "", "baseDataType": "DATETIME", "bizDomainType": "", "dbDataType": "DATETIME", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": [], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "8126165A-6867-4137-AB42-F7B9BB0390AD", "defKey": "deleted", "defName": "是否删除", "intro": " 0-->未删除、1-->已删除", "baseDataType": "TINYINT", "bizDomainType": "", "dbDataType": "TINYINT", "dataLen": 1, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "0", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": [], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" } ], "correlations": null, "indexes": [] }, { "id": "C9A36E0B-ECA6-4D3C-AEE5-691F607359F6", "type": "P", "defKey": "wh_warehouse_check_detail", "defName": "库存盘点明细", "intro": null, "schemaName": null, "props": null, "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "fields": [ { "id": "7BBA30CF-D4AC-4F9D-893F-58B6B25513A8", "defKey": "id", "defName": "主键", "intro": null, "orderValue": null, "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": null, "numScale": null, "primaryKey": 1, "notNull": 1, "autoIncrement": null, "defaultValue": null, "stndDictId": null, "stndDictKey": null, "stndFieldId": null, "stndFieldKey": null, "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": null, "stndComplianceType": null, "stndComplianceLevel": null, "updatedUserId": null, "createdUserId": null }, { "id": "E39ADA63-4F09-4672-B64A-03C02BAD2101", "defKey": "check_plan_id", "defName": "盘点计划 Id", "intro": "wh_warehouse_check_plan.id", "orderValue": null, "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": null, "numScale": null, "primaryKey": null, "notNull": 1, "autoIncrement": null, "defaultValue": null, "stndDictId": null, "stndDictKey": null, "stndFieldId": null, "stndFieldKey": null, "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": null, "stndComplianceType": null, "stndComplianceLevel": null, "updatedUserId": null, "createdUserId": null }, { "id": "EE7E293A-6EC1-4D04-A76E-F52737A07CB6", "defKey": "goods_category_id", "defName": "产品分类 Id", "intro": "", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "4BC7A3ED-175D-4669-9F3C-36E61A089679", "defKey": "goods_category_name", "defName": "分类名称", "intro": "", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 255, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "2F701052-F9DB-49BA-8176-E182F489B4FD", "defKey": "goods_id", "defName": "产品 Id", "intro": "", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "17F4EF19-C77C-4752-A8D7-E87FCAAE3645", "defKey": "goods_name", "defName": "产品名称", "intro": "", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 128, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "5580F963-B199-4ACC-9D26-AD0C136498F7", "defKey": "good_sn", "defName": "商品编码", "intro": "", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 128, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "3029D80F-1F00-456B-B7A8-ACD0A8F80903", "defKey": "system_quantity", "defName": "系统库存", "intro": null, "orderValue": null, "baseDataType": "INT", "bizDomainType": "", "dbDataType": "INT", "dataLen": "", "numScale": "", "primaryKey": null, "notNull": 1, "autoIncrement": null, "defaultValue": "", "stndDictId": null, "stndDictKey": null, "stndFieldId": null, "stndFieldKey": null, "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": null, "stndComplianceType": null, "stndComplianceLevel": null, "updatedUserId": null, "createdUserId": null }, { "id": "7E1A0F9B-58A9-4023-87A3-DDDEC0AFC0DB", "defKey": "actual_quantity", "defName": "实际库存", "intro": null, "orderValue": null, "baseDataType": "INT", "bizDomainType": "", "dbDataType": "INT", "dataLen": "", "numScale": "", "primaryKey": null, "notNull": 1, "autoIncrement": null, "defaultValue": "", "stndDictId": null, "stndDictKey": null, "stndFieldId": null, "stndFieldKey": null, "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": null, "stndComplianceType": null, "stndComplianceLevel": null, "updatedUserId": null, "createdUserId": null }, { "id": "430DE5FA-856A-4E2C-895C-D7612E91289E", "defKey": "difference_quantity", "defName": "差异数量", "intro": null, "orderValue": null, "baseDataType": "INT", "bizDomainType": "", "dbDataType": "INT", "dataLen": "", "numScale": "", "primaryKey": null, "notNull": 1, "autoIncrement": null, "defaultValue": "", "stndDictId": null, "stndDictKey": null, "stndFieldId": null, "stndFieldKey": null, "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": null, "stndComplianceType": null, "stndComplianceLevel": null, "updatedUserId": null, "createdUserId": null }, { "id": "E2605524-5818-4E63-B8A6-05E4F011E2AE", "defKey": "unit", "defName": "计量单位", "intro": "字典代码:unit", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 16, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "unit", "stndFieldId": "", "stndDictKey": "unit", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "Manual", "dictItems": [ { "itemKey": "Che", "itemName": "车", "parentKey": "", "intro": "", "id": "024EEBD1-5C0E-4AA4-A5EA-3E2BAA80628A" }, { "itemKey": "Fang", "itemName": "方", "parentKey": "", "intro": "", "id": "10F8E718-DADC-4ACA-A522-6EDF8B50A4EB" }, { "itemKey": "GongLi", "itemName": "公里", "parentKey": "", "intro": "", "id": "9CE6E51D-6066-451B-81C3-197B3B8D2D06" }, { "itemKey": "Dun", "itemName": "吨", "parentKey": "", "intro": "", "id": "9936866A-FAFA-4CE5-8577-2663B11F662F" } ], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "3C79D303-EE0D-439E-A280-78F7EFDA36E7", "defKey": "suggestion", "defName": "处理建议", "intro": null, "orderValue": null, "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 255, "numScale": null, "primaryKey": null, "notNull": 1, "autoIncrement": null, "defaultValue": "''", "stndDictId": null, "stndDictKey": null, "stndFieldId": null, "stndFieldKey": null, "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": null, "stndComplianceType": null, "stndComplianceLevel": null, "updatedUserId": null, "createdUserId": null }, { "id": "D4A4CC80-6768-43FB-93F7-9FCB99A04FDD", "defKey": "check_time", "defName": "盘点时间", "intro": "", "baseDataType": "DATETIME", "bizDomainType": "", "dbDataType": "DATETIME", "dataLen": null, "numScale": null, "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": null, "stndDictId": null, "stndFieldId": null, "stndDictKey": null, "stndFieldKey": null, "stndComplianceLevel": null, "stndComplianceType": null, "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": "PASTE" }, { "id": "CD701A1D-4DFD-4C3D-852C-45A0D703868C", "defKey": "creator_id", "defName": "创建人 Id", "intro": " sys_user.id", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "7AB6AB06-3DAC-44EB-A8C2-1C7A9EEE57D1", "defKey": "modifier_id", "defName": "修改人 Id", "intro": " sys_user.id", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": [], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "066F13FF-39D3-4A3C-9589-07C2B0DA02B7", "defKey": "create_time", "defName": "创建时间", "intro": "", "baseDataType": "DATETIME", "bizDomainType": "", "dbDataType": "DATETIME", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": [], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "B8AEA916-E963-4398-BFB7-9DE36AD47918", "defKey": "modify_time", "defName": "修改时间", "intro": "", "baseDataType": "DATETIME", "bizDomainType": "", "dbDataType": "DATETIME", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": [], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "FED8B3D2-13D3-4E45-8E55-E22C2FAB03CD", "defKey": "deleted", "defName": "是否删除", "intro": " 0-->未删除、1-->已删除", "baseDataType": "TINYINT", "bizDomainType": "", "dbDataType": "TINYINT", "dataLen": 1, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "0", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": [], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" } ], "correlations": null, "indexes": [] }, { "id": "3B83C23F-D49C-4D67-830C-882D91A57927", "type": "P", "defKey": "fin_money_account", "defName": "资金账户表", "intro": null, "schemaName": null, "props": null, "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "fields": [ { "id": "085FB24C-8DFE-4CE7-A346-BC10D51F769E", "defKey": "id", "defName": "Id", "intro": null, "orderValue": null, "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": null, "numScale": null, "primaryKey": 1, "notNull": 1, "autoIncrement": null, "defaultValue": null, "stndDictId": null, "stndDictKey": null, "stndFieldId": null, "stndFieldKey": null, "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": null, "stndComplianceType": null, "stndComplianceLevel": null, "updatedUserId": null, "createdUserId": null }, { "id": "93ECE81F-6496-4363-A00E-77AAD809AE16", "defKey": "sn", "defName": "账户编号", "intro": null, "orderValue": null, "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 128, "numScale": null, "primaryKey": null, "notNull": 1, "autoIncrement": null, "defaultValue": null, "stndDictId": null, "stndDictKey": null, "stndFieldId": null, "stndFieldKey": null, "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": null, "stndComplianceType": null, "stndComplianceLevel": null, "updatedUserId": null, "createdUserId": null }, { "id": "726C3A08-55D3-42DE-9502-134B8AFEB16D", "defKey": "account_type", "defName": "账户类型", "intro": "account_type", "orderValue": null, "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 16, "numScale": null, "primaryKey": null, "notNull": 1, "autoIncrement": null, "defaultValue": null, "stndDictId": "account_type", "stndDictKey": "account_type", "stndFieldId": null, "stndFieldKey": null, "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": null, "stndComplianceType": null, "stndComplianceLevel": null, "updatedUserId": null, "createdUserId": null, "dictFrom": "Manual", "dictItems": [ { "itemKey": "GeRen", "itemName": "个人", "parentKey": "", "intro": "", "id": "7E8BA416-A591-4600-8C9F-D94798599FF2" }, { "itemKey": "QiYe", "itemName": "企业", "parentKey": "", "intro": "", "id": "A36987CD-B68D-4C8F-8098-60982342EDE3" } ] }, { "id": "437EDEA8-4826-495B-B554-77DBF9216FE5", "defKey": "user_id", "defName": "用户 Id", "intro": null, "orderValue": null, "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": null, "numScale": null, "primaryKey": null, "notNull": 1, "autoIncrement": null, "defaultValue": "", "stndDictId": null, "stndDictKey": null, "stndFieldId": null, "stndFieldKey": null, "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": null, "stndComplianceType": null, "stndComplianceLevel": null, "updatedUserId": null, "createdUserId": null }, { "id": "BAF626BF-9660-4426-A0A0-40D62B021848", "defKey": "customer_id", "defName": "客户 Id", "intro": "", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "UI" }, { "id": "7E8F630A-3B5F-464D-88E2-B8BB00D8374A", "defKey": "org_id", "defName": "组织 Id", "intro": "", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": null, "numScale": null, "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": null, "stndFieldId": null, "stndDictKey": null, "stndFieldKey": null, "stndComplianceLevel": null, "stndComplianceType": null, "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": "PASTE" }, { "id": "4BECBB17-AC7A-42A2-8DCF-687E42EE4984", "defKey": "revenue", "defName": "营收余额", "intro": null, "orderValue": null, "baseDataType": "DECIMAL", "bizDomainType": "", "dbDataType": "DECIMAL", "dataLen": 14, "numScale": 2, "primaryKey": null, "notNull": 1, "autoIncrement": null, "defaultValue": "0.0", "stndDictId": null, "stndDictKey": null, "stndFieldId": null, "stndFieldKey": null, "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": null, "stndComplianceType": null, "stndComplianceLevel": null, "updatedUserId": null, "createdUserId": null }, { "id": "3FE01194-6BCF-4B41-8CA5-A3DB08FA8792", "defKey": "recharge", "defName": "充值余额", "intro": "", "baseDataType": "DECIMAL", "bizDomainType": "", "dbDataType": "DECIMAL", "dataLen": 14, "numScale": 2, "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "0.0", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "UI" }, { "id": "F9A14E61-2481-4CCB-B979-D524F0B06FAF", "defKey": "creator_id", "defName": "创建人 Id", "intro": "sys_user.id", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "786CBCD8-E973-4BCF-AD94-2C58E11305EF", "defKey": "modifier_id", "defName": "修改人 Id", "intro": "sys_user.id", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": [], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "05FA1902-051B-4BE8-821B-C6F50AFF95AD", "defKey": "create_time", "defName": "创建时间", "intro": "", "baseDataType": "DATETIME", "bizDomainType": "", "dbDataType": "DATETIME", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": [], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "F1D3228D-2BA3-484F-885F-2F22D97C8431", "defKey": "modify_time", "defName": "修改时间", "intro": "", "baseDataType": "DATETIME", "bizDomainType": "", "dbDataType": "DATETIME", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": [], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "0CC26181-8E29-48AA-B96E-6375467C7C36", "defKey": "deleted", "defName": "是否删除", "intro": " 0-->未删除、1-->已删除", "baseDataType": "TINYINT", "bizDomainType": "", "dbDataType": "TINYINT", "dataLen": 1, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "0", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": [], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" } ], "correlations": null, "indexes": [ { "id": "E4AF94E6-6AF3-45CF-82EF-BF865FC480E5", "type": "PRIMARY KEY", "defKey": null, "defName": null, "intro": null, "orderValue": null, "fields": [] } ] }, { "id": "EDDB991D-570B-493F-AF67-97787AC9BAFC", "type": "P", "defKey": "fin_money_flow", "defName": "资金流水", "intro": null, "schemaName": null, "props": null, "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "fields": [ { "id": "314F2AC3-D4C0-473A-A074-2328879D36AD", "defKey": "id", "defName": "Id", "intro": null, "orderValue": null, "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": null, "numScale": null, "primaryKey": 1, "notNull": 1, "autoIncrement": null, "defaultValue": null, "stndDictId": null, "stndDictKey": null, "stndFieldId": null, "stndFieldKey": null, "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": null, "stndComplianceType": null, "stndComplianceLevel": null, "updatedUserId": null, "createdUserId": null }, { "id": "C8407B1C-1AD4-401B-B617-AD520461E229", "defKey": "order_id", "defName": "订单 Id", "intro": null, "orderValue": null, "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": null, "numScale": null, "primaryKey": null, "notNull": 0, "autoIncrement": null, "defaultValue": "", "stndDictId": null, "stndDictKey": null, "stndFieldId": null, "stndFieldKey": null, "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": null, "stndComplianceType": null, "stndComplianceLevel": null, "updatedUserId": null, "createdUserId": null }, { "id": "7EF3209A-5DCA-40EE-8F25-91E53A8C2E01", "defKey": "order_sn", "defName": "订单编号", "intro": "", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 128, "numScale": "", "primaryKey": 0, "notNull": 0, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": [], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "2F3E9658-790E-40CA-9242-7B5F2A4AECDC", "origin": "UI" }, { "id": "45FA8F09-9A54-47B2-A97C-D4A40F4687CD", "defKey": "train_num", "defName": "车次", "intro": "", "baseDataType": "INT", "bizDomainType": "", "dbDataType": "INT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 0, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "UI" }, { "id": "82FE1E45-8AB6-42BD-9E01-767F77F98648", "defKey": "money_account_id", "defName": "资金账户 Id", "intro": "fin_money_account.id", "orderValue": null, "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": null, "numScale": null, "primaryKey": null, "notNull": 1, "autoIncrement": null, "defaultValue": null, "stndDictId": null, "stndDictKey": null, "stndFieldId": null, "stndFieldKey": null, "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": null, "stndComplianceType": null, "stndComplianceLevel": null, "updatedUserId": null, "createdUserId": null }, { "id": "E61D92DE-71AB-4AD8-8BAE-A4CD9EDCB917", "defKey": "before_balance", "defName": "变动前余额", "intro": null, "orderValue": null, "baseDataType": "DECIMAL", "bizDomainType": "", "dbDataType": "DECIMAL", "dataLen": 14, "numScale": 2, "primaryKey": null, "notNull": 1, "autoIncrement": null, "defaultValue": null, "stndDictId": null, "stndDictKey": null, "stndFieldId": null, "stndFieldKey": null, "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": null, "stndComplianceType": null, "stndComplianceLevel": null, "updatedUserId": null, "createdUserId": null }, { "id": "CA079A95-43C9-4067-8AF4-802839BB8AA5", "defKey": "delta", "defName": "变动金额", "intro": "有正负", "orderValue": null, "baseDataType": "DECIMAL", "bizDomainType": "", "dbDataType": "DECIMAL", "dataLen": 14, "numScale": 2, "primaryKey": null, "notNull": 1, "autoIncrement": null, "defaultValue": null, "stndDictId": null, "stndDictKey": null, "stndFieldId": null, "stndFieldKey": null, "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": null, "stndComplianceType": null, "stndComplianceLevel": null, "updatedUserId": null, "createdUserId": null }, { "id": "B0557BF0-0718-47FC-82C7-CAAFD64AB6A2", "defKey": "after_balance", "defName": "变动后余额", "intro": null, "orderValue": null, "baseDataType": "DECIMAL", "bizDomainType": "", "dbDataType": "DECIMAL", "dataLen": 14, "numScale": 2, "primaryKey": null, "notNull": 1, "autoIncrement": null, "defaultValue": null, "stndDictId": null, "stndDictKey": null, "stndFieldId": null, "stndFieldKey": null, "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": null, "stndComplianceType": null, "stndComplianceLevel": null, "updatedUserId": null, "createdUserId": null }, { "id": "9A0182DF-EF32-4427-A61E-F7871352CE18", "defKey": "money_change_category", "defName": "变动类型", "intro": "字典代码:money_change_category", "orderValue": null, "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 16, "numScale": null, "primaryKey": null, "notNull": 1, "autoIncrement": null, "defaultValue": null, "stndDictId": "money_change_category", "stndDictKey": "money_change_category", "stndFieldId": null, "stndFieldKey": null, "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": null, "stndComplianceType": null, "stndComplianceLevel": null, "updatedUserId": null, "createdUserId": null, "dictFrom": "Manual", "dictItems": [ { "itemKey": "ChongZhi", "itemName": "充值", "parentKey": "", "intro": "", "id": "3CECA6B1-D3AB-41D4-8436-2A78BA3FAE21" }, { "itemKey": "YingShou", "itemName": "营收", "parentKey": "", "intro": "", "id": "558621C0-3219-41F8-8FC1-D40571D7BC8A" }, { "itemKey": "TuiKuan", "itemName": "退款", "parentKey": "", "intro": "", "id": "3BCCE848-9201-45BD-832A-EB8C1F2C35F0" }, { "itemKey": "TiaoZhang", "itemName": "调账", "parentKey": "", "intro": "", "id": "268A1731-DE1D-4E00-9FAF-51F3AECE8430" }, { "itemKey": "ZhiFu", "itemName": "支付", "parentKey": "", "intro": "", "id": "84CD56DB-9083-4844-974D-000CF485FEC6" } ] }, { "id": "9145C6C8-06E6-4ACA-A678-90F5B324724C", "defKey": "file_url", "defName": "附件地址", "intro": "", "baseDataType": "TEXT", "bizDomainType": "", "dbDataType": "TEXT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 0, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "UI" }, { "id": "4C7365AD-B9B7-4F4F-8C14-FD3C14483097", "defKey": "memo", "defName": "备注", "intro": null, "orderValue": null, "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 512, "numScale": null, "primaryKey": null, "notNull": 1, "autoIncrement": null, "defaultValue": "", "stndDictId": null, "stndDictKey": null, "stndFieldId": null, "stndFieldKey": null, "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": null, "stndComplianceType": null, "stndComplianceLevel": null, "updatedUserId": null, "createdUserId": null }, { "id": "8F8561D4-DE39-4E27-B842-595BD8E078D3", "defKey": "creator_id", "defName": "创建人 Id", "intro": "sys_user.id", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "19DB1E0C-0C78-4D7A-8E38-8C1698041193", "defKey": "modifier_id", "defName": "修改人 Id", "intro": " sys_user.id", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": [], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "97287E91-D09E-45A7-9F09-250FFC4A12A0", "defKey": "create_time", "defName": "创建时间", "intro": "", "baseDataType": "DATETIME", "bizDomainType": "", "dbDataType": "DATETIME", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": [], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "15B674F7-FC26-4383-B98C-0D5F5C06F45B", "defKey": "modify_time", "defName": "修改时间", "intro": "", "baseDataType": "DATETIME", "bizDomainType": "", "dbDataType": "DATETIME", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": [], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "FCDD9BEE-A8B4-4499-A6A8-AF65CF615440", "defKey": "deleted", "defName": "是否删除", "intro": " 0-->未删除、1-->已删除", "baseDataType": "TINYINT", "bizDomainType": "", "dbDataType": "TINYINT", "dataLen": 1, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "0", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": [], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" } ], "correlations": null, "indexes": [ { "id": "0740FC97-B36D-4C37-B501-633273E2FCAD", "type": "PRIMARY KEY", "defKey": null, "defName": null, "intro": null, "orderValue": null, "fields": [] } ] }, { "id": "48C64C11-5A89-4DDD-95A6-3EBF40F399FB", "type": "P", "defKey": "fin_bill", "defName": "对账单", "intro": null, "schemaName": null, "props": null, "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "fields": [ { "id": "574443F6-C61B-4C10-ADA5-2A9149578C3F", "defKey": "id", "defName": "Id", "intro": null, "orderValue": null, "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": null, "numScale": null, "primaryKey": 1, "notNull": 1, "autoIncrement": null, "defaultValue": null, "stndDictId": null, "stndDictKey": null, "stndFieldId": null, "stndFieldKey": null, "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": null, "stndComplianceType": null, "stndComplianceLevel": null, "updatedUserId": null, "createdUserId": null }, { "id": "3D3621C8-5E84-44AA-B722-CB8653F94FDF", "defKey": "user_id", "defName": "用户 Id", "intro": null, "orderValue": null, "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": null, "numScale": null, "primaryKey": null, "notNull": 1, "autoIncrement": null, "defaultValue": null, "stndDictId": null, "stndDictKey": null, "stndFieldId": null, "stndFieldKey": null, "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": null, "stndComplianceType": null, "stndComplianceLevel": null, "updatedUserId": null, "createdUserId": null }, { "id": "24A96D47-5054-428A-80E7-135F9DF7B1BB", "defKey": "customer_id", "defName": "客户 Id", "intro": "cst_customer.id", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "C8AB1896-D05E-4D15-8A35-7BD55CCC2E49", "defKey": "org_id", "defName": "组织 Id", "intro": "", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": null, "numScale": null, "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": null, "stndFieldId": null, "stndDictKey": null, "stndFieldKey": null, "stndComplianceLevel": null, "stndComplianceType": null, "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": "PASTE" }, { "id": "7CDBFB14-C98C-4646-9B09-F137B98A75CE", "defKey": "account_type", "defName": "账户类型", "intro": "account_type", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 32, "numScale": null, "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": null, "stndDictId": "account_type", "stndFieldId": null, "stndDictKey": "account_type", "stndFieldKey": null, "stndComplianceLevel": null, "stndComplianceType": null, "dictFrom": "Manual", "dictItems": [ { "itemKey": "GeRen", "itemName": "个人", "parentKey": "", "intro": "", "id": "7E8BA416-A591-4600-8C9F-D94798599FF2" }, { "itemKey": "QiYe", "itemName": "企业", "parentKey": "", "intro": "", "id": "A36987CD-B68D-4C8F-8098-60982342EDE3" } ], "fieldTier": "", "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": "PASTE" }, { "id": "0D3E1F50-E791-4A32-8533-70FA8B155D7A", "defKey": "bill_period", "defName": "账期", "intro": null, "orderValue": null, "baseDataType": "DATE", "bizDomainType": "", "dbDataType": "DATE", "dataLen": null, "numScale": null, "primaryKey": null, "notNull": 1, "autoIncrement": null, "defaultValue": "", "stndDictId": null, "stndDictKey": null, "stndFieldId": null, "stndFieldKey": null, "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": null, "stndComplianceType": null, "stndComplianceLevel": null, "updatedUserId": null, "createdUserId": null }, { "id": "FDE4D297-CBEA-4EFB-B8FA-CD7983B13375", "defKey": "start_time", "defName": "账单开始时间", "intro": null, "orderValue": null, "baseDataType": "DATE", "bizDomainType": "", "dbDataType": "DATE", "dataLen": null, "numScale": null, "primaryKey": null, "notNull": 1, "autoIncrement": null, "defaultValue": null, "stndDictId": null, "stndDictKey": null, "stndFieldId": null, "stndFieldKey": null, "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": null, "stndComplianceType": null, "stndComplianceLevel": null, "updatedUserId": null, "createdUserId": null }, { "id": "BBFC8F86-77BF-41AB-9ACC-052DDD17353B", "defKey": "end_time", "defName": "账单结束时间", "intro": null, "orderValue": null, "baseDataType": "DATE", "bizDomainType": "", "dbDataType": "DATE", "dataLen": null, "numScale": null, "primaryKey": null, "notNull": 1, "autoIncrement": null, "defaultValue": null, "stndDictId": null, "stndDictKey": null, "stndFieldId": null, "stndFieldKey": null, "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": null, "stndComplianceType": null, "stndComplianceLevel": null, "updatedUserId": null, "createdUserId": null }, { "id": "421FEC0B-53AA-4E01-ADE6-59395524004F", "defKey": "order_count", "defName": "订单数", "intro": null, "orderValue": null, "baseDataType": "INT", "bizDomainType": "", "dbDataType": "INT", "dataLen": null, "numScale": null, "primaryKey": null, "notNull": 1, "autoIncrement": null, "defaultValue": null, "stndDictId": null, "stndDictKey": null, "stndFieldId": null, "stndFieldKey": null, "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": null, "stndComplianceType": null, "stndComplianceLevel": null, "updatedUserId": null, "createdUserId": null }, { "id": "0B34B198-82A7-4E99-A190-351393FB31A2", "defKey": "car_count", "defName": "总车数", "intro": null, "orderValue": null, "baseDataType": "INT", "bizDomainType": "", "dbDataType": "INT", "dataLen": null, "numScale": null, "primaryKey": null, "notNull": 1, "autoIncrement": null, "defaultValue": "", "stndDictId": null, "stndDictKey": null, "stndFieldId": null, "stndFieldKey": null, "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": null, "stndComplianceType": null, "stndComplianceLevel": null, "updatedUserId": null, "createdUserId": null }, { "id": "6812CCA8-26E3-4C1A-A6DB-010C7B19C536", "defKey": "total_weight", "defName": "总质量", "intro": "", "baseDataType": "INT", "bizDomainType": "", "dbDataType": "INT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "UI" }, { "id": "6A771FD2-567C-4570-A211-B74CE314FFB5", "defKey": "discount_money", "defName": "优惠金额", "intro": null, "orderValue": null, "baseDataType": "DECIMAL", "bizDomainType": "", "dbDataType": "DECIMAL", "dataLen": 14, "numScale": 2, "primaryKey": null, "notNull": 1, "autoIncrement": null, "defaultValue": "0.0", "stndDictId": null, "stndDictKey": null, "stndFieldId": null, "stndFieldKey": null, "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": null, "stndComplianceType": null, "stndComplianceLevel": null, "updatedUserId": null, "createdUserId": null }, { "id": "A4A35716-01F5-4C3F-8437-41023CEF6FE7", "defKey": "total_money", "defName": "账单金额", "intro": null, "orderValue": null, "baseDataType": "DECIMAL", "bizDomainType": "", "dbDataType": "DECIMAL", "dataLen": 14, "numScale": 2, "primaryKey": null, "notNull": 1, "autoIncrement": null, "defaultValue": "", "stndDictId": null, "stndDictKey": null, "stndFieldId": null, "stndFieldKey": null, "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": null, "stndComplianceType": null, "stndComplianceLevel": null, "updatedUserId": null, "createdUserId": null }, { "id": "F522374B-493B-48B7-BBA7-4725373AF427", "defKey": "memo", "defName": "备注", "intro": "", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 512, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": [], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "UI" }, { "id": "932046B0-9B90-4AA7-8A85-F1B83FF7415F", "defKey": "creator_id", "defName": "创建人 Id", "intro": "sys_user.id", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "1959BF80-867D-4AF4-BC96-BE5805B7DEBF", "defKey": "modifier_id", "defName": "修改人 Id", "intro": "sys_user.id", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": [], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "FF505CF8-9A8C-424A-8B7F-0BC8AEC4A6F6", "defKey": "create_time", "defName": "创建时间", "intro": "", "baseDataType": "DATETIME", "bizDomainType": "", "dbDataType": "DATETIME", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": [], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "BFC18E41-E63C-4D34-841C-0BE8C484F506", "defKey": "modify_time", "defName": "修改时间", "intro": "", "baseDataType": "DATETIME", "bizDomainType": "", "dbDataType": "DATETIME", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": [], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "9DDF41D6-549B-4DE3-8C5B-A6E52C9B02D0", "defKey": "deleted", "defName": "是否删除", "intro": " 0-->未删除、1-->已删除", "baseDataType": "TINYINT", "bizDomainType": "", "dbDataType": "TINYINT", "dataLen": 1, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "0", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": [], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" } ], "correlations": null, "indexes": [ { "id": "8EE3F795-1F2E-4291-9F52-CC81E769D2C5", "type": "PRIMARY KEY", "defKey": null, "defName": null, "intro": null, "orderValue": null, "fields": [] } ] }, { "id": "4476CB18-4B15-486E-A0AD-DA49AB267305", "type": "P", "defKey": "fin_discount", "defName": "优惠管理", "intro": null, "schemaName": null, "props": null, "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "fields": [ { "id": "7CD41FF3-69C7-4146-BA7F-8A32F2DA8EDF", "defKey": "id", "defName": "Id", "intro": null, "orderValue": null, "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": null, "numScale": null, "primaryKey": null, "notNull": 1, "autoIncrement": null, "defaultValue": null, "stndDictId": null, "stndDictKey": null, "stndFieldId": null, "stndFieldKey": null, "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": null, "stndComplianceType": null, "stndComplianceLevel": null, "updatedUserId": null, "createdUserId": null }, { "id": "0A558CBD-8FEC-4AF6-988C-EF90FF0C17A4", "defKey": "expense_item_id", "defName": "收费项 Id", "intro": "", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "UI" }, { "id": "316F4C5B-98CE-4863-BA6B-E946D8D666D5", "defKey": "org_id", "defName": "组织 Id", "intro": null, "orderValue": null, "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": null, "numScale": null, "primaryKey": null, "notNull": 1, "autoIncrement": null, "defaultValue": "", "stndDictId": null, "stndDictKey": null, "stndFieldId": null, "stndFieldKey": null, "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": null, "stndComplianceType": null, "stndComplianceLevel": null, "updatedUserId": null, "createdUserId": null }, { "id": "D0F27EBF-B7F9-4D6A-8D68-9080F2D21D85", "defKey": "user_scope", "defName": "适用用户", "intro": "结构类型:{strategy: Wu | ZhiDing | SuoYou,ids:long[]}", "baseDataType": "TEXT", "bizDomainType": "", "dbDataType": "TEXT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "scope_strategy", "stndFieldId": "", "stndDictKey": "scope_strategy", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "Manual", "dictItems": [ { "itemKey": "Wu", "itemName": "无", "parentKey": "", "intro": "", "id": "5C25320D-C9AA-4AF6-B1DD-09363617D653" }, { "itemKey": "ZhiDing", "itemName": "指定", "parentKey": "", "intro": "", "id": "24FE3E6E-E3F6-4C2C-AE0D-F77C2D6754A4" }, { "itemKey": "SuoYou", "itemName": "所有", "parentKey": "", "intro": "", "id": "72531125-9D71-47CA-8396-22F004CB77B0" } ], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "3436EFEB-46C6-49F6-B2BF-3421FE5AEA08", "defKey": "station_scope", "defName": "适用站点", "intro": "结构类型:{strategy: Wu | ZhiDing | SuoYou,ids:long[]}", "baseDataType": "TEXT", "bizDomainType": "", "dbDataType": "TEXT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "scope_strategy", "stndFieldId": "", "stndDictKey": "scope_strategy", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "Manual", "dictItems": [ { "itemKey": "Wu", "itemName": "无", "parentKey": "", "intro": "", "id": "5C25320D-C9AA-4AF6-B1DD-09363617D653" }, { "itemKey": "ZhiDing", "itemName": "指定", "parentKey": "", "intro": "", "id": "24FE3E6E-E3F6-4C2C-AE0D-F77C2D6754A4" }, { "itemKey": "SuoYou", "itemName": "所有", "parentKey": "", "intro": "", "id": "72531125-9D71-47CA-8396-22F004CB77B0" } ], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "B07E8155-74FB-4404-82D9-458BDA8F25BD", "defKey": "goods_scope", "defName": "适用产品", "intro": "结构类型:{strategy: Wu | ZhiDing | SuoYou,ids:long[]}", "baseDataType": "TEXT", "bizDomainType": "", "dbDataType": "TEXT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "scope_strategy", "stndFieldId": "", "stndDictKey": "scope_strategy", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "Manual", "dictItems": [ { "itemKey": "Wu", "itemName": "无", "parentKey": "", "intro": "", "id": "5C25320D-C9AA-4AF6-B1DD-09363617D653" }, { "itemKey": "ZhiDing", "itemName": "指定", "parentKey": "", "intro": "", "id": "24FE3E6E-E3F6-4C2C-AE0D-F77C2D6754A4" }, { "itemKey": "SuoYou", "itemName": "所有", "parentKey": "", "intro": "", "id": "72531125-9D71-47CA-8396-22F004CB77B0" } ], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "DF7D92B4-D59E-4D4C-B656-89BDFD896E37", "defKey": "discount_money", "defName": "优惠金额", "intro": null, "orderValue": null, "baseDataType": "DOUBLE", "bizDomainType": "", "dbDataType": "DOUBLE", "dataLen": 14, "numScale": 2, "primaryKey": null, "notNull": 1, "autoIncrement": null, "defaultValue": "0.00", "stndDictId": null, "stndDictKey": null, "stndFieldId": null, "stndFieldKey": null, "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": null, "stndComplianceType": null, "stndComplianceLevel": null, "updatedUserId": null, "createdUserId": null }, { "id": "A451408C-918D-4C20-9925-117E026093ED", "defKey": "start_time", "defName": "有效期", "intro": "开始", "orderValue": null, "baseDataType": "DATETIME", "bizDomainType": "", "dbDataType": "DATETIME", "dataLen": null, "numScale": null, "primaryKey": null, "notNull": 1, "autoIncrement": null, "defaultValue": null, "stndDictId": null, "stndDictKey": null, "stndFieldId": null, "stndFieldKey": null, "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": null, "stndComplianceType": null, "stndComplianceLevel": null, "updatedUserId": null, "createdUserId": null }, { "id": "48BB9F97-50F4-4442-8DF5-B8A082E6D4B3", "defKey": "end_time", "defName": "有效期", "intro": "结束", "orderValue": null, "baseDataType": "DATETIME", "bizDomainType": "", "dbDataType": "DATETIME", "dataLen": null, "numScale": null, "primaryKey": null, "notNull": 1, "autoIncrement": null, "defaultValue": null, "stndDictId": null, "stndDictKey": null, "stndFieldId": null, "stndFieldKey": null, "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": null, "stndComplianceType": null, "stndComplianceLevel": null, "updatedUserId": null, "createdUserId": null } ], "correlations": null, "indexes": [ { "id": "15FC8B19-A4F6-4955-B2D5-5C42A4E6BC56", "type": "PRIMARY KEY", "defKey": null, "defName": null, "intro": null, "orderValue": null, "fields": [] } ] }, { "id": "31EE5227-5597-42B8-8D7A-B558F708C076", "schemaName": null, "defKey": "fin_expense_item", "defName": "收费项目", "intro": "", "type": "P", "fields": [ { "id": "306F745A-B99D-4639-94FD-A4AF36D63219", "defKey": "id", "defName": "Id", "intro": "", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 1, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": [], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "905937AC-A0DC-4A3B-87CA-62712F755332", "defKey": "user_id", "defName": "归属用户 Id", "intro": "", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "UI" }, { "id": "947DF5D4-6E87-4E12-95FE-71DCC2D136A1", "defKey": "customer_id", "defName": "归属客户 Id", "intro": "", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "UI" }, { "id": "81F36659-579E-4E86-A085-8B46D0102490", "defKey": "org_id", "defName": "归属组织 Id", "intro": "", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "UI" }, { "id": "DF43F70D-82A3-4F25-94E5-46F13E6B94E6", "defKey": "goods_id", "defName": "产品 Id", "intro": "仅当项目类型为“产品”时有值", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 0, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "UI" }, { "id": "489F7BA3-FC15-4C50-8EE6-F0A529DD2349", "defKey": "expense_item_category", "defName": "收费项目类型", "intro": "", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 16, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "expense_item_category", "stndFieldId": "", "stndDictKey": "expense_item_category", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "Manual", "dictItems": [ { "itemKey": "QiTa", "itemName": "其他", "parentKey": "", "intro": "", "id": "B4560F4E-C17C-45E6-BA46-F24447710D73" }, { "itemKey": "ChanPin", "itemName": "产品", "parentKey": "", "intro": "", "id": "1078D9EB-D7B7-4AE4-BB59-C5981DFFE609" }, { "itemKey": "YunFei", "itemName": "运费", "parentKey": "", "intro": "", "id": "FF5FC939-6ACA-435B-873C-458E74F21D19" } ], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "UI" }, { "id": "69F9B61C-E6EE-4AD1-8071-4C3BE2918F44", "defKey": "expense_item_name", "defName": "付费项名称", "intro": "", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 128, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "UI" }, { "id": "190594CC-5FDA-4A8C-8586-6B1E099A9C96", "defKey": "expense_strategy", "defName": "计费策略", "intro": "字典代码:expense_strategy", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 16, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "expense_strategy", "stndFieldId": "", "stndDictKey": "expense_strategy", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "Manual", "dictItems": [ { "itemKey": "MianFei", "itemName": "免费", "parentKey": "", "intro": "", "id": "7B74209A-E0F9-4D7E-B437-A15802FAC11B" }, { "itemKey": "TanXing", "itemName": "弹性", "parentKey": "", "intro": "", "id": "B247787C-6787-41E8-BADD-5F155C62B7A9" }, { "itemKey": "GuDing", "itemName": "固定", "parentKey": "", "intro": "", "id": "D388E186-C776-495D-878E-9C57770E0992" }, { "itemKey": "DanJia", "itemName": "单价", "parentKey": "", "intro": "", "id": "F47F0617-65C6-4602-A3D3-83C0B4C99E30" } ], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "201E1E68-611D-4AB9-A01D-3175C130DAA1", "defKey": "unit", "defName": "计量单位", "intro": "字典代码:unit", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 16, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "unit", "stndFieldId": "", "stndDictKey": "unit", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "Manual", "dictItems": [ { "itemKey": "Che", "itemName": "车", "parentKey": "", "intro": "", "id": "024EEBD1-5C0E-4AA4-A5EA-3E2BAA80628A" }, { "itemKey": "Fang", "itemName": "方", "parentKey": "", "intro": "", "id": "10F8E718-DADC-4ACA-A522-6EDF8B50A4EB" }, { "itemKey": "GongLi", "itemName": "公里", "parentKey": "", "intro": "", "id": "9CE6E51D-6066-451B-81C3-197B3B8D2D06" }, { "itemKey": "Dun", "itemName": "吨", "parentKey": "", "intro": "", "id": "9936866A-FAFA-4CE5-8577-2663B11F662F" } ], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "00DE49BD-389F-45AB-A62C-BAB44555C4E6", "defKey": "tax_rate", "defName": "税率", "intro": "", "baseDataType": "DECIMAL", "bizDomainType": "", "dbDataType": "DECIMAL", "dataLen": 10, "numScale": 3, "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "4EB5517F-F6B8-491D-B19B-BC831FB0EB03", "defKey": "unit_price", "defName": "单价", "intro": "单位:元,弹性模式-->每档价格", "baseDataType": "DECIMAL", "bizDomainType": "", "dbDataType": "DECIMAL", "dataLen": 14, "numScale": 2, "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "0.0", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "E3F29B4E-00C2-407F-BD13-A0D1C8A91DB7", "defKey": "initial_price", "defName": "起步价", "intro": "单位:元,<= 起步量 固定费用", "baseDataType": "DECIMAL", "bizDomainType": "", "dbDataType": "DECIMAL", "dataLen": 14, "numScale": 2, "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "0.0", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "75049E3E-2557-43FB-872C-98BF1FBFB4DD", "defKey": "initial_quantity", "defName": "起步量", "intro": "", "baseDataType": "INT", "bizDomainType": "", "dbDataType": "INT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "0", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "40ECC628-4D15-4DF9-83CB-6BA83F0081C6", "defKey": "every_quantity", "defName": "每档的量", "intro": "", "baseDataType": "INT", "bizDomainType": "", "dbDataType": "INT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "0", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "99457AD3-D5E3-41DA-B1A4-443A6433C97F", "defKey": "canuse", "defName": "是否可用", "intro": "0-->否、1-->是", "baseDataType": "TINYINT", "bizDomainType": "", "dbDataType": "TINYINT", "dataLen": 1, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "1", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "AA43F666-C944-4707-A6DB-ECDD1DD4969E", "defKey": "memo", "defName": "备注", "intro": "", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 512, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "''", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": [], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "CBF8F0DC-0EB3-4AB4-B11D-7DAC37691369", "defKey": "creator_id", "defName": "创建人 Id", "intro": " sys_user.id", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "F9A513B5-2E81-43AB-AFE7-33E9672160B8", "defKey": "modifier_id", "defName": "修改人 Id", "intro": " sys_user.id", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": [], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "47D3340E-671F-46F3-AF66-569D27EED2D5", "defKey": "create_time", "defName": "创建时间", "intro": "", "baseDataType": "DATETIME", "bizDomainType": "", "dbDataType": "DATETIME", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": [], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "6C06ECA4-65AE-4564-9753-5EF8C606216F", "defKey": "modify_time", "defName": "修改时间", "intro": "", "baseDataType": "DATETIME", "bizDomainType": "", "dbDataType": "DATETIME", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": [], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "EC809299-BE7E-437D-BDFA-D604D47200AD", "defKey": "deleted", "defName": "是否删除", "intro": " 0-->未删除、1-->已删除", "baseDataType": "TINYINT", "bizDomainType": "", "dbDataType": "TINYINT", "dataLen": 1, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "0", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": [], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" } ], "indexes": [] }, { "id": "0B223F50-E8AF-40F4-8444-1B22D1171407", "schemaName": null, "defKey": "mfg_craft", "defName": "工艺", "intro": "", "type": "P", "fields": [ { "id": "363DC7F6-155A-4679-8E07-DCC249DB544C", "defKey": "id", "defName": "Id", "intro": "", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 1, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": [], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "759FF56C-6610-43D2-B4FA-7617DD2C65CB", "defKey": "sn", "defName": "编码", "intro": "", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 128, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "UI" }, { "id": "0FCED996-9E91-423E-AE4D-04BA47D94EB5", "defKey": "goods_id", "defName": "终产品 Id", "intro": "", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": null, "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": null, "stndDictId": null, "stndFieldId": null, "stndDictKey": null, "stndFieldKey": null, "stndComplianceLevel": null, "stndComplianceType": null, "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": "PASTE" }, { "id": "B02465CC-8EBC-4387-832D-C64B9ABC602F", "defKey": "craft_name", "defName": "工艺名称", "intro": "", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 128, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "UI" }, { "id": "317417F7-8BB8-4BEE-8134-6054AC0A8A76", "defKey": "craft_ver", "defName": "工艺版本号", "intro": "", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 32, "numScale": null, "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": null, "stndDictId": null, "stndFieldId": null, "stndDictKey": null, "stndFieldKey": null, "stndComplianceLevel": null, "stndComplianceType": null, "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": "PASTE" }, { "id": "808CFCDA-0AAC-4084-BFA8-07FE1EF25C2F", "defKey": "craft_category", "defName": "工艺类型", "intro": "字典编码:craft_category", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 32, "numScale": null, "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": null, "stndDictId": "craft_category", "stndFieldId": null, "stndDictKey": "craft_category", "stndFieldKey": null, "stndComplianceLevel": null, "stndComplianceType": null, "dictFrom": "Manual", "dictItems": [ { "itemKey": "ZiDongHua", "itemName": "自动化", "parentKey": "", "intro": "", "id": "8F07359D-732D-4F07-85C3-E86010E4F5AD" }, { "itemKey": "RenGong", "itemName": "人工", "parentKey": "", "intro": "", "id": "8DEBBCEF-3F01-4C1A-ADC1-038B52129862" } ], "fieldTier": "", "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": "PASTE" }, { "id": "F02B36BC-9C06-40D7-A478-DC5789CCEFB3", "defKey": "canuse", "defName": "是否可用", "intro": "0-->否、1-->是", "baseDataType": "TINYINT", "bizDomainType": "", "dbDataType": "TINYINT", "dataLen": 1, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "1", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "UI" }, { "id": "532517BD-A9D0-484A-9EDA-93EC38A47E37", "defKey": "memo", "defName": "备注", "intro": "", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 512, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "''", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": [], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "UI" }, { "id": "2F962249-EDE4-4C9E-B48C-3710BD612C5F", "defKey": "creator_id", "defName": "创建人 Id", "intro": " sys_user.id", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "51976034-6142-4362-81B1-469BABE7EA00", "defKey": "modifier_id", "defName": "修改人 Id", "intro": " sys_user.id", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": [], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "9E4C8E61-F843-4862-8BE7-215A395E2AD7", "defKey": "create_time", "defName": "创建时间", "intro": "", "baseDataType": "DATETIME", "bizDomainType": "", "dbDataType": "DATETIME", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": [], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "C41FDEAA-B07D-46F8-8328-81128EE2BE53", "defKey": "modify_time", "defName": "修改时间", "intro": "", "baseDataType": "DATETIME", "bizDomainType": "", "dbDataType": "DATETIME", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": [], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "51F08199-B0D6-4C7C-A29B-1A845420260B", "defKey": "deleted", "defName": "是否删除", "intro": " 0-->未删除、1-->已删除", "baseDataType": "TINYINT", "bizDomainType": "", "dbDataType": "TINYINT", "dataLen": 1, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "0", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": [], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" } ], "indexes": [] }, { "id": "1A2D551C-214D-469D-B0C5-917C29D725B2", "schemaName": null, "defKey": "cst_org", "defName": "组织信息", "intro": "", "type": "P", "fields": [ { "id": "CF671F2B-4BB0-4390-A384-D022A4F74FB3", "defKey": "id", "defName": "Id", "intro": "", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 1, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": [], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "C9A3D3BE-9969-4D88-82D0-DF5A71E45F3C", "defKey": "org_category", "defName": "主体类型", "intro": "字典代码:org_category", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 16, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "org_category", "stndFieldId": "", "stndDictKey": "org_category", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "Manual", "dictItems": [ { "itemKey": "GeRen", "itemName": "个人", "parentKey": "", "intro": "", "id": "DB89A92E-D63E-42CE-BA4D-0A95F473E93B" }, { "itemKey": "QiYe", "itemName": "企业", "parentKey": "", "intro": "", "id": "27282DC9-2018-4EF2-B5F8-9EC443950C68" } ], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "UI" }, { "id": "CCABEE4A-6B49-4AEC-9CF6-685292310D96", "defKey": "uscc", "defName": "统一社会信用代码", "intro": "个人:为身份证号", "baseDataType": "CHAR", "bizDomainType": "", "dbDataType": "CHAR", "dataLen": 18, "numScale": null, "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": null, "stndFieldId": null, "stndDictKey": null, "stndFieldKey": null, "stndComplianceLevel": null, "stndComplianceType": null, "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": "PASTE" }, { "id": "D5563299-8318-4937-A7DB-5C7FA8E25A3B", "defKey": "org_name", "defName": "组织名称", "intro": "个人:为姓名", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 128, "numScale": null, "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": null, "stndFieldId": null, "stndDictKey": null, "stndFieldKey": null, "stndComplianceLevel": null, "stndComplianceType": null, "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": "PASTE" }, { "id": "88AC98FE-11B5-45C0-8C87-6D50AFCD41F1", "defKey": "business_license", "defName": "营业执照", "intro": "个人:为空", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 255, "numScale": null, "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": null, "stndFieldId": null, "stndDictKey": null, "stndFieldKey": null, "stndComplianceLevel": null, "stndComplianceType": null, "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": "PASTE" }, { "id": "7E1F0EBE-DC1F-4C3A-BC77-D6EEAD93AAD3", "defKey": "license_start_time", "defName": "营业执照有效期", "intro": "个人:为空", "baseDataType": "DATE", "bizDomainType": "", "dbDataType": "DATE", "dataLen": null, "numScale": null, "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": null, "stndDictId": null, "stndFieldId": null, "stndDictKey": null, "stndFieldKey": null, "stndComplianceLevel": null, "stndComplianceType": null, "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": "PASTE" }, { "id": "1BEDF200-3ABA-4A4B-9A15-A7E499BEC6E6", "defKey": "license_end_time", "defName": "营业执照有效期", "intro": "个人:为空", "baseDataType": "DATE", "bizDomainType": "", "dbDataType": "DATE", "dataLen": null, "numScale": null, "primaryKey": 0, "notNull": 0, "autoIncrement": 0, "defaultValue": null, "stndDictId": null, "stndFieldId": null, "stndDictKey": null, "stndFieldKey": null, "stndComplianceLevel": null, "stndComplianceType": null, "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": "PASTE" }, { "id": "EF682866-010D-4E75-B1F6-8EA15BB274A9", "defKey": "legal_representative", "defName": "法人名称", "intro": "个人:为姓名", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 128, "numScale": null, "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": null, "stndFieldId": null, "stndDictKey": null, "stndFieldKey": null, "stndComplianceLevel": null, "stndComplianceType": null, "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": "PASTE" }, { "id": "D1FADF9C-B9AB-4889-B1FD-A4177C5C5D8D", "defKey": "idcard", "defName": "法人身份证号", "intro": "个人:为身份证号", "baseDataType": "CHAR", "bizDomainType": "", "dbDataType": "CHAR", "dataLen": 18, "numScale": null, "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": null, "stndDictId": null, "stndFieldId": null, "stndDictKey": null, "stndFieldKey": null, "stndComplianceLevel": null, "stndComplianceType": null, "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": "PASTE" }, { "id": "543C52A5-F915-4EDF-9EE7-DA05528AF26F", "defKey": "idcard_start_time", "defName": "法人身份证有效期", "intro": "个人:为身份证号", "baseDataType": "DATE", "bizDomainType": "", "dbDataType": "DATE", "dataLen": "", "numScale": null, "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": null, "stndDictId": null, "stndFieldId": null, "stndDictKey": null, "stndFieldKey": null, "stndComplianceLevel": null, "stndComplianceType": null, "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": "PASTE" }, { "id": "FA2B7D61-6038-48F9-AB54-62F27F2CD0E5", "defKey": "idcard_end_time", "defName": "法人身份证有效期", "intro": "个人:为身份有效期", "baseDataType": "DATE", "bizDomainType": "", "dbDataType": "DATE", "dataLen": "", "numScale": null, "primaryKey": 0, "notNull": 0, "autoIncrement": 0, "defaultValue": null, "stndDictId": null, "stndFieldId": null, "stndDictKey": null, "stndFieldKey": null, "stndComplianceLevel": null, "stndComplianceType": null, "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": "PASTE" }, { "id": "A8732082-E541-4C02-8471-EBFA4632B23E", "defKey": "idcard_front", "defName": "法人身份证正面", "intro": null, "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 255, "numScale": null, "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": null, "stndDictId": null, "stndFieldId": null, "stndDictKey": null, "stndFieldKey": null, "stndComplianceLevel": null, "stndComplianceType": null, "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": "PASTE" }, { "id": "B69F7E6F-70D9-4DFA-91AE-79ED413B3429", "defKey": "idcard_back", "defName": "法人身份证反面", "intro": null, "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 255, "numScale": null, "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": null, "stndDictId": null, "stndFieldId": null, "stndDictKey": null, "stndFieldKey": null, "stndComplianceLevel": null, "stndComplianceType": null, "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": "PASTE" }, { "id": "B625B190-7E83-48F2-801C-B09B0A73B108", "defKey": "province", "defName": "省", "intro": "代码", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 16, "numScale": null, "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": null, "stndFieldId": null, "stndDictKey": null, "stndFieldKey": null, "stndComplianceLevel": null, "stndComplianceType": null, "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": "PASTE" }, { "id": "F81C601B-BF3E-40E1-87A9-D6A8D7DB9D8F", "defKey": "city", "defName": "市", "intro": "代码", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 16, "numScale": null, "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": null, "stndFieldId": null, "stndDictKey": null, "stndFieldKey": null, "stndComplianceLevel": null, "stndComplianceType": null, "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": "PASTE" }, { "id": "D0EAF537-0C11-41B1-9582-C6613DA0BEF4", "defKey": "area", "defName": "区县", "intro": "代码", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 16, "numScale": null, "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": null, "stndFieldId": null, "stndDictKey": null, "stndFieldKey": null, "stndComplianceLevel": null, "stndComplianceType": null, "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": "PASTE" }, { "id": "75D6AB98-7A05-43DA-A688-193A24537838", "defKey": "town", "defName": "乡镇街道", "intro": "代码", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 64, "numScale": null, "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "''", "stndDictId": null, "stndFieldId": null, "stndDictKey": null, "stndFieldKey": null, "stndComplianceLevel": null, "stndComplianceType": null, "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": "PASTE" }, { "id": "56CCC921-4E1A-43AF-81CA-8E66710E7423", "defKey": "province_name", "defName": "省", "intro": "名称", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 255, "numScale": null, "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": null, "stndFieldId": null, "stndDictKey": null, "stndFieldKey": null, "stndComplianceLevel": null, "stndComplianceType": null, "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": "PASTE" }, { "id": "3AECBDCD-F654-4658-9368-CFD1847DAD87", "defKey": "city_name", "defName": "市", "intro": "名称", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 255, "numScale": null, "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": null, "stndFieldId": null, "stndDictKey": null, "stndFieldKey": null, "stndComplianceLevel": null, "stndComplianceType": null, "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": "PASTE" }, { "id": "87B4AF6D-7726-491C-9EE1-D5137FFDA4D8", "defKey": "area_name", "defName": "区县", "intro": "名称", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 255, "numScale": null, "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": null, "stndFieldId": null, "stndDictKey": null, "stndFieldKey": null, "stndComplianceLevel": null, "stndComplianceType": null, "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": "PASTE" }, { "id": "BB53FA76-8C34-4F1C-AC8E-3EAFF0ED21B1", "defKey": "town_name", "defName": "乡镇街道", "intro": "名称", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 255, "numScale": null, "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "''", "stndDictId": null, "stndFieldId": null, "stndDictKey": null, "stndFieldKey": null, "stndComplianceLevel": null, "stndComplianceType": null, "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": "PASTE" }, { "id": "B4FB38E5-DD24-4176-A757-A6A14B2C7EA5", "defKey": "address", "defName": "详细地址", "intro": null, "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 255, "numScale": null, "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": null, "stndFieldId": null, "stndDictKey": null, "stndFieldKey": null, "stndComplianceLevel": null, "stndComplianceType": null, "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": "PASTE" }, { "id": "70D04DAC-AE65-4C84-BDCF-4ED4465D484B", "defKey": "lng", "defName": "经度", "intro": null, "baseDataType": "DOUBLE", "bizDomainType": "", "dbDataType": "DOUBLE", "dataLen": null, "numScale": null, "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "0", "stndDictId": null, "stndFieldId": null, "stndDictKey": null, "stndFieldKey": null, "stndComplianceLevel": null, "stndComplianceType": null, "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": "PASTE" }, { "id": "1CC4F506-64C5-4882-B880-7553E3B91CA6", "defKey": "lat", "defName": "纬度", "intro": null, "baseDataType": "DOUBLE", "bizDomainType": "", "dbDataType": "DOUBLE", "dataLen": null, "numScale": null, "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": null, "stndDictId": null, "stndFieldId": null, "stndDictKey": null, "stndFieldKey": null, "stndComplianceLevel": null, "stndComplianceType": null, "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": "PASTE" }, { "id": "465B8DE0-CBA3-48AD-BE5C-74AC8414854C", "defKey": "creator_id", "defName": "创建人 Id", "intro": " sys_user.id", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "3838BCFD-CB87-4FF9-AAD9-BC722F6261D6", "defKey": "modifier_id", "defName": "修改人 Id", "intro": " sys_user.id", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": [], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "86E987F7-BCDE-47C9-BE16-55D5944BDCB0", "defKey": "create_time", "defName": "创建时间", "intro": "", "baseDataType": "DATETIME", "bizDomainType": "", "dbDataType": "DATETIME", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": [], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "B9CB3969-D9D3-4069-ABCB-DB181101B9A5", "defKey": "modify_time", "defName": "修改时间", "intro": "", "baseDataType": "DATETIME", "bizDomainType": "", "dbDataType": "DATETIME", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": [], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "BF60EF09-20EA-41CF-AD26-AEC923D100D0", "defKey": "deleted", "defName": "是否删除", "intro": " 0-->未删除、1-->已删除", "baseDataType": "TINYINT", "bizDomainType": "", "dbDataType": "TINYINT", "dataLen": 1, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "0", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": [], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" } ], "indexes": [] }, { "id": "DECB0762-9BE3-429A-81F7-891B7C960B04", "schemaName": null, "defKey": "cst_customer", "defName": "客户信息", "intro": "", "type": "P", "fields": [ { "id": "09854DFF-61E6-4C00-ADC5-66F9B1708153", "defKey": "id", "defName": "Id", "intro": "", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 1, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "14C8CD6D-9945-48AC-B4DB-9876B85FA61D", "defKey": "user_id", "defName": "用户 Id", "intro": "一个用户可以有多个身份", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "UI" }, { "id": "62E2255A-F990-47D7-A0B5-B817B82D62E3", "defKey": "identity_category", "defName": "身份类型", "intro": "多个身份多条数据", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 16, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "identity_category", "stndFieldId": "", "stndDictKey": "identity_category", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "Manual", "dictItems": [ { "itemKey": "PingTai", "itemName": "平台", "parentKey": "", "intro": "", "id": "F9E5B2B3-3E58-4B22-88F6-C3925BDD4EFF" }, { "itemKey": "ChanFei", "itemName": "产废方", "parentKey": "", "intro": "", "id": "DAE6A790-C2D0-4972-9491-FEAF67E5B00C" }, { "itemKey": "YunShu", "itemName": "运输方", "parentKey": "", "intro": "", "id": "BDD02160-F9E7-4E0B-A227-008E0E0DCBB9" }, { "itemKey": "XiaoNa", "itemName": "消纳方", "parentKey": "", "intro": "", "id": "19C7D008-74BD-4478-8705-D5EB03C54DA5" }, { "itemKey": "CaiGou", "itemName": "采购方", "parentKey": "", "intro": "", "id": "0EF79E9D-AF63-43B5-A7CB-645CA1C01597" }, { "itemKey": "SiJi", "itemName": "司机", "parentKey": "", "intro": "", "id": "365597A9-A254-466D-A270-48F345A80BD5" } ], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "6A72C42D-5DF7-425F-B444-FD4FB5B2CEA0", "defKey": "org_id", "defName": "组织信息 Id", "intro": "cst_org.id", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 0, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "UI" }, { "id": "1A5E6FA5-5A9A-4B7A-A13E-8B5D87B0E0A4", "defKey": "customer_name", "defName": "客户姓名", "intro": null, "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 255, "numScale": null, "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": null, "stndDictId": null, "stndFieldId": null, "stndDictKey": null, "stndFieldKey": null, "stndComplianceLevel": null, "stndComplianceType": null, "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": "PASTE" }, { "id": "6632EF0C-8E04-4DCC-A09A-877B5A82B351", "defKey": "phone", "defName": "客户联系电话", "intro": null, "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 20, "numScale": null, "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": null, "stndDictId": null, "stndFieldId": null, "stndDictKey": null, "stndFieldKey": null, "stndComplianceLevel": null, "stndComplianceType": null, "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": "PASTE" }, { "id": "73F1C5E6-5591-4A45-9066-B03D773BFD81", "defKey": "settlement_way", "defName": "结算方式", "intro": "", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 16, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "'XianFu'", "stndDictId": "settlement_way", "stndFieldId": "", "stndDictKey": "settlement_way", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "Manual", "dictItems": [ { "itemKey": "YueJie", "itemName": "月结", "parentKey": "", "intro": "", "id": "21E8CE9A-A4E4-43EC-802F-C62332F485CE" }, { "itemKey": "YuE", "itemName": "余额", "parentKey": "", "intro": "", "id": "1E3F7458-C19E-481F-A6BB-881CB6E576CD" }, { "itemKey": "XianFu", "itemName": "现付", "parentKey": "", "intro": "", "id": "02F37949-4DCD-4BF8-93DB-76D974A1BC47" } ], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "093B92AA-B33B-4362-B091-564B271679AD", "defKey": "manager", "defName": "是否管理员", "intro": "是否为当前的组织管理员,0-->否、1-->是", "baseDataType": "TINYINT", "bizDomainType": "", "dbDataType": "TINYINT", "dataLen": 1, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "UI" }, { "id": "304F29BE-D238-4ABA-BB54-AAFF00126CC3", "defKey": "creator_id", "defName": "创建人 Id", "intro": "sys_user.id", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "9D32B608-D5E3-4F6D-92CD-020CF45166E0", "defKey": "modifier_id", "defName": "修改人 Id", "intro": "sys_user.id", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": [], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "6DB5685B-E380-45AE-BFD6-991BEE95C127", "defKey": "create_time", "defName": "创建时间", "intro": "", "baseDataType": "DATETIME", "bizDomainType": "", "dbDataType": "DATETIME", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": [], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "FCB7958D-5504-4223-9573-BE66E844B078", "defKey": "modify_time", "defName": "修改时间", "intro": "", "baseDataType": "DATETIME", "bizDomainType": "", "dbDataType": "DATETIME", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": [], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "BDC5A81F-7A16-437C-A4ED-77544617A071", "defKey": "deleted", "defName": "是否删除", "intro": "0-->未删除、1-->已删除", "baseDataType": "TINYINT", "bizDomainType": "", "dbDataType": "TINYINT", "dataLen": 1, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "0", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": [], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" } ], "indexes": [] }, { "id": "718C57B0-4799-48E1-8651-57527A3BFF8B", "schemaName": null, "defKey": "cst_truck", "defName": "车辆信息", "intro": "", "type": "P", "fields": [ { "id": "1EFCD46E-726C-4EA4-8405-FAAD1C783FB5", "defKey": "id", "defName": "Id", "intro": "", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 1, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": [], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "FAE2B279-DF0D-4687-98CE-C551D28972C7", "defKey": "customer_id", "defName": "归属客户 Id", "intro": "cst_customer.id", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "D3603202-48B0-46D6-87B6-BC4943E82C58", "defKey": "org_id", "defName": "归属组织", "intro": "", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 0, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "7E3DB6C8-9954-4E57-839D-BD514764EA3A", "defKey": "license_plate", "defName": "车牌", "intro": null, "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 20, "numScale": null, "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": null, "stndDictId": null, "stndFieldId": null, "stndDictKey": null, "stndFieldKey": null, "stndComplianceLevel": null, "stndComplianceType": null, "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": "PASTE" }, { "id": "B5F19529-48CD-4B02-AC8D-155CB8ED0B67", "defKey": "license_plate_color", "defName": "车牌颜色", "intro": "字典代码:license_plate_color", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 32, "numScale": "", "primaryKey": 0, "notNull": 0, "autoIncrement": 0, "defaultValue": "", "stndDictId": "license_plate_color", "stndFieldId": "", "stndDictKey": "license_plate_color", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "Manual", "dictItems": [ { "itemKey": "LanBai", "itemName": "蓝底白字", "parentKey": "", "intro": "小型、微型载客汽车,轻型、微型载货汽车,轻型、微型专项作业车等常规小型民用车辆", "id": "7242D46D-0C9D-49CA-8E64-B20916AEC437" }, { "itemKey": "HuangHei", "itemName": "黄底黑字", "parentKey": "", "intro": "中型、大型载客汽车,重型、中型载货汽车,挂车,客车,教练汽车,低速载货汽车等", "id": "8EE40368-FFA6-4EC1-A2C2-BFEB21415C49" }, { "itemKey": "BianLvHei", "itemName": "渐变绿底黑字", "parentKey": "", "intro": "小型、微型纯电动载客汽车、插电式混合动力(含增程式)小型载客汽车", "id": "CA469884-03B0-4017-960F-8CB32794AFA1" }, { "itemKey": "HuangLvHei", "itemName": "黄绿双拼底黑字", "parentKey": "", "intro": "大型纯电动载客 / 载货汽车、插电式混合动力大型汽车、新能源挂车等", "id": "26886277-CA44-481D-B6C2-94C4139E563A" }, { "itemKey": "LvBai", "itemName": "绿底白字", "parentKey": "", "intro": "符合标准的农用运输车、拖拉机运输机组等农业机械车辆", "id": "E351307F-3AE3-4EEF-BBDD-A977A7D5586D" } ], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "UI" }, { "id": "505C54D8-41F8-4A42-A898-8316979B4513", "defKey": "truck_license", "defName": "行驶证图片", "intro": null, "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 255, "numScale": null, "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": null, "stndDictId": null, "stndFieldId": null, "stndDictKey": null, "stndFieldKey": null, "stndComplianceLevel": null, "stndComplianceType": null, "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": "PASTE" }, { "id": "A9B789BE-8B48-4C7A-B001-DE65D07B7ED7", "defKey": "vn_code", "defName": "车架号", "intro": null, "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 64, "numScale": null, "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": null, "stndDictId": null, "stndFieldId": null, "stndDictKey": null, "stndFieldKey": null, "stndComplianceLevel": null, "stndComplianceType": null, "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": "PASTE" }, { "id": "BE19D8AF-C716-4B1D-ADF2-9593F34C4813", "defKey": "qualification", "defName": "合格证图片", "intro": null, "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 255, "numScale": null, "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": null, "stndDictId": null, "stndFieldId": null, "stndDictKey": null, "stndFieldKey": null, "stndComplianceLevel": null, "stndComplianceType": null, "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": "PASTE" }, { "id": "EB79C2D2-4880-454C-930E-DAFE351C9A07", "defKey": "carrying_capacity", "defName": "最大载重", "intro": "单位:千克", "baseDataType": "INT", "bizDomainType": "", "dbDataType": "INT", "dataLen": null, "numScale": null, "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": null, "stndDictId": null, "stndFieldId": null, "stndDictKey": null, "stndFieldKey": null, "stndComplianceLevel": null, "stndComplianceType": null, "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": "PASTE" }, { "id": "2E24E576-DA15-4A1A-9926-6056A17A5637", "defKey": "tare_weight", "defName": "皮重", "intro": "单位:千克", "baseDataType": "INT", "bizDomainType": "", "dbDataType": "INT", "dataLen": null, "numScale": null, "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": null, "stndDictId": null, "stndFieldId": null, "stndDictKey": null, "stndFieldKey": null, "stndComplianceLevel": null, "stndComplianceType": null, "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": "PASTE" }, { "id": "7945761E-B26D-4DDC-BA19-70C4D98FE4C1", "defKey": "license_start_date", "defName": "行驶证有效期", "intro": null, "baseDataType": "DATE", "bizDomainType": "", "dbDataType": "DATE", "dataLen": "", "numScale": null, "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": null, "stndFieldId": null, "stndDictKey": null, "stndFieldKey": null, "stndComplianceLevel": null, "stndComplianceType": null, "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": "PASTE" }, { "id": "020DEC28-1F6C-4E2B-9623-CEE38A3FB4EC", "defKey": "license_end_date", "defName": "行驶证有效期", "intro": "", "baseDataType": "DATE", "bizDomainType": "", "dbDataType": "DATE", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "UI" }, { "id": "B28A0666-5CF3-4D96-A876-D2BC07677BFA", "defKey": "qualification_start_date", "defName": "合格证有效期", "intro": null, "baseDataType": "DATE", "bizDomainType": "", "dbDataType": "DATE", "dataLen": "", "numScale": null, "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": null, "stndFieldId": null, "stndDictKey": null, "stndFieldKey": null, "stndComplianceLevel": null, "stndComplianceType": null, "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": "PASTE" }, { "id": "CFE522E1-02C1-413D-A3B8-A01FF0256A73", "defKey": "qualification_end_date", "defName": "合格证有效期", "intro": null, "baseDataType": "DATE", "bizDomainType": "", "dbDataType": "DATE", "dataLen": "", "numScale": null, "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": null, "stndFieldId": null, "stndDictKey": null, "stndFieldKey": null, "stndComplianceLevel": null, "stndComplianceType": null, "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": "PASTE" }, { "id": "BAD4F507-DCBD-4EE1-8685-3969FA4AC5D0", "defKey": "truck_category", "defName": "车辆类型", "intro": null, "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 255, "numScale": null, "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": null, "stndFieldId": null, "stndDictKey": null, "stndFieldKey": null, "stndComplianceLevel": null, "stndComplianceType": null, "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": "PASTE" }, { "id": "5C7F1E15-6F33-43FC-AF2C-10849008E06E", "defKey": "picture", "defName": "车辆图片", "intro": null, "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 255, "numScale": null, "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": null, "stndDictId": null, "stndFieldId": null, "stndDictKey": null, "stndFieldKey": null, "stndComplianceLevel": null, "stndComplianceType": null, "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": "PASTE" }, { "id": "20A5707E-1063-45FE-BC7E-CC2E0F74FF12", "defKey": "busy", "defName": "忙碌中", "intro": null, "baseDataType": "TINYINT", "bizDomainType": "", "dbDataType": "TINYINT", "dataLen": 1, "numScale": null, "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "0", "stndDictId": null, "stndFieldId": null, "stndDictKey": null, "stndFieldKey": null, "stndComplianceLevel": null, "stndComplianceType": null, "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": "PASTE" }, { "id": "653C9BE5-4E40-4AA8-B336-458BD8223DB6", "defKey": "creator_id", "defName": "创建人 Id", "intro": " sys_user.id", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "8B50C397-0ACA-4501-9E67-23E3ADB6577F", "defKey": "modifier_id", "defName": "修改人 Id", "intro": " sys_user.id", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": [], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "ABD071EE-06D0-4BF2-8F74-9F6CABF86DA2", "defKey": "create_time", "defName": "创建时间", "intro": "", "baseDataType": "DATETIME", "bizDomainType": "", "dbDataType": "DATETIME", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": [], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "FD6086F7-EB89-4AA4-8501-1C829AE77CAC", "defKey": "modify_time", "defName": "修改时间", "intro": "", "baseDataType": "DATETIME", "bizDomainType": "", "dbDataType": "DATETIME", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": [], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "BD7DBE88-568E-41D6-9A78-D635619C89C3", "defKey": "deleted", "defName": "是否删除", "intro": " 0-->未删除、1-->已删除", "baseDataType": "TINYINT", "bizDomainType": "", "dbDataType": "TINYINT", "dataLen": 1, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "0", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": [], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" } ], "indexes": [] }, { "id": "F13139EC-3554-4C1E-8C09-1A6C238C539A", "schemaName": null, "defKey": "cst_order", "defName": "收/销订单", "intro": "", "type": "P", "fields": [ { "id": "4B18692F-1CB5-4710-9058-946FF53D67F4", "defKey": "id", "defName": "Id", "intro": "", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 1, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": [], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "54EF1F1F-F5AA-4D50-A6EE-A44000DA7861", "defKey": "sn", "defName": "订单编号", "intro": null, "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 128, "numScale": null, "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": null, "stndDictId": null, "stndFieldId": null, "stndDictKey": null, "stndFieldKey": null, "stndComplianceLevel": null, "stndComplianceType": null, "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": "PASTE" }, { "id": "96042127-28C6-4F42-A530-196619E7CA4E", "defKey": "project_id", "defName": "项目 Id", "intro": "", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 0, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "UI" }, { "id": "7ACA37F0-0E64-441A-88B5-2C84543E08CA", "defKey": "user_id", "defName": "下单人 Id", "intro": "sys_user.id", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": null, "numScale": null, "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": null, "stndDictId": null, "stndFieldId": null, "stndDictKey": null, "stndFieldKey": null, "stndComplianceLevel": null, "stndComplianceType": null, "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": "PASTE" }, { "id": "82565AA9-1B95-4B58-AA07-6A183EDDB578", "defKey": "customer_id", "defName": "下单人客户 Id", "intro": "cst_customer.id", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "883FC51F-E15A-43AB-BEC5-E6BE0AB938F7", "defKey": "contacts", "defName": "下单人姓名", "intro": null, "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 255, "numScale": null, "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": null, "stndFieldId": null, "stndDictKey": null, "stndFieldKey": null, "stndComplianceLevel": null, "stndComplianceType": null, "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": "PASTE" }, { "id": "D763B88D-B4C1-449B-AD77-301F1E4931B4", "defKey": "phone", "defName": "下单人联系方式", "intro": null, "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 20, "numScale": null, "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": null, "stndFieldId": null, "stndDictKey": null, "stndFieldKey": null, "stndComplianceLevel": null, "stndComplianceType": null, "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": "PASTE" }, { "id": "80BEB814-6E96-4D2A-8DED-3D65C3E0DA8A", "defKey": "order_time", "defName": "下单时间", "intro": "", "baseDataType": "DATETIME", "bizDomainType": "", "dbDataType": "DATETIME", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "UI" }, { "id": "ACB64DFA-ABE7-4A79-814A-8A313F0A3681", "defKey": "order_category", "defName": "订单类型", "intro": "字典代码:order_category", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 16, "numScale": null, "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": null, "stndDictId": "order_category", "stndFieldId": null, "stndDictKey": "order_category", "stndFieldKey": null, "stndComplianceLevel": null, "stndComplianceType": null, "dictFrom": "Manual", "dictItems": [ { "itemKey": "HuiShouYuYue", "itemName": "回收预约单", "parentKey": "", "intro": "", "id": "1267B213-0A3F-45BB-AFEE-BC606F3674A2" }, { "itemKey": "XiaoShouYuYue", "itemName": "销售预约单", "parentKey": "", "intro": "", "id": "AE84E38B-3003-4C20-A30C-35E9DFE5753C" }, { "itemKey": "DuanBoRu", "itemName": "短驳入", "parentKey": "", "intro": "", "id": "58D7C051-FEB5-4CC5-A226-7BBA48DC80A0" }, { "itemKey": "DuanBoChu", "itemName": "短驳出", "parentKey": "", "intro": "", "id": "C601A6DA-B44F-449E-8DBD-732B26DBC362" } ], "fieldTier": "", "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": "PASTE" }, { "id": "7DD616F9-35B0-488A-A89F-57A1C3AA388C", "defKey": "order_status", "defName": "订单状态", "intro": "字典代码:order_status", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 16, "numScale": null, "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": null, "stndDictId": "order_status", "stndFieldId": null, "stndDictKey": "order_status", "stndFieldKey": null, "stndComplianceLevel": null, "stndComplianceType": null, "dictFrom": "Manual", "dictItems": [ { "itemKey": "YiYuYue", "itemName": "已预约", "parentKey": "", "intro": "未指派运输公司", "id": "38D8D1E5-2E6F-4B6B-9C7E-A5140B35BDC6" }, { "itemKey": "JinXingZhong", "itemName": "进行中", "parentKey": "", "intro": "", "id": "D023372F-D662-4D03-B1C9-8687DA182E3E" }, { "itemKey": "YiWanCheng", "itemName": "已完成", "parentKey": "", "intro": "最终态,完成前要支付", "id": "0F257587-6965-4BF3-B245-C1BFC3AA13B4" }, { "itemKey": "YiQuXiao", "itemName": "已取消", "parentKey": "", "intro": "最终态,取消前要退款", "id": "69E7D072-877C-4A2B-9C7C-F29A31BC960E" } ], "fieldTier": "", "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": "PASTE" }, { "id": "C485E884-11C4-4034-A2F4-CE0CFCA5E4DD", "defKey": "finish_time", "defName": "完结时间", "intro": null, "baseDataType": "DATETIME", "bizDomainType": "", "dbDataType": "DATETIME", "dataLen": null, "numScale": null, "primaryKey": 0, "notNull": 0, "autoIncrement": 0, "defaultValue": null, "stndDictId": null, "stndFieldId": null, "stndDictKey": null, "stndFieldKey": null, "stndComplianceLevel": null, "stndComplianceType": null, "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": "PASTE" }, { "id": "508B5F86-CF5D-45B7-A1D9-391F764B87E3", "defKey": "trans_org_id", "defName": "运输组织 Id", "intro": "cst_org.id", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": null, "numScale": null, "primaryKey": 0, "notNull": 0, "autoIncrement": 0, "defaultValue": null, "stndDictId": null, "stndFieldId": null, "stndDictKey": null, "stndFieldKey": null, "stndComplianceLevel": null, "stndComplianceType": null, "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": "PASTE" }, { "id": "4A96FD38-A822-426E-9812-43E2D77CD6BC", "defKey": "trans_customer_id", "defName": "运输方客户 Id", "intro": "", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "3772AFBC-EA5F-484C-AD28-DCE9B8A50F5C", "defKey": "assignment_trans_time", "defName": "指派运输公司时间", "intro": "", "baseDataType": "DATETIME", "bizDomainType": "", "dbDataType": "DATETIME", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 0, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "UI" }, { "id": "5DEF3B34-F324-48D1-AF0C-53972E632DCD", "defKey": "station_id", "defName": "站点 Id", "intro": "cst_station.id", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": null, "numScale": null, "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": null, "stndFieldId": null, "stndDictKey": null, "stndFieldKey": null, "stndComplianceLevel": null, "stndComplianceType": null, "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": "PASTE" }, { "id": "6E0AACD6-9461-494C-8F6C-156844C7064A", "defKey": "station_name", "defName": "站点名称", "intro": "cst_station.station.name", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 128, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "UI" }, { "id": "E7D98496-F1E2-46A3-8E61-D41F35E6E792", "defKey": "trans_distance", "defName": "运距", "intro": "单位:米", "baseDataType": "INT", "bizDomainType": "", "dbDataType": "INT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "1A3CD046-681F-42F1-ABBD-47FC6C0716F6", "defKey": "estimated_quantity", "defName": "预估量", "intro": "", "baseDataType": "INT", "bizDomainType": "", "dbDataType": "INT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "UI" }, { "id": "F8EFCA6C-88CD-44BA-A2CB-F773612418C0", "defKey": "estimated_train_num", "defName": "预估车数", "intro": "", "baseDataType": "INT", "bizDomainType": "", "dbDataType": "INT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "UI" }, { "id": "BAEE0E59-D482-40B7-BAE9-07512D7D0C8E", "defKey": "goods_id", "defName": "产品 Id", "intro": "", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "UI" }, { "id": "EB4C32CA-7179-416F-98C6-B492B38D2366", "defKey": "goods_name", "defName": "产品名称", "intro": "", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 128, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "UI" }, { "id": "A1F532BF-ABA2-4E53-A82A-4EFBE38F57EA", "defKey": "unit", "defName": "计量单位", "intro": "字典代码:unit", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 16, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "unit", "stndFieldId": "", "stndDictKey": "unit", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "Manual", "dictItems": [ { "itemKey": "Che", "itemName": "车", "parentKey": "", "intro": "", "id": "024EEBD1-5C0E-4AA4-A5EA-3E2BAA80628A" }, { "itemKey": "Fang", "itemName": "方", "parentKey": "", "intro": "", "id": "10F8E718-DADC-4ACA-A522-6EDF8B50A4EB" }, { "itemKey": "GongLi", "itemName": "公里", "parentKey": "", "intro": "", "id": "9CE6E51D-6066-451B-81C3-197B3B8D2D06" }, { "itemKey": "Dun", "itemName": "吨", "parentKey": "", "intro": "", "id": "9936866A-FAFA-4CE5-8577-2663B11F662F" } ], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "439B7E38-FE75-42C5-8606-E6A1420E9AC0", "defKey": "customer_memo", "defName": "客户备注", "intro": null, "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 512, "numScale": null, "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "''", "stndDictId": null, "stndFieldId": null, "stndDictKey": null, "stndFieldKey": null, "stndComplianceLevel": null, "stndComplianceType": null, "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": "PASTE" }, { "id": "D21BF29B-542A-49F8-8F7F-F186A32AFA2B", "defKey": "creator_id", "defName": "创建人 Id", "intro": " sys_user.id", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "3D005849-86B8-482E-B2B7-4164FC366072", "defKey": "modifier_id", "defName": "修改人 Id", "intro": " sys_user.id", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": [], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "D9A7D167-1973-498F-AE69-5245744F2A46", "defKey": "create_time", "defName": "创建时间", "intro": "", "baseDataType": "DATETIME", "bizDomainType": "", "dbDataType": "DATETIME", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": [], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "FA7D42D7-05A9-463E-BB7E-DD3F234F5D6B", "defKey": "modify_time", "defName": "修改时间", "intro": "", "baseDataType": "DATETIME", "bizDomainType": "", "dbDataType": "DATETIME", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": [], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "282F8E9E-37AA-4E88-936F-0669D3BFD911", "defKey": "deleted", "defName": "是否删除", "intro": " 0-->未删除、1-->已删除", "baseDataType": "TINYINT", "bizDomainType": "", "dbDataType": "TINYINT", "dataLen": 1, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "0", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": [], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" } ], "indexes": [] }, { "id": "38B910DC-4D79-448E-9EA4-CED1E92B03DE", "schemaName": null, "defKey": "cst_order_trans", "defName": "运输信息", "intro": "", "type": "P", "fields": [ { "id": "BA82BEB0-62A6-410C-B352-68478E6656A6", "defKey": "id", "defName": "Id", "intro": "", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 1, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": [], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "7F1C2D36-32D0-49E9-9C2C-7E7193C46D8B", "defKey": "train_num", "defName": "车次", "intro": "", "baseDataType": "INT", "bizDomainType": "", "dbDataType": "INT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "UI" }, { "id": "C42086C9-14DA-4E59-8C95-3CE20BD542A1", "defKey": "order_id", "defName": "订单 Id", "intro": "", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "UI" }, { "id": "A74661B9-E5C6-4535-97F7-E66404357A23", "defKey": "trans_status", "defName": "运输状态", "intro": "字典代码:trans_status", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 16, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": null, "stndDictId": "trans_status", "stndFieldId": null, "stndDictKey": "trans_status", "stndFieldKey": null, "stndComplianceLevel": null, "stndComplianceType": null, "dictFrom": "Manual", "dictItems": [ { "itemKey": "DaiPaiDan", "itemName": "待派单", "parentKey": "", "intro": "", "id": "B17244EA-76FD-4BE6-BB8E-B5F441D48D05" }, { "itemKey": "DaiJieDan", "itemName": "待接单", "parentKey": "", "intro": "", "id": "D5B76D1A-30F9-4C35-B783-9F20BEF8684E" }, { "itemKey": "YiJieDan", "itemName": "已接单", "parentKey": "", "intro": "", "id": "F2470356-D053-4911-B1E3-30B8DA15098A" }, { "itemKey": "YunShuZhong", "itemName": "运输中", "parentKey": "", "intro": "", "id": "685AAEAC-3D43-4ACC-B8B5-150F9C97C328" }, { "itemKey": "YiJinChang", "itemName": "已进场", "parentKey": "", "intro": "", "id": "1065BA60-DB2A-4854-BCA3-720E8A388A82" }, { "itemKey": "YiChuChang", "itemName": "已出场", "parentKey": "", "intro": "", "id": "104DA05C-E8F3-47B6-938F-01451E4C537A" }, { "itemKey": "YiWanCheng", "itemName": "已完成", "parentKey": "", "intro": "", "id": "2F5144B0-93BC-40A4-AA96-465FD788DA83" }, { "itemKey": "YiQuXiao", "itemName": "已取消", "parentKey": "", "intro": "", "id": "D7D2947C-5945-436E-A3CB-949A2FC94C8D" } ], "fieldTier": "", "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": "PASTE" }, { "id": "C2E1E713-2BE9-4270-A41B-3CEB96B09410", "defKey": "lane", "defName": "车道名称", "intro": "", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 128, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "''", "stndDictId": null, "stndFieldId": null, "stndDictKey": null, "stndFieldKey": null, "stndComplianceLevel": null, "stndComplianceType": null, "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": "PASTE" }, { "id": "9FFCF842-B143-4A61-8129-F8C3180A8287", "defKey": "assignment_driver_time", "defName": "指派司机时间", "intro": "", "baseDataType": "DATETIME", "bizDomainType": "", "dbDataType": "DATETIME", "dataLen": null, "numScale": null, "primaryKey": 0, "notNull": 0, "autoIncrement": 0, "defaultValue": "", "stndDictId": null, "stndFieldId": null, "stndDictKey": null, "stndFieldKey": null, "stndComplianceLevel": null, "stndComplianceType": null, "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": "PASTE" }, { "id": "EC2668F8-75C5-4A40-B0D2-8FEFA5F52237", "defKey": "driver_confirm_time", "defName": "司机确认接单时间", "intro": "", "baseDataType": "DATETIME", "bizDomainType": "", "dbDataType": "DATETIME", "dataLen": null, "numScale": null, "primaryKey": 0, "notNull": 0, "autoIncrement": 0, "defaultValue": "", "stndDictId": null, "stndFieldId": null, "stndDictKey": null, "stndFieldKey": null, "stndComplianceLevel": null, "stndComplianceType": null, "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": "PASTE" }, { "id": "FA38D95F-FD89-4485-AA48-610465C0679E", "defKey": "trans_time", "defName": "开始运输时间", "intro": "", "baseDataType": "DATETIME", "bizDomainType": "", "dbDataType": "DATETIME", "dataLen": null, "numScale": null, "primaryKey": 0, "notNull": 0, "autoIncrement": 0, "defaultValue": null, "stndDictId": null, "stndFieldId": null, "stndDictKey": null, "stndFieldKey": null, "stndComplianceLevel": null, "stndComplianceType": null, "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": "PASTE" }, { "id": "15AFA9A9-3138-4CE7-B0C1-7480E6CC76E3", "defKey": "finish_time", "defName": "完结时间", "intro": null, "baseDataType": "DATETIME", "bizDomainType": "", "dbDataType": "DATETIME", "dataLen": null, "numScale": null, "primaryKey": 0, "notNull": 0, "autoIncrement": 0, "defaultValue": null, "stndDictId": null, "stndFieldId": null, "stndDictKey": null, "stndFieldKey": null, "stndComplianceLevel": null, "stndComplianceType": null, "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": "PASTE" }, { "id": "E772F598-B948-4174-A402-E8A50E883326", "defKey": "checker_id", "defName": "看料员 Id", "intro": "sys_user.id", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": null, "numScale": null, "primaryKey": 0, "notNull": 0, "autoIncrement": 0, "defaultValue": null, "stndDictId": null, "stndFieldId": null, "stndDictKey": null, "stndFieldKey": null, "stndComplianceLevel": null, "stndComplianceType": null, "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": "PASTE" }, { "id": "CDF0B1CE-16C7-4B1C-AE4D-8A33E04303F3", "defKey": "check_status", "defName": "勘料状态", "intro": "字典代码:check_status", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 16, "numScale": null, "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": null, "stndDictId": "check_status", "stndFieldId": null, "stndDictKey": "check_status", "stndFieldKey": null, "stndComplianceLevel": null, "stndComplianceType": null, "dictFrom": "Manual", "dictItems": [ { "itemKey": "Wu", "itemName": "无需勘料", "parentKey": "", "intro": "", "id": "C67DD315-1CCB-49FB-A16D-0274A7EE58C1" }, { "itemKey": "YiKanLiao", "itemName": "已勘料", "parentKey": "", "intro": "", "id": "FC04B43F-73D2-45FC-A9FA-9B6E1DF13EFD" }, { "itemKey": "WeiKanLiao", "itemName": "未勘料", "parentKey": "", "intro": "", "id": "CAFDAC37-1B83-44E9-91E4-CC52B8B45CBF" } ], "fieldTier": "", "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": "PASTE" }, { "id": "5176C4F2-651B-43DA-9184-E5E93DBB1A2E", "defKey": "check_time", "defName": "勘料时间", "intro": "", "baseDataType": "DATETIME", "bizDomainType": "", "dbDataType": "DATETIME", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 0, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "UI" }, { "id": "7CA0664E-9D97-4A14-AA3F-5BBA47236F5D", "defKey": "check_photo", "defName": "勘料照片", "intro": "", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 255, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "''", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "UI" }, { "id": "4BA76DC5-5190-451E-9D8C-A05F8D7AD260", "defKey": "checker_memo", "defName": "勘料员备注", "intro": null, "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 512, "numScale": null, "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "''", "stndDictId": null, "stndFieldId": null, "stndDictKey": null, "stndFieldKey": null, "stndComplianceLevel": null, "stndComplianceType": null, "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": "PASTE" }, { "id": "EC5E439D-4BC3-41FF-91CC-586E68D8615F", "defKey": "driver_id", "defName": "司机 Id", "intro": "", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 0, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "UI" }, { "id": "1027631F-8D8A-453D-8688-B890363074CC", "defKey": "driver_customer_id", "defName": "司机所属客户 Id", "intro": "cst_customer.id", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 0, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "160899D7-1A2F-4AAA-B418-765E5984C42F", "defKey": "driver_user_id", "defName": "司机所属用户 Id", "intro": "", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 0, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "UI" }, { "id": "C12C0AC2-0FCF-4D79-8F74-F30551FCB8B8", "defKey": "truck_customer_id", "defName": "归属客户 Id", "intro": "cst_customer.id", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 0, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "47FC0F92-F55F-4461-AD86-68FC5EF748EE", "defKey": "truck_org_id", "defName": "归属组织", "intro": "", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 0, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "E867EDED-9E3D-4EB0-9276-23BE8A3574CE", "defKey": "truck_id", "defName": "车辆 Id", "intro": "", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 0, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "UI" }, { "id": "B1E3D7FD-2952-4AB9-BD83-8B0DF8E02E3A", "defKey": "truck_license_plate", "defName": "车牌号", "intro": "", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 20, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "''", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "UI" }, { "id": "63C17A2A-CD26-484F-8D21-1181144C9B88", "defKey": "history_tare_weight", "defName": "历史皮重", "intro": "", "baseDataType": "INT", "bizDomainType": "", "dbDataType": "INT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "0", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "UI" }, { "id": "E139A1BC-4A5F-405C-84BD-0963E8DC5914", "defKey": "rough_weight", "defName": "毛重", "intro": "单位:千克", "baseDataType": "INT", "bizDomainType": "", "dbDataType": "INT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "0", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "UI" }, { "id": "08DFE4CD-7BBD-469E-A4C2-59441BF72EAE", "defKey": "tare_weight", "defName": "皮重", "intro": "单位:千克", "baseDataType": "INT", "bizDomainType": "", "dbDataType": "INT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "0", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "UI" }, { "id": "83C2781E-6AEF-4C5E-A3AE-1A00E25E5AB5", "defKey": "settle_weight", "defName": "净重", "intro": "单位:千克", "baseDataType": "INT", "bizDomainType": "", "dbDataType": "INT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "0", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "UI" }, { "id": "C42BA37B-D0FB-4403-A14D-D9FC987693B2", "defKey": "trans_distance", "defName": "运距", "intro": "单位:米", "baseDataType": "INT", "bizDomainType": "", "dbDataType": "INT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "0", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "UI" }, { "id": "A1F02DEE-877C-4FEA-AA24-2F7CE6CD12A7", "defKey": "in_front_photo", "defName": "进场车头照片", "intro": "", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 255, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "''", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "UI" }, { "id": "3FE031F0-2E22-4EDB-B440-9E54227DFD54", "defKey": "in_body_photo", "defName": "进场车斗照片", "intro": "", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 255, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "''", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "UI" }, { "id": "BE41C5D8-AE8D-431D-AC1D-C46571516721", "defKey": "out_front_photo", "defName": "出场车头照片", "intro": "", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 255, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "''", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "UI" }, { "id": "6178369D-7CDB-4645-ACAF-4FB7920DD907", "defKey": "out_body_photo", "defName": "出场车斗照片", "intro": "", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 255, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "''", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "UI" }, { "id": "020E3B61-5CE2-4900-999B-EDD1CB15A5B3", "defKey": "in_time", "defName": "进场时间", "intro": "", "baseDataType": "DATETIME", "bizDomainType": "", "dbDataType": "DATETIME", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 0, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "UI" }, { "id": "633D85AC-D560-464F-B8E2-F845B6DAAC18", "defKey": "out_time", "defName": "出场时间", "intro": "", "baseDataType": "DATETIME", "bizDomainType": "", "dbDataType": "DATETIME", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 0, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "UI" } ], "indexes": [] }, { "id": "F573B178-BE6E-48AB-8AF0-6121E7320EB9", "schemaName": null, "defKey": "cst_order_expense_items", "defName": "付费项", "intro": "", "type": "P", "fields": [ { "id": "97980599-17FA-46BF-A07B-01C97CFFA0D5", "defKey": "id", "defName": "Id", "intro": "", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 1, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": [], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "51128D85-C20F-4EDD-ADF4-3314D8998197", "defKey": "user_id", "defName": "归属用户 Id", "intro": "", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "F3E858D2-7C99-4024-B3F6-AA3DE0970AE8", "defKey": "customer_id", "defName": "归属客户 Id", "intro": "", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "D75F0752-2D4B-4EDA-A0B1-46EDEB7328F4", "defKey": "org_id", "defName": "归属组织 Id", "intro": "", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "7509E84A-2C66-4FF7-AD9D-38A4EFD21C5C", "defKey": "order_id", "defName": "订单 Id", "intro": "", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "235A6329-940A-4EF2-A594-BFD9909152E7", "defKey": "origin_expense_items_id", "defName": "源付费项 Id", "intro": "fin_expense_item.id", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "UI" }, { "id": "568436FE-1772-4E0B-8AEF-81F6F806A5BF", "defKey": "expense_item_category", "defName": "收费项目类型", "intro": "", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 16, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "expense_item_category", "stndFieldId": "", "stndDictKey": "expense_item_category", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "Manual", "dictItems": [ { "itemKey": "QiTa", "itemName": "其他", "parentKey": "", "intro": "", "id": "B4560F4E-C17C-45E6-BA46-F24447710D73" }, { "itemKey": "ChanPin", "itemName": "产品", "parentKey": "", "intro": "", "id": "1078D9EB-D7B7-4AE4-BB59-C5981DFFE609" }, { "itemKey": "YunFei", "itemName": "运费", "parentKey": "", "intro": "", "id": "FD6A4FE8-84CF-4D2A-8430-3EB2D6AA0589" } ], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "8EB5EC01-41A0-4A14-8A46-7D3E2957E97A", "defKey": "goods_id", "defName": "产品 Id", "intro": "仅当项目类型为“产品”时有值", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 0, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "850B4B65-409F-4F25-AFA0-9ABDE60AD557", "defKey": "expense_item_name", "defName": "付费项名称", "intro": "", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 128, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "DDE3CC05-BDCB-47FA-9579-95396CF4A438", "defKey": "expense_strategy", "defName": "计费策略", "intro": "字典代码:expense_strategy", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 16, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "expense_strategy", "stndFieldId": "", "stndDictKey": "expense_strategy", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "Manual", "dictItems": [ { "itemKey": "MianFei", "itemName": "免费", "parentKey": "", "intro": "", "id": "7B74209A-E0F9-4D7E-B437-A15802FAC11B" }, { "itemKey": "TanXing", "itemName": "弹性", "parentKey": "", "intro": "", "id": "B247787C-6787-41E8-BADD-5F155C62B7A9" }, { "itemKey": "GuDing", "itemName": "固定", "parentKey": "", "intro": "", "id": "D388E186-C776-495D-878E-9C57770E0992" }, { "itemKey": "DanJia", "itemName": "单价", "parentKey": "", "intro": "", "id": "F47F0617-65C6-4602-A3D3-83C0B4C99E30" } ], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "7F46BE76-A97C-4960-AD55-63D9AFC35BD9", "defKey": "unit", "defName": "计量单位", "intro": "字典代码:unit", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 16, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "unit", "stndFieldId": "", "stndDictKey": "unit", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "Manual", "dictItems": [ { "itemKey": "Che", "itemName": "车", "parentKey": "", "intro": "", "id": "024EEBD1-5C0E-4AA4-A5EA-3E2BAA80628A" }, { "itemKey": "Fang", "itemName": "方", "parentKey": "", "intro": "", "id": "10F8E718-DADC-4ACA-A522-6EDF8B50A4EB" }, { "itemKey": "GongLi", "itemName": "公里", "parentKey": "", "intro": "", "id": "9CE6E51D-6066-451B-81C3-197B3B8D2D06" }, { "itemKey": "Dun", "itemName": "吨", "parentKey": "", "intro": "", "id": "9936866A-FAFA-4CE5-8577-2663B11F662F" } ], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "95984ED8-26A5-437F-8004-C5BDAD3B7E9A", "defKey": "tax_rate", "defName": "税率", "intro": "", "baseDataType": "DECIMAL", "bizDomainType": "", "dbDataType": "DECIMAL", "dataLen": 10, "numScale": 3, "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "555713D6-B1B4-4548-9174-1574B26DFC86", "defKey": "unit_price", "defName": "单价", "intro": "单位:元,弹性模式-->每档价格", "baseDataType": "DECIMAL", "bizDomainType": "", "dbDataType": "DECIMAL", "dataLen": 16, "numScale": 2, "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "38ED21B8-8065-43F8-A461-9EE42FE0CDAA", "defKey": "initial_price", "defName": "起步价", "intro": "单位:元,<= 起步量 固定费用", "baseDataType": "DECIMAL", "bizDomainType": "", "dbDataType": "DECIMAL", "dataLen": 16, "numScale": 2, "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "FC4CD2D4-ACA6-407C-AE94-60803F0ED9D1", "defKey": "initial_quantity", "defName": "起步量", "intro": "", "baseDataType": "INT", "bizDomainType": "", "dbDataType": "INT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "45B5919A-0B50-4860-88E1-6AB3E5614EEE", "defKey": "every_quantity", "defName": "每档的量", "intro": "", "baseDataType": "INT", "bizDomainType": "", "dbDataType": "INT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "PASTE" } ], "indexes": [] }, { "id": "DF643AC9-1A78-408B-9F20-9C659BC475FA", "type": "P", "defKey": "cst_driver", "defName": "司机", "intro": null, "schemaName": null, "props": null, "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "fields": [ { "id": "EA102029-949A-445E-BA8F-BD59EF57DF29", "defKey": "id", "defName": "Id", "intro": null, "orderValue": null, "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": null, "numScale": null, "primaryKey": 1, "notNull": 1, "autoIncrement": null, "defaultValue": null, "stndDictId": null, "stndDictKey": null, "stndFieldId": null, "stndFieldKey": null, "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": null, "stndComplianceType": null, "stndComplianceLevel": null, "updatedUserId": null, "createdUserId": null }, { "id": "114C1B4D-4FCA-4E61-BE22-9EC93DD09B8D", "defKey": "user_id", "defName": "归属用户 Id", "intro": "sys_user.id", "orderValue": null, "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": null, "numScale": null, "primaryKey": null, "notNull": 1, "autoIncrement": null, "defaultValue": null, "stndDictId": null, "stndDictKey": null, "stndFieldId": null, "stndFieldKey": null, "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": null, "stndComplianceType": null, "stndComplianceLevel": null, "updatedUserId": null, "createdUserId": null }, { "id": "C322C44F-55E0-4217-AE62-F7A31A269E24", "defKey": "customer_id", "defName": "归属客户 Id", "intro": "cst_customer.id", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "4CFA28DA-7FEC-4801-AF24-E0EC059880FF", "defKey": "org_id", "defName": "归属公司 Id", "intro": "cst_org.id", "orderValue": null, "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": null, "numScale": null, "primaryKey": null, "notNull": 0, "autoIncrement": null, "defaultValue": null, "stndDictId": null, "stndDictKey": null, "stndFieldId": null, "stndFieldKey": null, "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": null, "stndComplianceType": null, "stndComplianceLevel": null, "updatedUserId": null, "createdUserId": null }, { "id": "D3A9A734-B32F-4861-894B-639D571C1909", "defKey": "driving_licence_no", "defName": "驾驶证编号", "intro": null, "orderValue": null, "baseDataType": "CHAR", "bizDomainType": "", "dbDataType": "CHAR", "dataLen": 18, "numScale": null, "primaryKey": null, "notNull": 1, "autoIncrement": null, "defaultValue": null, "stndDictId": null, "stndDictKey": null, "stndFieldId": null, "stndFieldKey": null, "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": null, "stndComplianceType": null, "stndComplianceLevel": null, "updatedUserId": null, "createdUserId": null }, { "id": "D1F18BDE-577C-4129-977C-CF50C0B92147", "defKey": "driver_name", "defName": "司机姓名", "intro": null, "orderValue": null, "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 255, "numScale": null, "primaryKey": null, "notNull": 1, "autoIncrement": null, "defaultValue": null, "stndDictId": null, "stndDictKey": null, "stndFieldId": null, "stndFieldKey": null, "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": null, "stndComplianceType": null, "stndComplianceLevel": null, "updatedUserId": null, "createdUserId": null }, { "id": "B37E5A7C-05D3-47E7-A942-3CC7FD028B07", "defKey": "phone", "defName": "手机号", "intro": null, "orderValue": null, "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 20, "numScale": null, "primaryKey": null, "notNull": 1, "autoIncrement": null, "defaultValue": null, "stndDictId": null, "stndDictKey": null, "stndFieldId": null, "stndFieldKey": null, "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": null, "stndComplianceType": null, "stndComplianceLevel": null, "updatedUserId": null, "createdUserId": null }, { "id": "7610FE82-69E1-4E7D-A58A-7DC7ECAD3F1C", "defKey": "driving_licence", "defName": "驾驶证图片", "intro": null, "orderValue": null, "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 255, "numScale": null, "primaryKey": null, "notNull": 1, "autoIncrement": null, "defaultValue": null, "stndDictId": null, "stndDictKey": null, "stndFieldId": null, "stndFieldKey": null, "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": null, "stndComplianceType": null, "stndComplianceLevel": null, "updatedUserId": null, "createdUserId": null }, { "id": "659318AE-136A-4E95-B749-F02D642A8A56", "defKey": "licence_start_time", "defName": "驾驶证有效期", "intro": null, "orderValue": null, "baseDataType": "DATE", "bizDomainType": "", "dbDataType": "DATE", "dataLen": null, "numScale": null, "primaryKey": null, "notNull": 1, "autoIncrement": null, "defaultValue": null, "stndDictId": null, "stndDictKey": null, "stndFieldId": null, "stndFieldKey": null, "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": null, "stndComplianceType": null, "stndComplianceLevel": null, "updatedUserId": null, "createdUserId": null }, { "id": "E901B6BF-3C66-4E33-8B2D-9A408C2417B6", "defKey": "licence_end_time", "defName": "驾驶证有效期", "intro": null, "orderValue": null, "baseDataType": "DATE", "bizDomainType": "", "dbDataType": "DATE", "dataLen": null, "numScale": null, "primaryKey": null, "notNull": 0, "autoIncrement": null, "defaultValue": null, "stndDictId": null, "stndDictKey": null, "stndFieldId": null, "stndFieldKey": null, "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": null, "stndComplianceType": null, "stndComplianceLevel": null, "updatedUserId": null, "createdUserId": null }, { "id": "9AF0B3F7-F1F2-4183-8DEE-4078375B8F40", "defKey": "busy", "defName": "忙碌中", "intro": null, "orderValue": null, "baseDataType": "TINYINT", "bizDomainType": "", "dbDataType": "TINYINT", "dataLen": 1, "numScale": null, "primaryKey": null, "notNull": 1, "autoIncrement": null, "defaultValue": "0", "stndDictId": null, "stndDictKey": null, "stndFieldId": null, "stndFieldKey": null, "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": null, "stndComplianceType": null, "stndComplianceLevel": null, "updatedUserId": null, "createdUserId": null }, { "id": "F45BFDF4-AF71-4F59-B661-80C4C21A6DF6", "defKey": "creator_id", "defName": "创建人 Id", "intro": "sys_user.id", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "4B5C06B5-164F-412E-A8EF-8450517760D3", "defKey": "modifier_id", "defName": "修改人 Id", "intro": " sys_user.id", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": [], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "B1FFB331-E210-45B5-9C46-B6619943B9E0", "defKey": "create_time", "defName": "创建时间", "intro": "", "baseDataType": "DATETIME", "bizDomainType": "", "dbDataType": "DATETIME", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": [], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "3FB9D047-6ECB-4EE2-A383-F418D62617B2", "defKey": "modify_time", "defName": "修改时间", "intro": "", "baseDataType": "DATETIME", "bizDomainType": "", "dbDataType": "DATETIME", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": [], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "1AAB5119-A10C-4740-BEFA-5F92F02873AC", "defKey": "deleted", "defName": "是否删除", "intro": " 0-->未删除、1-->已删除", "baseDataType": "TINYINT", "bizDomainType": "", "dbDataType": "TINYINT", "dataLen": 1, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "0", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": [], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" } ], "correlations": null, "indexes": [] }, { "id": "167D299F-EC34-4B05-97F9-C2A0F2CD034E", "schemaName": null, "defKey": "cst_station", "defName": "站点信息", "intro": "", "type": "P", "fields": [ { "id": "6170446A-E444-4E39-B1C2-0F21D7E1AA57", "defKey": "id", "defName": "Id", "intro": "", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 1, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": [], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "BE69D46D-C000-4B3F-BB2A-F346F5BBC3E1", "defKey": "org_id", "defName": "组织信息 Id", "intro": "", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "852AE76C-A899-4ECA-ABED-0A7456B07A57", "defKey": "station_name", "defName": "站点名称", "intro": null, "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 255, "numScale": null, "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": null, "stndDictId": null, "stndFieldId": null, "stndDictKey": null, "stndFieldKey": null, "stndComplianceLevel": null, "stndComplianceType": null, "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": "PASTE" }, { "id": "9AD76D52-66F2-4F8F-A0E8-A3C98EC0604E", "defKey": "province", "defName": "省", "intro": "代码", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 16, "numScale": null, "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": null, "stndFieldId": null, "stndDictKey": null, "stndFieldKey": null, "stndComplianceLevel": null, "stndComplianceType": null, "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": "PASTE" }, { "id": "CFC61A4D-113D-407C-83AC-300F82DB8BB0", "defKey": "city", "defName": "市", "intro": "代码", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 16, "numScale": null, "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": null, "stndFieldId": null, "stndDictKey": null, "stndFieldKey": null, "stndComplianceLevel": null, "stndComplianceType": null, "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": "PASTE" }, { "id": "4C44C7AE-890B-40F7-89FF-E56E725882F2", "defKey": "area", "defName": "区县", "intro": "代码", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 16, "numScale": null, "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": null, "stndFieldId": null, "stndDictKey": null, "stndFieldKey": null, "stndComplianceLevel": null, "stndComplianceType": null, "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": "PASTE" }, { "id": "2F4E4E47-BBAD-47FF-B429-F5943058407F", "defKey": "town", "defName": "乡镇街道", "intro": "代码", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 64, "numScale": null, "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "''", "stndDictId": null, "stndFieldId": null, "stndDictKey": null, "stndFieldKey": null, "stndComplianceLevel": null, "stndComplianceType": null, "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": "PASTE" }, { "id": "5CDA23ED-21B9-4A1A-B16B-650BB1D553BA", "defKey": "province_name", "defName": "省", "intro": "名称", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 255, "numScale": null, "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": null, "stndFieldId": null, "stndDictKey": null, "stndFieldKey": null, "stndComplianceLevel": null, "stndComplianceType": null, "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": "PASTE" }, { "id": "04691654-12E9-4B25-9951-44B6A039DB16", "defKey": "city_name", "defName": "市", "intro": "名称", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 255, "numScale": null, "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": null, "stndFieldId": null, "stndDictKey": null, "stndFieldKey": null, "stndComplianceLevel": null, "stndComplianceType": null, "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": "PASTE" }, { "id": "C352E593-B70E-4489-BAEB-131E5B153F88", "defKey": "area_name", "defName": "区县", "intro": "名称", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 255, "numScale": null, "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": null, "stndFieldId": null, "stndDictKey": null, "stndFieldKey": null, "stndComplianceLevel": null, "stndComplianceType": null, "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": "PASTE" }, { "id": "3CE5079F-8C76-4C5F-B004-FE8DE2C8A7BB", "defKey": "town_name", "defName": "乡镇街道", "intro": "名称", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 255, "numScale": null, "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "''", "stndDictId": null, "stndFieldId": null, "stndDictKey": null, "stndFieldKey": null, "stndComplianceLevel": null, "stndComplianceType": null, "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": "PASTE" }, { "id": "5AF98722-29E3-4BEF-A7FF-8514C66BF81F", "defKey": "address", "defName": "详细地址", "intro": null, "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 255, "numScale": null, "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": null, "stndFieldId": null, "stndDictKey": null, "stndFieldKey": null, "stndComplianceLevel": null, "stndComplianceType": null, "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": "PASTE" }, { "id": "BAE32E3F-A1BE-480B-AF11-9BE5AC6073A2", "defKey": "lng", "defName": "经度", "intro": null, "baseDataType": "DOUBLE", "bizDomainType": "", "dbDataType": "DOUBLE", "dataLen": null, "numScale": null, "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": null, "stndDictId": null, "stndFieldId": null, "stndDictKey": null, "stndFieldKey": null, "stndComplianceLevel": null, "stndComplianceType": null, "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": "PASTE" }, { "id": "C9B0C8C4-2265-444C-961C-7EFB642F4ACA", "defKey": "lat", "defName": "纬度", "intro": null, "baseDataType": "DOUBLE", "bizDomainType": "", "dbDataType": "DOUBLE", "dataLen": null, "numScale": null, "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": null, "stndDictId": null, "stndFieldId": null, "stndDictKey": null, "stndFieldKey": null, "stndComplianceLevel": null, "stndComplianceType": null, "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": "PASTE" }, { "id": "F553BF1E-ADD9-49B9-B637-70689212FFA9", "defKey": "creator_id", "defName": "创建人 Id", "intro": " sys_user.id", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "6BBBCD5C-8161-4F00-9F92-DD21D13612DE", "defKey": "modifier_id", "defName": "修改人 Id", "intro": " sys_user.id", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": [], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "EE009F8F-3641-412A-B939-71D219E1C390", "defKey": "create_time", "defName": "创建时间", "intro": "", "baseDataType": "DATETIME", "bizDomainType": "", "dbDataType": "DATETIME", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": [], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "CE97E534-6F13-486C-A82E-40EC720BCC9C", "defKey": "modify_time", "defName": "修改时间", "intro": "", "baseDataType": "DATETIME", "bizDomainType": "", "dbDataType": "DATETIME", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": [], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "07128A9C-7197-41B5-82EF-93FB6D8387C8", "defKey": "deleted", "defName": "是否删除", "intro": " 0-->未删除、1-->已删除", "baseDataType": "TINYINT", "bizDomainType": "", "dbDataType": "TINYINT", "dataLen": 1, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "0", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": [], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" } ], "indexes": [] }, { "id": "14DAB3C1-5814-401B-AC62-E15036FE31F6", "schemaName": null, "defKey": "cst_order_cargo_place", "defName": "装/卸货地信息", "intro": "", "type": "P", "fields": [ { "id": "39D741EE-ADEC-4513-B91B-41A95EC50DD1", "defKey": "id", "defName": "Id", "intro": "", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 1, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": [], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "80F23108-167B-425E-9DF8-AD1307CC4BFE", "defKey": "order_id", "defName": "订单 Id", "intro": "", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "9245B048-E150-4C38-AD5E-85D40577D65E", "defKey": "zx", "defName": "装/卸货", "intro": null, "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 10, "numScale": null, "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": null, "stndDictId": "zx", "stndFieldId": null, "stndDictKey": "zx", "stndFieldKey": null, "stndComplianceLevel": null, "stndComplianceType": null, "dictFrom": "Manual", "dictItems": [ { "itemKey": "ZhuangHuo", "itemName": "装货地址", "parentKey": "", "intro": "", "id": "33F25C62-CFB3-4650-93DB-E79AAB3678A6" }, { "itemKey": "XieHuo", "itemName": "卸货地址", "parentKey": "", "intro": "", "id": "FFBDF795-EC61-4A64-A457-1023898CF0F1" } ], "fieldTier": "", "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": "PASTE" }, { "id": "61B7A18F-5AD1-414D-8E34-9D34503A0DF4", "defKey": "province", "defName": "省", "intro": "代码", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 16, "numScale": null, "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": null, "stndFieldId": null, "stndDictKey": null, "stndFieldKey": null, "stndComplianceLevel": null, "stndComplianceType": null, "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": "PASTE" }, { "id": "5256F03E-53D4-4019-A20C-939A7BB691F6", "defKey": "city", "defName": "市", "intro": "代码", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 16, "numScale": null, "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": null, "stndFieldId": null, "stndDictKey": null, "stndFieldKey": null, "stndComplianceLevel": null, "stndComplianceType": null, "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": "PASTE" }, { "id": "A5D3F59B-B9B6-4335-85D4-C4EBFAC88A70", "defKey": "area", "defName": "区县", "intro": "代码", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 16, "numScale": null, "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": null, "stndFieldId": null, "stndDictKey": null, "stndFieldKey": null, "stndComplianceLevel": null, "stndComplianceType": null, "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": "PASTE" }, { "id": "5D928A0B-AA15-4005-B092-03724DF617F1", "defKey": "town", "defName": "乡镇街道", "intro": "代码", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 64, "numScale": null, "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "''", "stndDictId": null, "stndFieldId": null, "stndDictKey": null, "stndFieldKey": null, "stndComplianceLevel": null, "stndComplianceType": null, "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": "PASTE" }, { "id": "320C531F-A8DB-4B91-B669-CA8BF52576D8", "defKey": "province_name", "defName": "省", "intro": "名称", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 255, "numScale": null, "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": null, "stndFieldId": null, "stndDictKey": null, "stndFieldKey": null, "stndComplianceLevel": null, "stndComplianceType": null, "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": "PASTE" }, { "id": "DA6DC128-FF3C-4C58-89BE-4B13B33B3BC1", "defKey": "city_name", "defName": "市", "intro": "名称", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 255, "numScale": null, "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": null, "stndFieldId": null, "stndDictKey": null, "stndFieldKey": null, "stndComplianceLevel": null, "stndComplianceType": null, "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": "PASTE" }, { "id": "CDF36A20-F352-4271-9AED-2F5C83ADCAF0", "defKey": "area_name", "defName": "区县", "intro": "名称", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 255, "numScale": null, "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": null, "stndFieldId": null, "stndDictKey": null, "stndFieldKey": null, "stndComplianceLevel": null, "stndComplianceType": null, "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": "PASTE" }, { "id": "2FE5A3B5-08B1-4D09-8DDD-E833C4A22D8F", "defKey": "town_name", "defName": "乡镇街道", "intro": "名称", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 255, "numScale": null, "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "''", "stndDictId": null, "stndFieldId": null, "stndDictKey": null, "stndFieldKey": null, "stndComplianceLevel": null, "stndComplianceType": null, "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": "PASTE" }, { "id": "596B23D3-BA21-4EB5-8067-D29343E32BBA", "defKey": "address", "defName": "详细地址", "intro": null, "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 255, "numScale": null, "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": null, "stndFieldId": null, "stndDictKey": null, "stndFieldKey": null, "stndComplianceLevel": null, "stndComplianceType": null, "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": "PASTE" }, { "id": "3FCA6F55-1030-42C9-A1FF-8BAF2103FE6B", "defKey": "lng", "defName": "经度", "intro": null, "baseDataType": "DOUBLE", "bizDomainType": "", "dbDataType": "DOUBLE", "dataLen": null, "numScale": null, "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": null, "stndDictId": null, "stndFieldId": null, "stndDictKey": null, "stndFieldKey": null, "stndComplianceLevel": null, "stndComplianceType": null, "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": "PASTE" }, { "id": "71ABDAB0-20D2-43BE-B7D2-5501761CC5BA", "defKey": "lat", "defName": "纬度", "intro": null, "baseDataType": "DOUBLE", "bizDomainType": "", "dbDataType": "DOUBLE", "dataLen": null, "numScale": null, "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": null, "stndDictId": null, "stndFieldId": null, "stndDictKey": null, "stndFieldKey": null, "stndComplianceLevel": null, "stndComplianceType": null, "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": "PASTE" } ], "indexes": [] }, { "id": "5374D175-115A-42B6-A68B-DCD30D953B7E", "schemaName": null, "defKey": "wh_in_order", "defName": "入库单", "intro": "", "type": "P", "fields": [ { "id": "CE812F5A-A48A-4AB5-A3ED-5736666AF074", "defKey": "id", "defName": "Id", "intro": "", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 1, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": [], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "6F545B37-6049-42EE-951B-8DC5FD9290BA", "defKey": "sn", "defName": "编号", "intro": null, "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 128, "numScale": null, "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": null, "stndFieldId": null, "stndDictKey": null, "stndFieldKey": null, "stndComplianceLevel": null, "stndComplianceType": null, "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": "PASTE" }, { "id": "06661385-5B0A-403D-BA55-7B3DDA1048C7", "defKey": "responsible_id", "defName": "责任人 Id", "intro": "sys_user.id", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": null, "numScale": null, "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": null, "stndFieldId": null, "stndDictKey": null, "stndFieldKey": null, "stndComplianceLevel": null, "stndComplianceType": null, "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": "PASTE" }, { "id": "EC7574E0-6089-4A24-A9C7-B8B52C872086", "defKey": "warehouse_id", "defName": "仓库 Id", "intro": "wh_warehouse.id", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": null, "numScale": null, "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": null, "stndDictId": null, "stndFieldId": null, "stndDictKey": null, "stndFieldKey": null, "stndComplianceLevel": null, "stndComplianceType": null, "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": "PASTE" }, { "id": "C8A5CA81-2125-4897-9211-98C2AD4C470E", "defKey": "location", "defName": "存放位置", "intro": null, "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 128, "numScale": null, "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "''", "stndDictId": null, "stndFieldId": null, "stndDictKey": null, "stndFieldKey": null, "stndComplianceLevel": null, "stndComplianceType": null, "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": "PASTE" }, { "id": "4AA9BED1-503F-4F8E-92F8-02EC9A5FA08E", "defKey": "in_time", "defName": "入库时间", "intro": null, "baseDataType": "DATETIME", "bizDomainType": "", "dbDataType": "DATETIME", "dataLen": null, "numScale": null, "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": null, "stndDictId": null, "stndFieldId": null, "stndDictKey": null, "stndFieldKey": null, "stndComplianceLevel": null, "stndComplianceType": null, "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": "PASTE" }, { "id": "865890E6-38D4-4A8B-921B-90377597BB5E", "defKey": "order_id", "defName": "采购单 Id", "intro": "wh_purchase_order.id", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": null, "numScale": null, "primaryKey": 0, "notNull": 0, "autoIncrement": 0, "defaultValue": null, "stndDictId": null, "stndFieldId": null, "stndDictKey": null, "stndFieldKey": null, "stndComplianceLevel": null, "stndComplianceType": null, "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": "PASTE" }, { "id": "5AA28643-3D94-4292-A352-5226435F080C", "defKey": "order_sn", "defName": "采购单单号", "intro": "wh_purchase_order.sn", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 128, "numScale": null, "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "''", "stndDictId": null, "stndFieldId": null, "stndDictKey": null, "stndFieldKey": null, "stndComplianceLevel": null, "stndComplianceType": null, "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": "PASTE" }, { "id": "2A86F155-348B-4ED6-9F7E-8C520BDE0DEC", "defKey": "goods_category_id", "defName": "产品分类 Id", "intro": "", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "EA69B968-286B-4081-A088-D49A9CF2934F", "defKey": "goods_category_name", "defName": "分类名称", "intro": "", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 255, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "80597DC3-1DC1-4FA3-9C79-9387C859ED96", "defKey": "goods_id", "defName": "产品 Id", "intro": "", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "97CE2813-7385-4840-8049-8C155E99DF92", "defKey": "goods_name", "defName": "产品名称", "intro": "", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 128, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "A8D9A936-D562-423B-B2CB-93EA4728F11C", "defKey": "good_sn", "defName": "商品编码", "intro": "", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 128, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "8EB24008-AEDE-428C-8DDD-D280986DCE39", "defKey": "quantity", "defName": "数量", "intro": "", "baseDataType": "INT", "bizDomainType": "", "dbDataType": "INT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": null, "stndFieldId": null, "stndDictKey": null, "stndFieldKey": null, "stndComplianceLevel": null, "stndComplianceType": null, "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": "PASTE" }, { "id": "F28BB834-7C07-4964-9ADC-F8328E157B6B", "defKey": "unit", "defName": "计量单位", "intro": "字典代码:unit", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 16, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "unit", "stndFieldId": "", "stndDictKey": "unit", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "Manual", "dictItems": [ { "itemKey": "Che", "itemName": "车", "parentKey": "", "intro": "", "id": "024EEBD1-5C0E-4AA4-A5EA-3E2BAA80628A" }, { "itemKey": "Fang", "itemName": "方", "parentKey": "", "intro": "", "id": "10F8E718-DADC-4ACA-A522-6EDF8B50A4EB" }, { "itemKey": "GongLi", "itemName": "公里", "parentKey": "", "intro": "", "id": "9CE6E51D-6066-451B-81C3-197B3B8D2D06" }, { "itemKey": "Dun", "itemName": "吨", "parentKey": "", "intro": "", "id": "9936866A-FAFA-4CE5-8577-2663B11F662F" } ], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "9EE8FAF5-0944-49E1-A7ED-05F240D97315", "defKey": "memo", "defName": "备注", "intro": "", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 512, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "''", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": [], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "1445C463-8DF1-46FD-91E6-83FE4EE2A228", "origin": "PASTE" }, { "id": "0DA25A0A-A06F-49FD-9564-EF2E63B3A4B8", "defKey": "creator_id", "defName": "创建人 Id", "intro": " sys_user.id", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "284A3CFD-6E87-4A47-90FC-74BB6694B6F3", "defKey": "modifier_id", "defName": "修改人 Id", "intro": " sys_user.id", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": [], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "EF6BE95B-FE66-458E-B90F-74854133DC53", "defKey": "create_time", "defName": "创建时间", "intro": "", "baseDataType": "DATETIME", "bizDomainType": "", "dbDataType": "DATETIME", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": [], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "9EB45837-8559-4BB3-ACE9-BBE8865E4A2F", "defKey": "modify_time", "defName": "修改时间", "intro": "", "baseDataType": "DATETIME", "bizDomainType": "", "dbDataType": "DATETIME", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": [], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "8A4BFB03-3486-46F4-9963-E126ABE0ADA1", "defKey": "deleted", "defName": "是否删除", "intro": " 0-->未删除、1-->已删除", "baseDataType": "TINYINT", "bizDomainType": "", "dbDataType": "TINYINT", "dataLen": 1, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "0", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": [], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" } ], "indexes": [] }, { "id": "DEBAD01B-B6FF-4EFB-9B03-29EB31F2E5CF", "schemaName": null, "defKey": "wh_out_order", "defName": "出库单", "intro": "", "type": "P", "fields": [ { "id": "EC07EE29-54EE-4E24-A242-9D319D77760D", "defKey": "id", "defName": "Id", "intro": "", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 1, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": [], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "C641EDCA-76E7-4BCE-AD14-715F0EC5A0D9", "defKey": "sn", "defName": "编号", "intro": "", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 128, "numScale": null, "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": null, "stndFieldId": null, "stndDictKey": null, "stndFieldKey": null, "stndComplianceLevel": null, "stndComplianceType": null, "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": "PASTE" }, { "id": "8C163DE9-81C3-4C1B-932B-EB963507F57D", "defKey": "responsible_id", "defName": "责任人 Id", "intro": "sys_user.id", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": null, "numScale": null, "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": null, "stndFieldId": null, "stndDictKey": null, "stndFieldKey": null, "stndComplianceLevel": null, "stndComplianceType": null, "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": "PASTE" }, { "id": "E3DAB3D1-7EBE-4FC5-B0B7-CA3079C38D89", "defKey": "warehouse_id", "defName": "仓库 Id", "intro": "wh_warehouse.id", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": null, "numScale": null, "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": null, "stndDictId": null, "stndFieldId": null, "stndDictKey": null, "stndFieldKey": null, "stndComplianceLevel": null, "stndComplianceType": null, "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": "PASTE" }, { "id": "E6F2DB0F-F081-451B-8A0A-4419523EB59E", "defKey": "location", "defName": "存放位置", "intro": null, "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 128, "numScale": null, "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "''", "stndDictId": null, "stndFieldId": null, "stndDictKey": null, "stndFieldKey": null, "stndComplianceLevel": null, "stndComplianceType": null, "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": "PASTE" }, { "id": "0B510B87-1C63-48B2-BE83-895A1F244009", "defKey": "out_time", "defName": "出库时间", "intro": null, "baseDataType": "DATETIME", "bizDomainType": "", "dbDataType": "DATETIME", "dataLen": null, "numScale": null, "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": null, "stndDictId": null, "stndFieldId": null, "stndDictKey": null, "stndFieldKey": null, "stndComplianceLevel": null, "stndComplianceType": null, "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": "PASTE" }, { "id": "7CB115F5-8C8A-4C28-B8EF-3C4BF550EA68", "defKey": "order_id", "defName": "销售单 Id", "intro": "wh_sales_order.id", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": null, "numScale": null, "primaryKey": 0, "notNull": 0, "autoIncrement": 0, "defaultValue": null, "stndDictId": null, "stndFieldId": null, "stndDictKey": null, "stndFieldKey": null, "stndComplianceLevel": null, "stndComplianceType": null, "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": "PASTE" }, { "id": "887680E0-2F2D-4EBB-92BC-EE40F819A0EC", "defKey": "order_sn", "defName": "销售单号", "intro": "wh_sales_order.sn", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 128, "numScale": null, "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "''", "stndDictId": null, "stndFieldId": null, "stndDictKey": null, "stndFieldKey": null, "stndComplianceLevel": null, "stndComplianceType": null, "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": "PASTE" }, { "id": "2E3CA382-8C0C-4034-9053-970F794979A9", "defKey": "goods_category_id", "defName": "产品分类 Id", "intro": "", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "4DE0F6A9-BFA4-4C7D-BBBD-032FB0081E9A", "defKey": "goods_category_name", "defName": "分类名称", "intro": "", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 255, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "96F1F6D5-6E99-4974-BAA8-3179723B9D77", "defKey": "goods_id", "defName": "产品 Id", "intro": "", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "7D4994BE-0DDB-4594-B76C-8E5F2A60C1BC", "defKey": "goods_name", "defName": "产品名称", "intro": "", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 128, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "DEC5DB4D-9417-4E27-B3AC-826845851C7D", "defKey": "good_sn", "defName": "商品编码", "intro": "", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 128, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "6333C020-25DA-4C8E-960A-124F857369CD", "defKey": "quantity", "defName": "数量", "intro": "", "baseDataType": "INT", "bizDomainType": "", "dbDataType": "INT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": null, "stndFieldId": null, "stndDictKey": null, "stndFieldKey": null, "stndComplianceLevel": null, "stndComplianceType": null, "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": "PASTE" }, { "id": "1FA81B81-DB7F-438E-AC51-2E3CF2F0A622", "defKey": "unit", "defName": "计量单位", "intro": "字典代码:unit", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 16, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "unit", "stndFieldId": "", "stndDictKey": "unit", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "Manual", "dictItems": [ { "itemKey": "Che", "itemName": "车", "parentKey": "", "intro": "", "id": "024EEBD1-5C0E-4AA4-A5EA-3E2BAA80628A" }, { "itemKey": "Fang", "itemName": "方", "parentKey": "", "intro": "", "id": "10F8E718-DADC-4ACA-A522-6EDF8B50A4EB" }, { "itemKey": "GongLi", "itemName": "公里", "parentKey": "", "intro": "", "id": "9CE6E51D-6066-451B-81C3-197B3B8D2D06" }, { "itemKey": "Dun", "itemName": "吨", "parentKey": "", "intro": "", "id": "9936866A-FAFA-4CE5-8577-2663B11F662F" } ], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "C2165344-2B33-4A6A-8545-2946E58DCB66", "defKey": "memo", "defName": "备注", "intro": "", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 512, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "''", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": [], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "1445C463-8DF1-46FD-91E6-83FE4EE2A228", "origin": "PASTE" }, { "id": "B2390985-FB7A-4C60-8223-07F89F50833A", "defKey": "creator_id", "defName": "创建人 Id", "intro": " sys_user.id", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "4E05B609-B82C-4779-92BB-E0FA41771346", "defKey": "modifier_id", "defName": "修改人 Id", "intro": " sys_user.id", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": [], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "D89B971D-BB2A-46F3-9D65-BDEFB1E9B434", "defKey": "create_time", "defName": "创建时间", "intro": "", "baseDataType": "DATETIME", "bizDomainType": "", "dbDataType": "DATETIME", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": [], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "B3711CFE-87DE-4573-9262-C4AC7354249B", "defKey": "modify_time", "defName": "修改时间", "intro": "", "baseDataType": "DATETIME", "bizDomainType": "", "dbDataType": "DATETIME", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": [], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "BC901C3C-EF1D-4A5B-90CA-2915FD085676", "defKey": "deleted", "defName": "是否删除", "intro": " 0-->未删除、1-->已删除", "baseDataType": "TINYINT", "bizDomainType": "", "dbDataType": "TINYINT", "dataLen": 1, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "0", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": [], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" } ], "indexes": [] }, { "id": "0B25C484-FFCC-4583-8DE5-26402A7104BA", "schemaName": null, "defKey": "wh_purchase_order", "defName": "采购单", "intro": "", "type": "P", "fields": [ { "id": "4E9FB9F6-3483-496B-B03A-4947A8B376F7", "defKey": "id", "defName": "Id", "intro": "", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 1, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": [], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "8A799C34-0040-49FC-A362-EB1E7C65E8EF", "defKey": "sn", "defName": "编号", "intro": "", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 128, "numScale": null, "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": null, "stndFieldId": null, "stndDictKey": null, "stndFieldKey": null, "stndComplianceLevel": null, "stndComplianceType": null, "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": "PASTE" }, { "id": "33F588A7-7BE3-4D7E-8CB1-A167A63E8B8A", "defKey": "order_id", "defName": "预约单 Id", "intro": "cst_order.id", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": null, "numScale": null, "primaryKey": 0, "notNull": 0, "autoIncrement": 0, "defaultValue": null, "stndDictId": null, "stndFieldId": null, "stndDictKey": null, "stndFieldKey": null, "stndComplianceLevel": null, "stndComplianceType": null, "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": "PASTE" }, { "id": "46C80057-CCDB-4362-95E8-4FAC711812F7", "defKey": "order_trans_id", "defName": "预约单车次 Id", "intro": "cst_order_trans.id", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 0, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "UI" }, { "id": "05D96AA0-5321-4D27-8A58-4EE0460CB7AC", "defKey": "purchase_order_status", "defName": "状态", "intro": "", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 64, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "purchase_order_status", "stndFieldId": "", "stndDictKey": "purchase_order_status", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "Manual", "dictItems": [ { "itemKey": "JinXingZhong", "itemName": "进行中", "parentKey": "", "intro": "", "id": "463EF98F-75B7-4F89-8BFE-353B60EE2C31" }, { "itemKey": "YiDaoHuo", "itemName": "已到货", "parentKey": "", "intro": "", "id": "CE31D0D3-CE02-4ED6-8591-218AA19106CD" }, { "itemKey": "YiRuKu", "itemName": "已入库", "parentKey": "", "intro": "", "id": "2B09C9FC-549E-45C4-9653-C4753487A8C6" }, { "itemKey": "YiQuXiao", "itemName": "已取消", "parentKey": "", "intro": "", "id": "13FEDA85-F837-4227-B266-C430EDF5447F" } ], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "UI" }, { "id": "D9C361D9-2A9B-4BB8-8597-57CB0859B586", "defKey": "customer_id", "defName": "供货客户 Id", "intro": "", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "UI" }, { "id": "C313C5DB-89CE-4193-9B00-C6C32AE853D8", "defKey": "purchase_date", "defName": "采购日期", "intro": null, "baseDataType": "DATE", "bizDomainType": "", "dbDataType": "DATE", "dataLen": null, "numScale": null, "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": null, "stndDictId": null, "stndFieldId": null, "stndDictKey": null, "stndFieldKey": null, "stndComplianceLevel": null, "stndComplianceType": null, "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": "PASTE" }, { "id": "C4F825B3-047E-4DCF-8520-8C84A95CD42C", "defKey": "arrival_date", "defName": "到货日期", "intro": null, "baseDataType": "DATE", "bizDomainType": "", "dbDataType": "DATE", "dataLen": null, "numScale": null, "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": null, "stndFieldId": null, "stndDictKey": null, "stndFieldKey": null, "stndComplianceLevel": null, "stndComplianceType": null, "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": "PASTE" }, { "id": "092D294F-AFCA-48CD-80EC-EE0F0DAEF330", "defKey": "goods_category_id", "defName": "产品分类 Id", "intro": "", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "B800BC09-3A66-4884-9444-C75C6D6BA9C0", "defKey": "goods_category_name", "defName": "分类名称", "intro": "", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 255, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "085A2332-BB67-4EC2-9DE7-FA25E859B93C", "defKey": "goods_id", "defName": "产品 Id", "intro": "", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "A12D6B0C-FC5B-4149-8BD6-2963B49B58BD", "defKey": "goods_name", "defName": "产品名称", "intro": "", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 128, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "7CF0D820-64DF-4FD7-BA33-8E69670CE4EE", "defKey": "good_sn", "defName": "商品编码", "intro": "", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 128, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "12133BF9-7508-4638-9D9D-213F6EC8D244", "defKey": "quantity", "defName": "数量", "intro": "", "baseDataType": "INT", "bizDomainType": "", "dbDataType": "INT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": null, "stndFieldId": null, "stndDictKey": null, "stndFieldKey": null, "stndComplianceLevel": null, "stndComplianceType": null, "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": "PASTE" }, { "id": "6102BDFA-D0AA-49EC-A563-C77AAF63DF1A", "defKey": "total_money", "defName": "总金额", "intro": "单位:元", "baseDataType": "DECIMAL", "bizDomainType": "", "dbDataType": "DECIMAL", "dataLen": 14, "numScale": 2, "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "0.0", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "95CC4AD6-3086-421C-842E-5495E525634D", "defKey": "unit", "defName": "计量单位", "intro": "字典代码:unit", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 16, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "unit", "stndFieldId": "", "stndDictKey": "unit", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "Manual", "dictItems": [ { "itemKey": "Che", "itemName": "车", "parentKey": "", "intro": "", "id": "024EEBD1-5C0E-4AA4-A5EA-3E2BAA80628A" }, { "itemKey": "Fang", "itemName": "方", "parentKey": "", "intro": "", "id": "10F8E718-DADC-4ACA-A522-6EDF8B50A4EB" }, { "itemKey": "GongLi", "itemName": "公里", "parentKey": "", "intro": "", "id": "9CE6E51D-6066-451B-81C3-197B3B8D2D06" }, { "itemKey": "Dun", "itemName": "吨", "parentKey": "", "intro": "", "id": "9936866A-FAFA-4CE5-8577-2663B11F662F" } ], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "5084BB59-025D-4842-93B5-BD2BD68D1F93", "defKey": "memo", "defName": "备注", "intro": "", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 512, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "''", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": [], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "A8D86085-D3FD-42B3-BC03-25E792D9B9B8", "defKey": "creator_id", "defName": "创建人 Id", "intro": " sys_user.id", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "EA2BB33E-2C4D-4B40-8BC9-B34B2C6CDDB0", "defKey": "modifier_id", "defName": "修改人 Id", "intro": " sys_user.id", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": [], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "295810EC-BB17-4692-A769-397E6A9BA326", "defKey": "create_time", "defName": "创建时间", "intro": "", "baseDataType": "DATETIME", "bizDomainType": "", "dbDataType": "DATETIME", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": [], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "74CAD993-2C5D-4FE4-B5E9-1408BD5B3E11", "defKey": "modify_time", "defName": "修改时间", "intro": "", "baseDataType": "DATETIME", "bizDomainType": "", "dbDataType": "DATETIME", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": [], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "51E4BBF3-8972-4D17-8E22-8C0DACF7B9E4", "defKey": "deleted", "defName": "是否删除", "intro": " 0-->未删除、1-->已删除", "baseDataType": "TINYINT", "bizDomainType": "", "dbDataType": "TINYINT", "dataLen": 1, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "0", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": [], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" } ], "indexes": [] }, { "id": "FC24E76A-8EA4-4A60-BC0F-B0B5AE154AFE", "schemaName": null, "defKey": "wh_sales_order", "defName": "销售单", "intro": "", "type": "P", "fields": [ { "id": "397D078E-EDE8-4317-884C-205FE836D9C2", "defKey": "id", "defName": "Id", "intro": "", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 1, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": [], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "0DD7B844-92B3-48C8-8473-FC83660092FC", "defKey": "sn", "defName": "编号", "intro": "", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 128, "numScale": null, "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": null, "stndFieldId": null, "stndDictKey": null, "stndFieldKey": null, "stndComplianceLevel": null, "stndComplianceType": null, "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": "PASTE" }, { "id": "F387AF68-B6B6-4EF1-AFBC-2213BC711EAC", "defKey": "order_id", "defName": "预约单 Id", "intro": "cst_order.id", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": null, "numScale": null, "primaryKey": 0, "notNull": 0, "autoIncrement": 0, "defaultValue": "", "stndDictId": null, "stndFieldId": null, "stndDictKey": null, "stndFieldKey": null, "stndComplianceLevel": null, "stndComplianceType": null, "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": "PASTE" }, { "id": "E0E33DE4-34B4-488E-B679-20DA8F88C107", "defKey": "order_trans_id", "defName": "预约单车次 Id", "intro": "cst_order_trans.id", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 0, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "D53F6AD5-1A84-4601-AD3F-2197BDA68264", "defKey": "sales_order_status", "defName": "状态", "intro": "", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 64, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "sales_order_status", "stndFieldId": "", "stndDictKey": "sales_order_status", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "Manual", "dictItems": [ { "itemKey": "JinXingZhong", "itemName": "进行中", "parentKey": "", "intro": "", "id": "463EF98F-75B7-4F89-8BFE-353B60EE2C31" }, { "itemKey": "YiFaHuo", "itemName": "已发货", "parentKey": "", "intro": "", "id": "CE31D0D3-CE02-4ED6-8591-218AA19106CD" }, { "itemKey": "YiChuKu", "itemName": "已出库", "parentKey": "", "intro": "", "id": "2B09C9FC-549E-45C4-9653-C4753487A8C6" }, { "itemKey": "YiQuXiao", "itemName": "已取消", "parentKey": "", "intro": "", "id": "13FEDA85-F837-4227-B266-C430EDF5447F" } ], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "7E015163-8560-4727-83EF-D95922E27A09", "defKey": "customer_id", "defName": "购买方客户 Id", "intro": "", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "6B77EC84-0EAA-4B63-A842-EE0B8B1E9968", "defKey": "order_date", "defName": "下单日期", "intro": null, "baseDataType": "DATE", "bizDomainType": "", "dbDataType": "DATE", "dataLen": null, "numScale": null, "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": null, "stndDictId": null, "stndFieldId": null, "stndDictKey": null, "stndFieldKey": null, "stndComplianceLevel": null, "stndComplianceType": null, "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": "PASTE" }, { "id": "847116D4-0572-4CC3-800D-E157567E66E1", "defKey": "shipment_date", "defName": "发货日期", "intro": null, "baseDataType": "DATE", "bizDomainType": "", "dbDataType": "DATE", "dataLen": null, "numScale": null, "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": null, "stndFieldId": null, "stndDictKey": null, "stndFieldKey": null, "stndComplianceLevel": null, "stndComplianceType": null, "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": "PASTE" }, { "id": "0E7615C1-FF47-4119-B856-E0947B882139", "defKey": "goods_category_id", "defName": "产品分类 Id", "intro": "", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "BF642C25-FC37-4CCB-8949-17DA2E74EB4D", "defKey": "goods_category_name", "defName": "分类名称", "intro": "", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 255, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "97B128D7-B1AC-49E2-85FD-4394D73066C2", "defKey": "goods_id", "defName": "产品 Id", "intro": "", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "CBAD68D7-6EF0-4B8D-9443-A309377388AC", "defKey": "goods_name", "defName": "产品名称", "intro": "", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 128, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "E0002556-C225-4FCA-B5EC-C7F175CDA366", "defKey": "good_sn", "defName": "商品编码", "intro": "", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 128, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "34B6AA06-D0A3-4379-AA1B-A6AADEF67A59", "defKey": "quantity", "defName": "数量", "intro": "", "baseDataType": "INT", "bizDomainType": "", "dbDataType": "INT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": null, "stndFieldId": null, "stndDictKey": null, "stndFieldKey": null, "stndComplianceLevel": null, "stndComplianceType": null, "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": "PASTE" }, { "id": "BF1A1561-F477-488F-BCC8-07C82B302E1A", "defKey": "total_money", "defName": "总金额", "intro": "单位:元", "baseDataType": "DECIMAL", "bizDomainType": "", "dbDataType": "DECIMAL", "dataLen": 14, "numScale": 2, "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "0.0", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "0F675D8A-F4A4-4BA3-BEB5-AA2B75D7178B", "defKey": "unit", "defName": "计量单位", "intro": "字典代码:unit", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 16, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "unit", "stndFieldId": "", "stndDictKey": "unit", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "Manual", "dictItems": [ { "itemKey": "Che", "itemName": "车", "parentKey": "", "intro": "", "id": "024EEBD1-5C0E-4AA4-A5EA-3E2BAA80628A" }, { "itemKey": "Fang", "itemName": "方", "parentKey": "", "intro": "", "id": "10F8E718-DADC-4ACA-A522-6EDF8B50A4EB" }, { "itemKey": "GongLi", "itemName": "公里", "parentKey": "", "intro": "", "id": "9CE6E51D-6066-451B-81C3-197B3B8D2D06" }, { "itemKey": "Dun", "itemName": "吨", "parentKey": "", "intro": "", "id": "9936866A-FAFA-4CE5-8577-2663B11F662F" } ], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "892545EB-D2A5-4988-A231-564A73F96C01", "defKey": "memo", "defName": "备注", "intro": "", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 512, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "''", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": [], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "3DFA5032-6015-486E-AC7D-1B6F9515AAC5", "defKey": "creator_id", "defName": "创建人 Id", "intro": " sys_user.id", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "10E8C712-5952-4AC2-BBA0-690B23BE690A", "defKey": "modifier_id", "defName": "修改人 Id", "intro": " sys_user.id", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": [], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "E99C9B3F-FBA9-4413-BFCD-5D19B2144B4A", "defKey": "create_time", "defName": "创建时间", "intro": "", "baseDataType": "DATETIME", "bizDomainType": "", "dbDataType": "DATETIME", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": [], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "344736FE-9101-45AF-B772-C660869CF0F8", "defKey": "modify_time", "defName": "修改时间", "intro": "", "baseDataType": "DATETIME", "bizDomainType": "", "dbDataType": "DATETIME", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": [], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "CC45295F-CADD-4C34-9CE1-D8534F435659", "defKey": "deleted", "defName": "是否删除", "intro": " 0-->未删除、1-->已删除", "baseDataType": "TINYINT", "bizDomainType": "", "dbDataType": "TINYINT", "dataLen": 1, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "0", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": [], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" } ], "indexes": [] }, { "id": "22ACAD57-2008-4E85-B7E6-A31C50221F49", "schemaName": null, "defKey": "wh_inventory", "defName": "库存信息", "intro": "", "type": "P", "fields": [ { "id": "4037B2AA-020E-48B5-BA69-EFF0BAB78E94", "defKey": "id", "defName": "Id", "intro": "", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 1, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": [], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "FDF94CD7-BE07-40C3-923B-18176BD4930D", "defKey": "warehouse_id", "defName": "仓库 Id", "intro": null, "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": null, "numScale": null, "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": null, "stndDictId": null, "stndFieldId": null, "stndDictKey": null, "stndFieldKey": null, "stndComplianceLevel": null, "stndComplianceType": null, "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": "PASTE" }, { "id": "B633AFCE-DA3D-4F78-AE07-6AAA42ECD2CF", "defKey": "goods_id", "defName": "产品 Id", "intro": null, "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": null, "numScale": null, "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": null, "stndDictId": null, "stndFieldId": null, "stndDictKey": null, "stndFieldKey": null, "stndComplianceLevel": null, "stndComplianceType": null, "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": "PASTE" }, { "id": "858ECDB9-8CE8-4F22-A6AF-2700A3F853B0", "defKey": "location", "defName": "存放位置", "intro": null, "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 128, "numScale": null, "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "''", "stndDictId": null, "stndFieldId": null, "stndDictKey": null, "stndFieldKey": null, "stndComplianceLevel": null, "stndComplianceType": null, "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": "PASTE" }, { "id": "021FD2B8-A725-4348-B046-ABDD92739763", "defKey": "stock_quantity", "defName": "当前库存数量", "intro": null, "baseDataType": "INT", "bizDomainType": "", "dbDataType": "INT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "0", "stndDictId": null, "stndFieldId": null, "stndDictKey": null, "stndFieldKey": null, "stndComplianceLevel": null, "stndComplianceType": null, "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": "PASTE" }, { "id": "5AF22117-81B1-4669-BA61-A76FB59FB98C", "defKey": "lock_quantity", "defName": "锁定数量", "intro": null, "baseDataType": "INT", "bizDomainType": "", "dbDataType": "INT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "0", "stndDictId": null, "stndFieldId": null, "stndDictKey": null, "stndFieldKey": null, "stndComplianceLevel": null, "stndComplianceType": null, "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": "PASTE" }, { "id": "828CD9F5-E4D2-4D59-8C8B-C88AF4C04B60", "defKey": "total_quantity", "defName": "总量", "intro": null, "baseDataType": "INT", "bizDomainType": "", "dbDataType": "INT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": null, "stndFieldId": null, "stndDictKey": null, "stndFieldKey": null, "stndComplianceLevel": null, "stndComplianceType": null, "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": "PASTE" }, { "id": "075DF93E-0B4B-4A07-AADF-AB178ABFCAED", "defKey": "remaining_quantity", "defName": "剩余量", "intro": "", "baseDataType": "INT", "bizDomainType": "", "dbDataType": "INT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "2A7A2A06-C61F-4A27-8422-342B10D5BE2C", "defKey": "unit", "defName": "计量单位", "intro": "字典代码:unit", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 16, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "unit", "stndFieldId": "", "stndDictKey": "unit", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "Manual", "dictItems": [ { "itemKey": "Che", "itemName": "车", "parentKey": "", "intro": "", "id": "024EEBD1-5C0E-4AA4-A5EA-3E2BAA80628A" }, { "itemKey": "Fang", "itemName": "方", "parentKey": "", "intro": "", "id": "10F8E718-DADC-4ACA-A522-6EDF8B50A4EB" }, { "itemKey": "GongLi", "itemName": "公里", "parentKey": "", "intro": "", "id": "9CE6E51D-6066-451B-81C3-197B3B8D2D06" }, { "itemKey": "Dun", "itemName": "吨", "parentKey": "", "intro": "", "id": "9936866A-FAFA-4CE5-8577-2663B11F662F" } ], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "DDCE2943-6145-4EDF-A400-06A0073E911A", "defKey": "creator_id", "defName": "创建人 Id", "intro": " sys_user.id", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "2EC63389-6D84-47F2-836E-A3D7DE66F0E3", "defKey": "modifier_id", "defName": "修改人 Id", "intro": " sys_user.id", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": [], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "647AED6E-6155-45D9-A04F-279E2C6D686D", "defKey": "create_time", "defName": "创建时间", "intro": "", "baseDataType": "DATETIME", "bizDomainType": "", "dbDataType": "DATETIME", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": [], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "0269D46C-39F5-4E71-9DFE-9BE60DE9A51B", "defKey": "modify_time", "defName": "修改时间", "intro": "", "baseDataType": "DATETIME", "bizDomainType": "", "dbDataType": "DATETIME", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": [], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "A5014F0E-0CCF-49E1-91CE-203C44DC8CAF", "defKey": "deleted", "defName": "是否删除", "intro": " 0-->未删除、1-->已删除", "baseDataType": "TINYINT", "bizDomainType": "", "dbDataType": "TINYINT", "dataLen": 1, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "0", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": [], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" } ], "indexes": [] }, { "id": "3A0C2179-8576-40CB-8A4D-647318E432BC", "type": "P", "defKey": "cst_project", "defName": "项目信息", "intro": null, "schemaName": null, "props": null, "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "fields": [ { "id": "F03C4CE4-D8CE-4F3A-BB2A-8979B416E5A7", "defKey": "id", "defName": "Id", "intro": null, "orderValue": null, "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": null, "numScale": null, "primaryKey": 1, "notNull": 1, "autoIncrement": null, "defaultValue": null, "stndDictId": null, "stndDictKey": null, "stndFieldId": null, "stndFieldKey": null, "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": null, "stndComplianceType": null, "stndComplianceLevel": null, "updatedUserId": null, "createdUserId": null }, { "id": "544B650E-CF6C-4116-9654-6804D622845A", "defKey": "project_name", "defName": "项目名称", "intro": null, "orderValue": null, "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 255, "numScale": null, "primaryKey": null, "notNull": 1, "autoIncrement": null, "defaultValue": null, "stndDictId": null, "stndDictKey": null, "stndFieldId": null, "stndFieldKey": null, "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": null, "stndComplianceType": null, "stndComplianceLevel": null, "updatedUserId": null, "createdUserId": null }, { "id": "4F4879BD-CC3A-4802-BFDE-105ACCB51314", "defKey": "contract_picture", "defName": "合同图片", "intro": null, "orderValue": null, "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 512, "numScale": null, "primaryKey": null, "notNull": 1, "autoIncrement": null, "defaultValue": "''", "stndDictId": null, "stndDictKey": null, "stndFieldId": null, "stndFieldKey": null, "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": null, "stndComplianceType": null, "stndComplianceLevel": null, "updatedUserId": null, "createdUserId": null }, { "id": "4A29C86B-615B-4A37-BDA1-799A62B7900D", "defKey": "trans_customer_id", "defName": "运输方客户 Id", "intro": "", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "UI" }, { "id": "91DDD745-14EB-46E7-9942-8C0599CE28D8", "defKey": "trans_org_id", "defName": "运输方组织 Id", "intro": "", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 0, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "UI" }, { "id": "C980261A-D333-4185-ABE8-C068D9D9A50D", "defKey": "fringe_customer_id", "defName": "产废方/购买方客户 Id", "intro": "", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "A5E7568A-8179-45A4-81ED-9F564F964417", "defKey": "fringe_org_id", "defName": "产废方/购买方组织 Id", "intro": "", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 0, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "597B5D1A-1D50-4CD8-875E-1A69F9392EE3", "defKey": "province", "defName": "省", "intro": "代码", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 16, "numScale": null, "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": null, "stndFieldId": null, "stndDictKey": null, "stndFieldKey": null, "stndComplianceLevel": null, "stndComplianceType": null, "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": "PASTE" }, { "id": "20869D33-52F4-4701-85C4-CBAC9F500F35", "defKey": "city", "defName": "市", "intro": "代码", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 16, "numScale": null, "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": null, "stndFieldId": null, "stndDictKey": null, "stndFieldKey": null, "stndComplianceLevel": null, "stndComplianceType": null, "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": "PASTE" }, { "id": "423AF43C-3F75-4AE3-86D3-869E13F697AB", "defKey": "area", "defName": "区县", "intro": "代码", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 16, "numScale": null, "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": null, "stndFieldId": null, "stndDictKey": null, "stndFieldKey": null, "stndComplianceLevel": null, "stndComplianceType": null, "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": "PASTE" }, { "id": "08B1E697-D5CE-4710-9567-21F1E9CED7AA", "defKey": "town", "defName": "乡镇街道", "intro": "代码", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 64, "numScale": null, "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "''", "stndDictId": null, "stndFieldId": null, "stndDictKey": null, "stndFieldKey": null, "stndComplianceLevel": null, "stndComplianceType": null, "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": "PASTE" }, { "id": "FD235988-215E-4CDD-9B0C-00D8B5EED3A6", "defKey": "province_name", "defName": "省", "intro": "名称", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 255, "numScale": null, "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": null, "stndFieldId": null, "stndDictKey": null, "stndFieldKey": null, "stndComplianceLevel": null, "stndComplianceType": null, "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": "PASTE" }, { "id": "19CBC2F7-3D35-4B07-8996-3ABE40645CE3", "defKey": "city_name", "defName": "市", "intro": "名称", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 255, "numScale": null, "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": null, "stndFieldId": null, "stndDictKey": null, "stndFieldKey": null, "stndComplianceLevel": null, "stndComplianceType": null, "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": "PASTE" }, { "id": "71DFD58F-AAD0-4722-94C9-51551F3FB0F0", "defKey": "area_name", "defName": "区县", "intro": "名称", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 255, "numScale": null, "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": null, "stndFieldId": null, "stndDictKey": null, "stndFieldKey": null, "stndComplianceLevel": null, "stndComplianceType": null, "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": "PASTE" }, { "id": "55B87BC5-6484-477B-BD3D-34D5E20AC7F0", "defKey": "town_name", "defName": "乡镇街道", "intro": "名称", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 255, "numScale": null, "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "''", "stndDictId": null, "stndFieldId": null, "stndDictKey": null, "stndFieldKey": null, "stndComplianceLevel": null, "stndComplianceType": null, "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": "PASTE" }, { "id": "A3B26FA5-53DA-444D-B3CE-F929DADD7FB5", "defKey": "address", "defName": "详细地址", "intro": null, "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 255, "numScale": null, "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": null, "stndFieldId": null, "stndDictKey": null, "stndFieldKey": null, "stndComplianceLevel": null, "stndComplianceType": null, "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": "PASTE" }, { "id": "A910DD0C-8C2F-455F-95AD-703221514B20", "defKey": "lng", "defName": "经度", "intro": null, "baseDataType": "DOUBLE", "bizDomainType": "", "dbDataType": "DOUBLE", "dataLen": null, "numScale": null, "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": null, "stndDictId": null, "stndFieldId": null, "stndDictKey": null, "stndFieldKey": null, "stndComplianceLevel": null, "stndComplianceType": null, "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": "PASTE" }, { "id": "891E43C5-E1A6-4939-A9C3-4E2197467D2B", "defKey": "lat", "defName": "纬度", "intro": null, "baseDataType": "DOUBLE", "bizDomainType": "", "dbDataType": "DOUBLE", "dataLen": null, "numScale": null, "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": null, "stndDictId": null, "stndFieldId": null, "stndDictKey": null, "stndFieldKey": null, "stndComplianceLevel": null, "stndComplianceType": null, "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": "PASTE" }, { "id": "56ACF0F4-9740-4C7C-9F1D-5323160E4C81", "defKey": "contract_start_date", "defName": "合同有效期", "intro": null, "orderValue": null, "baseDataType": "DATE", "bizDomainType": "", "dbDataType": "DATE", "dataLen": "", "numScale": null, "primaryKey": null, "notNull": 1, "autoIncrement": null, "defaultValue": null, "stndDictId": null, "stndDictKey": null, "stndFieldId": null, "stndFieldKey": null, "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": null, "stndComplianceType": null, "stndComplianceLevel": null, "updatedUserId": null, "createdUserId": null }, { "id": "95272681-6D8F-455C-B001-E673DB9C5ABE", "defKey": "contract_end_date", "defName": "合同有效期", "intro": null, "baseDataType": "DATE", "bizDomainType": "", "dbDataType": "DATE", "dataLen": "", "numScale": null, "primaryKey": 0, "notNull": 0, "autoIncrement": 0, "defaultValue": null, "stndDictId": null, "stndFieldId": null, "stndDictKey": null, "stndFieldKey": null, "stndComplianceLevel": null, "stndComplianceType": null, "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": "PASTE" }, { "id": "006D68E5-8719-4AE7-8B5A-4747AD63863C", "defKey": "creator_id", "defName": "创建人 Id", "intro": " sys_user.id", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "37072BDC-3D3F-46C4-A99D-C19741E47091", "defKey": "modifier_id", "defName": "修改人 Id", "intro": " sys_user.id", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": [], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "93452E2B-7BBC-4ADC-BD2C-C4BA36E9ED8A", "defKey": "create_time", "defName": "创建时间", "intro": "", "baseDataType": "DATETIME", "bizDomainType": "", "dbDataType": "DATETIME", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": [], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "EDCF1D2F-FBA6-451A-B1E7-9F4929CF1942", "defKey": "modify_time", "defName": "修改时间", "intro": "", "baseDataType": "DATETIME", "bizDomainType": "", "dbDataType": "DATETIME", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": [], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "D336B018-F9D1-449F-99FD-F2AC23C384BF", "defKey": "deleted", "defName": "是否删除", "intro": " 0-->未删除、1-->已删除", "baseDataType": "TINYINT", "bizDomainType": "", "dbDataType": "TINYINT", "dataLen": 1, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "0", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": [], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" } ], "correlations": null, "indexes": [] }, { "id": "1DF0083F-E75C-45CA-BCCF-62018CC23FC3", "schemaName": null, "defKey": "cst_org_apply", "defName": "加入组织申请", "intro": "", "type": "P", "fields": [ { "id": "4945A6AF-1AD9-4E97-B303-F500F6879014", "defKey": "id", "defName": "Id", "intro": "", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 1, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": [], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "79929872-B111-40E0-ADD0-3C5A3D4EA940", "defKey": "customer_id", "defName": "申请人 Id", "intro": "", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "UI" }, { "id": "780D6601-0074-4652-B97F-381AB3324473", "defKey": "org_id", "defName": "加入的组织 Id", "intro": "", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "UI" }, { "id": "ED8809B1-AF70-433F-8833-D770CD5D29D9", "defKey": "apply_time", "defName": "申请时间", "intro": "", "baseDataType": "DATETIME", "bizDomainType": "", "dbDataType": "DATETIME", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "UI" }, { "id": "4376B37E-D16A-49FE-97FF-EE3A5D541010", "defKey": "apply_status", "defName": "状态", "intro": "", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 16, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "apply_status", "stndFieldId": "", "stndDictKey": "apply_status", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "Manual", "dictItems": [ { "itemKey": "ShenQingZhong", "itemName": "申请中", "parentKey": "", "intro": "", "id": "68F68505-D67B-43A1-81B4-600F00AD7E46" }, { "itemKey": "JuJue", "itemName": "拒绝", "parentKey": "", "intro": "", "id": "668C27A8-20C5-4845-B401-3256B189EA45" }, { "itemKey": "TongYi", "itemName": "同意", "parentKey": "", "intro": "", "id": "7FC50C33-416B-4629-ABB5-723CC5E08BE6" } ], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "UI" }, { "id": "EDA3055A-7E79-4C69-845A-91536EFEC167", "defKey": "cause", "defName": "拒绝原因", "intro": "", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 512, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "''", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "UI" }, { "id": "445D46C8-5B41-44C6-8CF6-FC4CE511E15C", "defKey": "creator_id", "defName": "创建人 Id", "intro": " sys_user.id", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "6A935CA0-4E04-4A77-85AE-939F36901E69", "defKey": "modifier_id", "defName": "修改人 Id", "intro": " sys_user.id", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": [], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "0280767C-5CD5-4C53-BF39-FC05640C329B", "defKey": "create_time", "defName": "创建时间", "intro": "", "baseDataType": "DATETIME", "bizDomainType": "", "dbDataType": "DATETIME", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": [], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "656B13D9-3615-46F6-9A93-18357EE3E3D4", "defKey": "modify_time", "defName": "修改时间", "intro": "", "baseDataType": "DATETIME", "bizDomainType": "", "dbDataType": "DATETIME", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": [], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "293E0D32-6E33-4ED0-97AE-A9C61A2CCA93", "defKey": "deleted", "defName": "是否删除", "intro": " 0-->未删除、1-->已删除", "baseDataType": "TINYINT", "bizDomainType": "", "dbDataType": "TINYINT", "dataLen": 1, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "0", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": [], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" } ], "indexes": [] }, { "id": "F911D1E8-57E3-4C1B-8F65-20ED00A70A76", "type": "P", "defKey": "mfg_bom", "defName": "物料清单", "intro": "", "schemaName": null, "props": null, "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "fields": [ { "id": "BEB2C4A8-2452-426D-9BD6-D6B30BBBA4CD", "defKey": "id", "defName": "Id", "intro": null, "orderValue": null, "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": null, "numScale": null, "primaryKey": 1, "notNull": 1, "autoIncrement": 0, "defaultValue": null, "stndDictId": null, "stndDictKey": null, "stndFieldId": null, "stndFieldKey": null, "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": null, "stndComplianceType": null, "stndComplianceLevel": null, "updatedUserId": null, "createdUserId": null }, { "id": "4C08B784-79F5-4C97-919B-C6DA9E7ED12C", "defKey": "sn", "defName": "编码", "intro": "", "orderValue": null, "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 255, "numScale": null, "primaryKey": null, "notNull": 1, "autoIncrement": null, "defaultValue": null, "stndDictId": null, "stndDictKey": null, "stndFieldId": null, "stndFieldKey": null, "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": "PDManer", "attr19": null, "attr20": null, "origin": null, "stndComplianceType": null, "stndComplianceLevel": null, "updatedUserId": null, "createdUserId": null, "dictItems": [] }, { "id": "8DDF0A45-9E97-4634-8B19-8A5EAB024D1B", "defKey": "good_id", "defName": "主产品 Id", "intro": "gds_goods.id", "orderValue": null, "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": null, "numScale": null, "primaryKey": null, "notNull": 1, "autoIncrement": null, "defaultValue": null, "stndDictId": null, "stndDictKey": null, "stndFieldId": null, "stndFieldKey": null, "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": null, "stndComplianceType": null, "stndComplianceLevel": null, "updatedUserId": null, "createdUserId": null }, { "id": "2A59E344-588C-40BC-9A93-24544D3A78F0", "defKey": "bom_ver", "defName": "物料清单版本号", "intro": null, "orderValue": null, "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 32, "numScale": null, "primaryKey": null, "notNull": 1, "autoIncrement": null, "defaultValue": null, "stndDictId": null, "stndDictKey": null, "stndFieldId": null, "stndFieldKey": null, "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": null, "stndComplianceType": null, "stndComplianceLevel": null, "updatedUserId": null, "createdUserId": null }, { "id": "4E8806B4-668D-4D2C-B8EB-517906A77AD1", "defKey": "canuse", "defName": "是否可用", "intro": "0-->否、1-->是", "baseDataType": "TINYINT", "bizDomainType": "", "dbDataType": "TINYINT", "dataLen": 1, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "1", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "UI" }, { "id": "49602D4B-1A59-4143-BFF0-92A19054DAC4", "defKey": "memo", "defName": "备注", "intro": "", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 512, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "''", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": [], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "UI" }, { "id": "A711AD40-5F4A-4EAF-909F-4C6A22505182", "defKey": "creator_id", "defName": "创建人 Id", "intro": " sys_user.id", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "E27E6D09-B1D2-43FF-9562-FD59208295A4", "defKey": "modifier_id", "defName": "修改人 Id", "intro": " sys_user.id", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": [], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "7CCEF62C-0564-4663-AE31-5FAC934F51B8", "defKey": "create_time", "defName": "创建时间", "intro": "", "baseDataType": "DATETIME", "bizDomainType": "", "dbDataType": "DATETIME", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": [], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "E87CD602-69C3-4A7A-9E68-D705E13E4A3E", "defKey": "modify_time", "defName": "修改时间", "intro": "", "baseDataType": "DATETIME", "bizDomainType": "", "dbDataType": "DATETIME", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": [], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "FAC8B62D-6583-4359-924D-BB2701F15249", "defKey": "deleted", "defName": "是否删除", "intro": " 0-->未删除、1-->已删除", "baseDataType": "TINYINT", "bizDomainType": "", "dbDataType": "TINYINT", "dataLen": 1, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "0", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": [], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" } ], "correlations": null, "indexes": [] }, { "id": "DB9FCE82-2E82-48C7-A39D-33BC31AFE14E", "type": "P", "defKey": "mfg_bom_detail", "defName": "物料清单明细", "intro": null, "schemaName": null, "props": null, "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "fields": [ { "id": "31400E61-79AC-457C-B902-91176FF7EE82", "defName": "Id", "intro": null, "orderValue": null, "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": null, "numScale": null, "primaryKey": 1, "notNull": 1, "autoIncrement": 0, "defaultValue": null, "stndDictId": null, "stndDictKey": null, "stndFieldId": null, "stndFieldKey": null, "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": "PDManer", "attr19": null, "attr20": null, "origin": null, "stndComplianceType": null, "stndComplianceLevel": null, "updatedUserId": null, "createdUserId": null, "dictItems": [], "defKey": "id" }, { "id": "CB76432E-09F2-4715-9CC4-733574551E0A", "defKey": "bom_id", "defName": "物料清单 Id", "intro": "mfg_bom.id", "orderValue": null, "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": null, "numScale": null, "primaryKey": null, "notNull": 1, "autoIncrement": null, "defaultValue": null, "stndDictId": null, "stndDictKey": null, "stndFieldId": null, "stndFieldKey": null, "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": null, "stndComplianceType": null, "stndComplianceLevel": null, "updatedUserId": null, "createdUserId": null }, { "id": "B2000234-BB5B-4283-9163-FBBEF6BC1E05", "defKey": "goods_id", "defName": "产品 Id", "intro": "gds_goods.id", "orderValue": null, "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": null, "primaryKey": null, "notNull": 1, "autoIncrement": null, "defaultValue": null, "stndDictId": null, "stndDictKey": null, "stndFieldId": null, "stndFieldKey": null, "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": null, "stndComplianceType": null, "stndComplianceLevel": null, "updatedUserId": null, "createdUserId": null }, { "id": "952EAE76-2125-4A33-A379-D622AD412542", "defKey": "mtl_type", "defName": "物料类型", "intro": null, "orderValue": null, "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 32, "numScale": null, "primaryKey": null, "notNull": 1, "autoIncrement": null, "defaultValue": null, "stndDictId": "mtl_type", "stndDictKey": "mtl_type", "stndFieldId": null, "stndFieldKey": null, "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": null, "stndComplianceType": null, "stndComplianceLevel": null, "updatedUserId": null, "createdUserId": null, "dictFrom": "Manual", "dictItems": [ { "itemKey": "YuanLiao", "itemName": "原料", "parentKey": "", "intro": "", "id": "3D669B85-F749-4758-ACBD-1B21E3246223" }, { "itemKey": "FuChanPin", "itemName": "副产品", "parentKey": "", "intro": "", "id": "9E951F55-07DC-46A9-99EE-D963E546D3E5" }, { "itemKey": "ZhuChanPin", "itemName": "主产品", "parentKey": "", "intro": "", "id": "3D3E2A26-1857-4D6A-A5AC-6A0701BFB664" } ] }, { "id": "49A9B72A-1A52-4B1E-933B-9B2E9B113585", "defKey": "chu", "defName": "是否为产出", "intro": "0-->否、1-->是", "baseDataType": "TINYINT", "bizDomainType": "", "dbDataType": "TINYINT", "dataLen": 1, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": null, "stndDictKey": "", "stndFieldKey": null, "stndComplianceLevel": null, "stndComplianceType": null, "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": "PASTE" }, { "id": "76D00ED9-29FD-451C-B845-94D81872E362", "defKey": "quantity", "defName": "消耗/产出量", "intro": "如果为产出,则此值为 1", "orderValue": null, "baseDataType": "DECIMAL", "bizDomainType": "", "dbDataType": "DECIMAL", "dataLen": 17, "numScale": 3, "primaryKey": null, "notNull": 1, "autoIncrement": null, "defaultValue": null, "stndDictId": null, "stndDictKey": null, "stndFieldId": null, "stndFieldKey": null, "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": null, "stndComplianceType": null, "stndComplianceLevel": null, "updatedUserId": null, "createdUserId": null }, { "id": "BBA40B89-0104-4395-97ED-1AE7459819A5", "defKey": "mandatory", "defName": "是否必需", "intro": "0-->否、1-->是", "orderValue": null, "baseDataType": "TINYINT", "bizDomainType": "", "dbDataType": "TINYINT", "dataLen": 1, "numScale": null, "primaryKey": null, "notNull": 1, "autoIncrement": null, "defaultValue": "1", "stndDictId": null, "stndDictKey": null, "stndFieldId": null, "stndFieldKey": null, "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": null, "stndComplianceType": null, "stndComplianceLevel": null, "updatedUserId": null, "createdUserId": null } ], "correlations": null, "indexes": [] }, { "id": "B6FB46B6-0669-4946-B687-961098C80A39", "type": "P", "defKey": "mfg_craft_operation", "defName": "工序", "intro": null, "schemaName": null, "props": null, "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "fields": [ { "id": "EEF212F7-244D-47FD-B2B6-2A5594171786", "defKey": "id", "defName": "Id", "intro": null, "orderValue": null, "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": null, "numScale": null, "primaryKey": 1, "notNull": 1, "autoIncrement": 0, "defaultValue": null, "stndDictId": null, "stndDictKey": null, "stndFieldId": null, "stndFieldKey": null, "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": "PDManer", "attr19": null, "attr20": null, "origin": null, "stndComplianceType": null, "stndComplianceLevel": null, "updatedUserId": null, "createdUserId": null, "dictItems": [] }, { "id": "DA04390D-4EBF-4808-8248-7DA8DF5A92D2", "defKey": "sn", "defName": "编号", "intro": null, "orderValue": null, "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 255, "numScale": null, "primaryKey": null, "notNull": 1, "autoIncrement": null, "defaultValue": null, "stndDictId": null, "stndDictKey": null, "stndFieldId": null, "stndFieldKey": null, "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": "PDManer", "attr19": null, "attr20": "2F3E9658-790E-40CA-9242-7B5F2A4AECDC", "origin": null, "stndComplianceType": null, "stndComplianceLevel": null, "updatedUserId": null, "createdUserId": null, "dictItems": [] }, { "id": "2AE67567-1B1A-466C-8681-913A43464EB2", "defKey": "operation_name", "defName": "工序名称", "intro": null, "orderValue": null, "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 128, "numScale": null, "primaryKey": null, "notNull": 1, "autoIncrement": null, "defaultValue": null, "stndDictId": null, "stndDictKey": null, "stndFieldId": null, "stndFieldKey": null, "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": null, "stndComplianceType": null, "stndComplianceLevel": null, "updatedUserId": null, "createdUserId": null }, { "id": "7FD05023-7CEE-4293-8A86-58F405AFB814", "defKey": "operation_category", "defName": "工序类型", "intro": "字典编码:operation_category", "orderValue": null, "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 32, "numScale": null, "primaryKey": null, "notNull": 1, "autoIncrement": null, "defaultValue": null, "stndDictId": "", "stndDictKey": "", "stndFieldId": null, "stndFieldKey": null, "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": null, "stndComplianceType": null, "stndComplianceLevel": null, "updatedUserId": null, "createdUserId": null, "dictFrom": "" }, { "id": "E63791FB-8EB3-40BD-8C34-4E3F5E3FFFA0", "defKey": "std_cycle", "defName": "标准节拍", "intro": "单位:N/分钟", "orderValue": null, "baseDataType": "DECIMAL", "bizDomainType": "", "dbDataType": "DECIMAL", "dataLen": 10, "numScale": 3, "primaryKey": null, "notNull": 1, "autoIncrement": null, "defaultValue": null, "stndDictId": null, "stndDictKey": null, "stndFieldId": null, "stndFieldKey": null, "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": null, "stndComplianceType": null, "stndComplianceLevel": null, "updatedUserId": null, "createdUserId": null }, { "id": "ED19C45C-11ED-402D-8A6C-470AEEE863C9", "defKey": "check_point", "defName": "是否质检节点", "intro": "0-->否、1-->是", "baseDataType": "TINYINT", "bizDomainType": "", "dbDataType": "TINYINT", "dataLen": 1, "numScale": null, "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "0", "stndDictId": null, "stndFieldId": null, "stndDictKey": null, "stndFieldKey": null, "stndComplianceLevel": null, "stndComplianceType": null, "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": "PASTE" }, { "id": "718EF98E-8C67-4467-8FEB-B30631A8C56F", "defKey": "canuse", "defName": "是否可用", "intro": "0-->否、1-->是", "orderValue": null, "baseDataType": "TINYINT", "bizDomainType": "", "dbDataType": "TINYINT", "dataLen": 1, "numScale": null, "primaryKey": null, "notNull": 1, "autoIncrement": null, "defaultValue": "1", "stndDictId": null, "stndDictKey": null, "stndFieldId": null, "stndFieldKey": null, "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": null, "stndComplianceType": null, "stndComplianceLevel": null, "updatedUserId": null, "createdUserId": null }, { "id": "DDAF2B96-35B3-4FEE-B7AA-CCBA79A48202", "defKey": "memo", "defName": "备注", "intro": "", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 512, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "''", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": [], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "D962D27F-A43E-4397-81AA-4FCA15F83A87", "defKey": "creator_id", "defName": "创建人 Id", "intro": "sys_user.id", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "D5E87F91-D409-4D5E-B5EC-31D00F2669DD", "defKey": "modifier_id", "defName": "修改人 Id", "intro": "sys_user.id", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": [], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "4B42E501-6BFF-47FB-BACB-384B5F552CF1", "defKey": "create_time", "defName": "创建时间", "intro": "", "baseDataType": "DATETIME", "bizDomainType": "", "dbDataType": "DATETIME", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": [], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "AD75E7C8-CE68-4EA9-B0F0-EB0DFC62DEA3", "defKey": "modify_time", "defName": "修改时间", "intro": "", "baseDataType": "DATETIME", "bizDomainType": "", "dbDataType": "DATETIME", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": [], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "3D7F9B6F-5A7F-4085-A4C1-46C2D74E718B", "defKey": "deleted", "defName": "是否删除", "intro": " 0-->未删除、1-->已删除", "baseDataType": "TINYINT", "bizDomainType": "", "dbDataType": "TINYINT", "dataLen": 1, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "0", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": [], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" } ], "correlations": null, "indexes": [] }, { "id": "CDADA174-8ECA-4330-A44B-0DB60C18F25D", "type": "P", "defKey": "mfg_craft_way", "defName": "工艺路线", "intro": null, "schemaName": null, "props": null, "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "fields": [ { "id": "A1BDD7A4-5041-4771-BF86-7825D9E18DC5", "defKey": "id", "defName": "Id", "intro": null, "orderValue": null, "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": null, "numScale": null, "primaryKey": 1, "notNull": 1, "autoIncrement": 0, "defaultValue": null, "stndDictId": null, "stndDictKey": null, "stndFieldId": null, "stndFieldKey": null, "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": "PDManer", "attr19": null, "attr20": null, "origin": null, "stndComplianceType": null, "stndComplianceLevel": null, "updatedUserId": null, "createdUserId": null, "dictItems": [] }, { "id": "55D1724F-7B0B-4FC6-A121-D8C9E026A0FE", "defKey": "craft_id", "defName": "工艺 Id", "intro": null, "orderValue": null, "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": null, "numScale": null, "primaryKey": null, "notNull": 1, "autoIncrement": null, "defaultValue": null, "stndDictId": null, "stndDictKey": null, "stndFieldId": null, "stndFieldKey": null, "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": null, "stndComplianceType": null, "stndComplianceLevel": null, "updatedUserId": null, "createdUserId": null }, { "id": "8AB9DCC1-DA8E-4B68-BE61-BC0CCF3ABC6D", "defKey": "operation_id", "defName": "工序 Id", "intro": "mfg_craft_operation.id", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "UI" }, { "id": "E41CF8B0-766C-44B5-BCB1-E610DEDFE072", "defKey": "bom_id", "defName": "物料清单 Id", "intro": "", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "UI" }, { "id": "7A724CA7-C201-4B61-A9E5-FF3228453140", "defKey": "step", "defName": "步骤", "intro": "同一工艺下相同步骤的工序为并行工序", "orderValue": null, "baseDataType": "INT", "bizDomainType": "", "dbDataType": "INT", "dataLen": null, "numScale": null, "primaryKey": null, "notNull": 1, "autoIncrement": null, "defaultValue": "", "stndDictId": null, "stndDictKey": null, "stndFieldId": null, "stndFieldKey": null, "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": "PDManer", "attr19": null, "attr20": null, "origin": null, "stndComplianceType": null, "stndComplianceLevel": null, "updatedUserId": null, "createdUserId": null, "dictItems": [] }, { "id": "D8A951D9-F057-4581-A1B1-A7FEF666A214", "defKey": "memo", "defName": "备注", "intro": "", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 512, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "''", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": [], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "UI" } ], "correlations": null, "indexes": [] }, { "id": "78C76768-76BB-48CA-9938-6ED5F823D153", "schemaName": null, "defKey": "mfg_production_plan", "defName": "生产计划", "intro": "", "type": "P", "fields": [ { "id": "12729362-3601-4BE5-8728-C31D6F6597DE", "defKey": "id", "defName": "Id", "intro": "", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 1, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": [], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "BF94B172-A225-42BA-8694-99B46AD1EA3C", "defKey": "sn", "defName": "编号", "intro": "", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 255, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": [], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "2F3E9658-790E-40CA-9242-7B5F2A4AECDC", "origin": "UI" }, { "id": "0D46FFCF-3939-42BE-8EBB-9C11D26C465A", "defKey": "plan_name", "defName": "计划名称", "intro": "", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 128, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "UI" }, { "id": "90913594-6065-48D8-AF89-15FF8E35E082", "defKey": "create_mode", "defName": "创建方式", "intro": "", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 16, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "create_mode", "stndFieldId": "", "stndDictKey": "create_mode", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "Manual", "dictItems": [ { "itemKey": "AI", "itemName": "AI 创建", "parentKey": "", "intro": "", "id": "372F1C98-B6C8-4EBD-A003-281A0DC6D36C" }, { "itemKey": "RenGong", "itemName": "人工创建", "parentKey": "", "intro": "", "id": "BF0CA888-AC86-4420-B389-88A88284B86D" } ], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "UI" }, { "id": "1E28DA76-F369-40EF-B9AF-D50A7449AF40", "defKey": "planning_cycle_start_date", "defName": "计划周期", "intro": "开始", "baseDataType": "DATE", "bizDomainType": "", "dbDataType": "DATE", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "UI" }, { "id": "1A5A3E21-61D2-4840-9B40-810853270E03", "defKey": "planning_cycle_end_date", "defName": "计划周期", "intro": "结束", "baseDataType": "DATE", "bizDomainType": "", "dbDataType": "DATE", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "UI" }, { "id": "B86EC95D-103E-4704-A378-6701652139D4", "defKey": "daily_count", "defName": "天数", "intro": "", "baseDataType": "INT", "bizDomainType": "", "dbDataType": "INT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "UI" }, { "id": "5621DDA2-EC3D-4D82-92D7-1FE5DBD0E328", "defKey": "plan_status", "defName": "状态", "intro": "", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 32, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "plan_status", "stndFieldId": "", "stndDictKey": "plan_status", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "Manual", "dictItems": [ { "itemKey": "DaiZhiXing", "itemName": "待执行", "parentKey": "", "intro": "", "id": "781E9A57-8FB7-4D44-9CA0-1DB836BCC2FD" }, { "itemKey": "ZhiXingZhong", "itemName": "执行中", "parentKey": "", "intro": "", "id": "DB8E76CA-21CE-4B1E-95D4-A57534E40E92" }, { "itemKey": "YiWanCheng", "itemName": "已完成", "parentKey": "", "intro": "", "id": "C68C27DC-9927-4F55-B71A-8DED55F6743C" }, { "itemKey": "YiQuXiao", "itemName": "已取消", "parentKey": "", "intro": "", "id": "C8D688B5-3D4D-477F-A453-C4CD8D78F470" } ], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "UI" }, { "id": "8C78F09B-314C-4F5D-8DF2-8C22682A8771", "defKey": "craft_id", "defName": "工艺 Id", "intro": null, "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": null, "numScale": null, "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": null, "stndFieldId": null, "stndDictKey": null, "stndFieldKey": null, "stndComplianceLevel": null, "stndComplianceType": null, "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": "PASTE" }, { "id": "D3BD86B3-8BCC-4410-A133-7E7501A36FC9", "defKey": "quantity", "defName": "计划产出", "intro": "", "baseDataType": "DECIMAL", "bizDomainType": "", "dbDataType": "DECIMAL", "dataLen": 17, "numScale": 3, "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "UI" }, { "id": "1C388F19-9E35-4120-9B62-801BEB8D10FE", "defKey": "avg_quantity", "defName": "每日平均产出", "intro": "", "baseDataType": "DOUBLE", "bizDomainType": "", "dbDataType": "DOUBLE", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "UI" }, { "id": "E7F3CB92-4309-4B93-8A7A-1D7CE71AB853", "defKey": "creator_id", "defName": "创建人 Id", "intro": " sys_user.id", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "A22B0A61-5A0D-4DD7-A176-8B5C1578510D", "defKey": "modifier_id", "defName": "修改人 Id", "intro": " sys_user.id", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": [], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "82C27584-A9B6-4814-841B-3E1E9CE65D13", "defKey": "create_time", "defName": "创建时间", "intro": "", "baseDataType": "DATETIME", "bizDomainType": "", "dbDataType": "DATETIME", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": [], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "5FC96E8E-A634-4582-AA3E-7E7C726648B3", "defKey": "modify_time", "defName": "修改时间", "intro": "", "baseDataType": "DATETIME", "bizDomainType": "", "dbDataType": "DATETIME", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": [], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "BC017547-8B3E-41DC-A67A-E8A72BFC6D17", "defKey": "deleted", "defName": "是否删除", "intro": " 0-->未删除、1-->已删除", "baseDataType": "TINYINT", "bizDomainType": "", "dbDataType": "TINYINT", "dataLen": 1, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "0", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": [], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" } ], "indexes": [] }, { "id": "0D72401C-EA42-4DE0-B0F1-D05DAFF7D265", "schemaName": null, "defKey": "mfg_production_plan_detail", "defName": "生产计划物料详情", "intro": "", "type": "P", "fields": [ { "id": "B4E24850-37B1-46C3-BCD2-9700E3611A12", "defKey": "id", "defName": "Id", "intro": "", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 1, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": [], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "E9392774-CBCD-4EDB-9B26-797E6F3D253D", "defKey": "plan_id", "defName": "生产计划 Id", "intro": "", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "UI" }, { "id": "8DF3D3FF-9B26-435D-AF58-2A5338D3C62A", "defKey": "basis", "defName": "是否为计算依据", "intro": "0-->否、1-->是", "baseDataType": "TINYINT", "bizDomainType": "", "dbDataType": "TINYINT", "dataLen": 1, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "UI" }, { "id": "8B233497-264C-4142-8221-4CD8995862DD", "defKey": "goods_id", "defName": "产品 Id", "intro": "gds_goods.id", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": null, "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": null, "stndDictId": null, "stndFieldId": null, "stndDictKey": null, "stndFieldKey": null, "stndComplianceLevel": null, "stndComplianceType": null, "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": "PASTE" }, { "id": "6CA9BB0E-D699-401D-822D-7CDD2F18D687", "defKey": "mtl_type", "defName": "物料类型", "intro": null, "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 32, "numScale": null, "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": null, "stndDictId": "mtl_type", "stndFieldId": null, "stndDictKey": "mtl_type", "stndFieldKey": null, "stndComplianceLevel": null, "stndComplianceType": null, "dictFrom": "Manual", "dictItems": [ { "itemKey": "YuanLiao", "itemName": "原料", "parentKey": "", "intro": "", "id": "3D669B85-F749-4758-ACBD-1B21E3246223" }, { "itemKey": "FuChanPin", "itemName": "副产品", "parentKey": "", "intro": "", "id": "9E951F55-07DC-46A9-99EE-D963E546D3E5" }, { "itemKey": "ZhuChanPin", "itemName": "主产品", "parentKey": "", "intro": "", "id": "3D3E2A26-1857-4D6A-A5AC-6A0701BFB664" } ], "fieldTier": "", "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": "PASTE" }, { "id": "2C219BA5-5D38-4AB1-A104-1E89A932AFCE", "defKey": "chu", "defName": "是否为产出", "intro": "0-->否、1-->是", "baseDataType": "TINYINT", "bizDomainType": "", "dbDataType": "TINYINT", "dataLen": 1, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": null, "stndDictKey": "", "stndFieldKey": null, "stndComplianceLevel": null, "stndComplianceType": null, "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": "PASTE" }, { "id": "812D605D-9A20-4F5F-A228-FC8648A50F7C", "defKey": "quantity", "defName": "消耗/产出量", "intro": "", "baseDataType": "DECIMAL", "bizDomainType": "", "dbDataType": "DECIMAL", "dataLen": 17, "numScale": 3, "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": null, "stndDictId": null, "stndFieldId": null, "stndDictKey": null, "stndFieldKey": null, "stndComplianceLevel": null, "stndComplianceType": null, "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": "PASTE" }, { "id": "8EEA51B9-25ED-43F1-94EC-CEB0A305E19B", "defKey": "mandatory", "defName": "是否必需", "intro": "0-->否、1-->是", "baseDataType": "TINYINT", "bizDomainType": "", "dbDataType": "TINYINT", "dataLen": 1, "numScale": null, "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "1", "stndDictId": null, "stndFieldId": null, "stndDictKey": null, "stndFieldKey": null, "stndComplianceLevel": null, "stndComplianceType": null, "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": "PASTE" } ], "indexes": [] }, { "id": "38F860DC-AECC-4D1C-ADC1-EF9503EA431F", "schemaName": null, "defKey": "mfg_production_plan_daily_detail", "defName": "生产计划每日物料详情", "intro": "", "type": "P", "fields": [ { "id": "D76FC5A7-8FE9-486F-B922-DE5F8C49E444", "defKey": "id", "defName": "Id", "intro": "", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 1, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": [], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "8F08405D-2956-4D20-B7F2-287F2D4B34DB", "defKey": "plan_id", "defName": "生产计划 Id", "intro": "", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "UI" }, { "id": "F765BD23-765C-4D71-8971-A8E7E97135CB", "defKey": "daily", "defName": "日期", "intro": "", "baseDataType": "DATE", "bizDomainType": "", "dbDataType": "DATE", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "UI" }, { "id": "25937BC8-0C14-4727-84FB-FE3F06973501", "defKey": "basis", "defName": "是否为计算依据", "intro": "0-->否、1-->是", "baseDataType": "TINYINT", "bizDomainType": "", "dbDataType": "TINYINT", "dataLen": 1, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "UI" }, { "id": "D2E008E1-D111-4FC3-A768-9EFDDAB33BE8", "defKey": "goods_id", "defName": "产品 Id", "intro": "gds_goods.id", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": null, "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": null, "stndDictId": null, "stndFieldId": null, "stndDictKey": null, "stndFieldKey": null, "stndComplianceLevel": null, "stndComplianceType": null, "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": "PASTE" }, { "id": "D2A7C508-89D8-447D-B416-8B3D4BB004C8", "defKey": "mtl_type", "defName": "物料类型", "intro": null, "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 32, "numScale": null, "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": null, "stndDictId": "mtl_type", "stndFieldId": null, "stndDictKey": "mtl_type", "stndFieldKey": null, "stndComplianceLevel": null, "stndComplianceType": null, "dictFrom": "Manual", "dictItems": [ { "itemKey": "YuanLiao", "itemName": "原料", "parentKey": "", "intro": "", "id": "3D669B85-F749-4758-ACBD-1B21E3246223" }, { "itemKey": "FuChanPin", "itemName": "副产品", "parentKey": "", "intro": "", "id": "9E951F55-07DC-46A9-99EE-D963E546D3E5" }, { "itemKey": "ZhuChanPin", "itemName": "主产品", "parentKey": "", "intro": "", "id": "3D3E2A26-1857-4D6A-A5AC-6A0701BFB664" } ], "fieldTier": "", "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": "PASTE" }, { "id": "618503C9-04FE-48AF-BD19-05D495B0176B", "defKey": "chu", "defName": "是否为产出", "intro": "0-->否、1-->是", "baseDataType": "TINYINT", "bizDomainType": "", "dbDataType": "TINYINT", "dataLen": 1, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": null, "stndDictKey": "", "stndFieldKey": null, "stndComplianceLevel": null, "stndComplianceType": null, "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": "PASTE" }, { "id": "048F17FB-BA0D-4890-8295-FD9D63F2116A", "defKey": "quantity", "defName": "消耗/产出量", "intro": "", "baseDataType": "DECIMAL", "bizDomainType": "", "dbDataType": "DECIMAL", "dataLen": 17, "numScale": 3, "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": null, "stndDictId": null, "stndFieldId": null, "stndDictKey": null, "stndFieldKey": null, "stndComplianceLevel": null, "stndComplianceType": null, "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": "PASTE" }, { "id": "7555DF9A-1EA3-4BDE-9A34-71C3E35C2836", "defKey": "mandatory", "defName": "是否必需", "intro": "0-->否、1-->是", "baseDataType": "TINYINT", "bizDomainType": "", "dbDataType": "TINYINT", "dataLen": 1, "numScale": null, "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "1", "stndDictId": null, "stndFieldId": null, "stndDictKey": null, "stndFieldKey": null, "stndComplianceLevel": null, "stndComplianceType": null, "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": "PASTE" } ], "indexes": [], "origin": "PASTE" }, { "id": "A3717326-9BB6-497C-B379-114B5DDB1CFF", "schemaName": null, "defKey": "mfg_production_plan_daily_report", "defName": "生产计划每日报告", "intro": "", "type": "P", "fields": [ { "id": "DABF9CF1-87E4-4385-8EAF-5D577BE4BF88", "defKey": "id", "defName": "Id", "intro": "", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 1, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": [], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "B3149793-7DBF-4C2E-A225-0E7D5DC4D9EC", "defKey": "plan_id", "defName": "生产计划 Id", "intro": "", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "UI" }, { "id": "08B6AAA9-C9F5-4B56-BAA7-5DF786F6F225", "defKey": "daily", "defName": "日期", "intro": "", "baseDataType": "DATE", "bizDomainType": "", "dbDataType": "DATE", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "UI" }, { "id": "0D3D12EF-A43B-4B31-9211-2E9702EE5918", "defKey": "goods_id", "defName": "产品 Id", "intro": "gds_goods.id", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": null, "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": null, "stndDictId": null, "stndFieldId": null, "stndDictKey": null, "stndFieldKey": null, "stndComplianceLevel": null, "stndComplianceType": null, "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": "PASTE" }, { "id": "40DAE232-B72F-4E74-A7E6-725433F50B06", "defKey": "mtl_type", "defName": "物料类型", "intro": null, "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 32, "numScale": null, "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": null, "stndDictId": "mtl_type", "stndFieldId": null, "stndDictKey": "mtl_type", "stndFieldKey": null, "stndComplianceLevel": null, "stndComplianceType": null, "dictFrom": "Manual", "dictItems": [ { "itemKey": "YuanLiao", "itemName": "原料", "parentKey": "", "intro": "", "id": "3D669B85-F749-4758-ACBD-1B21E3246223" }, { "itemKey": "FuChanPin", "itemName": "副产品", "parentKey": "", "intro": "", "id": "9E951F55-07DC-46A9-99EE-D963E546D3E5" }, { "itemKey": "ZhuChanPin", "itemName": "主产品", "parentKey": "", "intro": "", "id": "3D3E2A26-1857-4D6A-A5AC-6A0701BFB664" } ], "fieldTier": "", "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": "PASTE" }, { "id": "0FB53825-4816-42B4-954D-9B6C5C788EA2", "defKey": "chu", "defName": "是否为产出", "intro": "0-->否、1-->是", "baseDataType": "TINYINT", "bizDomainType": "", "dbDataType": "TINYINT", "dataLen": 1, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": null, "stndDictKey": "", "stndFieldKey": null, "stndComplianceLevel": null, "stndComplianceType": null, "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": "PASTE" }, { "id": "95235114-F37D-4806-990C-9BB40768BB1C", "defKey": "quantity", "defName": "消耗/产出量", "intro": "", "baseDataType": "DECIMAL", "bizDomainType": "", "dbDataType": "DECIMAL", "dataLen": 17, "numScale": 3, "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": null, "stndDictId": null, "stndFieldId": null, "stndDictKey": null, "stndFieldKey": null, "stndComplianceLevel": null, "stndComplianceType": null, "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": "PASTE" }, { "id": "0C901105-7EAB-4BEF-8E1C-EEBEB8B9AFA0", "defKey": "actual_quantity", "defName": "实际消耗/产出量", "intro": "", "baseDataType": "DECIMAL", "bizDomainType": "", "dbDataType": "DECIMAL", "dataLen": 17, "numScale": 3, "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "0.0", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "UI" }, { "id": "D73D6C3A-9D7B-42FA-8D53-95F2303F6252", "defKey": "deviation_rate", "defName": "偏差率", "intro": "", "baseDataType": "DECIMAL", "bizDomainType": "", "dbDataType": "DECIMAL", "dataLen": 5, "numScale": 2, "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "0.0", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "UI" }, { "id": "F0AB2288-D530-4730-99BC-7A98A5FB70F4", "defKey": "mandatory", "defName": "是否必需", "intro": "0-->否、1-->是", "baseDataType": "TINYINT", "bizDomainType": "", "dbDataType": "TINYINT", "dataLen": 1, "numScale": null, "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "1", "stndDictId": null, "stndFieldId": null, "stndDictKey": null, "stndFieldKey": null, "stndComplianceLevel": null, "stndComplianceType": null, "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": null, "attr2": null, "attr3": null, "attr4": null, "attr5": null, "attr6": null, "attr7": null, "attr8": null, "attr9": null, "attr10": null, "attr11": null, "attr12": null, "attr13": null, "attr14": null, "attr15": null, "attr16": null, "attr17": null, "attr18": null, "attr19": null, "attr20": null, "origin": "PASTE" } ], "indexes": [], "origin": "PASTE" }, { "id": "7B09A315-2996-4455-8893-EE3FC4EE6957", "schemaName": null, "defKey": "cst_order_payment_record", "defName": "付费记录", "intro": "", "type": "P", "fields": [ { "id": "3CCF2EA0-4DAA-48C9-83AF-F919667B7C9F", "defKey": "id", "defName": "Id", "intro": "", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 1, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": [], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "PDManer", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "7D14D51C-CE72-45D2-8B9F-324783C43574", "defKey": "order_id", "defName": "订单 Id", "intro": "", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "86AA1ED7-2EDA-4146-9A2D-2A3D16BD1BB8", "defKey": "expense_item_id", "defName": "订单收费项 Id", "intro": "", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "expense_item_category", "stndFieldId": "", "stndDictKey": "expense_item_category", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "Manual", "dictItems": [ { "itemKey": "QiTa", "itemName": "其他", "parentKey": "", "intro": "", "id": "B4560F4E-C17C-45E6-BA46-F24447710D73" }, { "itemKey": "ChanPin", "itemName": "产品", "parentKey": "", "intro": "", "id": "1078D9EB-D7B7-4AE4-BB59-C5981DFFE609" }, { "itemKey": "YunFei", "itemName": "运费", "parentKey": "", "intro": "", "id": "FD6A4FE8-84CF-4D2A-8430-3EB2D6AA0589" } ], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "46A1C2D2-A349-4304-9DA5-B7AE497BE8B8", "defKey": "trans_id", "defName": "运输记录 Id", "intro": "", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "56BCBF3C-3E0D-47FF-AF2F-4B7AA45C3F40", "defKey": "quantity", "defName": "量", "intro": "", "baseDataType": "DECIMAL", "bizDomainType": "", "dbDataType": "DECIMAL", "dataLen": 14, "numScale": 3, "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "0.0", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "F6FAAFE2-0BFC-43A0-914B-EA2679088862", "defKey": "payment_status", "defName": "支付状态", "intro": "", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 32, "numScale": "", "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "'WeiZhiFu'", "stndDictId": "payment_status", "stndFieldId": "", "stndDictKey": "payment_status", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "Manual", "dictItems": [ { "itemKey": "MianFei", "itemName": "免费", "parentKey": "", "intro": "", "id": "9C81AAAC-DB22-457A-876C-9B85357D3C08" }, { "itemKey": "WeiZhiFu", "itemName": "未支付", "parentKey": "", "intro": "", "id": "4E544E5C-3A58-4EF3-B43E-9920D95C4850" }, { "itemKey": "YiZhiFu", "itemName": "已支付", "parentKey": "", "intro": "", "id": "1FDE8C9C-AF01-4D10-8B81-BAD8B5D52EC9" }, { "itemKey": "YiTuiKuan", "itemName": "已退款", "parentKey": "", "intro": "", "id": "CD40B918-2BCD-4E02-B911-F05BBD0ADBBC" } ], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "0CADFC07-1A85-449A-994F-677B8D7E0818", "defKey": "pay_time", "defName": "支付时间", "intro": "", "baseDataType": "DATETIME", "bizDomainType": "", "dbDataType": "DATETIME", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 0, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "DEFB5B63-0704-40BE-9815-FD61A848FC0E", "defKey": "refund_time", "defName": "退款时间", "intro": "", "baseDataType": "DATETIME", "bizDomainType": "", "dbDataType": "DATETIME", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 0, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "18538C3A-4FCA-49F9-A685-4FE1788034BC", "defKey": "total_money", "defName": "总金额", "intro": "单位:元", "baseDataType": "DECIMAL", "bizDomainType": "", "dbDataType": "DECIMAL", "dataLen": 14, "numScale": 2, "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "0.0", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "D39055F4-F4E5-4691-9BED-88018A521684", "defKey": "discount_money", "defName": "优惠金额", "intro": "单位:元,有正负", "baseDataType": "DECIMAL", "bizDomainType": "", "dbDataType": "DECIMAL", "dataLen": 14, "numScale": 2, "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "0.0", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "BBD431AB-8B10-489D-98CE-8D7CD0703B4D", "defKey": "revise_money", "defName": "手动修正金额", "intro": "单位:元,有正负", "baseDataType": "DECIMAL", "bizDomainType": "", "dbDataType": "DECIMAL", "dataLen": 14, "numScale": 2, "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "0.0", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "0764E686-AF62-4AE1-835E-FC1A83EC0360", "defKey": "settle_money", "defName": "结算金额", "intro": "单位:元", "baseDataType": "DECIMAL", "bizDomainType": "", "dbDataType": "DECIMAL", "dataLen": 14, "numScale": 2, "primaryKey": 0, "notNull": 1, "autoIncrement": 0, "defaultValue": "0.0", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "C847A04E-0DDA-4D64-B615-BD8CCA77C74E", "defKey": "settlement_way", "defName": "结算方式", "intro": "", "baseDataType": "VARCHAR", "bizDomainType": "", "dbDataType": "VARCHAR", "dataLen": 16, "numScale": "", "primaryKey": 0, "notNull": 0, "autoIncrement": 0, "defaultValue": "", "stndDictId": "settlement_way", "stndFieldId": "", "stndDictKey": "settlement_way", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "Manual", "dictItems": [ { "itemKey": "YueJie", "itemName": "月结", "parentKey": "", "intro": "", "id": "21E8CE9A-A4E4-43EC-802F-C62332F485CE" }, { "itemKey": "YuE", "itemName": "余额", "parentKey": "", "intro": "", "id": "1E3F7458-C19E-481F-A6BB-881CB6E576CD" }, { "itemKey": "XianFu", "itemName": "现付", "parentKey": "", "intro": "", "id": "02F37949-4DCD-4BF8-93DB-76D974A1BC47" } ], "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "318DAC16-1A27-4FF9-8646-6D81FF4BE72D", "defKey": "payer_user_id", "defName": "付款人 Id", "intro": "sys_user.id", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 0, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "36E2C83A-EF1D-4CB1-9BAB-B608737F42CF", "defKey": "payer_customer_id", "defName": "付款人客户 Id", "intro": "cst_customer.id", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 0, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "PASTE" }, { "id": "2D04537A-155E-4724-A042-36399D3BA86C", "defKey": "payer_money_account_id", "defName": "付款方资金账户 Id", "intro": "", "baseDataType": "BIGINT", "bizDomainType": "", "dbDataType": "BIGINT", "dataLen": "", "numScale": "", "primaryKey": 0, "notNull": 0, "autoIncrement": 0, "defaultValue": "", "stndDictId": "", "stndFieldId": "", "stndDictKey": "", "stndFieldKey": "", "stndComplianceLevel": "", "stndComplianceType": "", "dictFrom": "", "dictItems": null, "fieldTier": "", "mark": null, "attr1": "", "attr2": "", "attr3": "", "attr4": "", "attr5": "", "attr6": "", "attr7": "", "attr8": "", "attr9": "", "attr10": "", "attr11": "", "attr12": "", "attr13": "", "attr14": "", "attr15": "", "attr16": "", "attr17": "", "attr18": "", "attr19": "", "attr20": "", "origin": "PASTE" } ], "indexes": [], "origin": "PASTE" } ], "diagrams": [], "readonly": false, "allowWs": false }, "updateTime": 1769681546984, "signature": "801934446dd8a6c05883f69ae8bcc081", "branchId": "1111" }