commit a321a028a7dbe9c4833da0cd56a99aec332e10d6 Author: chenlh <243533804@qq.com> Date: Thu Aug 28 10:43:50 2025 +0800 增加用户表、权限表等用户数据 diff --git a/FreeERP数据库模型.ndm2 b/FreeERP数据库模型.ndm2 new file mode 100644 index 0000000..c1d23c5 --- /dev/null +++ b/FreeERP数据库模型.ndm2 @@ -0,0 +1,5765 @@ +{ + "paper": { + "name": "A4", + "leftMargin": 0.5, + "rightMargin": 0.5, + "topMargin": 0.5, + "bottomMargin": 0.5, + "isPortriat": true + }, + "modelVersion": 2.01, + "defaultSchema": "default", + "server": { + "objectType": "Server_MARIADB", + "name": "Default", + "uuid": "", + "serverVersion": 100999, + "edition": "Default", + "lowerCaseTableNames": 0, + "schemas": [ + { + "objectType": "Schema_MARIADB", + "name": "default", + "tables": [], + "views": [] + }, + { + "objectType": "Schema_MARIADB", + "name": "free_erp", + "tables": [ + { + "objectType": "Table_MARIADB", + "name": "company_system_log", + "comment": "系统操作日志表", + "engine": "InnoDB", + "characterSet": "utf8mb4", + "collation": "utf8mb4_unicode_ci", + "autoIncrement": 104, + "tablespace": "", + "storage": "", + "insertMethod": "", + "connection": "", + "checksum": false, + "rowFormat": "Dynamic", + "avgRowLength": 0, + "maxRows": 0, + "minRows": 0, + "keyBlockSize": 0, + "packKeys": "", + "delayKeyWrite": false, + "dataDirectory": "", + "indexDirectory": "", + "statsAutoRecalc": "", + "statsPersistent": "", + "statsSamplePages": "", + "union": "", + "pageChecksum": false, + "transactional": false, + "oldName": "company_system_log", + "encryption": false, + "encryptionKeyID": 0, + "IETFQuotes": false, + "createOptions": "row_format=DYNAMIC", + "createTime": "2025-08-21 11:58:36", + "checkTime": "", + "dataFree": 0, + "dataLength": 49152, + "indexLength": 16384, + "maxDataLength": 0, + "rows": 94, + "updateTime": "2025-08-27 17:59:23", + "DDL": "CREATE TABLE `company_system_log` (\n `log_id` int(10) NOT NULL AUTO_INCREMENT,\n `company_id` int(11) NOT NULL COMMENT '公司标识',\n `object_id` int(11) DEFAULT NULL,\n `user_id` int(10) unsigned NOT NULL COMMENT '用户ID',\n `client_ip` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL COMMENT '用户IP',\n `module_name` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL COMMENT '模块名',\n `controller_name` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL COMMENT '控制器',\n `browser` varchar(64) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL DEFAULT '' COMMENT '浏览器',\n `version` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL,\n `menu_id` int(11) NOT NULL COMMENT '方法',\n `function_id` int(11) unsigned NOT NULL DEFAULT 0 COMMENT '操作ID',\n `action_val` tinyint(1) NOT NULL DEFAULT 0 COMMENT '1为删除操作',\n `new_data` text CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL,\n `old_data` text CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL,\n `content` text CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL COMMENT '内容',\n `create_date` datetime NOT NULL DEFAULT current_timestamp(),\n PRIMARY KEY (`log_id`) USING BTREE,\n KEY `idx_company_system_log_company_id` (`company_id`) USING BTREE\n) ENGINE=InnoDB AUTO_INCREMENT=104 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC COMMENT='系统操作日志表'", + "partitionBy": "", + "partitionByExpr": "", + "partitions": 0, + "partitionKeyAlgorithm": "", + "subPartitionBy": "", + "subPartitionByExpr": "", + "subPartitions": 0, + "subPartitionKeyAlgorithm": "", + "fields": [ + { + "objectType": "TableField_MARIADB", + "name": "log_id", + "type": "int", + "length": 10, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "", + "collation": "", + "check": "", + "isNullable": false, + "defaultType": "None", + "defaultValue": "", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": true, + "comment": "", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "log_id" + }, + { + "objectType": "TableField_MARIADB", + "name": "company_id", + "type": "int", + "length": 11, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "", + "collation": "", + "check": "", + "isNullable": false, + "defaultType": "None", + "defaultValue": "", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": false, + "comment": "公司标识", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "company_id" + }, + { + "objectType": "TableField_MARIADB", + "name": "object_id", + "type": "int", + "length": 11, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "", + "collation": "", + "check": "", + "isNullable": true, + "defaultType": "Null", + "defaultValue": "", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": false, + "comment": "", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "object_id" + }, + { + "objectType": "TableField_MARIADB", + "name": "user_id", + "type": "int", + "length": 10, + "decimals": -2147483648, + "isUnsigned": true, + "isZeroFill": false, + "setEnumValues": "", + "charset": "", + "collation": "", + "check": "", + "isNullable": false, + "defaultType": "None", + "defaultValue": "", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": false, + "comment": "用户ID", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "user_id" + }, + { + "objectType": "TableField_MARIADB", + "name": "client_ip", + "type": "varchar", + "length": 20, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "utf8mb3", + "collation": "utf8mb3_general_ci", + "check": "", + "isNullable": false, + "defaultType": "None", + "defaultValue": "", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": false, + "comment": "用户IP", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "client_ip" + }, + { + "objectType": "TableField_MARIADB", + "name": "module_name", + "type": "varchar", + "length": 50, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "utf8mb3", + "collation": "utf8mb3_general_ci", + "check": "", + "isNullable": false, + "defaultType": "None", + "defaultValue": "", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": false, + "comment": "模块名", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "module_name" + }, + { + "objectType": "TableField_MARIADB", + "name": "controller_name", + "type": "varchar", + "length": 50, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "utf8mb3", + "collation": "utf8mb3_general_ci", + "check": "", + "isNullable": false, + "defaultType": "None", + "defaultValue": "", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": false, + "comment": "控制器", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "controller_name" + }, + { + "objectType": "TableField_MARIADB", + "name": "browser", + "type": "varchar", + "length": 64, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "utf8mb3", + "collation": "utf8mb3_general_ci", + "check": "", + "isNullable": false, + "defaultType": "Empty", + "defaultValue": "", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": false, + "comment": "浏览器", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "browser" + }, + { + "objectType": "TableField_MARIADB", + "name": "version", + "type": "varchar", + "length": 20, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "utf8mb3", + "collation": "utf8mb3_general_ci", + "check": "", + "isNullable": false, + "defaultType": "None", + "defaultValue": "", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": false, + "comment": "", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "version" + }, + { + "objectType": "TableField_MARIADB", + "name": "menu_id", + "type": "int", + "length": 11, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "", + "collation": "", + "check": "", + "isNullable": false, + "defaultType": "None", + "defaultValue": "", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": false, + "comment": "方法", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "menu_id" + }, + { + "objectType": "TableField_MARIADB", + "name": "function_id", + "type": "int", + "length": 11, + "decimals": -2147483648, + "isUnsigned": true, + "isZeroFill": false, + "setEnumValues": "", + "charset": "", + "collation": "", + "check": "", + "isNullable": false, + "defaultType": "Others", + "defaultValue": "0", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": false, + "comment": "操作ID", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "function_id" + }, + { + "objectType": "TableField_MARIADB", + "name": "action_val", + "type": "tinyint", + "length": 1, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "", + "collation": "", + "check": "", + "isNullable": false, + "defaultType": "Others", + "defaultValue": "0", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": false, + "comment": "1为删除操作", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "action_val" + }, + { + "objectType": "TableField_MARIADB", + "name": "new_data", + "type": "text", + "length": -2147483648, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "utf8mb3", + "collation": "utf8mb3_general_ci", + "check": "", + "isNullable": true, + "defaultType": "Null", + "defaultValue": "", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": false, + "comment": "", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "new_data" + }, + { + "objectType": "TableField_MARIADB", + "name": "old_data", + "type": "text", + "length": -2147483648, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "utf8mb3", + "collation": "utf8mb3_general_ci", + "check": "", + "isNullable": true, + "defaultType": "Null", + "defaultValue": "", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": false, + "comment": "", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "old_data" + }, + { + "objectType": "TableField_MARIADB", + "name": "content", + "type": "text", + "length": -2147483648, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "utf8mb3", + "collation": "utf8mb3_general_ci", + "check": "", + "isNullable": false, + "defaultType": "None", + "defaultValue": "", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": false, + "comment": "内容", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "content" + }, + { + "objectType": "TableField_MARIADB", + "name": "create_date", + "type": "datetime", + "length": -2147483648, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "", + "collation": "", + "check": "", + "isNullable": false, + "defaultType": "Others", + "defaultValue": "current_timestamp()", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": false, + "comment": "", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "create_date" + } + ], + "indexes": [ + { + "objectType": "Index_MARIADB", + "name": "idx_company_system_log_company_id", + "type": "NORMAL", + "method": "BTREE", + "comment": "", + "oldName": "idx_company_system_log_company_id", + "online": false, + "keyBlockSize": 0, + "parser": "", + "algorithm": "", + "lock": "", + "collation": "A", + "cardinality": "4", + "packed": "", + "fields": [ + { + "objectType": "IndexField_MARIADB", + "name": "company_id", + "keyLength": 0, + "order": "", + "oldName": "company_id" + } + ] + } + ], + "primaryKey": { + "objectType": "PrimaryKey_MARIADB", + "name": "", + "fields": [ + { + "objectType": "IndexField_MARIADB", + "name": "log_id", + "keyLength": 0, + "order": "", + "oldName": "log_id" + } + ], + "oldName": "", + "indexMethod": "BTREE", + "comment": "" + }, + "foreignKeys": [], + "checks": [], + "triggers": [], + "tablePartitions": [] + }, + { + "objectType": "Table_MARIADB", + "name": "companys", + "comment": "公司表", + "engine": "InnoDB", + "characterSet": "utf8mb4", + "collation": "utf8mb4_unicode_ci", + "autoIncrement": 6, + "tablespace": "", + "storage": "", + "insertMethod": "", + "connection": "", + "checksum": false, + "rowFormat": "Dynamic", + "avgRowLength": 0, + "maxRows": 0, + "minRows": 0, + "keyBlockSize": 0, + "packKeys": "", + "delayKeyWrite": false, + "dataDirectory": "", + "indexDirectory": "", + "statsAutoRecalc": "", + "statsPersistent": "", + "statsSamplePages": "", + "union": "", + "pageChecksum": false, + "transactional": false, + "oldName": "companys", + "encryption": false, + "encryptionKeyID": 0, + "IETFQuotes": false, + "createOptions": "row_format=DYNAMIC", + "createTime": "2025-08-21 11:58:03", + "checkTime": "", + "dataFree": 0, + "dataLength": 16384, + "indexLength": 32768, + "maxDataLength": 0, + "rows": 5, + "updateTime": "2025-08-27 16:30:35", + "DDL": "CREATE TABLE `companys` (\n `company_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '公司标识',\n `user_id` int(11) NOT NULL COMMENT '用户标识',\n `company_name` varchar(30) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL COMMENT '公司名称',\n `company_logo` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT '' COMMENT '公司logo',\n `company_address` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT '' COMMENT '公司地址',\n `company_domain` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT '' COMMENT '公司域名',\n `company_state` tinyint(4) NOT NULL DEFAULT 1 COMMENT '公司状态',\n `company_desc` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT '' COMMENT '公司描述',\n `last_login_time` datetime DEFAULT NULL COMMENT '最后登录时间',\n `erp_name` varchar(30) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT '' COMMENT '域名名称',\n `create_date` datetime NOT NULL DEFAULT current_timestamp() COMMENT '创建时间',\n `eff_date` date DEFAULT NULL COMMENT '生效日期',\n `exp_date` date DEFAULT NULL COMMENT '失效日期',\n PRIMARY KEY (`company_id`) USING BTREE,\n KEY `idx_companys_company_domain` (`company_domain`) USING BTREE,\n KEY `idx_companys_user_id` (`user_id`) USING BTREE\n) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC COMMENT='公司表'", + "partitionBy": "", + "partitionByExpr": "", + "partitions": 0, + "partitionKeyAlgorithm": "", + "subPartitionBy": "", + "subPartitionByExpr": "", + "subPartitions": 0, + "subPartitionKeyAlgorithm": "", + "fields": [ + { + "objectType": "TableField_MARIADB", + "name": "company_id", + "type": "int", + "length": 11, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "", + "collation": "", + "check": "", + "isNullable": false, + "defaultType": "None", + "defaultValue": "", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": true, + "comment": "公司标识", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "company_id" + }, + { + "objectType": "TableField_MARIADB", + "name": "user_id", + "type": "int", + "length": 11, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "", + "collation": "", + "check": "", + "isNullable": false, + "defaultType": "None", + "defaultValue": "", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": false, + "comment": "用户标识", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "user_id" + }, + { + "objectType": "TableField_MARIADB", + "name": "company_name", + "type": "varchar", + "length": 30, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "utf8mb3", + "collation": "utf8mb3_general_ci", + "check": "", + "isNullable": false, + "defaultType": "None", + "defaultValue": "", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": false, + "comment": "公司名称", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "company_name" + }, + { + "objectType": "TableField_MARIADB", + "name": "company_logo", + "type": "varchar", + "length": 100, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "utf8mb3", + "collation": "utf8mb3_general_ci", + "check": "", + "isNullable": true, + "defaultType": "Empty", + "defaultValue": "", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": false, + "comment": "公司logo", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "company_logo" + }, + { + "objectType": "TableField_MARIADB", + "name": "company_address", + "type": "varchar", + "length": 100, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "utf8mb3", + "collation": "utf8mb3_general_ci", + "check": "", + "isNullable": true, + "defaultType": "Empty", + "defaultValue": "", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": false, + "comment": "公司地址", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "company_address" + }, + { + "objectType": "TableField_MARIADB", + "name": "company_domain", + "type": "varchar", + "length": 50, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "utf8mb3", + "collation": "utf8mb3_general_ci", + "check": "", + "isNullable": true, + "defaultType": "Empty", + "defaultValue": "", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": false, + "comment": "公司域名", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "company_domain" + }, + { + "objectType": "TableField_MARIADB", + "name": "company_state", + "type": "tinyint", + "length": 4, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "", + "collation": "", + "check": "", + "isNullable": false, + "defaultType": "Others", + "defaultValue": "1", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": false, + "comment": "公司状态", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "company_state" + }, + { + "objectType": "TableField_MARIADB", + "name": "company_desc", + "type": "varchar", + "length": 255, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "utf8mb3", + "collation": "utf8mb3_general_ci", + "check": "", + "isNullable": true, + "defaultType": "Empty", + "defaultValue": "", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": false, + "comment": "公司描述", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "company_desc" + }, + { + "objectType": "TableField_MARIADB", + "name": "last_login_time", + "type": "datetime", + "length": -2147483648, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "", + "collation": "", + "check": "", + "isNullable": true, + "defaultType": "Null", + "defaultValue": "", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": false, + "comment": "最后登录时间", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "last_login_time" + }, + { + "objectType": "TableField_MARIADB", + "name": "erp_name", + "type": "varchar", + "length": 30, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "utf8mb3", + "collation": "utf8mb3_general_ci", + "check": "", + "isNullable": true, + "defaultType": "Empty", + "defaultValue": "", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": false, + "comment": "域名名称", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "erp_name" + }, + { + "objectType": "TableField_MARIADB", + "name": "create_date", + "type": "datetime", + "length": -2147483648, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "", + "collation": "", + "check": "", + "isNullable": false, + "defaultType": "Others", + "defaultValue": "current_timestamp()", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": false, + "comment": "创建时间", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "create_date" + }, + { + "objectType": "TableField_MARIADB", + "name": "eff_date", + "type": "date", + "length": -2147483648, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "", + "collation": "", + "check": "", + "isNullable": true, + "defaultType": "Null", + "defaultValue": "", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": false, + "comment": "生效日期", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "eff_date" + }, + { + "objectType": "TableField_MARIADB", + "name": "exp_date", + "type": "date", + "length": -2147483648, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "", + "collation": "", + "check": "", + "isNullable": true, + "defaultType": "Null", + "defaultValue": "", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": false, + "comment": "失效日期", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "exp_date" + } + ], + "indexes": [ + { + "objectType": "Index_MARIADB", + "name": "idx_companys_company_domain", + "type": "NORMAL", + "method": "BTREE", + "comment": "", + "oldName": "idx_companys_company_domain", + "online": false, + "keyBlockSize": 0, + "parser": "", + "algorithm": "", + "lock": "", + "collation": "A", + "cardinality": "2", + "packed": "", + "fields": [ + { + "objectType": "IndexField_MARIADB", + "name": "company_domain", + "keyLength": 0, + "order": "", + "oldName": "company_domain" + } + ] + }, + { + "objectType": "Index_MARIADB", + "name": "idx_companys_user_id", + "type": "NORMAL", + "method": "BTREE", + "comment": "", + "oldName": "idx_companys_user_id", + "online": false, + "keyBlockSize": 0, + "parser": "", + "algorithm": "", + "lock": "", + "collation": "A", + "cardinality": "5", + "packed": "", + "fields": [ + { + "objectType": "IndexField_MARIADB", + "name": "user_id", + "keyLength": 0, + "order": "", + "oldName": "user_id" + } + ] + } + ], + "primaryKey": { + "objectType": "PrimaryKey_MARIADB", + "name": "", + "fields": [ + { + "objectType": "IndexField_MARIADB", + "name": "company_id", + "keyLength": 0, + "order": "", + "oldName": "company_id" + } + ], + "oldName": "", + "indexMethod": "BTREE", + "comment": "" + }, + "foreignKeys": [], + "checks": [], + "triggers": [], + "tablePartitions": [] + }, + { + "objectType": "Table_MARIADB", + "name": "companys_functions", + "comment": "店铺功能列表", + "engine": "InnoDB", + "characterSet": "utf8mb4", + "collation": "utf8mb4_unicode_ci", + "autoIncrement": 19, + "tablespace": "", + "storage": "", + "insertMethod": "", + "connection": "", + "checksum": false, + "rowFormat": "Dynamic", + "avgRowLength": 0, + "maxRows": 0, + "minRows": 0, + "keyBlockSize": 0, + "packKeys": "", + "delayKeyWrite": false, + "dataDirectory": "", + "indexDirectory": "", + "statsAutoRecalc": "", + "statsPersistent": "", + "statsSamplePages": "", + "union": "", + "pageChecksum": false, + "transactional": false, + "oldName": "companys_functions", + "encryption": false, + "encryptionKeyID": 0, + "IETFQuotes": false, + "createOptions": "row_format=DYNAMIC", + "createTime": "2025-08-21 11:57:44", + "checkTime": "", + "dataFree": 0, + "dataLength": 16384, + "indexLength": 0, + "maxDataLength": 0, + "rows": 18, + "updateTime": "2025-08-27 15:08:35", + "DDL": "CREATE TABLE `companys_functions` (\n `function_id` smallint(6) NOT NULL AUTO_INCREMENT COMMENT '方法标识',\n `menu_id` smallint(6) NOT NULL COMMENT '菜单表示',\n `function_type` tinyint(4) NOT NULL DEFAULT 1 COMMENT '方法类型',\n `function_en_name` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL COMMENT '方法英文名',\n `function_ch_name` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL COMMENT '方法中文名',\n `function_sort` smallint(6) NOT NULL COMMENT '方法排序',\n `comments` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT '' COMMENT '备注',\n PRIMARY KEY (`function_id`) USING BTREE\n) ENGINE=InnoDB AUTO_INCREMENT=19 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC COMMENT='店铺功能列表'", + "partitionBy": "", + "partitionByExpr": "", + "partitions": 0, + "partitionKeyAlgorithm": "", + "subPartitionBy": "", + "subPartitionByExpr": "", + "subPartitions": 0, + "subPartitionKeyAlgorithm": "", + "fields": [ + { + "objectType": "TableField_MARIADB", + "name": "function_id", + "type": "smallint", + "length": 6, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "", + "collation": "", + "check": "", + "isNullable": false, + "defaultType": "None", + "defaultValue": "", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": true, + "comment": "方法标识", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "function_id" + }, + { + "objectType": "TableField_MARIADB", + "name": "menu_id", + "type": "smallint", + "length": 6, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "", + "collation": "", + "check": "", + "isNullable": false, + "defaultType": "None", + "defaultValue": "", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": false, + "comment": "菜单表示", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "menu_id" + }, + { + "objectType": "TableField_MARIADB", + "name": "function_type", + "type": "tinyint", + "length": 4, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "", + "collation": "", + "check": "", + "isNullable": false, + "defaultType": "Others", + "defaultValue": "1", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": false, + "comment": "方法类型", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "function_type" + }, + { + "objectType": "TableField_MARIADB", + "name": "function_en_name", + "type": "varchar", + "length": 50, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "utf8mb3", + "collation": "utf8mb3_general_ci", + "check": "", + "isNullable": false, + "defaultType": "None", + "defaultValue": "", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": false, + "comment": "方法英文名", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "function_en_name" + }, + { + "objectType": "TableField_MARIADB", + "name": "function_ch_name", + "type": "varchar", + "length": 50, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "utf8mb3", + "collation": "utf8mb3_general_ci", + "check": "", + "isNullable": false, + "defaultType": "None", + "defaultValue": "", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": false, + "comment": "方法中文名", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "function_ch_name" + }, + { + "objectType": "TableField_MARIADB", + "name": "function_sort", + "type": "smallint", + "length": 6, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "", + "collation": "", + "check": "", + "isNullable": false, + "defaultType": "None", + "defaultValue": "", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": false, + "comment": "方法排序", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "function_sort" + }, + { + "objectType": "TableField_MARIADB", + "name": "comments", + "type": "varchar", + "length": 255, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "utf8mb3", + "collation": "utf8mb3_general_ci", + "check": "", + "isNullable": true, + "defaultType": "Empty", + "defaultValue": "", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": false, + "comment": "备注", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "comments" + } + ], + "indexes": [], + "primaryKey": { + "objectType": "PrimaryKey_MARIADB", + "name": "", + "fields": [ + { + "objectType": "IndexField_MARIADB", + "name": "function_id", + "keyLength": 0, + "order": "", + "oldName": "function_id" + } + ], + "oldName": "", + "indexMethod": "BTREE", + "comment": "" + }, + "foreignKeys": [], + "checks": [], + "triggers": [], + "tablePartitions": [] + }, + { + "objectType": "Table_MARIADB", + "name": "companys_menus", + "comment": "只支持二级", + "engine": "InnoDB", + "characterSet": "utf8mb4", + "collation": "utf8mb4_unicode_ci", + "autoIncrement": 10, + "tablespace": "", + "storage": "", + "insertMethod": "", + "connection": "", + "checksum": false, + "rowFormat": "Dynamic", + "avgRowLength": 0, + "maxRows": 0, + "minRows": 0, + "keyBlockSize": 0, + "packKeys": "", + "delayKeyWrite": false, + "dataDirectory": "", + "indexDirectory": "", + "statsAutoRecalc": "", + "statsPersistent": "", + "statsSamplePages": "", + "union": "", + "pageChecksum": false, + "transactional": false, + "oldName": "companys_menus", + "encryption": false, + "encryptionKeyID": 0, + "IETFQuotes": false, + "createOptions": "row_format=DYNAMIC", + "createTime": "2025-08-26 11:24:25", + "checkTime": "", + "dataFree": 0, + "dataLength": 16384, + "indexLength": 0, + "maxDataLength": 0, + "rows": 9, + "updateTime": "2025-08-27 15:53:52", + "DDL": "CREATE TABLE `companys_menus` (\n `menu_id` smallint(6) NOT NULL AUTO_INCREMENT COMMENT '公司菜单标识',\n `parent_menu_id` smallint(6) NOT NULL COMMENT '父级菜单标识',\n `menu_type` tinyint(4) NOT NULL DEFAULT 1 COMMENT '菜单类型',\n `menu_en_name` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL COMMENT '菜单英文名',\n `menu_ch_name` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL COMMENT '菜单中文名',\n `menu_icon` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT '' COMMENT '菜单图标',\n `menu_url` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL COMMENT '菜单路由',\n `menu_sort` smallint(6) NOT NULL COMMENT '菜单排序',\n `state` tinyint(4) NOT NULL DEFAULT 1 COMMENT '菜单状态',\n `comments` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT '' COMMENT '菜单备注',\n PRIMARY KEY (`menu_id`) USING BTREE\n) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC COMMENT='只支持二级'", + "partitionBy": "", + "partitionByExpr": "", + "partitions": 0, + "partitionKeyAlgorithm": "", + "subPartitionBy": "", + "subPartitionByExpr": "", + "subPartitions": 0, + "subPartitionKeyAlgorithm": "", + "fields": [ + { + "objectType": "TableField_MARIADB", + "name": "menu_id", + "type": "smallint", + "length": 6, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "", + "collation": "", + "check": "", + "isNullable": false, + "defaultType": "None", + "defaultValue": "", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": true, + "comment": "公司菜单标识", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "menu_id" + }, + { + "objectType": "TableField_MARIADB", + "name": "parent_menu_id", + "type": "smallint", + "length": 6, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "", + "collation": "", + "check": "", + "isNullable": false, + "defaultType": "None", + "defaultValue": "", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": false, + "comment": "父级菜单标识", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "parent_menu_id" + }, + { + "objectType": "TableField_MARIADB", + "name": "menu_type", + "type": "tinyint", + "length": 4, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "", + "collation": "", + "check": "", + "isNullable": false, + "defaultType": "Others", + "defaultValue": "1", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": false, + "comment": "菜单类型", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "menu_type" + }, + { + "objectType": "TableField_MARIADB", + "name": "menu_en_name", + "type": "varchar", + "length": 50, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "utf8mb3", + "collation": "utf8mb3_general_ci", + "check": "", + "isNullable": false, + "defaultType": "None", + "defaultValue": "", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": false, + "comment": "菜单英文名", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "menu_en_name" + }, + { + "objectType": "TableField_MARIADB", + "name": "menu_ch_name", + "type": "varchar", + "length": 50, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "utf8mb3", + "collation": "utf8mb3_general_ci", + "check": "", + "isNullable": false, + "defaultType": "None", + "defaultValue": "", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": false, + "comment": "菜单中文名", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "menu_ch_name" + }, + { + "objectType": "TableField_MARIADB", + "name": "menu_icon", + "type": "varchar", + "length": 50, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "utf8mb3", + "collation": "utf8mb3_general_ci", + "check": "", + "isNullable": true, + "defaultType": "Empty", + "defaultValue": "", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": false, + "comment": "菜单图标", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "menu_icon" + }, + { + "objectType": "TableField_MARIADB", + "name": "menu_url", + "type": "varchar", + "length": 100, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "utf8mb3", + "collation": "utf8mb3_general_ci", + "check": "", + "isNullable": true, + "defaultType": "Null", + "defaultValue": "", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": false, + "comment": "菜单路由", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "menu_url" + }, + { + "objectType": "TableField_MARIADB", + "name": "menu_sort", + "type": "smallint", + "length": 6, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "", + "collation": "", + "check": "", + "isNullable": false, + "defaultType": "None", + "defaultValue": "", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": false, + "comment": "菜单排序", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "menu_sort" + }, + { + "objectType": "TableField_MARIADB", + "name": "state", + "type": "tinyint", + "length": 4, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "", + "collation": "", + "check": "", + "isNullable": false, + "defaultType": "Others", + "defaultValue": "1", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": false, + "comment": "菜单状态", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "state" + }, + { + "objectType": "TableField_MARIADB", + "name": "comments", + "type": "varchar", + "length": 255, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "utf8mb3", + "collation": "utf8mb3_general_ci", + "check": "", + "isNullable": true, + "defaultType": "Empty", + "defaultValue": "", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": false, + "comment": "菜单备注", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "comments" + } + ], + "indexes": [], + "primaryKey": { + "objectType": "PrimaryKey_MARIADB", + "name": "", + "fields": [ + { + "objectType": "IndexField_MARIADB", + "name": "menu_id", + "keyLength": 0, + "order": "", + "oldName": "menu_id" + } + ], + "oldName": "", + "indexMethod": "BTREE", + "comment": "" + }, + "foreignKeys": [], + "checks": [], + "triggers": [], + "tablePartitions": [] + }, + { + "objectType": "Table_MARIADB", + "name": "departments", + "comment": "部门表", + "engine": "InnoDB", + "characterSet": "utf8mb4", + "collation": "utf8mb4_unicode_ci", + "autoIncrement": 7, + "tablespace": "", + "storage": "", + "insertMethod": "", + "connection": "", + "checksum": false, + "rowFormat": "Dynamic", + "avgRowLength": 0, + "maxRows": 0, + "minRows": 0, + "keyBlockSize": 0, + "packKeys": "", + "delayKeyWrite": false, + "dataDirectory": "", + "indexDirectory": "", + "statsAutoRecalc": "", + "statsPersistent": "", + "statsSamplePages": "", + "union": "", + "pageChecksum": false, + "transactional": false, + "oldName": "departments", + "encryption": false, + "encryptionKeyID": 0, + "IETFQuotes": false, + "createOptions": "row_format=DYNAMIC", + "createTime": "2025-08-21 11:57:33", + "checkTime": "", + "dataFree": 0, + "dataLength": 16384, + "indexLength": 16384, + "maxDataLength": 0, + "rows": 5, + "updateTime": "2025-08-27 16:38:55", + "DDL": "CREATE TABLE `departments` (\n `department_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '部门标识',\n `company_id` int(11) NOT NULL COMMENT '公司标识',\n `name` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL COMMENT '部门名称',\n `state` tinyint(4) NOT NULL DEFAULT 1 COMMENT '部门状态',\n `create_date` datetime NOT NULL COMMENT '创建时间',\n `comments` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT '' COMMENT '部门备注',\n `dept_type` tinyint(4) NOT NULL DEFAULT 1 COMMENT '部门类型:1=主子账号,2=经销商主子账号',\n PRIMARY KEY (`department_id`) USING BTREE,\n KEY `idx_departments_compay_id` (`company_id`) USING BTREE\n) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC COMMENT='部门表'", + "partitionBy": "", + "partitionByExpr": "", + "partitions": 0, + "partitionKeyAlgorithm": "", + "subPartitionBy": "", + "subPartitionByExpr": "", + "subPartitions": 0, + "subPartitionKeyAlgorithm": "", + "fields": [ + { + "objectType": "TableField_MARIADB", + "name": "department_id", + "type": "int", + "length": 11, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "", + "collation": "", + "check": "", + "isNullable": false, + "defaultType": "None", + "defaultValue": "", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": true, + "comment": "部门标识", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "department_id" + }, + { + "objectType": "TableField_MARIADB", + "name": "company_id", + "type": "int", + "length": 11, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "", + "collation": "", + "check": "", + "isNullable": false, + "defaultType": "None", + "defaultValue": "", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": false, + "comment": "公司标识", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "company_id" + }, + { + "objectType": "TableField_MARIADB", + "name": "name", + "type": "varchar", + "length": 20, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "utf8mb3", + "collation": "utf8mb3_general_ci", + "check": "", + "isNullable": false, + "defaultType": "None", + "defaultValue": "", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": false, + "comment": "部门名称", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "name" + }, + { + "objectType": "TableField_MARIADB", + "name": "state", + "type": "tinyint", + "length": 4, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "", + "collation": "", + "check": "", + "isNullable": false, + "defaultType": "Others", + "defaultValue": "1", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": false, + "comment": "部门状态", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "state" + }, + { + "objectType": "TableField_MARIADB", + "name": "create_date", + "type": "datetime", + "length": -2147483648, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "", + "collation": "", + "check": "", + "isNullable": false, + "defaultType": "None", + "defaultValue": "", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": false, + "comment": "创建时间", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "create_date" + }, + { + "objectType": "TableField_MARIADB", + "name": "comments", + "type": "varchar", + "length": 255, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "utf8mb3", + "collation": "utf8mb3_general_ci", + "check": "", + "isNullable": true, + "defaultType": "Empty", + "defaultValue": "", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": false, + "comment": "部门备注", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "comments" + }, + { + "objectType": "TableField_MARIADB", + "name": "dept_type", + "type": "tinyint", + "length": 4, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "", + "collation": "", + "check": "", + "isNullable": false, + "defaultType": "Others", + "defaultValue": "1", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": false, + "comment": "部门类型:1=主子账号,2=经销商主子账号", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "dept_type" + } + ], + "indexes": [ + { + "objectType": "Index_MARIADB", + "name": "idx_departments_compay_id", + "type": "NORMAL", + "method": "BTREE", + "comment": "", + "oldName": "idx_departments_compay_id", + "online": false, + "keyBlockSize": 0, + "parser": "", + "algorithm": "", + "lock": "", + "collation": "A", + "cardinality": "5", + "packed": "", + "fields": [ + { + "objectType": "IndexField_MARIADB", + "name": "company_id", + "keyLength": 0, + "order": "", + "oldName": "company_id" + } + ] + } + ], + "primaryKey": { + "objectType": "PrimaryKey_MARIADB", + "name": "", + "fields": [ + { + "objectType": "IndexField_MARIADB", + "name": "department_id", + "keyLength": 0, + "order": "", + "oldName": "department_id" + } + ], + "oldName": "", + "indexMethod": "BTREE", + "comment": "" + }, + "foreignKeys": [], + "checks": [], + "triggers": [], + "tablePartitions": [] + }, + { + "objectType": "Table_MARIADB", + "name": "erp_config", + "comment": "系统配置表", + "engine": "InnoDB", + "characterSet": "utf8mb3", + "collation": "utf8mb3_general_ci", + "autoIncrement": 99, + "tablespace": "", + "storage": "", + "insertMethod": "", + "connection": "", + "checksum": false, + "rowFormat": "Dynamic", + "avgRowLength": 0, + "maxRows": 0, + "minRows": 0, + "keyBlockSize": 0, + "packKeys": "", + "delayKeyWrite": false, + "dataDirectory": "", + "indexDirectory": "", + "statsAutoRecalc": "", + "statsPersistent": "", + "statsSamplePages": "", + "union": "", + "pageChecksum": false, + "transactional": false, + "oldName": "erp_config", + "encryption": false, + "encryptionKeyID": 0, + "IETFQuotes": false, + "createOptions": "", + "createTime": "2025-08-26 10:07:40", + "checkTime": "", + "dataFree": 0, + "dataLength": 32768, + "indexLength": 0, + "maxDataLength": 0, + "rows": 7, + "updateTime": "2025-08-27 17:13:25", + "DDL": "CREATE TABLE `erp_config` (\n `config_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '配置标识',\n `config_type_en` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '配置类型英文名称',\n `config_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '配置类型名称',\n `config_value` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '配置类型值',\n `config_desc` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '配置类型描述',\n `form_type` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '表单类型:string,text,select,radio,array',\n `setting` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '表单值',\n `if_show` tinyint(4) NOT NULL DEFAULT 1,\n `config_state` tinyint(4) NOT NULL DEFAULT 1 COMMENT '配置状态',\n `default_value` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '默认值',\n `default_state` tinyint(4) NOT NULL DEFAULT 1 COMMENT '默认状态(1:开启,2:关闭)',\n `create_date` datetime DEFAULT NULL COMMENT '创建时间',\n PRIMARY KEY (`config_id`)\n) ENGINE=InnoDB AUTO_INCREMENT=99 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci COMMENT='系统配置表'", + "partitionBy": "", + "partitionByExpr": "", + "partitions": 0, + "partitionKeyAlgorithm": "", + "subPartitionBy": "", + "subPartitionByExpr": "", + "subPartitions": 0, + "subPartitionKeyAlgorithm": "", + "fields": [ + { + "objectType": "TableField_MARIADB", + "name": "config_id", + "type": "int", + "length": 11, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "", + "collation": "", + "check": "", + "isNullable": false, + "defaultType": "None", + "defaultValue": "", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": true, + "comment": "配置标识", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "config_id" + }, + { + "objectType": "TableField_MARIADB", + "name": "config_type_en", + "type": "varchar", + "length": 255, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "utf8mb4", + "collation": "utf8mb4_general_ci", + "check": "", + "isNullable": true, + "defaultType": "Empty", + "defaultValue": "", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": false, + "comment": "配置类型英文名称", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "config_type_en" + }, + { + "objectType": "TableField_MARIADB", + "name": "config_name", + "type": "varchar", + "length": 255, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "utf8mb4", + "collation": "utf8mb4_general_ci", + "check": "", + "isNullable": false, + "defaultType": "Empty", + "defaultValue": "", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": false, + "comment": "配置类型名称", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "config_name" + }, + { + "objectType": "TableField_MARIADB", + "name": "config_value", + "type": "varchar", + "length": 255, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "utf8mb4", + "collation": "utf8mb4_general_ci", + "check": "", + "isNullable": false, + "defaultType": "Empty", + "defaultValue": "", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": false, + "comment": "配置类型值", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "config_value" + }, + { + "objectType": "TableField_MARIADB", + "name": "config_desc", + "type": "text", + "length": -2147483648, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "utf8mb4", + "collation": "utf8mb4_general_ci", + "check": "", + "isNullable": true, + "defaultType": "Null", + "defaultValue": "", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": false, + "comment": "配置类型描述", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "config_desc" + }, + { + "objectType": "TableField_MARIADB", + "name": "form_type", + "type": "varchar", + "length": 20, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "utf8mb4", + "collation": "utf8mb4_general_ci", + "check": "", + "isNullable": false, + "defaultType": "Empty", + "defaultValue": "", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": false, + "comment": "表单类型:string,text,select,radio,array", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "form_type" + }, + { + "objectType": "TableField_MARIADB", + "name": "setting", + "type": "text", + "length": -2147483648, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "utf8mb4", + "collation": "utf8mb4_general_ci", + "check": "", + "isNullable": false, + "defaultType": "None", + "defaultValue": "", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": false, + "comment": "表单值", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "setting" + }, + { + "objectType": "TableField_MARIADB", + "name": "if_show", + "type": "tinyint", + "length": 4, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "", + "collation": "", + "check": "", + "isNullable": false, + "defaultType": "Others", + "defaultValue": "1", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": false, + "comment": "", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "if_show" + }, + { + "objectType": "TableField_MARIADB", + "name": "config_state", + "type": "tinyint", + "length": 4, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "", + "collation": "", + "check": "", + "isNullable": false, + "defaultType": "Others", + "defaultValue": "1", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": false, + "comment": "配置状态", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "config_state" + }, + { + "objectType": "TableField_MARIADB", + "name": "default_value", + "type": "varchar", + "length": 255, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "utf8mb4", + "collation": "utf8mb4_general_ci", + "check": "", + "isNullable": false, + "defaultType": "Empty", + "defaultValue": "", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": false, + "comment": "默认值", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "default_value" + }, + { + "objectType": "TableField_MARIADB", + "name": "default_state", + "type": "tinyint", + "length": 4, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "", + "collation": "", + "check": "", + "isNullable": false, + "defaultType": "Others", + "defaultValue": "1", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": false, + "comment": "默认状态(1:开启,2:关闭)", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "default_state" + }, + { + "objectType": "TableField_MARIADB", + "name": "create_date", + "type": "datetime", + "length": -2147483648, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "", + "collation": "", + "check": "", + "isNullable": true, + "defaultType": "Null", + "defaultValue": "", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": false, + "comment": "创建时间", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "create_date" + } + ], + "indexes": [], + "primaryKey": { + "objectType": "PrimaryKey_MARIADB", + "name": "", + "fields": [ + { + "objectType": "IndexField_MARIADB", + "name": "config_id", + "keyLength": 0, + "order": "", + "oldName": "config_id" + } + ], + "oldName": "", + "indexMethod": "BTREE", + "comment": "" + }, + "foreignKeys": [], + "checks": [], + "triggers": [], + "tablePartitions": [] + }, + { + "objectType": "Table_MARIADB", + "name": "erp_config_value", + "comment": "erp系统配置值", + "engine": "InnoDB", + "characterSet": "utf8mb4", + "collation": "utf8mb4_unicode_ci", + "autoIncrement": 44, + "tablespace": "", + "storage": "", + "insertMethod": "", + "connection": "", + "checksum": false, + "rowFormat": "Dynamic", + "avgRowLength": 0, + "maxRows": 0, + "minRows": 0, + "keyBlockSize": 0, + "packKeys": "", + "delayKeyWrite": false, + "dataDirectory": "", + "indexDirectory": "", + "statsAutoRecalc": "", + "statsPersistent": "", + "statsSamplePages": "", + "union": "", + "pageChecksum": false, + "transactional": false, + "oldName": "erp_config_value", + "encryption": false, + "encryptionKeyID": 0, + "IETFQuotes": false, + "createOptions": "row_format=DYNAMIC", + "createTime": "2025-08-26 09:59:34", + "checkTime": "", + "dataFree": 0, + "dataLength": 16384, + "indexLength": 16384, + "maxDataLength": 0, + "rows": 7, + "updateTime": "2025-08-27 17:47:28", + "DDL": "CREATE TABLE `erp_config_value` (\n `config_id` int(11) NOT NULL AUTO_INCREMENT,\n `company_id` int(11) DEFAULT NULL COMMENT '公司标识',\n `config_type_en` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '配置类型英文名称',\n `config_value` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,\n `state` tinyint(4) DEFAULT 1,\n `rel_config_id` int(11) DEFAULT NULL,\n `create_date` datetime DEFAULT NULL COMMENT '创建时间',\n `update_date` datetime DEFAULT NULL COMMENT '更新时间',\n PRIMARY KEY (`config_id`) USING BTREE,\n KEY `idx_erp_config_value_company_id` (`company_id`) USING BTREE\n) ENGINE=InnoDB AUTO_INCREMENT=44 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC COMMENT='erp系统配置值'", + "partitionBy": "", + "partitionByExpr": "", + "partitions": 0, + "partitionKeyAlgorithm": "", + "subPartitionBy": "", + "subPartitionByExpr": "", + "subPartitions": 0, + "subPartitionKeyAlgorithm": "", + "fields": [ + { + "objectType": "TableField_MARIADB", + "name": "config_id", + "type": "int", + "length": 11, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "", + "collation": "", + "check": "", + "isNullable": false, + "defaultType": "None", + "defaultValue": "", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": true, + "comment": "", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "config_id" + }, + { + "objectType": "TableField_MARIADB", + "name": "company_id", + "type": "int", + "length": 11, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "", + "collation": "", + "check": "", + "isNullable": true, + "defaultType": "Null", + "defaultValue": "", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": false, + "comment": "公司标识", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "company_id" + }, + { + "objectType": "TableField_MARIADB", + "name": "config_type_en", + "type": "varchar", + "length": 255, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "utf8mb4", + "collation": "utf8mb4_general_ci", + "check": "", + "isNullable": true, + "defaultType": "Empty", + "defaultValue": "", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": false, + "comment": "配置类型英文名称", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "config_type_en" + }, + { + "objectType": "TableField_MARIADB", + "name": "config_value", + "type": "text", + "length": -2147483648, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "utf8mb4", + "collation": "utf8mb4_general_ci", + "check": "", + "isNullable": true, + "defaultType": "Null", + "defaultValue": "", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": false, + "comment": "", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "config_value" + }, + { + "objectType": "TableField_MARIADB", + "name": "state", + "type": "tinyint", + "length": 4, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "", + "collation": "", + "check": "", + "isNullable": true, + "defaultType": "Others", + "defaultValue": "1", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": false, + "comment": "", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "state" + }, + { + "objectType": "TableField_MARIADB", + "name": "rel_config_id", + "type": "int", + "length": 11, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "", + "collation": "", + "check": "", + "isNullable": true, + "defaultType": "Null", + "defaultValue": "", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": false, + "comment": "", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "rel_config_id" + }, + { + "objectType": "TableField_MARIADB", + "name": "create_date", + "type": "datetime", + "length": -2147483648, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "", + "collation": "", + "check": "", + "isNullable": true, + "defaultType": "Null", + "defaultValue": "", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": false, + "comment": "创建时间", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "create_date" + }, + { + "objectType": "TableField_MARIADB", + "name": "update_date", + "type": "datetime", + "length": -2147483648, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "", + "collation": "", + "check": "", + "isNullable": true, + "defaultType": "Null", + "defaultValue": "", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": false, + "comment": "更新时间", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "update_date" + } + ], + "indexes": [ + { + "objectType": "Index_MARIADB", + "name": "idx_erp_config_value_company_id", + "type": "NORMAL", + "method": "BTREE", + "comment": "", + "oldName": "idx_erp_config_value_company_id", + "online": false, + "keyBlockSize": 0, + "parser": "", + "algorithm": "", + "lock": "", + "collation": "A", + "cardinality": "2", + "packed": "", + "fields": [ + { + "objectType": "IndexField_MARIADB", + "name": "company_id", + "keyLength": 0, + "order": "", + "oldName": "company_id" + } + ] + } + ], + "primaryKey": { + "objectType": "PrimaryKey_MARIADB", + "name": "", + "fields": [ + { + "objectType": "IndexField_MARIADB", + "name": "config_id", + "keyLength": 0, + "order": "", + "oldName": "config_id" + } + ], + "oldName": "", + "indexMethod": "BTREE", + "comment": "" + }, + "foreignKeys": [], + "checks": [], + "triggers": [], + "tablePartitions": [] + }, + { + "objectType": "Table_MARIADB", + "name": "groups", + "comment": "岗位表", + "engine": "InnoDB", + "characterSet": "utf8mb4", + "collation": "utf8mb4_unicode_ci", + "autoIncrement": 12, + "tablespace": "", + "storage": "", + "insertMethod": "", + "connection": "", + "checksum": false, + "rowFormat": "Dynamic", + "avgRowLength": 0, + "maxRows": 0, + "minRows": 0, + "keyBlockSize": 0, + "packKeys": "", + "delayKeyWrite": false, + "dataDirectory": "", + "indexDirectory": "", + "statsAutoRecalc": "", + "statsPersistent": "", + "statsSamplePages": "", + "union": "", + "pageChecksum": false, + "transactional": false, + "oldName": "groups", + "encryption": false, + "encryptionKeyID": 0, + "IETFQuotes": false, + "createOptions": "row_format=DYNAMIC", + "createTime": "2025-08-21 11:57:53", + "checkTime": "", + "dataFree": 0, + "dataLength": 16384, + "indexLength": 16384, + "maxDataLength": 0, + "rows": 11, + "updateTime": "2025-08-27 15:07:03", + "DDL": "CREATE TABLE `groups` (\n `group_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '岗位标识',\n `company_id` int(11) NOT NULL COMMENT '公司标识',\n `name` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL COMMENT '岗位名称',\n `rights` text CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL COMMENT '岗位权限',\n `state` tinyint(4) NOT NULL DEFAULT 1 COMMENT '岗位状态',\n `create_date` datetime NOT NULL COMMENT '创建时间',\n `comments` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT '' COMMENT '岗位备注',\n `group_type` tinyint(4) NOT NULL DEFAULT 1 COMMENT '岗位类型:1=主子账号,2=经销商主子账号',\n PRIMARY KEY (`group_id`) USING BTREE,\n KEY `idx_groups_compay_id` (`company_id`) USING BTREE\n) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC COMMENT='岗位表'", + "partitionBy": "", + "partitionByExpr": "", + "partitions": 0, + "partitionKeyAlgorithm": "", + "subPartitionBy": "", + "subPartitionByExpr": "", + "subPartitions": 0, + "subPartitionKeyAlgorithm": "", + "fields": [ + { + "objectType": "TableField_MARIADB", + "name": "group_id", + "type": "int", + "length": 11, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "", + "collation": "", + "check": "", + "isNullable": false, + "defaultType": "None", + "defaultValue": "", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": true, + "comment": "岗位标识", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "group_id" + }, + { + "objectType": "TableField_MARIADB", + "name": "company_id", + "type": "int", + "length": 11, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "", + "collation": "", + "check": "", + "isNullable": false, + "defaultType": "None", + "defaultValue": "", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": false, + "comment": "公司标识", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "company_id" + }, + { + "objectType": "TableField_MARIADB", + "name": "name", + "type": "varchar", + "length": 20, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "utf8mb3", + "collation": "utf8mb3_general_ci", + "check": "", + "isNullable": false, + "defaultType": "None", + "defaultValue": "", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": false, + "comment": "岗位名称", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "name" + }, + { + "objectType": "TableField_MARIADB", + "name": "rights", + "type": "text", + "length": -2147483648, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "utf8mb3", + "collation": "utf8mb3_general_ci", + "check": "", + "isNullable": true, + "defaultType": "Null", + "defaultValue": "", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": false, + "comment": "岗位权限", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "rights" + }, + { + "objectType": "TableField_MARIADB", + "name": "state", + "type": "tinyint", + "length": 4, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "", + "collation": "", + "check": "", + "isNullable": false, + "defaultType": "Others", + "defaultValue": "1", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": false, + "comment": "岗位状态", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "state" + }, + { + "objectType": "TableField_MARIADB", + "name": "create_date", + "type": "datetime", + "length": -2147483648, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "", + "collation": "", + "check": "", + "isNullable": false, + "defaultType": "None", + "defaultValue": "", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": false, + "comment": "创建时间", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "create_date" + }, + { + "objectType": "TableField_MARIADB", + "name": "comments", + "type": "varchar", + "length": 255, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "utf8mb3", + "collation": "utf8mb3_general_ci", + "check": "", + "isNullable": true, + "defaultType": "Empty", + "defaultValue": "", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": false, + "comment": "岗位备注", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "comments" + }, + { + "objectType": "TableField_MARIADB", + "name": "group_type", + "type": "tinyint", + "length": 4, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "", + "collation": "", + "check": "", + "isNullable": false, + "defaultType": "Others", + "defaultValue": "1", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": false, + "comment": "岗位类型:1=主子账号,2=经销商主子账号", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "group_type" + } + ], + "indexes": [ + { + "objectType": "Index_MARIADB", + "name": "idx_groups_compay_id", + "type": "NORMAL", + "method": "BTREE", + "comment": "", + "oldName": "idx_groups_compay_id", + "online": false, + "keyBlockSize": 0, + "parser": "", + "algorithm": "", + "lock": "", + "collation": "A", + "cardinality": "5", + "packed": "", + "fields": [ + { + "objectType": "IndexField_MARIADB", + "name": "company_id", + "keyLength": 0, + "order": "", + "oldName": "company_id" + } + ] + } + ], + "primaryKey": { + "objectType": "PrimaryKey_MARIADB", + "name": "", + "fields": [ + { + "objectType": "IndexField_MARIADB", + "name": "group_id", + "keyLength": 0, + "order": "", + "oldName": "group_id" + } + ], + "oldName": "", + "indexMethod": "BTREE", + "comment": "" + }, + "foreignKeys": [], + "checks": [], + "triggers": [], + "tablePartitions": [] + }, + { + "objectType": "Table_MARIADB", + "name": "head_file_config", + "comment": "头文件配置表", + "engine": "InnoDB", + "characterSet": "utf8mb4", + "collation": "utf8mb4_unicode_ci", + "autoIncrement": 7, + "tablespace": "", + "storage": "", + "insertMethod": "", + "connection": "", + "checksum": false, + "rowFormat": "Dynamic", + "avgRowLength": 0, + "maxRows": 0, + "minRows": 0, + "keyBlockSize": 0, + "packKeys": "", + "delayKeyWrite": false, + "dataDirectory": "", + "indexDirectory": "", + "statsAutoRecalc": "", + "statsPersistent": "", + "statsSamplePages": "", + "union": "", + "pageChecksum": false, + "transactional": false, + "oldName": "head_file_config", + "encryption": false, + "encryptionKeyID": 0, + "IETFQuotes": false, + "createOptions": "row_format=DYNAMIC", + "createTime": "2025-08-21 11:58:20", + "checkTime": "", + "dataFree": 0, + "dataLength": 16384, + "indexLength": 0, + "maxDataLength": 0, + "rows": 6, + "updateTime": "2025-08-26 11:58:37", + "DDL": "CREATE TABLE `head_file_config` (\n `config_id` int(10) NOT NULL AUTO_INCREMENT COMMENT '配置标识',\n `table_en_name` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL COMMENT '配置表英文名称',\n `table_ch_name` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL COMMENT '配置表中文名称',\n `column_en_name` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL COMMENT '字段英文名称',\n `column_ch_name` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL COMMENT '字段中文名称',\n `column_value_name` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL COMMENT '配置值字段',\n `column_comments_name` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL COMMENT '配置表备注字段',\n `state` tinyint(1) NOT NULL COMMENT '状态',\n PRIMARY KEY (`config_id`) USING BTREE\n) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC COMMENT='头文件配置表'", + "partitionBy": "", + "partitionByExpr": "", + "partitions": 0, + "partitionKeyAlgorithm": "", + "subPartitionBy": "", + "subPartitionByExpr": "", + "subPartitions": 0, + "subPartitionKeyAlgorithm": "", + "fields": [ + { + "objectType": "TableField_MARIADB", + "name": "config_id", + "type": "int", + "length": 10, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "", + "collation": "", + "check": "", + "isNullable": false, + "defaultType": "None", + "defaultValue": "", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": true, + "comment": "配置标识", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "config_id" + }, + { + "objectType": "TableField_MARIADB", + "name": "table_en_name", + "type": "varchar", + "length": 50, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "utf8mb3", + "collation": "utf8mb3_general_ci", + "check": "", + "isNullable": false, + "defaultType": "None", + "defaultValue": "", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": false, + "comment": "配置表英文名称", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "table_en_name" + }, + { + "objectType": "TableField_MARIADB", + "name": "table_ch_name", + "type": "varchar", + "length": 50, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "utf8mb3", + "collation": "utf8mb3_general_ci", + "check": "", + "isNullable": false, + "defaultType": "None", + "defaultValue": "", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": false, + "comment": "配置表中文名称", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "table_ch_name" + }, + { + "objectType": "TableField_MARIADB", + "name": "column_en_name", + "type": "varchar", + "length": 50, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "utf8mb3", + "collation": "utf8mb3_general_ci", + "check": "", + "isNullable": false, + "defaultType": "None", + "defaultValue": "", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": false, + "comment": "字段英文名称", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "column_en_name" + }, + { + "objectType": "TableField_MARIADB", + "name": "column_ch_name", + "type": "varchar", + "length": 50, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "utf8mb3", + "collation": "utf8mb3_general_ci", + "check": "", + "isNullable": false, + "defaultType": "None", + "defaultValue": "", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": false, + "comment": "字段中文名称", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "column_ch_name" + }, + { + "objectType": "TableField_MARIADB", + "name": "column_value_name", + "type": "varchar", + "length": 50, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "utf8mb3", + "collation": "utf8mb3_general_ci", + "check": "", + "isNullable": false, + "defaultType": "None", + "defaultValue": "", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": false, + "comment": "配置值字段", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "column_value_name" + }, + { + "objectType": "TableField_MARIADB", + "name": "column_comments_name", + "type": "varchar", + "length": 50, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "utf8mb3", + "collation": "utf8mb3_general_ci", + "check": "", + "isNullable": false, + "defaultType": "None", + "defaultValue": "", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": false, + "comment": "配置表备注字段", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "column_comments_name" + }, + { + "objectType": "TableField_MARIADB", + "name": "state", + "type": "tinyint", + "length": 1, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "", + "collation": "", + "check": "", + "isNullable": false, + "defaultType": "None", + "defaultValue": "", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": false, + "comment": "状态", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "state" + } + ], + "indexes": [], + "primaryKey": { + "objectType": "PrimaryKey_MARIADB", + "name": "", + "fields": [ + { + "objectType": "IndexField_MARIADB", + "name": "config_id", + "keyLength": 0, + "order": "", + "oldName": "config_id" + } + ], + "oldName": "", + "indexMethod": "BTREE", + "comment": "" + }, + "foreignKeys": [], + "checks": [], + "triggers": [], + "tablePartitions": [] + }, + { + "objectType": "Table_MARIADB", + "name": "ip_addr", + "comment": "IP临时库", + "engine": "InnoDB", + "characterSet": "utf8mb4", + "collation": "utf8mb4_unicode_ci", + "autoIncrement": 0, + "tablespace": "", + "storage": "", + "insertMethod": "", + "connection": "", + "checksum": false, + "rowFormat": "Dynamic", + "avgRowLength": 0, + "maxRows": 0, + "minRows": 0, + "keyBlockSize": 0, + "packKeys": "", + "delayKeyWrite": false, + "dataDirectory": "", + "indexDirectory": "", + "statsAutoRecalc": "", + "statsPersistent": "", + "statsSamplePages": "", + "union": "", + "pageChecksum": false, + "transactional": false, + "oldName": "ip_addr", + "encryption": false, + "encryptionKeyID": 0, + "IETFQuotes": false, + "createOptions": "row_format=DYNAMIC", + "createTime": "2025-08-21 11:57:18", + "checkTime": "", + "dataFree": 0, + "dataLength": 65536, + "indexLength": 0, + "maxDataLength": 0, + "rows": 393, + "updateTime": "2025-08-21 11:33:55", + "DDL": "CREATE TABLE `ip_addr` (\n `ip` varchar(16) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL,\n `province` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL,\n `city` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL,\n `postcode` varchar(8) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL,\n `rectangle` varchar(80) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL,\n `longitude` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL,\n `latitude` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL,\n PRIMARY KEY (`ip`) USING BTREE\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC COMMENT='IP临时库'", + "partitionBy": "", + "partitionByExpr": "", + "partitions": 0, + "partitionKeyAlgorithm": "", + "subPartitionBy": "", + "subPartitionByExpr": "", + "subPartitions": 0, + "subPartitionKeyAlgorithm": "", + "fields": [ + { + "objectType": "TableField_MARIADB", + "name": "ip", + "type": "varchar", + "length": 16, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "utf8mb3", + "collation": "utf8mb3_general_ci", + "check": "", + "isNullable": false, + "defaultType": "None", + "defaultValue": "", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": false, + "comment": "", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "ip" + }, + { + "objectType": "TableField_MARIADB", + "name": "province", + "type": "varchar", + "length": 100, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "utf8mb3", + "collation": "utf8mb3_general_ci", + "check": "", + "isNullable": true, + "defaultType": "Null", + "defaultValue": "", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": false, + "comment": "", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "province" + }, + { + "objectType": "TableField_MARIADB", + "name": "city", + "type": "varchar", + "length": 100, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "utf8mb3", + "collation": "utf8mb3_general_ci", + "check": "", + "isNullable": true, + "defaultType": "Null", + "defaultValue": "", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": false, + "comment": "", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "city" + }, + { + "objectType": "TableField_MARIADB", + "name": "postcode", + "type": "varchar", + "length": 8, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "utf8mb3", + "collation": "utf8mb3_general_ci", + "check": "", + "isNullable": true, + "defaultType": "Null", + "defaultValue": "", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": false, + "comment": "", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "postcode" + }, + { + "objectType": "TableField_MARIADB", + "name": "rectangle", + "type": "varchar", + "length": 80, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "utf8mb3", + "collation": "utf8mb3_general_ci", + "check": "", + "isNullable": true, + "defaultType": "Null", + "defaultValue": "", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": false, + "comment": "", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "rectangle" + }, + { + "objectType": "TableField_MARIADB", + "name": "longitude", + "type": "varchar", + "length": 20, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "utf8mb3", + "collation": "utf8mb3_general_ci", + "check": "", + "isNullable": true, + "defaultType": "Null", + "defaultValue": "", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": false, + "comment": "", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "longitude" + }, + { + "objectType": "TableField_MARIADB", + "name": "latitude", + "type": "varchar", + "length": 20, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "utf8mb3", + "collation": "utf8mb3_general_ci", + "check": "", + "isNullable": true, + "defaultType": "Null", + "defaultValue": "", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": false, + "comment": "", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "latitude" + } + ], + "indexes": [], + "primaryKey": { + "objectType": "PrimaryKey_MARIADB", + "name": "", + "fields": [ + { + "objectType": "IndexField_MARIADB", + "name": "ip", + "keyLength": 0, + "order": "", + "oldName": "ip" + } + ], + "oldName": "", + "indexMethod": "BTREE", + "comment": "" + }, + "foreignKeys": [], + "checks": [], + "triggers": [], + "tablePartitions": [] + }, + { + "objectType": "Table_MARIADB", + "name": "login_records", + "comment": "用户登录记录表", + "engine": "InnoDB", + "characterSet": "utf8mb4", + "collation": "utf8mb4_unicode_ci", + "autoIncrement": 56, + "tablespace": "", + "storage": "", + "insertMethod": "", + "connection": "", + "checksum": false, + "rowFormat": "Dynamic", + "avgRowLength": 0, + "maxRows": 0, + "minRows": 0, + "keyBlockSize": 0, + "packKeys": "", + "delayKeyWrite": false, + "dataDirectory": "", + "indexDirectory": "", + "statsAutoRecalc": "", + "statsPersistent": "", + "statsSamplePages": "", + "union": "", + "pageChecksum": false, + "transactional": false, + "oldName": "login_records", + "encryption": false, + "encryptionKeyID": 0, + "IETFQuotes": false, + "createOptions": "row_format=DYNAMIC", + "createTime": "2025-08-27 18:26:15", + "checkTime": "", + "dataFree": 0, + "dataLength": 16384, + "indexLength": 32768, + "maxDataLength": 0, + "rows": 52, + "updateTime": "2025-08-27 16:30:35", + "DDL": "CREATE TABLE `login_records` (\n `login_id` int(10) NOT NULL AUTO_INCREMENT COMMENT '登录流水',\n `user_id` int(10) NOT NULL COMMENT '用户标识',\n `company_id` int(11) NOT NULL COMMENT '公司标识',\n `login_time` datetime NOT NULL DEFAULT current_timestamp() COMMENT '登录时刻',\n `login_ip` varchar(16) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL COMMENT '登录ip',\n `login_mac` varchar(500) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL,\n `browser` varchar(64) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL DEFAULT '' COMMENT '浏览器',\n `version` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL DEFAULT '',\n `detail` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL COMMENT '详细信息',\n `login_source` tinyint(4) NOT NULL DEFAULT 1 COMMENT '登录来源',\n PRIMARY KEY (`login_id`) USING BTREE,\n KEY `idx_login_record_user_id` (`user_id`) USING BTREE,\n KEY `idx_login_record_company_id` (`company_id`) USING BTREE\n) ENGINE=InnoDB AUTO_INCREMENT=56 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC COMMENT='用户登录记录表'", + "partitionBy": "", + "partitionByExpr": "", + "partitions": 0, + "partitionKeyAlgorithm": "", + "subPartitionBy": "", + "subPartitionByExpr": "", + "subPartitions": 0, + "subPartitionKeyAlgorithm": "", + "fields": [ + { + "objectType": "TableField_MARIADB", + "name": "login_id", + "type": "int", + "length": 10, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "", + "collation": "", + "check": "", + "isNullable": false, + "defaultType": "None", + "defaultValue": "", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": true, + "comment": "登录流水", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "login_id" + }, + { + "objectType": "TableField_MARIADB", + "name": "user_id", + "type": "int", + "length": 10, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "", + "collation": "", + "check": "", + "isNullable": false, + "defaultType": "None", + "defaultValue": "", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": false, + "comment": "用户标识", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "user_id" + }, + { + "objectType": "TableField_MARIADB", + "name": "company_id", + "type": "int", + "length": 11, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "", + "collation": "", + "check": "", + "isNullable": false, + "defaultType": "None", + "defaultValue": "", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": false, + "comment": "公司标识", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "company_id" + }, + { + "objectType": "TableField_MARIADB", + "name": "login_time", + "type": "datetime", + "length": -2147483648, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "", + "collation": "", + "check": "", + "isNullable": false, + "defaultType": "Others", + "defaultValue": "current_timestamp()", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": false, + "comment": "登录时刻", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "login_time" + }, + { + "objectType": "TableField_MARIADB", + "name": "login_ip", + "type": "varchar", + "length": 16, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "utf8mb3", + "collation": "utf8mb3_general_ci", + "check": "", + "isNullable": false, + "defaultType": "None", + "defaultValue": "", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": false, + "comment": "登录ip", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "login_ip" + }, + { + "objectType": "TableField_MARIADB", + "name": "login_mac", + "type": "varchar", + "length": 500, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "utf8mb3", + "collation": "utf8mb3_general_ci", + "check": "", + "isNullable": true, + "defaultType": "Null", + "defaultValue": "", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": false, + "comment": "", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "login_mac" + }, + { + "objectType": "TableField_MARIADB", + "name": "browser", + "type": "varchar", + "length": 64, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "utf8mb3", + "collation": "utf8mb3_general_ci", + "check": "", + "isNullable": false, + "defaultType": "Empty", + "defaultValue": "", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": false, + "comment": "浏览器", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "browser" + }, + { + "objectType": "TableField_MARIADB", + "name": "version", + "type": "varchar", + "length": 100, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "utf8mb3", + "collation": "utf8mb3_general_ci", + "check": "", + "isNullable": false, + "defaultType": "Empty", + "defaultValue": "", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": false, + "comment": "", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "version" + }, + { + "objectType": "TableField_MARIADB", + "name": "detail", + "type": "varchar", + "length": 200, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "utf8mb3", + "collation": "utf8mb3_general_ci", + "check": "", + "isNullable": true, + "defaultType": "Null", + "defaultValue": "", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": false, + "comment": "详细信息", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "detail" + }, + { + "objectType": "TableField_MARIADB", + "name": "login_source", + "type": "tinyint", + "length": 4, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "", + "collation": "", + "check": "", + "isNullable": false, + "defaultType": "Others", + "defaultValue": "1", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": false, + "comment": "登录来源", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "login_source" + } + ], + "indexes": [ + { + "objectType": "Index_MARIADB", + "name": "idx_login_record_user_id", + "type": "NORMAL", + "method": "BTREE", + "comment": "", + "oldName": "idx_login_record_user_id", + "online": false, + "keyBlockSize": 0, + "parser": "", + "algorithm": "", + "lock": "", + "collation": "A", + "cardinality": "6", + "packed": "", + "fields": [ + { + "objectType": "IndexField_MARIADB", + "name": "user_id", + "keyLength": 0, + "order": "", + "oldName": "user_id" + } + ] + }, + { + "objectType": "Index_MARIADB", + "name": "idx_login_record_company_id", + "type": "NORMAL", + "method": "BTREE", + "comment": "", + "oldName": "idx_login_record_company_id", + "online": false, + "keyBlockSize": 0, + "parser": "", + "algorithm": "", + "lock": "", + "collation": "A", + "cardinality": "6", + "packed": "", + "fields": [ + { + "objectType": "IndexField_MARIADB", + "name": "company_id", + "keyLength": 0, + "order": "", + "oldName": "company_id" + } + ] + } + ], + "primaryKey": { + "objectType": "PrimaryKey_MARIADB", + "name": "", + "fields": [ + { + "objectType": "IndexField_MARIADB", + "name": "login_id", + "keyLength": 0, + "order": "", + "oldName": "login_id" + } + ], + "oldName": "", + "indexMethod": "BTREE", + "comment": "" + }, + "foreignKeys": [], + "checks": [], + "triggers": [], + "tablePartitions": [] + }, + { + "objectType": "Table_MARIADB", + "name": "sequence", + "comment": "序列", + "engine": "InnoDB", + "characterSet": "utf8mb4", + "collation": "utf8mb4_unicode_ci", + "autoIncrement": 1, + "tablespace": "", + "storage": "", + "insertMethod": "", + "connection": "", + "checksum": false, + "rowFormat": "Dynamic", + "avgRowLength": 0, + "maxRows": 0, + "minRows": 0, + "keyBlockSize": 0, + "packKeys": "", + "delayKeyWrite": false, + "dataDirectory": "", + "indexDirectory": "", + "statsAutoRecalc": "", + "statsPersistent": "", + "statsSamplePages": "", + "union": "", + "pageChecksum": false, + "transactional": false, + "oldName": "sequence", + "encryption": false, + "encryptionKeyID": 0, + "IETFQuotes": false, + "createOptions": "row_format=DYNAMIC", + "createTime": "2025-08-21 11:58:48", + "checkTime": "", + "dataFree": 0, + "dataLength": 16384, + "indexLength": 32768, + "maxDataLength": 0, + "rows": 0, + "updateTime": "", + "DDL": "CREATE TABLE `sequence` (\n `seq_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'seq主键',\n `seq_name` varchar(30) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL COMMENT 'seq名称',\n `company_id` int(11) NOT NULL COMMENT 'seq公司标识',\n `current_val` bigint(20) NOT NULL COMMENT 'seq当前值',\n `increment` int(11) NOT NULL COMMENT 'seq步进值',\n `min_val` int(11) NOT NULL COMMENT 'seq最小值',\n `max_val` bigint(20) NOT NULL COMMENT 'seq最大值',\n `prefix` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT '' COMMENT 'seq前缀',\n `time_format` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT '' COMMENT 'seq时间格式',\n `update_date` datetime DEFAULT NULL COMMENT '更新时间',\n `comments` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT '' COMMENT 'seq备注',\n `type` tinyint(4) NOT NULL DEFAULT 1 COMMENT '类型',\n PRIMARY KEY (`seq_id`) USING BTREE,\n KEY `idx_sequence_seq_name` (`seq_name`) USING BTREE,\n KEY `idx_sequence_company_id` (`company_id`) USING BTREE\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC COMMENT='序列'", + "partitionBy": "", + "partitionByExpr": "", + "partitions": 0, + "partitionKeyAlgorithm": "", + "subPartitionBy": "", + "subPartitionByExpr": "", + "subPartitions": 0, + "subPartitionKeyAlgorithm": "", + "fields": [ + { + "objectType": "TableField_MARIADB", + "name": "seq_id", + "type": "int", + "length": 11, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "", + "collation": "", + "check": "", + "isNullable": false, + "defaultType": "None", + "defaultValue": "", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": true, + "comment": "seq主键", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "seq_id" + }, + { + "objectType": "TableField_MARIADB", + "name": "seq_name", + "type": "varchar", + "length": 30, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "utf8mb3", + "collation": "utf8mb3_general_ci", + "check": "", + "isNullable": false, + "defaultType": "None", + "defaultValue": "", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": false, + "comment": "seq名称", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "seq_name" + }, + { + "objectType": "TableField_MARIADB", + "name": "company_id", + "type": "int", + "length": 11, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "", + "collation": "", + "check": "", + "isNullable": false, + "defaultType": "None", + "defaultValue": "", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": false, + "comment": "seq公司标识", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "company_id" + }, + { + "objectType": "TableField_MARIADB", + "name": "current_val", + "type": "bigint", + "length": 20, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "", + "collation": "", + "check": "", + "isNullable": false, + "defaultType": "None", + "defaultValue": "", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": false, + "comment": "seq当前值", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "current_val" + }, + { + "objectType": "TableField_MARIADB", + "name": "increment", + "type": "int", + "length": 11, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "", + "collation": "", + "check": "", + "isNullable": false, + "defaultType": "None", + "defaultValue": "", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": false, + "comment": "seq步进值", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "increment" + }, + { + "objectType": "TableField_MARIADB", + "name": "min_val", + "type": "int", + "length": 11, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "", + "collation": "", + "check": "", + "isNullable": false, + "defaultType": "None", + "defaultValue": "", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": false, + "comment": "seq最小值", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "min_val" + }, + { + "objectType": "TableField_MARIADB", + "name": "max_val", + "type": "bigint", + "length": 20, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "", + "collation": "", + "check": "", + "isNullable": false, + "defaultType": "None", + "defaultValue": "", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": false, + "comment": "seq最大值", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "max_val" + }, + { + "objectType": "TableField_MARIADB", + "name": "prefix", + "type": "varchar", + "length": 10, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "utf8mb3", + "collation": "utf8mb3_general_ci", + "check": "", + "isNullable": true, + "defaultType": "Empty", + "defaultValue": "", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": false, + "comment": "seq前缀", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "prefix" + }, + { + "objectType": "TableField_MARIADB", + "name": "time_format", + "type": "varchar", + "length": 20, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "utf8mb3", + "collation": "utf8mb3_general_ci", + "check": "", + "isNullable": true, + "defaultType": "Empty", + "defaultValue": "", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": false, + "comment": "seq时间格式", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "time_format" + }, + { + "objectType": "TableField_MARIADB", + "name": "update_date", + "type": "datetime", + "length": -2147483648, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "", + "collation": "", + "check": "", + "isNullable": true, + "defaultType": "Null", + "defaultValue": "", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": false, + "comment": "更新时间", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "update_date" + }, + { + "objectType": "TableField_MARIADB", + "name": "comments", + "type": "varchar", + "length": 50, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "utf8mb3", + "collation": "utf8mb3_general_ci", + "check": "", + "isNullable": true, + "defaultType": "Empty", + "defaultValue": "", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": false, + "comment": "seq备注", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "comments" + }, + { + "objectType": "TableField_MARIADB", + "name": "type", + "type": "tinyint", + "length": 4, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "", + "collation": "", + "check": "", + "isNullable": false, + "defaultType": "Others", + "defaultValue": "1", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": false, + "comment": "类型", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "type" + } + ], + "indexes": [ + { + "objectType": "Index_MARIADB", + "name": "idx_sequence_seq_name", + "type": "NORMAL", + "method": "BTREE", + "comment": "", + "oldName": "idx_sequence_seq_name", + "online": false, + "keyBlockSize": 0, + "parser": "", + "algorithm": "", + "lock": "", + "collation": "A", + "cardinality": "0", + "packed": "", + "fields": [ + { + "objectType": "IndexField_MARIADB", + "name": "seq_name", + "keyLength": 0, + "order": "", + "oldName": "seq_name" + } + ] + }, + { + "objectType": "Index_MARIADB", + "name": "idx_sequence_company_id", + "type": "NORMAL", + "method": "BTREE", + "comment": "", + "oldName": "idx_sequence_company_id", + "online": false, + "keyBlockSize": 0, + "parser": "", + "algorithm": "", + "lock": "", + "collation": "A", + "cardinality": "0", + "packed": "", + "fields": [ + { + "objectType": "IndexField_MARIADB", + "name": "company_id", + "keyLength": 0, + "order": "", + "oldName": "company_id" + } + ] + } + ], + "primaryKey": { + "objectType": "PrimaryKey_MARIADB", + "name": "", + "fields": [ + { + "objectType": "IndexField_MARIADB", + "name": "seq_id", + "keyLength": 0, + "order": "", + "oldName": "seq_id" + } + ], + "oldName": "", + "indexMethod": "BTREE", + "comment": "" + }, + "foreignKeys": [], + "checks": [], + "triggers": [], + "tablePartitions": [] + }, + { + "objectType": "Table_MARIADB", + "name": "staffs", + "comment": "员工表", + "engine": "InnoDB", + "characterSet": "utf8mb4", + "collation": "utf8mb4_unicode_ci", + "autoIncrement": 9, + "tablespace": "", + "storage": "", + "insertMethod": "", + "connection": "", + "checksum": false, + "rowFormat": "Dynamic", + "avgRowLength": 0, + "maxRows": 0, + "minRows": 0, + "keyBlockSize": 0, + "packKeys": "", + "delayKeyWrite": false, + "dataDirectory": "", + "indexDirectory": "", + "statsAutoRecalc": "", + "statsPersistent": "", + "statsSamplePages": "", + "union": "", + "pageChecksum": false, + "transactional": false, + "oldName": "staffs", + "encryption": false, + "encryptionKeyID": 0, + "IETFQuotes": false, + "createOptions": "row_format=DYNAMIC", + "createTime": "2025-08-21 11:59:36", + "checkTime": "", + "dataFree": 0, + "dataLength": 16384, + "indexLength": 16384, + "maxDataLength": 0, + "rows": 7, + "updateTime": "2025-08-27 18:02:18", + "DDL": "CREATE TABLE `staffs` (\n `staff_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '员工标识',\n `company_id` int(11) NOT NULL COMMENT '公司标识',\n `user_id` int(11) NOT NULL COMMENT '用户标识',\n `staff_type` tinyint(4) NOT NULL COMMENT '员工类型',\n `department_id` int(11) NOT NULL DEFAULT 0 COMMENT '部门类型',\n `group_id` text CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL DEFAULT '' COMMENT '岗位ID',\n `sale_id` int(11) NOT NULL DEFAULT 0 COMMENT '经销商ID',\n `create_date` datetime NOT NULL DEFAULT current_timestamp() COMMENT '创建时间',\n `state` tinyint(4) NOT NULL DEFAULT 1 COMMENT '员工状态',\n `comments` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT '' COMMENT '员工备注',\n `is_delete` tinyint(4) NOT NULL DEFAULT 0 COMMENT '是否删除(0=否,1=是)',\n `parent_id` int(11) NOT NULL DEFAULT 0 COMMENT 'pid',\n PRIMARY KEY (`staff_id`) USING BTREE,\n KEY `idx_staffs_company_id` (`company_id`) USING BTREE\n) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC COMMENT='员工表'", + "partitionBy": "", + "partitionByExpr": "", + "partitions": 0, + "partitionKeyAlgorithm": "", + "subPartitionBy": "", + "subPartitionByExpr": "", + "subPartitions": 0, + "subPartitionKeyAlgorithm": "", + "fields": [ + { + "objectType": "TableField_MARIADB", + "name": "staff_id", + "type": "int", + "length": 11, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "", + "collation": "", + "check": "", + "isNullable": false, + "defaultType": "None", + "defaultValue": "", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": true, + "comment": "员工标识", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "staff_id" + }, + { + "objectType": "TableField_MARIADB", + "name": "company_id", + "type": "int", + "length": 11, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "", + "collation": "", + "check": "", + "isNullable": false, + "defaultType": "None", + "defaultValue": "", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": false, + "comment": "公司标识", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "company_id" + }, + { + "objectType": "TableField_MARIADB", + "name": "user_id", + "type": "int", + "length": 11, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "", + "collation": "", + "check": "", + "isNullable": false, + "defaultType": "None", + "defaultValue": "", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": false, + "comment": "用户标识", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "user_id" + }, + { + "objectType": "TableField_MARIADB", + "name": "staff_type", + "type": "tinyint", + "length": 4, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "", + "collation": "", + "check": "", + "isNullable": false, + "defaultType": "None", + "defaultValue": "", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": false, + "comment": "员工类型", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "staff_type" + }, + { + "objectType": "TableField_MARIADB", + "name": "department_id", + "type": "int", + "length": 11, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "", + "collation": "", + "check": "", + "isNullable": false, + "defaultType": "Others", + "defaultValue": "0", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": false, + "comment": "部门类型", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "department_id" + }, + { + "objectType": "TableField_MARIADB", + "name": "group_id", + "type": "text", + "length": -2147483648, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "utf8mb3", + "collation": "utf8mb3_general_ci", + "check": "", + "isNullable": false, + "defaultType": "Others", + "defaultValue": "''", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": false, + "comment": "岗位ID", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "group_id" + }, + { + "objectType": "TableField_MARIADB", + "name": "sale_id", + "type": "int", + "length": 11, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "", + "collation": "", + "check": "", + "isNullable": false, + "defaultType": "Others", + "defaultValue": "0", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": false, + "comment": "经销商ID", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "sale_id" + }, + { + "objectType": "TableField_MARIADB", + "name": "create_date", + "type": "datetime", + "length": -2147483648, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "", + "collation": "", + "check": "", + "isNullable": false, + "defaultType": "Others", + "defaultValue": "current_timestamp()", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": false, + "comment": "创建时间", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "create_date" + }, + { + "objectType": "TableField_MARIADB", + "name": "state", + "type": "tinyint", + "length": 4, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "", + "collation": "", + "check": "", + "isNullable": false, + "defaultType": "Others", + "defaultValue": "1", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": false, + "comment": "员工状态", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "state" + }, + { + "objectType": "TableField_MARIADB", + "name": "comments", + "type": "varchar", + "length": 255, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "utf8mb3", + "collation": "utf8mb3_general_ci", + "check": "", + "isNullable": true, + "defaultType": "Empty", + "defaultValue": "", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": false, + "comment": "员工备注", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "comments" + }, + { + "objectType": "TableField_MARIADB", + "name": "is_delete", + "type": "tinyint", + "length": 4, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "", + "collation": "", + "check": "", + "isNullable": false, + "defaultType": "Others", + "defaultValue": "0", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": false, + "comment": "是否删除(0=否,1=是)", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "is_delete" + }, + { + "objectType": "TableField_MARIADB", + "name": "parent_id", + "type": "int", + "length": 11, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "", + "collation": "", + "check": "", + "isNullable": false, + "defaultType": "Others", + "defaultValue": "0", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": false, + "comment": "pid", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "parent_id" + } + ], + "indexes": [ + { + "objectType": "Index_MARIADB", + "name": "idx_staffs_company_id", + "type": "NORMAL", + "method": "BTREE", + "comment": "", + "oldName": "idx_staffs_company_id", + "online": false, + "keyBlockSize": 0, + "parser": "", + "algorithm": "", + "lock": "", + "collation": "A", + "cardinality": "7", + "packed": "", + "fields": [ + { + "objectType": "IndexField_MARIADB", + "name": "company_id", + "keyLength": 0, + "order": "", + "oldName": "company_id" + } + ] + } + ], + "primaryKey": { + "objectType": "PrimaryKey_MARIADB", + "name": "", + "fields": [ + { + "objectType": "IndexField_MARIADB", + "name": "staff_id", + "keyLength": 0, + "order": "", + "oldName": "staff_id" + } + ], + "oldName": "", + "indexMethod": "BTREE", + "comment": "" + }, + "foreignKeys": [], + "checks": [], + "triggers": [], + "tablePartitions": [] + }, + { + "objectType": "Table_MARIADB", + "name": "users", + "comment": "用户", + "engine": "InnoDB", + "characterSet": "utf8mb4", + "collation": "utf8mb4_unicode_ci", + "autoIncrement": 38, + "tablespace": "", + "storage": "", + "insertMethod": "", + "connection": "", + "checksum": false, + "rowFormat": "Dynamic", + "avgRowLength": 0, + "maxRows": 0, + "minRows": 0, + "keyBlockSize": 0, + "packKeys": "", + "delayKeyWrite": false, + "dataDirectory": "", + "indexDirectory": "", + "statsAutoRecalc": "", + "statsPersistent": "", + "statsSamplePages": "", + "union": "", + "pageChecksum": false, + "transactional": false, + "oldName": "users", + "encryption": false, + "encryptionKeyID": 0, + "IETFQuotes": false, + "createOptions": "row_format=DYNAMIC", + "createTime": "2025-08-27 14:45:48", + "checkTime": "", + "dataFree": 0, + "dataLength": 16384, + "indexLength": 49152, + "maxDataLength": 0, + "rows": 7, + "updateTime": "2025-08-27 18:00:36", + "DDL": "CREATE TABLE `users` (\n `user_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '用户标识',\n `login_name` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL DEFAULT '' COMMENT '用户登录名',\n `user_mail` varchar(30) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT '' COMMENT '用户邮箱',\n `nick_name` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL DEFAULT '' COMMENT '用户昵称',\n `user_phone` varchar(11) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL COMMENT '用户电话',\n `psw_salt` varchar(16) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL COMMENT '密码混淆码',\n `psw_hash` varchar(40) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT '' COMMENT '用户密钥',\n `logo` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT '' COMMENT '用户头像',\n `user_sex` tinyint(4) DEFAULT 1 COMMENT '用户性别',\n `state` tinyint(4) NOT NULL DEFAULT 1 COMMENT '用户状态',\n `visit_times` int(11) NOT NULL DEFAULT 0 COMMENT '登录次数',\n `last_login_time` datetime DEFAULT NULL COMMENT '最后登录时间',\n `login_source` tinyint(4) NOT NULL DEFAULT 1,\n `create_date` datetime NOT NULL DEFAULT current_timestamp() COMMENT '登录创建时间',\n `wx_open_id` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT '' COMMENT '用户wx_open_id',\n `wx_union_id` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL,\n `wx_nick_name` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL,\n `wx_head_img` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT '',\n `comments` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT '' COMMENT '用户备注',\n `self_account` tinyint(4) NOT NULL DEFAULT 0 COMMENT '是否内部账号',\n PRIMARY KEY (`user_id`) USING BTREE,\n KEY `idx_users_login_name` (`login_name`) USING BTREE,\n KEY `idx_users_user_phone` (`user_phone`) USING BTREE,\n KEY `idx_users_user_mail` (`user_mail`) USING BTREE\n) ENGINE=InnoDB AUTO_INCREMENT=38 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC COMMENT='用户'", + "partitionBy": "", + "partitionByExpr": "", + "partitions": 0, + "partitionKeyAlgorithm": "", + "subPartitionBy": "", + "subPartitionByExpr": "", + "subPartitions": 0, + "subPartitionKeyAlgorithm": "", + "fields": [ + { + "objectType": "TableField_MARIADB", + "name": "user_id", + "type": "int", + "length": 11, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "", + "collation": "", + "check": "", + "isNullable": false, + "defaultType": "None", + "defaultValue": "", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": true, + "comment": "用户标识", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "user_id" + }, + { + "objectType": "TableField_MARIADB", + "name": "login_name", + "type": "varchar", + "length": 20, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "utf8mb3", + "collation": "utf8mb3_general_ci", + "check": "", + "isNullable": false, + "defaultType": "Empty", + "defaultValue": "", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": false, + "comment": "用户登录名", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "login_name" + }, + { + "objectType": "TableField_MARIADB", + "name": "user_mail", + "type": "varchar", + "length": 30, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "utf8mb3", + "collation": "utf8mb3_general_ci", + "check": "", + "isNullable": true, + "defaultType": "Empty", + "defaultValue": "", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": false, + "comment": "用户邮箱", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "user_mail" + }, + { + "objectType": "TableField_MARIADB", + "name": "nick_name", + "type": "varchar", + "length": 20, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "utf8mb3", + "collation": "utf8mb3_general_ci", + "check": "", + "isNullable": false, + "defaultType": "Empty", + "defaultValue": "", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": false, + "comment": "用户昵称", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "nick_name" + }, + { + "objectType": "TableField_MARIADB", + "name": "user_phone", + "type": "varchar", + "length": 11, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "utf8mb3", + "collation": "utf8mb3_general_ci", + "check": "", + "isNullable": false, + "defaultType": "None", + "defaultValue": "", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": false, + "comment": "用户电话", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "user_phone" + }, + { + "objectType": "TableField_MARIADB", + "name": "psw_salt", + "type": "varchar", + "length": 16, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "utf8mb3", + "collation": "utf8mb3_general_ci", + "check": "", + "isNullable": false, + "defaultType": "None", + "defaultValue": "", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": false, + "comment": "密码混淆码", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "psw_salt" + }, + { + "objectType": "TableField_MARIADB", + "name": "psw_hash", + "type": "varchar", + "length": 40, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "utf8mb3", + "collation": "utf8mb3_general_ci", + "check": "", + "isNullable": true, + "defaultType": "Empty", + "defaultValue": "", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": false, + "comment": "用户密钥", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "psw_hash" + }, + { + "objectType": "TableField_MARIADB", + "name": "logo", + "type": "varchar", + "length": 100, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "utf8mb3", + "collation": "utf8mb3_general_ci", + "check": "", + "isNullable": true, + "defaultType": "Empty", + "defaultValue": "", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": false, + "comment": "用户头像", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "logo" + }, + { + "objectType": "TableField_MARIADB", + "name": "user_sex", + "type": "tinyint", + "length": 4, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "", + "collation": "", + "check": "", + "isNullable": true, + "defaultType": "Others", + "defaultValue": "1", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": false, + "comment": "用户性别", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "user_sex" + }, + { + "objectType": "TableField_MARIADB", + "name": "state", + "type": "tinyint", + "length": 4, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "", + "collation": "", + "check": "", + "isNullable": false, + "defaultType": "Others", + "defaultValue": "1", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": false, + "comment": "用户状态", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "state" + }, + { + "objectType": "TableField_MARIADB", + "name": "visit_times", + "type": "int", + "length": 11, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "", + "collation": "", + "check": "", + "isNullable": false, + "defaultType": "Others", + "defaultValue": "0", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": false, + "comment": "登录次数", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "visit_times" + }, + { + "objectType": "TableField_MARIADB", + "name": "last_login_time", + "type": "datetime", + "length": -2147483648, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "", + "collation": "", + "check": "", + "isNullable": true, + "defaultType": "Null", + "defaultValue": "", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": false, + "comment": "最后登录时间", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "last_login_time" + }, + { + "objectType": "TableField_MARIADB", + "name": "login_source", + "type": "tinyint", + "length": 4, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "", + "collation": "", + "check": "", + "isNullable": false, + "defaultType": "Others", + "defaultValue": "1", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": false, + "comment": "", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "login_source" + }, + { + "objectType": "TableField_MARIADB", + "name": "create_date", + "type": "datetime", + "length": -2147483648, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "", + "collation": "", + "check": "", + "isNullable": false, + "defaultType": "Others", + "defaultValue": "current_timestamp()", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": false, + "comment": "登录创建时间", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "create_date" + }, + { + "objectType": "TableField_MARIADB", + "name": "wx_open_id", + "type": "varchar", + "length": 50, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "utf8mb3", + "collation": "utf8mb3_general_ci", + "check": "", + "isNullable": true, + "defaultType": "Empty", + "defaultValue": "", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": false, + "comment": "用户wx_open_id", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "wx_open_id" + }, + { + "objectType": "TableField_MARIADB", + "name": "wx_union_id", + "type": "varchar", + "length": 50, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "utf8mb3", + "collation": "utf8mb3_general_ci", + "check": "", + "isNullable": true, + "defaultType": "Null", + "defaultValue": "", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": false, + "comment": "", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "wx_union_id" + }, + { + "objectType": "TableField_MARIADB", + "name": "wx_nick_name", + "type": "varchar", + "length": 50, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "utf8mb3", + "collation": "utf8mb3_general_ci", + "check": "", + "isNullable": true, + "defaultType": "Null", + "defaultValue": "", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": false, + "comment": "", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "wx_nick_name" + }, + { + "objectType": "TableField_MARIADB", + "name": "wx_head_img", + "type": "varchar", + "length": 200, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "utf8mb3", + "collation": "utf8mb3_general_ci", + "check": "", + "isNullable": true, + "defaultType": "Empty", + "defaultValue": "", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": false, + "comment": "", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "wx_head_img" + }, + { + "objectType": "TableField_MARIADB", + "name": "comments", + "type": "varchar", + "length": 255, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "utf8mb3", + "collation": "utf8mb3_general_ci", + "check": "", + "isNullable": true, + "defaultType": "Empty", + "defaultValue": "", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": false, + "comment": "用户备注", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "comments" + }, + { + "objectType": "TableField_MARIADB", + "name": "self_account", + "type": "tinyint", + "length": 4, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "", + "collation": "", + "check": "", + "isNullable": false, + "defaultType": "Others", + "defaultValue": "0", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": false, + "comment": "是否内部账号", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "self_account" + } + ], + "indexes": [ + { + "objectType": "Index_MARIADB", + "name": "idx_users_login_name", + "type": "NORMAL", + "method": "BTREE", + "comment": "", + "oldName": "idx_users_login_name", + "online": false, + "keyBlockSize": 0, + "parser": "", + "algorithm": "", + "lock": "", + "collation": "A", + "cardinality": "7", + "packed": "", + "fields": [ + { + "objectType": "IndexField_MARIADB", + "name": "login_name", + "keyLength": 0, + "order": "", + "oldName": "login_name" + } + ] + }, + { + "objectType": "Index_MARIADB", + "name": "idx_users_user_phone", + "type": "NORMAL", + "method": "BTREE", + "comment": "", + "oldName": "idx_users_user_phone", + "online": false, + "keyBlockSize": 0, + "parser": "", + "algorithm": "", + "lock": "", + "collation": "A", + "cardinality": "7", + "packed": "", + "fields": [ + { + "objectType": "IndexField_MARIADB", + "name": "user_phone", + "keyLength": 0, + "order": "", + "oldName": "user_phone" + } + ] + }, + { + "objectType": "Index_MARIADB", + "name": "idx_users_user_mail", + "type": "NORMAL", + "method": "BTREE", + "comment": "", + "oldName": "idx_users_user_mail", + "online": false, + "keyBlockSize": 0, + "parser": "", + "algorithm": "", + "lock": "", + "collation": "A", + "cardinality": "2", + "packed": "", + "fields": [ + { + "objectType": "IndexField_MARIADB", + "name": "user_mail", + "keyLength": 0, + "order": "", + "oldName": "user_mail" + } + ] + } + ], + "primaryKey": { + "objectType": "PrimaryKey_MARIADB", + "name": "", + "fields": [ + { + "objectType": "IndexField_MARIADB", + "name": "user_id", + "keyLength": 0, + "order": "", + "oldName": "user_id" + } + ], + "oldName": "", + "indexMethod": "BTREE", + "comment": "" + }, + "foreignKeys": [], + "checks": [], + "triggers": [], + "tablePartitions": [] + }, + { + "objectType": "Table_MARIADB", + "name": "users_config", + "comment": "用户配置", + "engine": "InnoDB", + "characterSet": "utf8mb4", + "collation": "utf8mb4_unicode_ci", + "autoIncrement": 1, + "tablespace": "", + "storage": "", + "insertMethod": "", + "connection": "", + "checksum": false, + "rowFormat": "Dynamic", + "avgRowLength": 0, + "maxRows": 0, + "minRows": 0, + "keyBlockSize": 0, + "packKeys": "", + "delayKeyWrite": false, + "dataDirectory": "", + "indexDirectory": "", + "statsAutoRecalc": "", + "statsPersistent": "", + "statsSamplePages": "", + "union": "", + "pageChecksum": false, + "transactional": false, + "oldName": "users_config", + "encryption": false, + "encryptionKeyID": 0, + "IETFQuotes": false, + "createOptions": "row_format=DYNAMIC", + "createTime": "2025-08-21 11:59:13", + "checkTime": "", + "dataFree": 0, + "dataLength": 16384, + "indexLength": 16384, + "maxDataLength": 0, + "rows": 0, + "updateTime": "", + "DDL": "CREATE TABLE `users_config` (\n `config_id` int(11) NOT NULL AUTO_INCREMENT,\n `user_id` int(11) NOT NULL,\n `company_id` int(11) NOT NULL COMMENT '公司标识',\n `config_name` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT '' COMMENT '配置名称',\n `config_value` text CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL COMMENT '配置的值',\n `state` tinyint(4) DEFAULT 1,\n `create_date` datetime DEFAULT current_timestamp() COMMENT '创建时间',\n `update_date` datetime DEFAULT NULL COMMENT '更新时间',\n `comments` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT '',\n PRIMARY KEY (`config_id`) USING BTREE,\n KEY `idx_erp_config_value_company_id` (`company_id`) USING BTREE\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC COMMENT='用户配置'", + "partitionBy": "", + "partitionByExpr": "", + "partitions": 0, + "partitionKeyAlgorithm": "", + "subPartitionBy": "", + "subPartitionByExpr": "", + "subPartitions": 0, + "subPartitionKeyAlgorithm": "", + "fields": [ + { + "objectType": "TableField_MARIADB", + "name": "config_id", + "type": "int", + "length": 11, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "", + "collation": "", + "check": "", + "isNullable": false, + "defaultType": "None", + "defaultValue": "", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": true, + "comment": "", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "config_id" + }, + { + "objectType": "TableField_MARIADB", + "name": "user_id", + "type": "int", + "length": 11, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "", + "collation": "", + "check": "", + "isNullable": false, + "defaultType": "None", + "defaultValue": "", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": false, + "comment": "", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "user_id" + }, + { + "objectType": "TableField_MARIADB", + "name": "company_id", + "type": "int", + "length": 11, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "", + "collation": "", + "check": "", + "isNullable": false, + "defaultType": "None", + "defaultValue": "", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": false, + "comment": "公司标识", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "company_id" + }, + { + "objectType": "TableField_MARIADB", + "name": "config_name", + "type": "varchar", + "length": 255, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "utf8mb3", + "collation": "utf8mb3_general_ci", + "check": "", + "isNullable": true, + "defaultType": "Empty", + "defaultValue": "", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": false, + "comment": "配置名称", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "config_name" + }, + { + "objectType": "TableField_MARIADB", + "name": "config_value", + "type": "text", + "length": -2147483648, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "utf8mb3", + "collation": "utf8mb3_general_ci", + "check": "", + "isNullable": true, + "defaultType": "Null", + "defaultValue": "", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": false, + "comment": "配置的值", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "config_value" + }, + { + "objectType": "TableField_MARIADB", + "name": "state", + "type": "tinyint", + "length": 4, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "", + "collation": "", + "check": "", + "isNullable": true, + "defaultType": "Others", + "defaultValue": "1", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": false, + "comment": "", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "state" + }, + { + "objectType": "TableField_MARIADB", + "name": "create_date", + "type": "datetime", + "length": -2147483648, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "", + "collation": "", + "check": "", + "isNullable": true, + "defaultType": "Others", + "defaultValue": "current_timestamp()", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": false, + "comment": "创建时间", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "create_date" + }, + { + "objectType": "TableField_MARIADB", + "name": "update_date", + "type": "datetime", + "length": -2147483648, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "", + "collation": "", + "check": "", + "isNullable": true, + "defaultType": "Null", + "defaultValue": "", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": false, + "comment": "更新时间", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "update_date" + }, + { + "objectType": "TableField_MARIADB", + "name": "comments", + "type": "varchar", + "length": 255, + "decimals": -2147483648, + "isUnsigned": false, + "isZeroFill": false, + "setEnumValues": "", + "charset": "utf8mb3", + "collation": "utf8mb3_general_ci", + "check": "", + "isNullable": true, + "defaultType": "Empty", + "defaultValue": "", + "isOnUpdateCurrentTimestamp": false, + "isAutoInc": false, + "comment": "", + "columnFormat": "", + "isVirtual": false, + "isGeneratedAlways": false, + "virtualExpr": "", + "virtualType": "", + "oldName": "comments" + } + ], + "indexes": [ + { + "objectType": "Index_MARIADB", + "name": "idx_erp_config_value_company_id", + "type": "NORMAL", + "method": "BTREE", + "comment": "", + "oldName": "idx_erp_config_value_company_id", + "online": false, + "keyBlockSize": 0, + "parser": "", + "algorithm": "", + "lock": "", + "collation": "A", + "cardinality": "0", + "packed": "", + "fields": [ + { + "objectType": "IndexField_MARIADB", + "name": "company_id", + "keyLength": 0, + "order": "", + "oldName": "company_id" + } + ] + } + ], + "primaryKey": { + "objectType": "PrimaryKey_MARIADB", + "name": "", + "fields": [ + { + "objectType": "IndexField_MARIADB", + "name": "config_id", + "keyLength": 0, + "order": "", + "oldName": "config_id" + } + ], + "oldName": "", + "indexMethod": "BTREE", + "comment": "" + }, + "foreignKeys": [], + "checks": [], + "triggers": [], + "tablePartitions": [] + } + ], + "views": [] + } + ] + }, + "diagrams": [ + { + "name": "免费版ERP数据库模型", + "paperWidth": 2, + "paperHeight": 1, + "tableFont": "Arial", + "tableFontSize": 14, + "isBalckWhite": false, + "showDBSchemaName": false, + "showViewRelations": true, + "notation": "default", + "showFieldComment": false, + "showTableComment": true, + "shapes": [ + { + "type": "table", + "schemaName": "free_erp", + "tableName": "company_system_log", + "x": 300, + "y": 30, + "width": 204, + "height": 370, + "isBold": false, + "titleColor": { + "r": 55, + "g": 131, + "b": 192, + "a": 1 + } + }, + { + "type": "table", + "schemaName": "free_erp", + "tableName": "companys", + "x": 570, + "y": 30, + "width": 222, + "height": 310, + "isBold": false, + "titleColor": { + "r": 55, + "g": 131, + "b": 192, + "a": 1 + } + }, + { + "type": "table", + "schemaName": "free_erp", + "tableName": "companys_functions", + "x": 1080, + "y": 550, + "width": 215, + "height": 190, + "isBold": false, + "titleColor": { + "r": 55, + "g": 131, + "b": 192, + "a": 1 + } + }, + { + "type": "table", + "schemaName": "free_erp", + "tableName": "companys_menus", + "x": 810, + "y": 550, + "width": 201, + "height": 250, + "isBold": false, + "titleColor": { + "r": 55, + "g": 131, + "b": 192, + "a": 1 + } + }, + { + "type": "table", + "schemaName": "free_erp", + "tableName": "departments", + "x": 1110, + "y": 30, + "width": 179, + "height": 190, + "isBold": false, + "titleColor": { + "r": 55, + "g": 131, + "b": 192, + "a": 1 + } + }, + { + "type": "table", + "schemaName": "free_erp", + "tableName": "erp_config", + "x": 30, + "y": 550, + "width": 205, + "height": 290, + "isBold": false, + "titleColor": { + "r": 55, + "g": 131, + "b": 192, + "a": 1 + } + }, + { + "type": "table", + "schemaName": "free_erp", + "tableName": "erp_config_value", + "x": 290, + "y": 910, + "width": 205, + "height": 210, + "isBold": false, + "titleColor": { + "r": 55, + "g": 131, + "b": 192, + "a": 1 + } + }, + { + "type": "table", + "schemaName": "free_erp", + "tableName": "groups", + "x": 570, + "y": 910, + "width": 179, + "height": 210, + "isBold": false, + "titleColor": { + "r": 55, + "g": 131, + "b": 192, + "a": 1 + } + }, + { + "type": "table", + "schemaName": "free_erp", + "tableName": "head_file_config", + "x": 820, + "y": 910, + "width": 256, + "height": 210, + "isBold": false, + "titleColor": { + "r": 55, + "g": 131, + "b": 192, + "a": 1 + } + }, + { + "type": "table", + "schemaName": "free_erp", + "tableName": "ip_addr", + "x": 1140, + "y": 910, + "width": 169, + "height": 190, + "isBold": false, + "titleColor": { + "r": 55, + "g": 131, + "b": 192, + "a": 1 + } + }, + { + "type": "table", + "schemaName": "free_erp", + "tableName": "login_records", + "x": 860, + "y": 30, + "width": 178, + "height": 250, + "isBold": false, + "titleColor": { + "r": 55, + "g": 131, + "b": 192, + "a": 1 + } + }, + { + "type": "table", + "schemaName": "free_erp", + "tableName": "sequence", + "x": 310, + "y": 550, + "width": 181, + "height": 290, + "isBold": false, + "titleColor": { + "r": 55, + "g": 131, + "b": 192, + "a": 1 + } + }, + { + "type": "table", + "schemaName": "free_erp", + "tableName": "staffs", + "x": 560, + "y": 550, + "width": 179, + "height": 290, + "isBold": false, + "titleColor": { + "r": 55, + "g": 131, + "b": 192, + "a": 1 + } + }, + { + "type": "table", + "schemaName": "free_erp", + "tableName": "users", + "x": 30, + "y": 30, + "width": 196, + "height": 450, + "isBold": false, + "titleColor": { + "r": 55, + "g": 131, + "b": 192, + "a": 1 + } + }, + { + "type": "table", + "schemaName": "free_erp", + "tableName": "users_config", + "x": 30, + "y": 910, + "width": 193, + "height": 230, + "isBold": false, + "titleColor": { + "r": 55, + "g": 131, + "b": 192, + "a": 1 + } + } + ], + "layers": [], + "relations": [], + "viewRelations": [] + } + ] +} \ No newline at end of file