-- 用户自定义配置表
-- spdm_baseline.system_form_user_configure definition
CREATE TABLE `system_form_user_configure` (
                                              `id` int NOT NULL AUTO_INCREMENT COMMENT '主键ID',
                                              `form_configure_id` int DEFAULT NULL COMMENT '关联主配置的id',
                                              `formName` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '表单名称',
                                              `formConfig` mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '表单配置信息（JSON格式）',
                                              `comment` mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci COMMENT '表单描述信息',
                                              `tenantId` bigint DEFAULT NULL COMMENT '租户ID',
                                              `creator` bigint DEFAULT NULL COMMENT '创建人ID',
                                              `createTime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
                                              PRIMARY KEY (`id`) USING BTREE,
                                              KEY `idx_form_configure_id` (`form_configure_id`) USING BTREE,
                                              KEY `idx_creator` (`creator`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci ROW_FORMAT=DYNAMIC COMMENT='用户自定义表单配置表';