-- ----------------------------
-- 表名：base_advanced_query_scheme
-- ----------------------------
CREATE TABLE base_advanced_query_scheme (
	`f_id` varchar(50) NOT NULL COMMENT '自然主键',
	`f_full_name` varchar(200) COMMENT '方案名称',
	`f_match_logic` varchar(20) COMMENT '匹配逻辑',
	`f_condition_json` longtext COMMENT '条件规则Json',
	`f_module_id` varchar(50) COMMENT '菜单主键',
	`f_creator_time` datetime COMMENT '创建时间',
	`f_creator_user_id` varchar(50) COMMENT '创建用户',
	`f_last_modify_time` datetime COMMENT '修改时间',
	`f_last_modify_user_id` varchar(50) COMMENT '修改用户',
	`f_delete_time` datetime COMMENT '删除时间',
	`f_delete_user_id` varchar(50) COMMENT '删除用户',
	`f_delete_mark` int COMMENT '删除标志',
	`f_sort_code` bigint COMMENT '排序',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE base_advanced_query_scheme COMMENT = '高级查询方案';
-- ----------------------------
-- 表名：base_app_data
-- ----------------------------
CREATE TABLE base_app_data (
	`f_id` varchar(50) NOT NULL COMMENT '自然主键',
	`f_object_type` varchar(50) COMMENT '对象类型',
	`f_object_id` varchar(50) COMMENT '对象主键',
	`f_object_data` longtext COMMENT '对象json',
	`f_description` varchar(500) COMMENT '描述或说明',
	`f_enabled_mark` int COMMENT '有效标志(0-禁用，1-启用)',
	`f_system_id` varchar(50) COMMENT '系统id',
	`f_creator_time` datetime COMMENT '创建时间',
	`f_creator_user_id` varchar(50) COMMENT '创建用户',
	`f_last_modify_time` datetime COMMENT '修改时间',
	`f_last_modify_user_id` varchar(50) COMMENT '修改用户',
	`f_delete_time` datetime COMMENT '删除时间',
	`f_delete_user_id` varchar(50) COMMENT '删除用户',
	`f_delete_mark` int COMMENT '删除标志',
	`f_sort_code` bigint COMMENT '排序',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE base_app_data COMMENT = 'app常用数据';
-- ----------------------------
-- 表名：base_authorize
-- ----------------------------
CREATE TABLE base_authorize (
	`f_id` varchar(50) NOT NULL COMMENT '自然主键',
	`f_item_type` varchar(50) COMMENT '项目类型',
	`f_item_id` varchar(50) COMMENT '项目主键',
	`f_object_type` varchar(50) COMMENT '对象类型',
	`f_object_id` varchar(50) COMMENT '对象主键',
	`f_sort_code` bigint COMMENT '排序',
	`f_creator_time` datetime COMMENT '创建时间',
	`f_creator_user_id` varchar(50) COMMENT '创建用户',
	`f_last_modify_time` datetime COMMENT '修改时间',
	`f_last_modify_user_id` varchar(50) COMMENT '修改用户',
	`f_delete_time` datetime COMMENT '删除时间',
	`f_delete_user_id` varchar(50) COMMENT '删除用户',
	`f_delete_mark` int COMMENT '删除标志',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE base_authorize COMMENT = '操作权限';
-- ----------------------------
-- 表名：base_bill_num
-- ----------------------------
CREATE TABLE base_bill_num (
	`f_id` varchar(50) NOT NULL COMMENT '自然主键',
	`f_rule_id` varchar(50) COMMENT '单据规则id',
	`f_visual_id` varchar(50) COMMENT '功能id',
	`f_flow_id` varchar(50) COMMENT '流程id',
	`f_rule_config` text COMMENT '规则配置',
	`f_date_value` varchar(50) COMMENT '时间规则值：用于判断是否重置',
	`f_num` int COMMENT '单据递增序号',
	`f_creator_time` datetime COMMENT '创建时间',
	`f_creator_user_id` varchar(50) COMMENT '创建用户',
	`f_last_modify_time` datetime COMMENT '修改时间',
	`f_last_modify_user_id` varchar(50) COMMENT '修改用户',
	`f_delete_time` datetime COMMENT '删除时间',
	`f_delete_user_id` varchar(50) COMMENT '删除用户',
	`f_delete_mark` int COMMENT '删除标志',
	`f_tenant_id` varchar(50) NOT NULL COMMENT '租户id'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE base_bill_num COMMENT = '单据规则记录';
-- ----------------------------
-- 表名：base_bill_rule
-- ----------------------------
CREATE TABLE base_bill_rule (
	`f_id` varchar(50) NOT NULL COMMENT '自然主键',
	`f_full_name` varchar(200) COMMENT '单据名称',
	`f_en_code` varchar(200) COMMENT '单据编号',
	`f_prefix` varchar(50) COMMENT '单据前缀',
	`f_date_format` varchar(50) COMMENT '日期格式',
	`f_digit` int COMMENT '流水位数',
	`f_start_number` varchar(50) COMMENT '流水起始',
	`f_example` varchar(100) COMMENT '流水范例',
	`f_this_number` int COMMENT '当前流水号',
	`f_output_number` varchar(100) COMMENT '输出流水号',
	`f_description` varchar(500) COMMENT '描述或说明',
	`f_enabled_mark` int COMMENT '有效标志(0-禁用，1-启用)',
	`f_category` varchar(50) COMMENT '业务分类',
	`f_sort_code` bigint COMMENT '排序',
	`f_creator_time` datetime COMMENT '创建时间',
	`f_creator_user_id` varchar(50) COMMENT '创建用户',
	`f_last_modify_time` datetime COMMENT '修改时间',
	`f_last_modify_user_id` varchar(50) COMMENT '修改用户',
	`f_delete_time` datetime COMMENT '删除时间',
	`f_delete_user_id` varchar(50) COMMENT '删除用户',
	`f_delete_mark` int COMMENT '删除标志',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id',
	`f_type` int COMMENT '方式 1-时间格式，2-随机数编号，3-UUID',
	`f_random_digit` int COMMENT '随机数位数',
	`f_random_type` int COMMENT '随机数类型',
	`f_suffix` varchar(50) COMMENT '单据后缀'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE base_bill_rule COMMENT = '单据规则';
-- ----------------------------
-- 表名：base_columns_purview
-- ----------------------------
CREATE TABLE base_columns_purview (
	`f_id` varchar(50) NOT NULL COMMENT '主键Id',
	`f_field_list` longtext COMMENT '列表字段数组',
	`f_module_id` varchar(50) COMMENT '模块ID',
	`f_enabled_mark` int COMMENT '有效标志(0-禁用，1-启用)',
	`f_sort_code` bigint COMMENT '排序',
	`f_creator_time` datetime COMMENT '创建时间',
	`f_creator_user_id` varchar(50) COMMENT '创建用户',
	`f_last_modify_time` datetime COMMENT '修改时间',
	`f_last_modify_user_id` varchar(50) COMMENT '修改用户',
	`f_delete_time` datetime COMMENT '删除时间',
	`f_delete_user_id` varchar(50) COMMENT '删除用户',
	`f_delete_mark` int COMMENT '删除标志',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE base_columns_purview COMMENT = '模块列表权限';
-- ----------------------------
-- 表名：base_common_fields
-- ----------------------------
CREATE TABLE base_common_fields (
	`f_id` varchar(50) NOT NULL COMMENT '主键',
	`f_field_name` varchar(50) COMMENT '列说名',
	`f_data_type` varchar(50) COMMENT '类型',
	`f_data_length` varchar(50) COMMENT '长度',
	`f_allow_null` int COMMENT '是否为空（1允许，0不允许）',
	`f_field` varchar(50) COMMENT '列名',
	`f_description` varchar(500) COMMENT '描述或说明',
	`f_enabled_mark` int COMMENT '有效标志(0-禁用，1-启用)',
	`f_sort_code` bigint COMMENT '排序',
	`f_creator_time` datetime COMMENT '创建时间',
	`f_creator_user_id` varchar(50) COMMENT '创建用户',
	`f_last_modify_time` datetime COMMENT '修改时间',
	`f_last_modify_user_id` varchar(50) COMMENT '修改用户',
	`f_delete_time` datetime COMMENT '删除时间',
	`f_delete_user_id` varchar(50) COMMENT '删除用户',
	`f_delete_mark` int COMMENT '删除标志',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE base_common_fields COMMENT = '常用表字段';
-- ----------------------------
-- 表名：base_common_words
-- ----------------------------
CREATE TABLE base_common_words (
	`f_id` varchar(50) NOT NULL COMMENT '自然主键',
	`f_system_ids` varchar(4000) COMMENT '应用id',
	`f_common_words_text` varchar(4000) COMMENT '常用语',
	`f_common_words_type` int COMMENT '常用语类型(0:系统,1:个人)',
	`f_sort_code` bigint COMMENT '排序',
	`f_enabled_mark` int COMMENT '有效标志',
	`f_creator_time` datetime COMMENT '创建时间',
	`f_creator_user_id` varchar(50) COMMENT '创建用户',
	`f_last_modify_time` datetime COMMENT '修改时间',
	`f_last_modify_user_id` varchar(50) COMMENT '修改用户',
	`f_delete_time` datetime COMMENT '删除时间',
	`f_delete_user_id` varchar(50) COMMENT '删除用户',
	`f_delete_mark` int COMMENT '删除标志',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id',
	`f_uses_num` bigint COMMENT '使用次数'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE base_common_words COMMENT = '常用语';
-- ----------------------------
-- 表名：base_data_interface
-- ----------------------------
CREATE TABLE base_data_interface (
	`f_id` varchar(50) NOT NULL COMMENT '主键ID',
	`f_full_name` varchar(200) COMMENT '名称',
	`f_en_code` varchar(200) COMMENT '编码',
	`f_category` varchar(50) COMMENT '分类',
	`f_type` int COMMENT '类型(1-静态数据，2-sql，3-api)',
	`f_action` int COMMENT '动作(3-查询)',
	`f_has_page` int COMMENT '分页(0-禁用，1-启用)',
	`f_is_postposition` int COMMENT '后置接口(0-否 1-是)',
	`f_data_config_json` longtext NOT NULL COMMENT '数据配置json',
	`f_data_count_json` longtext NOT NULL COMMENT '数据统计json',
	`f_data_echo_json` longtext NOT NULL COMMENT '数据回显json',
	`f_data_exception_json` longtext COMMENT '异常验证json',
	`f_data_js_json` longtext NOT NULL COMMENT '数据处理json',
	`f_parameter_json` longtext COMMENT '参数json',
	`f_field_json` longtext COMMENT '字段JSON',
	`f_description` varchar(500) COMMENT '描述或说明',
	`f_enabled_mark` int COMMENT '有效标志(0-禁用，1-启用)',
	`f_sort_code` bigint COMMENT '排序',
	`f_creator_time` datetime COMMENT '创建时间',
	`f_creator_user_id` varchar(50) COMMENT '创建用户',
	`f_last_modify_time` datetime COMMENT '修改时间',
	`f_last_modify_user_id` varchar(50) COMMENT '修改用户',
	`f_delete_time` datetime COMMENT '删除时间',
	`f_delete_user_id` varchar(50) COMMENT '删除用户',
	`f_delete_mark` int COMMENT '删除标志',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE base_data_interface COMMENT = '数据接口';
-- ----------------------------
-- 表名：base_data_interface_log
-- ----------------------------
CREATE TABLE base_data_interface_log (
	`f_id` varchar(50) NOT NULL COMMENT '主键id',
	`f_invok_id` varchar(50) NOT NULL COMMENT '调用接口id',
	`f_invok_time` datetime COMMENT '调用时间',
	`f_user_id` varchar(50) COMMENT '调用者id',
	`f_invok_ip` varchar(50) COMMENT '请求ip',
	`f_invok_device` varchar(500) COMMENT '请求设备',
	`f_invok_type` varchar(50) COMMENT '请求类型',
	`f_invok_waste_time` int COMMENT '请求耗时',
	`f_oauth_app_id` varchar(50) COMMENT '',
	`f_sort_code` bigint COMMENT '排序',
	`f_creator_time` datetime COMMENT '创建时间',
	`f_creator_user_id` varchar(50) COMMENT '创建用户',
	`f_last_modify_time` datetime COMMENT '修改时间',
	`f_last_modify_user_id` varchar(50) COMMENT '修改用户',
	`f_delete_time` datetime COMMENT '删除时间',
	`f_delete_user_id` varchar(50) COMMENT '删除用户',
	`f_delete_mark` int COMMENT '删除标志',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE base_data_interface_log COMMENT = '数据接口调用日志';
-- ----------------------------
-- 表名：base_data_interface_oauth
-- ----------------------------
CREATE TABLE base_data_interface_oauth (
	`f_id` varchar(50) NOT NULL COMMENT '主键',
	`f_app_id` varchar(200) NOT NULL COMMENT '应用id',
	`f_app_name` varchar(50) NOT NULL COMMENT '应用名称',
	`f_app_secret` varchar(200) NOT NULL COMMENT '应用秘钥',
	`f_verify_signature` int COMMENT '验证签名',
	`f_useful_life` datetime COMMENT '使用期限',
	`f_white_list` longtext COMMENT '白名单',
	`f_black_list` longtext COMMENT '黑名单',
	`f_data_interface_ids` longtext COMMENT '接口列表',
	`f_sort_code` bigint COMMENT '排序',
	`f_creator_time` datetime COMMENT '创建时间',
	`f_creator_user_id` varchar(50) COMMENT '创建用户',
	`f_last_modify_time` datetime COMMENT '修改时间',
	`f_last_modify_user_id` varchar(50) COMMENT '修改用户',
	`f_enabled_mark` int COMMENT '状态',
	`f_description` varchar(500) COMMENT '说明',
	`f_delete_time` datetime COMMENT '删除时间',
	`f_delete_user_id` varchar(50) COMMENT '删除用户',
	`f_delete_mark` int COMMENT '删除标志',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE base_data_interface_oauth COMMENT = '接口认证';
-- ----------------------------
-- 表名：base_data_interface_user
-- ----------------------------
CREATE TABLE base_data_interface_user (
	`f_id` varchar(50) NOT NULL COMMENT '自然主键',
	`f_user_id` varchar(50) COMMENT '用户主键',
	`f_user_key` varchar(50) COMMENT '用户密钥',
	`f_oauth_id` varchar(50) COMMENT '接口认证主键',
	`f_sort_code` bigint COMMENT '排序',
	`f_creator_time` datetime COMMENT '创建时间',
	`f_creator_user_id` varchar(50) COMMENT '创建用户',
	`f_last_modify_time` datetime COMMENT '修改时间',
	`f_last_modify_user_id` varchar(50) COMMENT '修改用户',
	`f_delete_time` datetime COMMENT '删除时间',
	`f_delete_user_id` varchar(50) COMMENT '删除用户',
	`f_delete_mark` int COMMENT '删除标志',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE base_data_interface_user COMMENT = '接口认证用户';
-- ----------------------------
-- 表名：base_data_interface_variate
-- ----------------------------
CREATE TABLE base_data_interface_variate (
	`f_id` varchar(50) NOT NULL COMMENT '主键id',
	`f_interface_id` varchar(50) NOT NULL COMMENT '数据接口id',
	`f_full_name` varchar(200) COMMENT '变量名',
	`f_expression` varchar(500) COMMENT '表达式',
	`f_value` longtext COMMENT '变量值',
	`f_sort_code` bigint COMMENT '排序',
	`f_creator_time` datetime COMMENT '创建时间',
	`f_creator_user_id` varchar(50) COMMENT '创建用户',
	`f_last_modify_time` datetime COMMENT '修改时间',
	`f_last_modify_user_id` varchar(50) COMMENT '修改用户',
	`f_delete_time` datetime COMMENT '删除时间',
	`f_delete_user_id` varchar(50) COMMENT '删除用户',
	`f_delete_mark` int COMMENT '删除标志',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE base_data_interface_variate COMMENT = '数据接口变量';
-- ----------------------------
-- 表名：base_data_set
-- ----------------------------
CREATE TABLE base_data_set (
	`f_id` varchar(50) NOT NULL COMMENT '主键_id',
	`f_object_type` varchar(50) COMMENT '关联数据类型',
	`f_object_id` varchar(50) COMMENT '关联的数据id',
	`f_full_name` varchar(255) NOT NULL COMMENT '数据集名称',
	`f_db_link_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '连接数据 _id',
	`f_data_config_json` text COMMENT '数据sql语句',
	`f_parameter_json` text COMMENT '输入参数',
	`f_field_json` text COMMENT '显示字段',
	`f_sort_code` bigint COMMENT '排序',
	`f_description` varchar(500) COMMENT '描述或说明',
	`f_creator_time` datetime COMMENT '创建时间',
	`f_creator_user_id` varchar(50) COMMENT '创建用户',
	`f_last_modify_time` datetime COMMENT '修改时间',
	`f_last_modify_user_id` varchar(50) COMMENT '修改用户',
	`f_delete_time` datetime COMMENT '删除时间',
	`f_delete_user_id` varchar(50) COMMENT '删除用户',
	`f_delete_mark` int COMMENT '删除标志',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id',
	`f_type` int DEFAULT '0' COMMENT '类型：1-sql语句，2-配置式',
	`f_visual_config_json` text COMMENT '配置json',
	`f_filter_config_json` text COMMENT '筛选设置json',
	`f_interface_id` varchar(50) COMMENT '数据接口id'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE base_data_set COMMENT = '数据集';
-- ----------------------------
-- 表名：base_db_link
-- ----------------------------
CREATE TABLE base_db_link (
	`f_id` varchar(50) NOT NULL COMMENT '自然主键',
	`f_full_name` varchar(200) COMMENT '连接名称',
	`f_db_type` varchar(50) COMMENT '连接驱动',
	`f_host` varchar(50) COMMENT '主机地址',
	`f_port` int COMMENT '端口',
	`f_user_name` varchar(50) COMMENT '用户',
	`f_password` varchar(100) COMMENT '密码',
	`f_service_name` varchar(50) COMMENT '服务名称',
	`f_description` varchar(500) COMMENT '描述或说明',
	`f_db_schema` varchar(50) COMMENT '模式',
	`f_table_space` varchar(50) COMMENT '表空间',
	`f_oracle_param` varchar(500) COMMENT 'oracle连接参数',
	`f_oracle_extend` int COMMENT 'Oracle扩展开关 1:开启 0:关闭',
	`f_sort_code` bigint COMMENT '排序',
	`f_creator_time` datetime COMMENT '创建时间',
	`f_creator_user_id` varchar(50) COMMENT '创建用户',
	`f_last_modify_time` datetime COMMENT '修改时间',
	`f_last_modify_user_id` varchar(50) COMMENT '修改用户',
	`f_delete_time` datetime COMMENT '删除时间',
	`f_delete_user_id` varchar(50) COMMENT '删除用户',
	`f_delete_mark` int COMMENT '删除标志',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE base_db_link COMMENT = '数据连接';
-- ----------------------------
-- 表名：base_dictionary_data
-- ----------------------------
CREATE TABLE base_dictionary_data (
	`f_id` varchar(50) NOT NULL COMMENT '自然主键',
	`f_parent_id` varchar(50) COMMENT '上级',
	`f_full_name` varchar(200) COMMENT '名称',
	`f_en_code` varchar(200) COMMENT '编号',
	`f_simple_spelling` varchar(500) COMMENT '拼音',
	`f_is_default` int COMMENT '默认',
	`f_description` varchar(500) COMMENT '描述',
	`f_enabled_mark` int COMMENT '有效标志',
	`f_dictionary_type_id` varchar(50) COMMENT '类别主键',
	`f_sort_code` bigint COMMENT '排序',
	`f_creator_time` datetime COMMENT '创建时间',
	`f_creator_user_id` varchar(50) COMMENT '创建用户',
	`f_last_modify_time` datetime COMMENT '修改时间',
	`f_last_modify_user_id` varchar(50) COMMENT '修改用户',
	`f_delete_time` datetime COMMENT '删除时间',
	`f_delete_user_id` varchar(50) COMMENT '删除用户',
	`f_delete_mark` int COMMENT '删除标志',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE base_dictionary_data COMMENT = '字典数据';
-- ----------------------------
-- 表名：base_dictionary_type
-- ----------------------------
CREATE TABLE base_dictionary_type (
	`f_id` varchar(50) NOT NULL COMMENT '自然主键',
	`f_parent_id` varchar(50) COMMENT '上级',
	`f_full_name` varchar(200) COMMENT '名称',
	`f_en_code` varchar(200) COMMENT '编号',
	`f_is_tree` int COMMENT '树形',
	`f_type` int COMMENT '类型 1 系统 0 业务',
	`f_description` varchar(500) COMMENT '描述或说明',
	`f_enabled_mark` int COMMENT '有效标志(0-禁用，1-启用)',
	`f_sort_code` bigint COMMENT '排序',
	`f_creator_time` datetime COMMENT '创建时间',
	`f_creator_user_id` varchar(50) COMMENT '创建用户',
	`f_last_modify_time` datetime COMMENT '修改时间',
	`f_last_modify_user_id` varchar(50) COMMENT '修改用户',
	`f_delete_time` datetime COMMENT '删除时间',
	`f_delete_user_id` varchar(50) COMMENT '删除用户',
	`f_delete_mark` int COMMENT '删除标志',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE base_dictionary_type COMMENT = '字典分类';
-- ----------------------------
-- 表名：base_file
-- ----------------------------
CREATE TABLE base_file (
	`f_id` varchar(50) NOT NULL COMMENT '主键id',
	`f_file_version` varchar(500) COMMENT '文件版本',
	`f_file_name` varchar(500) COMMENT '文件名',
	`f_type` int COMMENT '上传方式: 1.local 本地上传 2.http http上传 3.create 新建',
	`f_url` varchar(500) COMMENT 'http上传的url',
	`f_old_file_version_id` varchar(500) COMMENT '历史版本id',
	`f_sort_code` bigint COMMENT '排序',
	`f_creator_time` datetime COMMENT '创建时间',
	`f_creator_user_id` varchar(50) COMMENT '创建用户',
	`f_last_modify_time` datetime COMMENT '修改时间',
	`f_last_modify_user_id` varchar(50) COMMENT '修改用户',
	`f_delete_time` datetime COMMENT '删除时间',
	`f_delete_user_id` varchar(50) COMMENT '删除用户',
	`f_delete_mark` int COMMENT '删除标志',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE base_file COMMENT = '文件在线编辑';
-- ----------------------------
-- 表名：base_group
-- ----------------------------
CREATE TABLE base_group (
	`f_id` varchar(50) NOT NULL COMMENT '自然主键',
	`f_full_name` varchar(200) COMMENT '名称',
	`f_en_code` varchar(200) COMMENT '编码',
	`f_category` varchar(50) COMMENT '分类',
	`f_description` varchar(500) COMMENT '描述或说明',
	`f_enabled_mark` int COMMENT '有效标志(0-禁用，1-启用)',
	`f_sort_code` bigint COMMENT '排序',
	`f_creator_time` datetime COMMENT '创建时间',
	`f_creator_user_id` varchar(50) COMMENT '创建用户',
	`f_last_modify_time` datetime COMMENT '修改时间',
	`f_last_modify_user_id` varchar(50) COMMENT '修改用户',
	`f_delete_time` datetime COMMENT '删除时间',
	`f_delete_user_id` varchar(50) COMMENT '删除用户',
	`f_delete_mark` int COMMENT '删除标志',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE base_group COMMENT = '分组管理';
-- ----------------------------
-- 表名：base_im_content
-- ----------------------------
CREATE TABLE base_im_content (
	`f_id` varchar(50) NOT NULL COMMENT '自然主键',
	`f_send_user_id` varchar(50) COMMENT '发送者',
	`f_send_time` datetime COMMENT '发送时间',
	`f_receive_user_id` varchar(50) COMMENT '接收者',
	`f_receive_time` datetime COMMENT '接收时间',
	`f_content` longtext COMMENT '内容',
	`f_content_type` varchar(50) COMMENT '内容类型：text、img、file',
	`f_enabled_mark` int COMMENT '有效标志(0-未读，1-已读)',
	`f_sort_code` bigint COMMENT '排序',
	`f_creator_time` datetime COMMENT '创建时间',
	`f_creator_user_id` varchar(50) COMMENT '创建用户',
	`f_last_modify_time` datetime COMMENT '修改时间',
	`f_last_modify_user_id` varchar(50) COMMENT '修改用户',
	`f_delete_time` datetime COMMENT '删除时间',
	`f_delete_user_id` varchar(50) COMMENT '删除用户',
	`f_delete_mark` int COMMENT '删除标志',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE base_im_content COMMENT = '聊天内容';
-- ----------------------------
-- 表名：base_im_reply
-- ----------------------------
CREATE TABLE base_im_reply (
	`f_id` varchar(50) NOT NULL COMMENT '主键',
	`f_user_id` varchar(50) COMMENT '用户主键',
	`f_receive_user_id` varchar(50) COMMENT '接收用户',
	`f_receive_time` datetime COMMENT '接收时间',
	`f_sort_code` bigint COMMENT '排序',
	`f_creator_time` datetime COMMENT '创建时间',
	`f_creator_user_id` varchar(50) COMMENT '创建用户',
	`f_last_modify_time` datetime COMMENT '修改时间',
	`f_last_modify_user_id` varchar(50) COMMENT '修改用户',
	`f_delete_time` datetime COMMENT '删除时间',
	`f_delete_user_id` varchar(50) COMMENT '删除用户',
	`f_delete_mark` int COMMENT '删除标志',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE base_im_reply COMMENT = '聊天会话';
-- ----------------------------
-- 表名：base_integrate
-- ----------------------------
CREATE TABLE base_integrate (
	`f_id` varchar(50) NOT NULL COMMENT '自然主键',
	`f_full_name` varchar(200) COMMENT '集成名称',
	`f_en_code` varchar(200) COMMENT '集成编号',
	`f_template_json` longtext COMMENT '集成模板',
	`f_trigger_type` int COMMENT '触发事件(1.新增 2.修改 3.删除)',
	`f_result_type` int COMMENT '结果',
	`f_type` int COMMENT '触发类型(1-事件，2-定时 )',
	`f_form_id` varchar(50) COMMENT '表单id',
	`f_description` varchar(500) COMMENT '描述或说明',
	`f_enabled_mark` int COMMENT '有效标志(0-禁用，1-启用)',
	`f_sort_code` bigint COMMENT '排序',
	`f_creator_time` datetime COMMENT '创建时间',
	`f_creator_user_id` varchar(50) COMMENT '创建用户',
	`f_last_modify_time` datetime COMMENT '修改时间',
	`f_last_modify_user_id` varchar(50) COMMENT '修改用户',
	`f_delete_time` datetime COMMENT '删除时间',
	`f_delete_user_id` varchar(50) COMMENT '删除用户',
	`f_delete_mark` int COMMENT '删除标志',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE base_integrate COMMENT = '系统集成';
-- ----------------------------
-- 表名：base_integrate_node
-- ----------------------------
CREATE TABLE base_integrate_node (
	`f_id` varchar(50) NOT NULL COMMENT '自然主键',
	`f_task_id` varchar(50) COMMENT '任务主键',
	`f_form_Id` varchar(50) COMMENT '表单主键',
	`f_node_type` varchar(50) COMMENT '类型',
	`f_start_time` datetime COMMENT '开始时间',
	`f_end_time` datetime COMMENT '结束时间',
	`f_error_msg` longtext COMMENT '异常提示',
	`f_node_code` varchar(50) COMMENT '节点编号',
	`f_node_name` varchar(50) COMMENT '节点名称',
	`f_node_next` varchar(2000) COMMENT '下节点',
	`f_result_type` int COMMENT '是否完成',
	`f_node_property_json` longtext COMMENT '节点属性Json',
	`f_enabled_mark` int COMMENT '有效标志(0-禁用，1-启用)',
	`f_sort_code` bigint COMMENT '排序',
	`f_creator_time` datetime COMMENT '创建时间',
	`f_creator_user_id` varchar(50) COMMENT '创建用户',
	`f_last_modify_time` datetime COMMENT '修改时间',
	`f_last_modify_user_id` varchar(50) COMMENT '修改用户',
	`f_delete_time` datetime COMMENT '删除时间',
	`f_delete_user_id` varchar(50) COMMENT '删除用户',
	`f_delete_mark` int COMMENT '删除标志',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id',
	`f_description` varchar(500) COMMENT '描述或说明',
	`f_parent_id` varchar(50) COMMENT '父节点id',
	`f_is_retry` int COMMENT '能否重试'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE base_integrate_node COMMENT = '系统集成节点';
-- ----------------------------
-- 表名：base_integrate_queue
-- ----------------------------
CREATE TABLE base_integrate_queue (
	`f_id` varchar(50) NOT NULL COMMENT '自然主键',
	`f_full_name` varchar(50) COMMENT '集成名称',
	`f_integrate_id` varchar(200) COMMENT '集成主键',
	`f_execution_time` datetime COMMENT '执行时间',
	`f_state` int COMMENT '状态',
	`f_enabled_mark` int COMMENT '有效标志(0-禁用，1-启用)',
	`f_creator_time` datetime COMMENT '创建时间',
	`f_creator_user_id` varchar(50) COMMENT '创建用户',
	`f_last_modify_time` datetime COMMENT '修改时间',
	`f_last_modify_user_id` varchar(50) COMMENT '修改用户',
	`f_delete_time` datetime COMMENT '删除时间',
	`f_delete_user_id` varchar(50) COMMENT '删除用户',
	`f_delete_mark` int COMMENT '删除标志',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id',
	`f_description` varchar(4000) COMMENT '描述',
	`f_sort_code` bigint COMMENT '排序'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE base_integrate_queue COMMENT = '系统集成队列';
-- ----------------------------
-- 表名：base_integrate_task
-- ----------------------------
CREATE TABLE base_integrate_task (
	`f_id` varchar(50) NOT NULL COMMENT '自然主键',
	`f_process_id` varchar(50) COMMENT '实例主键',
	`f_parent_time` datetime COMMENT '父节点时间',
	`f_parent_id` varchar(50) COMMENT '父节点id',
	`f_execution_time` datetime COMMENT '执行时间',
	`f_template_json` longtext COMMENT '集成模板',
	`f_data` longtext COMMENT '数据',
	`f_data_id` varchar(50) COMMENT '数据主键',
	`f_type` int COMMENT '集成类型',
	`f_integrate_id` varchar(200) COMMENT '集成主键',
	`f_result_type` int COMMENT '结果',
	`f_description` varchar(500) COMMENT '描述或说明',
	`f_enabled_mark` int COMMENT '有效标志(0-失败，1-成功)',
	`f_sort_code` bigint COMMENT '排序',
	`f_creator_time` datetime COMMENT '创建时间',
	`f_creator_user_id` varchar(50) COMMENT '创建用户',
	`f_last_modify_time` datetime COMMENT '修改时间',
	`f_last_modify_user_id` varchar(50) COMMENT '修改用户',
	`f_delete_time` datetime COMMENT '删除时间',
	`f_delete_user_id` varchar(50) COMMENT '删除用户',
	`f_delete_mark` int COMMENT '删除标志',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE base_integrate_task COMMENT = '系统集成任务';
-- ----------------------------
-- 表名：base_language
-- ----------------------------
CREATE TABLE base_language (
	`f_id` varchar(50) NOT NULL COMMENT '自然主键',
	`f_group_id` varchar(50) COMMENT '翻译标记id',
	`f_en_code` varchar(200) COMMENT '翻译标记',
	`f_full_name` varchar(500) COMMENT '翻译内容',
	`f_language` varchar(50) COMMENT '语种（数据字典添加）',
	`f_type` int COMMENT '类型：0-客户端，1-java服务端，2-net服务端',
	`f_description` varchar(500) COMMENT '描述',
	`f_enabled_mark` int COMMENT '有效标志',
	`f_sort_code` bigint COMMENT '排序',
	`f_creator_time` datetime COMMENT '创建时间',
	`f_creator_user_id` varchar(50) COMMENT '创建用户',
	`f_last_modify_time` datetime COMMENT '修改时间',
	`f_last_modify_user_id` varchar(50) COMMENT '修改用户',
	`f_delete_time` datetime COMMENT '删除时间',
	`f_delete_user_id` varchar(50) COMMENT '删除用户',
	`f_delete_mark` int COMMENT '删除标志',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE base_language COMMENT = '字典数据';
-- ----------------------------
-- 表名：base_message
-- ----------------------------
CREATE TABLE base_message (
	`f_id` varchar(50) NOT NULL COMMENT '自然主键',
	`f_type` int COMMENT '类型(1-公告 2-流程 3-系统 4-日程)',
	`f_title` varchar(200) COMMENT '标题',
	`f_flow_type` int COMMENT '流程类型(1:审批 2:委托)',
	`f_user_id` varchar(50) COMMENT '用户id',
	`f_is_read` int COMMENT '是否阅读',
	`f_read_time` datetime COMMENT '阅读时间',
	`f_read_count` int COMMENT '阅读次数',
	`f_sort_code` bigint COMMENT '排序',
	`f_creator_time` datetime COMMENT '创建时间',
	`f_creator_user_id` varchar(50) COMMENT '创建用户',
	`f_last_modify_time` datetime COMMENT '修改时间',
	`f_last_modify_user_id` varchar(50) COMMENT '修改用户',
	`f_delete_time` datetime COMMENT '删除时间',
	`f_delete_user_id` varchar(50) COMMENT '删除用户',
	`f_delete_mark` int COMMENT '删除标志',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id',
	`f_body_text` longtext COMMENT '内容'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE base_message COMMENT = '消息实例';
-- ----------------------------
-- 表名：base_module
-- ----------------------------
CREATE TABLE base_module (
	`f_id` varchar(50) NOT NULL COMMENT '自然主键',
	`f_parent_id` varchar(50) COMMENT '上级id',
	`f_type` int COMMENT '类型(1-目录 2-页面 3-功能 4-字典 5-报表 6-大屏 7-外链 8-门户)',
	`f_full_name` varchar(200) COMMENT '名称',
	`f_en_code` varchar(200) COMMENT '编码',
	`f_category` varchar(50) COMMENT '分类',
	`f_url_address` varchar(500) COMMENT '功能地址',
	`f_icon` varchar(500) COMMENT '菜单图标',
	`f_link_target` varchar(50) COMMENT '链接目标',
	`f_is_button_authorize` int COMMENT '按钮权限',
	`f_is_column_authorize` int COMMENT '列表权限',
	`f_is_data_authorize` int COMMENT '数据权限',
	`f_is_form_authorize` int COMMENT '表单权限',
	`f_module_id` varchar(50) COMMENT '关联功能id',
	`f_system_id` varchar(50) COMMENT '系统id',
	`f_property_json` longtext COMMENT '扩展属性',
	`f_description` varchar(500) COMMENT '描述或说明',
	`f_enabled_mark` int COMMENT '有效标志(0-禁用，1-启用)',
	`f_sort_code` bigint COMMENT '排序',
	`f_creator_time` datetime COMMENT '创建时间',
	`f_creator_user_id` varchar(50) COMMENT '创建用户',
	`f_last_modify_time` datetime COMMENT '修改时间',
	`f_last_modify_user_id` varchar(50) COMMENT '修改用户',
	`f_delete_time` datetime COMMENT '删除时间',
	`f_delete_user_id` varchar(50) COMMENT '删除用户',
	`f_delete_mark` int COMMENT '删除标志',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE base_module COMMENT = '系统菜单';
-- ----------------------------
-- 表名：base_module_authorize
-- ----------------------------
CREATE TABLE base_module_authorize (
	`f_id` varchar(50) NOT NULL COMMENT '自然主键',
	`f_full_name` varchar(200) COMMENT '字段名称',
	`f_en_code` varchar(200) COMMENT '字段编号',
	`f_type` varchar(50) COMMENT '字段类型',
	`f_condition_symbol` varchar(500) COMMENT '条件符号',
	`f_condition_text` varchar(500) COMMENT '条件内容',
	`f_property_json` longtext COMMENT '扩展属性',
	`f_module_id` varchar(50) COMMENT '功能主键',
	`f_field_rule` int COMMENT '字段规则(0-主表 1-副表 2-子表)',
	`f_child_table_key` varchar(50) COMMENT '子表规则key',
	`f_bind_table` varchar(50) COMMENT '绑定表格Id',
	`f_format` varchar(20) COMMENT '时间格式',
	`f_description` varchar(500) COMMENT '描述或说明',
	`f_enabled_mark` int COMMENT '有效标志(0-禁用，1-启用)',
	`f_sort_code` bigint COMMENT '排序',
	`f_creator_time` datetime COMMENT '创建时间',
	`f_creator_user_id` varchar(50) COMMENT '创建用户',
	`f_last_modify_time` datetime COMMENT '修改时间',
	`f_last_modify_user_id` varchar(50) COMMENT '修改用户',
	`f_delete_time` datetime COMMENT '删除时间',
	`f_delete_user_id` varchar(50) COMMENT '删除用户',
	`f_delete_mark` int COMMENT '删除标志',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE base_module_authorize COMMENT = '数据权限配置';
-- ----------------------------
-- 表名：base_module_button
-- ----------------------------
CREATE TABLE base_module_button (
	`f_id` varchar(50) NOT NULL COMMENT '自然主键',
	`f_parent_id` varchar(50) COMMENT '按钮上级',
	`f_full_name` varchar(200) COMMENT '按钮名称',
	`f_en_code` varchar(200) COMMENT '按钮编号',
	`f_icon` varchar(500) COMMENT '按钮图标',
	`f_url_address` varchar(500) COMMENT '请求地址',
	`f_property_json` longtext COMMENT '扩展属性',
	`f_module_id` varchar(50) COMMENT '功能主键',
	`f_description` varchar(500) COMMENT '描述或说明',
	`f_enabled_mark` int COMMENT '有效标志(0-禁用，1-启用)',
	`f_sort_code` bigint COMMENT '排序',
	`f_creator_time` datetime COMMENT '创建时间',
	`f_creator_user_id` varchar(50) COMMENT '创建用户',
	`f_last_modify_time` datetime COMMENT '修改时间',
	`f_last_modify_user_id` varchar(50) COMMENT '修改用户',
	`f_delete_time` datetime COMMENT '删除时间',
	`f_delete_user_id` varchar(50) COMMENT '删除用户',
	`f_delete_mark` int COMMENT '删除标志',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE base_module_button COMMENT = '按钮权限';
-- ----------------------------
-- 表名：base_module_column
-- ----------------------------
CREATE TABLE base_module_column (
	`f_id` varchar(50) NOT NULL COMMENT '自然主键',
	`f_parent_id` varchar(50) COMMENT '上级id',
	`f_full_name` varchar(200) COMMENT '',
	`f_en_code` varchar(200) COMMENT '',
	`f_bind_table` varchar(50) COMMENT '绑定表格Id',
	`f_bind_table_name` varchar(50) COMMENT '绑定表格描述',
	`f_property_json` longtext COMMENT '扩展属性',
	`f_module_id` varchar(50) COMMENT '功能主键',
	`f_field_rule` int COMMENT '字段规则(0-主表 1-副表 2-子表)',
	`f_child_table_key` varchar(50) COMMENT '子表规则key',
	`f_description` varchar(500) COMMENT '描述或说明',
	`f_enabled_mark` int COMMENT '有效标志(0-禁用，1-启用)',
	`f_sort_code` bigint COMMENT '排序',
	`f_creator_time` datetime COMMENT '创建时间',
	`f_creator_user_id` varchar(50) COMMENT '创建用户',
	`f_last_modify_time` datetime COMMENT '修改时间',
	`f_last_modify_user_id` varchar(50) COMMENT '修改用户',
	`f_delete_time` datetime COMMENT '删除时间',
	`f_delete_user_id` varchar(50) COMMENT '删除用户',
	`f_delete_mark` int COMMENT '删除标志',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE base_module_column COMMENT = '列表权限';
-- ----------------------------
-- 表名：base_module_data
-- ----------------------------
CREATE TABLE base_module_data (
	`f_id` varchar(50) NOT NULL COMMENT '自然主键',
	`f_module_type` varchar(50) COMMENT '对象类型',
	`f_module_id` varchar(50) COMMENT '对象主键',
	`f_description` varchar(500) COMMENT '描述或说明',
	`f_enabled_mark` int COMMENT '有效标志(0-禁用，1-启用)',
	`f_system_id` varchar(50) COMMENT '系统id',
	`f_creator_time` datetime COMMENT '创建时间',
	`f_creator_user_id` varchar(50) COMMENT '创建用户',
	`f_last_modify_time` datetime COMMENT '修改时间',
	`f_last_modify_user_id` varchar(50) COMMENT '修改用户',
	`f_delete_time` datetime COMMENT '删除时间',
	`f_delete_user_id` varchar(50) COMMENT '删除用户',
	`f_delete_mark` int COMMENT '删除标志',
	`f_sort_code` bigint COMMENT '排序',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE base_module_data COMMENT = '常用菜单';
-- ----------------------------
-- 表名：base_module_form
-- ----------------------------
CREATE TABLE base_module_form (
	`f_id` varchar(50) NOT NULL COMMENT '自然主键',
	`f_parent_id` varchar(50) COMMENT '表单上级',
	`f_full_name` varchar(200) COMMENT '',
	`f_en_code` varchar(200) COMMENT '',
	`f_property_json` longtext COMMENT '扩展属性',
	`f_module_id` varchar(50) COMMENT '功能主键',
	`f_field_rule` int COMMENT '字段规则(0-主表 1-副表 2-子表)',
	`f_child_table_key` varchar(50) COMMENT '子表规则key',
	`f_bind_table` varchar(50) COMMENT '绑定表格Id',
	`f_description` varchar(500) COMMENT '描述或说明',
	`f_enabled_mark` int COMMENT '有效标志(0-禁用，1-启用)',
	`f_sort_code` bigint COMMENT '排序',
	`f_creator_time` datetime COMMENT '创建时间',
	`f_creator_user_id` varchar(50) COMMENT '创建用户',
	`f_last_modify_time` datetime COMMENT '修改时间',
	`f_last_modify_user_id` varchar(50) COMMENT '修改用户',
	`f_delete_time` datetime COMMENT '删除时间',
	`f_delete_user_id` varchar(50) COMMENT '删除用户',
	`f_delete_mark` int COMMENT '删除标志',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE base_module_form COMMENT = '表单权限';
-- ----------------------------
-- 表名：base_module_link
-- ----------------------------
CREATE TABLE base_module_link (
	`f_id` varchar(50) NOT NULL COMMENT '自然主键',
	`f_link_id` varchar(50) COMMENT '数据源连接',
	`f_link_tables` varchar(200) COMMENT '连接表名',
	`f_module_id` varchar(50) COMMENT '菜单主键',
	`f_type` int COMMENT '权限类型(1:列表权限，2：数据权限，3：表单权限)',
	`f_sort_code` bigint COMMENT '排序',
	`f_creator_time` datetime COMMENT '创建时间',
	`f_creator_user_id` varchar(50) COMMENT '创建用户',
	`f_last_modify_time` datetime COMMENT '修改时间',
	`f_last_modify_user_id` varchar(50) COMMENT '修改用户',
	`f_delete_time` datetime COMMENT '删除时间',
	`f_delete_user_id` varchar(50) COMMENT '删除用户',
	`f_delete_mark` int COMMENT '删除标志',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE base_module_link COMMENT = '数据权限连接管理';
-- ----------------------------
-- 表名：base_module_scheme
-- ----------------------------
CREATE TABLE base_module_scheme (
	`f_id` varchar(50) NOT NULL COMMENT '自然主键',
	`f_en_code` varchar(200) COMMENT '方案编号',
	`f_full_name` varchar(100) COMMENT '方案名称',
	`f_condition_json` longtext COMMENT '条件规则Json',
	`f_condition_text` varchar(500) COMMENT '条件规则描述',
	`f_description` varchar(500) COMMENT '描述或说明',
	`f_module_id` varchar(50) COMMENT '功能主键',
	`f_all_data` int COMMENT '全部数据标识',
	`f_enabled_mark` int COMMENT '有效标志(0-禁用，1-启用)',
	`f_sort_code` bigint COMMENT '排序',
	`f_match_logic` varchar(50) COMMENT '分组匹配逻辑',
	`f_creator_time` datetime COMMENT '创建时间',
	`f_creator_user_id` varchar(50) COMMENT '创建用户',
	`f_last_modify_time` datetime COMMENT '修改时间',
	`f_last_modify_user_id` varchar(50) COMMENT '修改用户',
	`f_delete_time` datetime COMMENT '删除时间',
	`f_delete_user_id` varchar(50) COMMENT '删除用户',
	`f_delete_mark` int COMMENT '删除标志',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE base_module_scheme COMMENT = '数据权限方案';
-- ----------------------------
-- 表名：base_msg_account
-- ----------------------------
CREATE TABLE base_msg_account (
	`f_id` varchar(50) NOT NULL COMMENT '主键id',
	`f_category` varchar(50) COMMENT '分类',
	`f_full_name` varchar(200) COMMENT '名称',
	`f_en_code` varchar(200) COMMENT '编码',
	`f_addressor_name` varchar(50) COMMENT '发件人昵称',
	`f_smtp_server` varchar(50) COMMENT 'SMTP服务器',
	`f_smtp_port` int COMMENT 'SMTP端口',
	`f_ssl_link` int COMMENT 'SSL安全链接',
	`f_smtp_user` varchar(50) COMMENT 'SMTP用户',
	`f_smtp_password` varchar(50) COMMENT 'SMTP密码',
	`f_channel` int COMMENT '渠道',
	`f_sms_signature` varchar(50) COMMENT '短信签名',
	`f_app_id` varchar(50) COMMENT '应用ID',
	`f_app_secret` varchar(500) COMMENT '应用Secret',
	`f_end_point` varchar(50) COMMENT 'EndPoint（阿里云）',
	`f_sdk_app_id` varchar(50) COMMENT 'SDK AppID（腾讯云）',
	`f_app_key` varchar(50) COMMENT 'AppKey（腾讯云）',
	`f_zone_name` varchar(50) COMMENT '地域域名（腾讯云）',
	`f_zone_param` varchar(50) COMMENT '地域参数（腾讯云）',
	`f_enterprise_id` varchar(50) COMMENT '企业id',
	`f_agent_id` varchar(50) COMMENT 'AgentID',
	`f_webhook_type` int COMMENT 'WebHook类型',
	`f_webhook_address` varchar(500) COMMENT 'WebHook地址',
	`f_approve_type` int COMMENT '认证类型',
	`f_bearer` varchar(500) COMMENT 'Bearer令牌',
	`f_user_name` varchar(50) COMMENT '用户名（基本认证）',
	`f_password` varchar(50) COMMENT '密码（基本认证）',
	`f_sort_code` bigint COMMENT '排序',
	`f_description` varchar(500) COMMENT '描述或说明',
	`f_enabled_mark` int COMMENT '有效标志(0-禁用，1-启用)',
	`f_creator_time` datetime COMMENT '创建时间',
	`f_creator_user_id` varchar(50) COMMENT '创建用户',
	`f_last_modify_time` datetime COMMENT '修改时间',
	`f_last_modify_user_id` varchar(50) COMMENT '修改用户',
	`f_delete_time` datetime COMMENT '删除时间',
	`f_delete_user_id` varchar(50) COMMENT '删除用户',
	`f_delete_mark` int COMMENT '删除标志',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE base_msg_account COMMENT = '账号配置表';
-- ----------------------------
-- 表名：base_msg_monitor
-- ----------------------------
CREATE TABLE base_msg_monitor (
	`f_id` varchar(50) NOT NULL COMMENT '主键id',
	`f_account_id` varchar(50) COMMENT '账号id',
	`f_account_name` varchar(50) COMMENT '账号名称',
	`f_account_code` varchar(50) COMMENT '账号编码',
	`f_message_type` varchar(50) COMMENT '消息类型',
	`f_message_source` varchar(50) COMMENT '消息来源',
	`f_send_time` datetime COMMENT '发送时间',
	`f_message_template_id` varchar(50) COMMENT '消息模板id',
	`f_title` varchar(200) COMMENT '标题',
	`f_receive_user` longtext COMMENT '接收人',
	`f_content` longtext COMMENT '内容',
	`f_sort_code` bigint COMMENT '排序',
	`f_creator_time` datetime COMMENT '创建时间',
	`f_creator_user_id` varchar(50) COMMENT '创建用户',
	`f_last_modify_time` datetime COMMENT '修改时间',
	`f_last_modify_user_id` varchar(50) COMMENT '修改用户',
	`f_delete_time` datetime COMMENT '删除时间',
	`f_delete_user_id` varchar(50) COMMENT '删除用户',
	`f_delete_mark` int COMMENT '删除标志',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE base_msg_monitor COMMENT = '消息监控表';
-- ----------------------------
-- 表名：base_msg_send
-- ----------------------------
CREATE TABLE base_msg_send (
	`f_id` varchar(50) NOT NULL COMMENT '主键id',
	`f_full_name` varchar(200) COMMENT '名称',
	`f_en_code` varchar(200) COMMENT '编码',
	`f_template_type` varchar(50) COMMENT '模板类型',
	`f_message_source` varchar(50) COMMENT '消息来源',
	`f_description` varchar(500) COMMENT '描述或说明',
	`f_enabled_mark` int COMMENT '有效标志(0-禁用，1-启用)',
	`f_sort_code` bigint COMMENT '排序',
	`f_creator_time` datetime COMMENT '创建时间',
	`f_creator_user_id` varchar(50) COMMENT '创建用户',
	`f_last_modify_time` datetime COMMENT '修改时间',
	`f_last_modify_user_id` varchar(50) COMMENT '修改用户',
	`f_delete_time` datetime COMMENT '删除时间',
	`f_delete_user_id` varchar(50) COMMENT '删除用户',
	`f_delete_mark` int COMMENT '删除标志',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE base_msg_send COMMENT = '消息发送配置表';
-- ----------------------------
-- 表名：base_msg_send_template
-- ----------------------------
CREATE TABLE base_msg_send_template (
	`f_id` varchar(50) NOT NULL COMMENT '主键id',
	`f_send_config_id` varchar(50) COMMENT '消息发送配置id',
	`f_message_type` varchar(50) COMMENT '消息类型',
	`f_template_id` varchar(50) COMMENT '消息模板id',
	`f_account_config_id` varchar(50) COMMENT '账号配置id',
	`f_description` varchar(500) COMMENT '描述或说明',
	`f_enabled_mark` int COMMENT '有效标志(0-禁用，1-启用)',
	`f_sort_code` bigint COMMENT '排序',
	`f_creator_time` datetime COMMENT '创建时间',
	`f_creator_user_id` varchar(50) COMMENT '创建用户',
	`f_last_modify_time` datetime COMMENT '修改时间',
	`f_last_modify_user_id` varchar(50) COMMENT '修改用户',
	`f_delete_time` datetime COMMENT '删除时间',
	`f_delete_user_id` varchar(50) COMMENT '删除用户',
	`f_delete_mark` int COMMENT '删除标志',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE base_msg_send_template COMMENT = '发送配置模板表';
-- ----------------------------
-- 表名：base_msg_short_link
-- ----------------------------
CREATE TABLE base_msg_short_link (
	`f_id` varchar(50) NOT NULL COMMENT '自然主键',
	`f_short_link` varchar(200) COMMENT '短链接',
	`f_real_pc_link` varchar(500) COMMENT 'PC端链接',
	`f_real_app_link` varchar(500) COMMENT 'App端链接',
	`f_body_text` longtext COMMENT '流程内容',
	`f_is_used` int COMMENT '是否点击后失效',
	`f_click_num` int COMMENT '点击次数',
	`f_unable_num` int COMMENT '失效次数',
	`f_unable_time` datetime COMMENT '失效时间',
	`f_user_id` varchar(50) COMMENT '用户id',
	`f_enabled_mark` int COMMENT '有效标志(0-禁用，1-启用)',
	`f_creator_time` datetime COMMENT '创建时间',
	`f_creator_user_id` varchar(50) COMMENT '创建用户',
	`f_last_modify_time` datetime COMMENT '修改时间',
	`f_last_modify_user_id` varchar(50) COMMENT '修改用户',
	`f_delete_time` datetime COMMENT '删除时间',
	`f_delete_user_id` varchar(50) COMMENT '删除用户',
	`f_delete_mark` int COMMENT '删除标志',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id',
	`f_sort_code` bigint COMMENT '排序'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE base_msg_short_link COMMENT = '消息链接表';
-- ----------------------------
-- 表名：base_msg_sms_field
-- ----------------------------
CREATE TABLE base_msg_sms_field (
	`f_id` varchar(50) NOT NULL COMMENT '主键id',
	`f_template_id` varchar(50) COMMENT '消息模板id',
	`f_field_id` varchar(50) COMMENT '参数id',
	`f_sms_field` varchar(50) COMMENT '短信变量',
	`f_field` varchar(50) COMMENT '参数',
	`f_is_title` int COMMENT '是否标题',
	`f_enabled_mark` int COMMENT '有效标志(0-禁用，1-启用)',
	`f_creator_time` datetime COMMENT '创建时间',
	`f_creator_user_id` varchar(50) COMMENT '创建用户',
	`f_last_modify_time` datetime COMMENT '修改时间',
	`f_last_modify_user_id` varchar(50) COMMENT '修改用户',
	`f_delete_time` datetime COMMENT '删除时间',
	`f_delete_user_id` varchar(50) COMMENT '删除用户',
	`f_delete_mark` int COMMENT '删除标志',
	`f_sort_code` bigint COMMENT '排序',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE base_msg_sms_field COMMENT = '短信变量表';
-- ----------------------------
-- 表名：base_msg_template
-- ----------------------------
CREATE TABLE base_msg_template (
	`f_id` varchar(50) NOT NULL COMMENT '主键id',
	`f_full_name` varchar(200) COMMENT '名称',
	`f_en_code` varchar(200) COMMENT '编码',
	`f_template_type` varchar(50) COMMENT '模板类型',
	`f_message_source` varchar(50) COMMENT '消息来源',
	`f_message_type` varchar(50) COMMENT '消息类型',
	`f_wx_skip` varchar(50) COMMENT '跳转方式',
	`f_xcx_app_id` varchar(50) COMMENT '小程序id',
	`f_title` varchar(200) COMMENT '消息标题',
	`f_content` longtext COMMENT '消息内容',
	`f_template_code` varchar(50) COMMENT '模板编号',
	`f_description` varchar(500) COMMENT '描述或说明',
	`f_enabled_mark` int COMMENT '有效标志(0-禁用，1-启用)',
	`f_sort_code` bigint COMMENT '排序',
	`f_creator_time` datetime COMMENT '创建时间',
	`f_creator_user_id` varchar(50) COMMENT '创建用户',
	`f_last_modify_time` datetime COMMENT '修改时间',
	`f_last_modify_user_id` varchar(50) COMMENT '修改用户',
	`f_delete_time` datetime COMMENT '删除时间',
	`f_delete_user_id` varchar(50) COMMENT '删除用户',
	`f_delete_mark` int COMMENT '删除标志',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE base_msg_template COMMENT = '消息模板表';
-- ----------------------------
-- 表名：base_msg_template_param
-- ----------------------------
CREATE TABLE base_msg_template_param (
	`f_id` varchar(50) NOT NULL COMMENT '主键id',
	`f_template_id` varchar(50) COMMENT '消息模板id',
	`f_field` varchar(50) COMMENT '参数名称',
	`f_field_name` varchar(50) COMMENT '参数说明',
	`f_enabled_mark` int COMMENT '有效标志(0-禁用，1-启用)',
	`f_creator_time` datetime COMMENT '创建时间',
	`f_creator_user_id` varchar(50) COMMENT '创建用户',
	`f_last_modify_time` datetime COMMENT '修改时间',
	`f_last_modify_user_id` varchar(50) COMMENT '修改用户',
	`f_delete_time` datetime COMMENT '删除时间',
	`f_delete_user_id` varchar(50) COMMENT '删除用户',
	`f_delete_mark` int COMMENT '删除标志',
	`f_sort_code` bigint COMMENT '排序',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE base_msg_template_param COMMENT = '消息模板参数表';
-- ----------------------------
-- 表名：base_msg_wechat_user
-- ----------------------------
CREATE TABLE base_msg_wechat_user (
	`f_id` varchar(50) NOT NULL COMMENT '主键id',
	`f_gzh_id` varchar(50) COMMENT '微信公众号id',
	`f_user_id` varchar(50) COMMENT '用户id',
	`f_open_id` varchar(50) COMMENT '微信公众号用户id',
	`f_close_mark` int COMMENT '是否关注',
	`f_enabled_mark` int COMMENT '有效标志(0-禁用，1-启用)',
	`f_creator_time` datetime COMMENT '创建时间',
	`f_creator_user_id` varchar(50) COMMENT '创建用户',
	`f_last_modify_time` datetime COMMENT '修改时间',
	`f_last_modify_user_id` varchar(50) COMMENT '修改用户',
	`f_delete_time` datetime COMMENT '删除时间',
	`f_delete_user_id` varchar(50) COMMENT '删除用户',
	`f_delete_mark` int COMMENT '删除标志',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id',
	`f_sort_code` bigint COMMENT '排序'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE base_msg_wechat_user COMMENT = '微信公众号用户关联表';
-- ----------------------------
-- 表名：base_notice
-- ----------------------------
CREATE TABLE base_notice (
	`f_id` varchar(50) NOT NULL COMMENT '自然主键',
	`f_title` varchar(200) COMMENT '标题',
	`f_body_text` longtext COMMENT '正文',
	`f_to_user_ids` longtext COMMENT '收件用户',
	`f_cover_image` longtext COMMENT '封面图片',
	`f_files` longtext COMMENT '附件',
	`f_expiration_time` datetime COMMENT '过期时间',
	`f_category` varchar(50) COMMENT '分类',
	`f_type` int COMMENT '提醒类型 1-站内信 2-自定义 3-不通知',
	`f_send_config_id` varchar(50) COMMENT '发送配置',
	`f_description` varchar(500) COMMENT '描述或说明',
	`f_enabled_mark` int COMMENT '有效标志(0-禁用，1-启用)',
	`f_sort_code` bigint COMMENT '排序',
	`f_creator_time` datetime COMMENT '创建时间',
	`f_creator_user_id` varchar(50) COMMENT '创建用户',
	`f_last_modify_time` datetime COMMENT '修改时间',
	`f_last_modify_user_id` varchar(50) COMMENT '修改用户',
	`f_delete_time` datetime COMMENT '删除时间',
	`f_delete_user_id` varchar(50) COMMENT '删除用户',
	`f_delete_mark` int COMMENT '删除标志',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE base_notice COMMENT = '消息实例';
-- ----------------------------
-- 表名：base_organize
-- ----------------------------
CREATE TABLE base_organize (
	`f_id` varchar(50) NOT NULL COMMENT '自然主键',
	`f_parent_id` varchar(50) COMMENT '机构上级',
	`f_category` varchar(50) COMMENT '机构分类',
	`f_en_code` varchar(200) COMMENT '机构编号',
	`f_full_name` varchar(200) COMMENT '机构名称',
	`f_manager_id` varchar(50) COMMENT '机构主管',
	`f_property_json` longtext COMMENT '扩展属性',
	`f_organize_id_tree` longtext COMMENT '父级组织',
	`f_description` varchar(500) COMMENT '描述或说明',
	`f_enabled_mark` int COMMENT '有效标志(0-禁用，1-启用)',
	`f_sort_code` bigint COMMENT '排序',
	`f_creator_time` datetime COMMENT '创建时间',
	`f_creator_user_id` varchar(50) COMMENT '创建用户',
	`f_last_modify_time` datetime COMMENT '修改时间',
	`f_last_modify_user_id` varchar(50) COMMENT '修改用户',
	`f_delete_time` datetime COMMENT '删除时间',
	`f_delete_user_id` varchar(50) COMMENT '删除用户',
	`f_delete_mark` int COMMENT '删除标志',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE base_organize COMMENT = '组织机构';
-- ----------------------------
-- 表名：base_organize_administrator
-- ----------------------------
CREATE TABLE base_organize_administrator (
	`f_id` varchar(50) NOT NULL COMMENT '自然主键',
	`f_user_id` varchar(50) COMMENT '用户主键',
	`f_organize_id` varchar(50) COMMENT '机构主键',
	`f_organize_type` varchar(50) COMMENT '机构类型',
	`f_this_layer_add` int COMMENT '本层添加',
	`f_this_layer_edit` int COMMENT '本层编辑',
	`f_this_layer_delete` int COMMENT '本层删除',
	`f_sub_layer_add` int COMMENT '子层添加',
	`f_sub_layer_edit` int COMMENT '子层编辑',
	`f_sub_layer_delete` int COMMENT '子层删除',
	`f_this_layer_select` int COMMENT '本层查看',
	`f_sub_layer_select` int COMMENT '子层查看',
	`f_description` varchar(500) COMMENT '描述或说明',
	`f_enabled_mark` int COMMENT '有效标志(0-禁用，1-启用)',
	`f_sort_code` bigint COMMENT '排序',
	`f_creator_time` datetime COMMENT '创建时间',
	`f_creator_user_id` varchar(50) COMMENT '创建用户',
	`f_last_modify_time` datetime COMMENT '修改时间',
	`f_last_modify_user_id` varchar(50) COMMENT '修改用户',
	`f_delete_time` datetime COMMENT '删除时间',
	`f_delete_user_id` varchar(50) COMMENT '删除用户',
	`f_delete_mark` int COMMENT '删除标志',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id',
	`f_manager_group` varchar(500) COMMENT '管理组'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE base_organize_administrator COMMENT = '机构分级管理员';
-- ----------------------------
-- 表名：base_organize_relation
-- ----------------------------
CREATE TABLE base_organize_relation (
	`f_id` varchar(50) NOT NULL COMMENT '自然主键',
	`f_organize_id` varchar(50) COMMENT '组织主键',
	`f_object_type` varchar(50) COMMENT '对象类型（角色：role）',
	`f_object_id` varchar(50) COMMENT '对象主键',
	`f_sort_code` bigint COMMENT '排序',
	`f_creator_time` datetime COMMENT '创建时间',
	`f_creator_user_id` varchar(50) COMMENT '创建用户',
	`f_last_modify_time` datetime COMMENT '修改时间',
	`f_last_modify_user_id` varchar(50) COMMENT '修改用户',
	`f_delete_time` datetime COMMENT '删除时间',
	`f_delete_user_id` varchar(50) COMMENT '删除用户',
	`f_delete_mark` int COMMENT '删除标志',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE base_organize_relation COMMENT = '组织关系';
-- ----------------------------
-- 表名：base_permission_group
-- ----------------------------
CREATE TABLE base_permission_group (
	`F_Id` varchar(50) NOT NULL COMMENT '自然主键',
	`F_Full_Name` varchar(200) COMMENT '名称',
	`F_En_Code` varchar(200) COMMENT '编码',
	`F_Permission_Member` varchar(4000) COMMENT '成员',
	`F_Sort_Code` bigint COMMENT '排序',
	`F_Description` varchar(500) COMMENT '说明',
	`F_Enabled_Mark` int COMMENT '有效标志',
	`F_Creator_Time` datetime COMMENT '创建时间',
	`F_Creator_User_Id` varchar(50) COMMENT '创建用户',
	`F_Last_Modify_Time` datetime COMMENT '修改时间',
	`F_Last_Modify_User_Id` varchar(50) COMMENT '修改用户',
	`F_Delete_Mark` int COMMENT '删除标志',
	`F_Delete_Time` datetime COMMENT '删除时间',
	`F_Delete_User_Id` varchar(50) COMMENT '删除用户',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id',
	`F_Type` int COMMENT '类型'

, PRIMARY KEY (F_Id,f_tenant_id)
) ;
ALTER TABLE base_permission_group COMMENT = '权限组表';
-- ----------------------------
-- 表名：base_portal
-- ----------------------------
CREATE TABLE base_portal (
	`f_id` varchar(50) NOT NULL COMMENT '主键',
	`f_full_name` varchar(200) COMMENT '名称',
	`f_en_code` varchar(200) COMMENT '编码',
	`f_category` varchar(50) COMMENT '分类（数据字典）',
	`f_type` int DEFAULT '0' COMMENT '类型(0-页面设计,1-自定义路径)',
	`f_state` int COMMENT '状态',
	`f_custom_url` varchar(500) COMMENT '静态页面路径',
	`f_link_type` int DEFAULT '0' COMMENT '链接类型(0-页面,1-外链)',
	`f_enabled_lock` int COMMENT '锁定（0-锁定，1-自定义）',
	`f_platform` varchar(50) COMMENT 'PC:网页端 APP:手机端 MOD:模板',
	`f_description` varchar(500) COMMENT '描述或说明',
	`f_enabled_mark` int COMMENT '有效标志(0-禁用，1-启用)',
	`f_sort_code` bigint COMMENT '排序',
	`f_creator_time` datetime COMMENT '创建时间',
	`f_creator_user_id` varchar(50) COMMENT '创建用户',
	`f_last_modify_time` datetime COMMENT '修改时间',
	`f_last_modify_user_id` varchar(50) COMMENT '修改用户',
	`f_delete_time` datetime COMMENT '删除时间',
	`f_delete_user_id` varchar(50) COMMENT '删除用户',
	`f_delete_mark` int COMMENT '删除标志',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id',
	`f_platform_release` varchar(100) COMMENT '发布选中平台'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE base_portal COMMENT = '门户表';
-- ----------------------------
-- 表名：base_portal_data
-- ----------------------------
CREATE TABLE base_portal_data (
	`f_id` varchar(50) NOT NULL COMMENT '主键id',
	`f_portal_id` varchar(50) COMMENT '门户ID',
	`f_platform` varchar(50) COMMENT 'PC:网页端 APP:手机端 ',
	`f_form_data` longtext COMMENT '表单配置JSON',
	`f_system_id` varchar(50) COMMENT '系统ID',
	`f_type` varchar(50) COMMENT '类型（mod：模型、custom：自定义）',
	`f_sort_code` bigint COMMENT '排序',
	`f_creator_time` datetime COMMENT '创建时间',
	`f_creator_user_id` varchar(50) COMMENT '创建用户',
	`f_last_modify_time` datetime COMMENT '修改时间',
	`f_last_modify_user_id` varchar(50) COMMENT '修改用户',
	`f_delete_time` datetime COMMENT '删除时间',
	`f_delete_user_id` varchar(50) COMMENT '删除用户',
	`f_delete_mark` int COMMENT '删除标志',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE base_portal_data COMMENT = '门户数据';
-- ----------------------------
-- 表名：base_portal_manage
-- ----------------------------
CREATE TABLE base_portal_manage (
	`f_id` varchar(50) NOT NULL COMMENT '主键_id',
	`f_portal_id` varchar(50) NOT NULL COMMENT '门户id',
	`f_system_id` varchar(50) NOT NULL COMMENT '系统id',
	`f_platform` varchar(50) COMMENT '平台',
	`f_description` varchar(500) COMMENT '说明',
	`f_enabled_mark` int COMMENT '有效标志(0-禁用，1-启用)',
	`f_sort_code` bigint COMMENT '排序',
	`f_creator_time` datetime COMMENT '创建时间',
	`f_creator_user_id` varchar(50) COMMENT '创建用户',
	`f_last_modify_time` datetime COMMENT '修改时间',
	`f_last_modify_user_id` varchar(50) COMMENT '修改用户',
	`f_delete_time` datetime COMMENT '删除时间',
	`f_delete_user_id` varchar(50) COMMENT '删除用户',
	`f_delete_mark` int COMMENT '删除标志',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE base_portal_manage COMMENT = '门户管理';
-- ----------------------------
-- 表名：base_position
-- ----------------------------
CREATE TABLE base_position (
	`f_id` varchar(50) NOT NULL COMMENT '自然主键',
	`f_full_name` varchar(200) COMMENT '岗位名称',
	`f_en_code` varchar(200) COMMENT '岗位编号',
	`f_type` varchar(50) COMMENT '岗位类型',
	`f_property_json` longtext COMMENT '扩展属性',
	`f_description` varchar(500) COMMENT '描述或说明',
	`f_enabled_mark` int COMMENT '有效标志(0-禁用，1-启用)',
	`f_sort_code` bigint COMMENT '排序',
	`f_creator_time` datetime COMMENT '创建时间',
	`f_creator_user_id` varchar(50) COMMENT '创建用户',
	`f_last_modify_time` datetime COMMENT '修改时间',
	`f_last_modify_user_id` varchar(50) COMMENT '修改用户',
	`f_delete_time` datetime COMMENT '删除时间',
	`f_delete_user_id` varchar(50) COMMENT '删除用户',
	`f_delete_mark` int COMMENT '删除标志',
	`f_organize_id` varchar(50) COMMENT '机构主键',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE base_position COMMENT = '岗位信息';
-- ----------------------------
-- 表名：base_print_log
-- ----------------------------
CREATE TABLE base_print_log (
	`f_id` varchar(50) NOT NULL COMMENT '',
	`f_print_num` int COMMENT '打印条数',
	`f_print_title` varchar(255) COMMENT '打印功能名称',
	`f_print_id` varchar(50) COMMENT '模板id',
	`f_sort_code` bigint COMMENT '排序',
	`f_creator_time` datetime COMMENT '创建时间',
	`f_creator_user_id` varchar(50) COMMENT '创建用户',
	`f_last_modify_time` datetime COMMENT '修改时间',
	`f_last_modify_user_id` varchar(50) COMMENT '修改用户',
	`f_delete_time` datetime COMMENT '删除时间',
	`f_delete_user_id` varchar(50) COMMENT '删除用户',
	`f_delete_mark` int COMMENT '删除标志',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE base_print_log COMMENT = '打印模板日志';
-- ----------------------------
-- 表名：base_print_template
-- ----------------------------
CREATE TABLE base_print_template (
	`f_id` varchar(50) NOT NULL COMMENT '主键_id',
	`f_full_name` varchar(200) NOT NULL COMMENT '名称',
	`f_en_code` varchar(50) NOT NULL COMMENT '编码',
	`f_category` varchar(50) NOT NULL COMMENT '分类',
	`f_description` varchar(500) COMMENT '描述或说明',
	`f_sort_code` bigint COMMENT '排序',
	`f_creator_time` datetime COMMENT '创建时间',
	`f_creator_user_id` varchar(50) COMMENT '创建用户',
	`f_last_modify_time` datetime COMMENT '修改时间',
	`f_last_modify_user_id` varchar(50) COMMENT '修改用户',
	`f_delete_time` datetime COMMENT '删除时间',
	`f_delete_user_id` varchar(50) COMMENT '删除用户',
	`f_delete_mark` int COMMENT '删除标志',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id',
	`f_state` int COMMENT '状态：0-未发布，1-已发布，2-已修改',
	`f_common_use` int DEFAULT '0' COMMENT '通用-将该模板设为通用(0-表单用，1-业务打印模板用)',
	`f_visible_type` int COMMENT '发布范围：1-公开，2-权限设置',
	`f_icon` varchar(255) COMMENT '图标',
	`f_icon_background` varchar(255) COMMENT '图标颜色'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE base_print_template COMMENT = '打印模板';
-- ----------------------------
-- 表名：base_print_version
-- ----------------------------
CREATE TABLE base_print_version (
	`f_id` varchar(50) NOT NULL COMMENT '主键_id',
	`f_template_id` varchar(50) NOT NULL COMMENT '打印模板id',
	`f_state` int COMMENT '状态：0-设计中，1-启用中，2-已归档',
	`f_version` int COMMENT '版本',
	`f_print_template` longtext COMMENT '打印模板json',
	`f_sort_code` bigint COMMENT '排序',
	`f_description` varchar(500) COMMENT '描述或说明',
	`f_creator_time` datetime COMMENT '创建时间',
	`f_creator_user_id` varchar(50) COMMENT '创建用户',
	`f_last_modify_time` datetime COMMENT '修改时间',
	`f_last_modify_user_id` varchar(50) COMMENT '修改用户',
	`f_delete_time` datetime COMMENT '删除时间',
	`f_delete_user_id` varchar(50) COMMENT '删除用户',
	`f_delete_mark` int COMMENT '删除标志',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id',
	`f_convert_config` longtext COMMENT '打印模板json'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE base_print_version COMMENT = '打印模板版本';
-- ----------------------------
-- 表名：base_province
-- ----------------------------
CREATE TABLE base_province (
	`f_id` varchar(50) NOT NULL COMMENT '自然主键',
	`f_parent_id` varchar(50) COMMENT '区域上级',
	`f_en_code` varchar(200) COMMENT '区域编号',
	`f_full_name` varchar(200) COMMENT '区域名称',
	`f_quick_query` varchar(100) COMMENT '快速查询',
	`f_type` varchar(50) COMMENT '区域类型',
	`f_description` varchar(500) COMMENT '描述或说明',
	`f_enabled_mark` int COMMENT '有效标志(0-禁用，1-启用)',
	`f_sort_code` bigint COMMENT '排序',
	`f_creator_time` datetime COMMENT '创建时间',
	`f_creator_user_id` varchar(50) COMMENT '创建用户',
	`f_last_modify_time` datetime COMMENT '修改时间',
	`f_last_modify_user_id` varchar(50) COMMENT '修改用户',
	`f_delete_time` datetime COMMENT '删除时间',
	`f_delete_user_id` varchar(50) COMMENT '删除用户',
	`f_delete_mark` int COMMENT '删除标志',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE base_province COMMENT = '行政区划';
-- ----------------------------
-- 表名：base_province_atlas
-- ----------------------------
CREATE TABLE base_province_atlas (
	`f_id` varchar(50) NOT NULL COMMENT '自然主键',
	`f_parent_id` varchar(50) COMMENT '区域上级',
	`f_en_code` varchar(200) COMMENT '区域编号',
	`f_full_name` varchar(200) COMMENT '区域名称',
	`f_quick_query` varchar(50) COMMENT '快速查询',
	`f_type` varchar(50) COMMENT '区域类型',
	`f_division_code` varchar(50) COMMENT '行政区划编码',
	`f_atlas_center` varchar(128) COMMENT '中心经纬度',
	`f_description` varchar(500) COMMENT '描述或说明',
	`f_enabled_mark` int COMMENT '有效标志(0-禁用，1-启用)',
	`f_sort_code` bigint COMMENT '排序',
	`f_creator_time` datetime COMMENT '创建时间',
	`f_creator_user_id` varchar(50) COMMENT '创建用户',
	`f_last_modify_time` datetime COMMENT '修改时间',
	`f_last_modify_user_id` varchar(50) COMMENT '修改用户',
	`f_delete_time` datetime COMMENT '删除时间',
	`f_delete_user_id` varchar(50) COMMENT '删除用户',
	`f_delete_mark` int COMMENT '删除标志',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE base_province_atlas COMMENT = '行政区划_门户地图';
-- ----------------------------
-- 表名：base_role
-- ----------------------------
CREATE TABLE base_role (
	`f_id` varchar(50) NOT NULL COMMENT '自然主键',
	`f_full_name` varchar(200) COMMENT '角色名称',
	`f_en_code` varchar(200) COMMENT '角色编号',
	`f_type` varchar(50) COMMENT '角色类型',
	`f_property_json` longtext COMMENT '扩展属性',
	`f_global_mark` int COMMENT '全局标识',
	`f_description` varchar(500) COMMENT '描述或说明',
	`f_enabled_mark` int COMMENT '有效标志(0-禁用，1-启用)',
	`f_sort_code` bigint COMMENT '排序',
	`f_creator_time` datetime COMMENT '创建时间',
	`f_creator_user_id` varchar(50) COMMENT '创建用户',
	`f_last_modify_time` datetime COMMENT '修改时间',
	`f_last_modify_user_id` varchar(50) COMMENT '修改用户',
	`f_delete_time` datetime COMMENT '删除时间',
	`f_delete_user_id` varchar(50) COMMENT '删除用户',
	`f_delete_mark` int COMMENT '删除标志',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE base_role COMMENT = '系统角色';
-- ----------------------------
-- 表名：base_schedule
-- ----------------------------
CREATE TABLE base_schedule (
	`f_id` varchar(50) NOT NULL COMMENT '主键',
	`f_category` varchar(50) COMMENT '分类',
	`f_urgent` int COMMENT '紧急程度',
	`f_title` varchar(500) COMMENT '标题',
	`f_content` longtext COMMENT '内容',
	`f_all_day` int COMMENT '全天',
	`f_start_day` datetime COMMENT '开始时间',
	`f_start_time` varchar(50) COMMENT '开始日期',
	`f_end_day` datetime COMMENT '结束时间',
	`f_end_time` varchar(50) COMMENT '结束日期',
	`f_duration` int COMMENT '时长',
	`f_color` varchar(50) COMMENT '颜色',
	`f_reminder_time` int COMMENT '提醒时长',
	`f_reminder_type` int COMMENT '提醒方式(1-默认 2-自定义)',
	`f_send_config_id` varchar(50) COMMENT '发送配置id',
	`f_send_config_name` varchar(200) COMMENT '发送配置名称',
	`f_repetition` int COMMENT '重复提醒',
	`f_repeat_time` datetime COMMENT '结束重复',
	`f_push_time` datetime COMMENT '推送时间',
	`f_group_id` varchar(50) COMMENT '分组id',
	`f_description` varchar(500) COMMENT '描述或说明',
	`f_enabled_mark` int COMMENT '有效标志(0-禁用，1-启用)',
	`f_sort_code` bigint COMMENT '排序',
	`f_creator_time` datetime COMMENT '创建时间',
	`f_creator_user_id` varchar(50) COMMENT '创建用户',
	`f_last_modify_time` datetime COMMENT '修改时间',
	`f_last_modify_user_id` varchar(50) COMMENT '修改用户',
	`f_delete_time` datetime COMMENT '删除时间',
	`f_delete_user_id` varchar(50) COMMENT '删除用户',
	`f_delete_mark` int COMMENT '删除标志',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id',
	`f_files` longtext COMMENT '附件'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE base_schedule COMMENT = '日程';
-- ----------------------------
-- 表名：base_schedule_log
-- ----------------------------
CREATE TABLE base_schedule_log (
	`f_id` varchar(50) NOT NULL COMMENT '主键',
	`f_category` varchar(50) COMMENT '分类',
	`f_urgent` int COMMENT '紧急程度',
	`f_title` varchar(500) COMMENT '标题',
	`f_content` longtext COMMENT '内容',
	`f_all_day` int COMMENT '全天',
	`f_start_day` datetime COMMENT '开始时间',
	`f_start_time` varchar(50) COMMENT '开始日期',
	`f_end_day` datetime COMMENT '结束时间',
	`f_end_time` varchar(50) COMMENT '结束日期',
	`f_duration` int COMMENT '时长',
	`f_color` varchar(50) COMMENT '颜色',
	`f_reminder_time` int COMMENT '提醒时长',
	`f_reminder_type` int COMMENT '提醒方式(1-默认 2-自定义)',
	`f_send_config_id` varchar(50) COMMENT '发送配置id',
	`f_send_config_name` varchar(200) COMMENT '发送配置名称',
	`f_repetition` int COMMENT '重复提醒',
	`f_repeat_time` datetime COMMENT '结束重复',
	`f_push_time` datetime COMMENT '推送时间',
	`f_group_id` varchar(50) COMMENT '分组id',
	`f_user_id` longtext COMMENT '参与用户',
	`f_schedule_id` varchar(50) COMMENT '日程id',
	`f_operation_type` varchar(1) COMMENT '操作类型',
	`f_description` varchar(500) COMMENT '描述或说明',
	`f_enabled_mark` int COMMENT '有效标志(0-禁用，1-启用)',
	`f_sort_code` bigint COMMENT '排序',
	`f_creator_time` datetime COMMENT '创建时间',
	`f_creator_user_id` varchar(50) COMMENT '创建用户',
	`f_last_modify_time` datetime COMMENT '修改时间',
	`f_last_modify_user_id` varchar(50) COMMENT '修改用户',
	`f_delete_time` datetime COMMENT '删除时间',
	`f_delete_user_id` varchar(50) COMMENT '删除用户',
	`f_delete_mark` int COMMENT '删除标志',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE base_schedule_log COMMENT = '日程日志';
-- ----------------------------
-- 表名：base_schedule_user
-- ----------------------------
CREATE TABLE base_schedule_user (
	`f_id` varchar(50) NOT NULL COMMENT '主键',
	`f_schedule_id` varchar(50) COMMENT '日程id',
	`f_to_user_id` varchar(50) COMMENT '用户id',
	`f_type` int COMMENT '类型(1-系统添加 2-用户添加)',
	`f_description` varchar(500) COMMENT '描述或说明',
	`f_enabled_mark` int COMMENT '有效标志(0-禁用，1-启用)',
	`f_sort_code` bigint COMMENT '排序',
	`f_creator_time` datetime COMMENT '创建时间',
	`f_creator_user_id` varchar(50) COMMENT '创建用户',
	`f_last_modify_time` datetime COMMENT '修改时间',
	`f_last_modify_user_id` varchar(50) COMMENT '修改用户',
	`f_delete_time` datetime COMMENT '删除时间',
	`f_delete_user_id` varchar(50) COMMENT '删除用户',
	`f_delete_mark` int COMMENT '删除标志',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE base_schedule_user COMMENT = '日程用户';
-- ----------------------------
-- 表名：base_sign_img
-- ----------------------------
CREATE TABLE base_sign_img (
	`f_id` varchar(50) NOT NULL COMMENT '自然主键',
	`f_sign_img` longtext COMMENT '签名图片',
	`f_is_default` int COMMENT '是否默认',
	`f_description` varchar(500) COMMENT '描述或说明',
	`f_enabled_mark` int COMMENT '有效标志(0-禁用，1-启用)',
	`f_sort_code` bigint COMMENT '排序',
	`f_creator_time` datetime COMMENT '创建时间',
	`f_creator_user_id` varchar(50) COMMENT '创建用户',
	`f_last_modify_time` datetime COMMENT '修改时间',
	`f_last_modify_user_id` varchar(50) COMMENT '修改用户',
	`f_delete_time` datetime COMMENT '删除时间',
	`f_delete_user_id` varchar(50) COMMENT '删除用户',
	`f_delete_mark` int COMMENT '删除标志',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE base_sign_img COMMENT = '个性签名';
-- ----------------------------
-- 表名：base_signature
-- ----------------------------
CREATE TABLE base_signature (
	`f_id` varchar(50) NOT NULL COMMENT '自然主键',
	`f_full_name` varchar(200) COMMENT '名称',
	`f_en_code` varchar(200) COMMENT '编号',
	`f_icon` longtext COMMENT '签章',
	`f_enabled_mark` int COMMENT '有效标志',
	`f_sort_code` bigint COMMENT '排序',
	`f_description` varchar(500) COMMENT '描述或说明',
	`f_creator_time` datetime COMMENT '创建时间',
	`f_creator_user_id` varchar(50) COMMENT '创建用户',
	`f_last_modify_time` datetime COMMENT '修改时间',
	`f_last_modify_user_id` varchar(50) COMMENT '修改用户',
	`f_delete_time` datetime COMMENT '删除时间',
	`f_delete_user_id` varchar(50) COMMENT '删除用户',
	`f_delete_mark` int COMMENT '删除标志',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE base_signature COMMENT = '电子签章';
-- ----------------------------
-- 表名：base_signature_user
-- ----------------------------
CREATE TABLE base_signature_user (
	`f_id` varchar(50) NOT NULL COMMENT '自然主键',
	`f_signature_id` varchar(50) COMMENT '签章主键',
	`f_user_id` varchar(50) COMMENT '用户主键',
	`f_enabled_mark` int COMMENT '有效标志',
	`f_sort_code` bigint COMMENT '排序',
	`f_description` varchar(500) COMMENT '描述或说明',
	`f_creator_time` datetime COMMENT '创建时间',
	`f_creator_user_id` varchar(50) COMMENT '创建用户',
	`f_last_modify_time` datetime COMMENT '修改时间',
	`f_last_modify_user_id` varchar(50) COMMENT '修改用户',
	`f_delete_time` datetime COMMENT '删除时间',
	`f_delete_user_id` varchar(50) COMMENT '删除用户',
	`f_delete_mark` int COMMENT '删除标志',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE base_signature_user COMMENT = '电子签章授权人';
-- ----------------------------
-- 表名：base_socials_users
-- ----------------------------
CREATE TABLE base_socials_users (
	`f_id` varchar(50) NOT NULL COMMENT '自然主键',
	`f_user_id` varchar(50) COMMENT '用户id',
	`f_social_type` varchar(50) COMMENT '第三方类型',
	`f_social_id` varchar(100) COMMENT '第三方账号id',
	`f_social_name` varchar(100) COMMENT '第三方账号',
	`f_sort_code` bigint COMMENT '排序',
	`f_creator_time` datetime COMMENT '创建时间',
	`f_creator_user_id` varchar(50) COMMENT '创建用户',
	`f_last_modify_time` datetime COMMENT '修改时间',
	`f_last_modify_user_id` varchar(50) COMMENT '修改用户',
	`f_delete_time` datetime COMMENT '删除时间',
	`f_delete_user_id` varchar(50) COMMENT '删除用户',
	`f_delete_mark` int COMMENT '删除标志',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE base_socials_users COMMENT = '第三方绑定用户表';
-- ----------------------------
-- 表名：base_syn_third_info
-- ----------------------------
CREATE TABLE base_syn_third_info (
	`f_id` varchar(50) NOT NULL COMMENT '自然主键',
	`f_third_type` int COMMENT '第三方类型(1:企业微信，2:钉钉)',
	`f_data_type` int COMMENT '数据类型(1:组织(公司与部门)，2:用户)',
	`f_sys_obj_id` varchar(50) COMMENT '系统对象ID',
	`f_third_obj_id` varchar(50) COMMENT '第三对象ID',
	`f_description` varchar(500) COMMENT '描述或说明',
	`f_enabled_mark` int COMMENT '有效标志(0:未同步，1:同步成功，2:同步失败)',
	`f_sort_code` bigint COMMENT '排序',
	`f_creator_time` datetime COMMENT '创建时间',
	`f_creator_user_id` varchar(50) COMMENT '创建用户',
	`f_last_modify_time` datetime COMMENT '修改时间',
	`f_last_modify_user_id` varchar(50) COMMENT '修改用户',
	`f_delete_time` datetime COMMENT '删除时间',
	`f_delete_user_id` varchar(50) COMMENT '删除用户',
	`f_delete_mark` int COMMENT '删除标志',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE base_syn_third_info COMMENT = '第三方同步信息';
-- ----------------------------
-- 表名：base_sys_config
-- ----------------------------
CREATE TABLE base_sys_config (
	`f_id` varchar(50) NOT NULL COMMENT '自然主键',
	`f_full_name` varchar(50) COMMENT '名称',
	`f_key` varchar(50) COMMENT '键',
	`f_value` longtext COMMENT '值',
	`f_category` varchar(50) COMMENT '分类',
	`f_sort_code` bigint COMMENT '排序',
	`f_creator_time` datetime COMMENT '创建时间',
	`f_creator_user_id` varchar(50) COMMENT '创建用户',
	`f_last_modify_time` datetime COMMENT '修改时间',
	`f_last_modify_user_id` varchar(50) COMMENT '修改用户',
	`f_delete_time` datetime COMMENT '删除时间',
	`f_delete_user_id` varchar(50) COMMENT '删除用户',
	`f_delete_mark` int COMMENT '删除标志',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE base_sys_config COMMENT = '系统配置';
-- ----------------------------
-- 表名：base_sys_log
-- ----------------------------
CREATE TABLE base_sys_log (
	`f_id` varchar(50) NOT NULL COMMENT '自然主键',
	`f_user_id` varchar(50) COMMENT '用户主键',
	`f_user_name` varchar(100) COMMENT '用户主键',
	`f_type` int COMMENT '日志类型',
	`f_level` int COMMENT '日志级别',
	`f_ip_address` varchar(50) COMMENT 'IP地址',
	`f_ip_address_name` varchar(50) COMMENT 'IP所在城市',
	`f_request_url` varchar(500) COMMENT '请求地址',
	`f_request_method` varchar(50) COMMENT '请求方法',
	`f_request_duration` int COMMENT '请求耗时',
	`f_json` longtext COMMENT '日志内容',
	`f_plat_form` varchar(500) COMMENT '平台设备',
	`f_creator_user_id` varchar(50) COMMENT '创建用户',
	`f_last_modify_time` datetime COMMENT '修改时间',
	`f_last_modify_user_id` varchar(50) COMMENT '修改用户',
	`f_delete_time` datetime COMMENT '删除时间',
	`f_delete_user_id` varchar(50) COMMENT '删除用户',
	`f_delete_mark` int COMMENT '删除标志',
	`f_module_id` varchar(50) COMMENT '功能主键',
	`f_module_name` varchar(50) COMMENT '功能名称',
	`f_object_id` varchar(50) COMMENT '对象Id',
	`f_description` varchar(500) COMMENT '描述或说明',
	`f_sort_code` bigint COMMENT '排序',
	`f_creator_time` datetime COMMENT '创建时间',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id',
	`f_browser` varchar(50) COMMENT '浏览器',
	`f_request_param` longtext COMMENT '请求参数',
	`f_request_target` longtext COMMENT '请求方法',
	`f_login_mark` int COMMENT '是否登录成功标志',
	`f_login_type` int COMMENT '登录类型'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE base_sys_log COMMENT = '系统日志';
-- ----------------------------
-- 表名：base_system
-- ----------------------------
CREATE TABLE base_system (
	`f_id` varchar(50) NOT NULL COMMENT '自然主键',
	`f_full_name` varchar(200) COMMENT '系统名称',
	`f_en_code` varchar(200) COMMENT '系统编号',
	`f_icon` varchar(200) COMMENT '系统图标',
	`f_is_main` int COMMENT '是否是主系统（0-不是，1-是）',
	`f_property_json` longtext COMMENT '扩展属性',
	`f_description` varchar(500) COMMENT '描述或说明',
	`f_enabled_mark` int COMMENT '有效标志(0-禁用，1-启用)',
	`f_sort_code` bigint COMMENT '排序',
	`f_creator_time` datetime COMMENT '创建时间',
	`f_creator_user_id` varchar(50) COMMENT '创建用户',
	`f_last_modify_time` datetime COMMENT '修改时间',
	`f_last_modify_user_id` varchar(50) COMMENT '修改用户',
	`f_delete_time` datetime COMMENT '删除时间',
	`f_delete_user_id` varchar(50) COMMENT '删除用户',
	`f_delete_mark` int COMMENT '删除标志',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id',
	`f_navigation_icon` varchar(500) COMMENT '',
	`f_work_logo_icon` varchar(500) COMMENT 'logo图标',
	`f_workflow_enabled` int COMMENT '已启用工作流'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE base_system COMMENT = '系统应用';
-- ----------------------------
-- 表名：base_time_task
-- ----------------------------
CREATE TABLE base_time_task (
	`f_id` varchar(50) NOT NULL COMMENT '自然主键',
	`f_en_code` varchar(200) COMMENT '任务编码',
	`f_full_name` varchar(200) COMMENT '任务名称',
	`f_execute_type` int COMMENT '执行类型',
	`f_execute_content` longtext COMMENT '执行内容',
	`f_execute_cycle_json` longtext COMMENT '执行周期',
	`f_last_run_time` datetime COMMENT '最后运行时间',
	`f_next_run_time` datetime COMMENT '下次运行时间',
	`f_run_count` int COMMENT '运行次数',
	`f_description` varchar(500) COMMENT '描述或说明',
	`f_enabled_mark` int COMMENT '有效标志(0-禁用，1-启用)',
	`f_sort_code` bigint COMMENT '排序',
	`f_creator_time` datetime COMMENT '创建时间',
	`f_creator_user_id` varchar(50) COMMENT '创建用户',
	`f_last_modify_time` datetime COMMENT '修改时间',
	`f_last_modify_user_id` varchar(50) COMMENT '修改用户',
	`f_delete_time` datetime COMMENT '删除时间',
	`f_delete_user_id` varchar(50) COMMENT '删除用户',
	`f_delete_mark` int COMMENT '删除标志',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE base_time_task COMMENT = '定时任务';
-- ----------------------------
-- 表名：base_time_task_log
-- ----------------------------
CREATE TABLE base_time_task_log (
	`f_id` varchar(50) NOT NULL COMMENT '自然主键',
	`f_task_id` varchar(50) COMMENT '定时任务主键',
	`f_run_time` datetime COMMENT '执行时间',
	`f_run_result` int COMMENT '执行结果(0-成功，1-失败)',
	`f_description` varchar(500) COMMENT '描述或说明',
	`f_enabled_mark` int COMMENT '有效标志(0-禁用，1-启用)',
	`f_sort_code` bigint COMMENT '排序',
	`f_creator_time` datetime COMMENT '创建时间',
	`f_creator_user_id` varchar(50) COMMENT '创建用户',
	`f_last_modify_time` datetime COMMENT '修改时间',
	`f_last_modify_user_id` varchar(50) COMMENT '修改用户',
	`f_delete_time` datetime COMMENT '删除时间',
	`f_delete_user_id` varchar(50) COMMENT '删除用户',
	`f_delete_mark` int COMMENT '删除标志',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE base_time_task_log COMMENT = '定时任务记录';
-- ----------------------------
-- 表名：base_user
-- ----------------------------
CREATE TABLE base_user (
	`f_id` varchar(50) NOT NULL COMMENT '自然主键',
	`f_account` varchar(50) COMMENT '账户',
	`f_real_name` varchar(50) COMMENT '姓名',
	`f_quick_query` varchar(100) COMMENT '快速查询',
	`f_nick_name` varchar(50) COMMENT '呢称',
	`f_head_icon` longtext COMMENT '头像',
	`f_gender` varchar(50) COMMENT '性别',
	`f_birthday` datetime COMMENT '生日',
	`f_mobile_phone` varchar(20) COMMENT '手机',
	`f_tele_phone` varchar(20) COMMENT '电话',
	`f_landline` varchar(50) COMMENT 'F_Landline',
	`f_email` varchar(50) COMMENT '邮箱',
	`f_nation` varchar(50) COMMENT '民族',
	`f_native_place` varchar(50) COMMENT '籍贯',
	`f_entry_date` datetime COMMENT '入职日期',
	`f_certificates_type` varchar(50) COMMENT '证件类型',
	`f_certificates_number` varchar(50) COMMENT '证件号码',
	`f_education` varchar(50) COMMENT '文化程度',
	`f_urgent_contacts` varchar(50) COMMENT 'F_UrgentContacts',
	`f_urgent_tele_phone` varchar(50) COMMENT '紧急电话',
	`f_postal_address` varchar(500) COMMENT '通讯地址',
	`f_signature` varchar(500) COMMENT '自我介绍',
	`f_password` varchar(50) COMMENT '密码',
	`f_secretkey` varchar(50) COMMENT '秘钥',
	`f_first_log_time` datetime COMMENT '首次登录时间',
	`f_first_log_ip` varchar(50) COMMENT '首次登录IP',
	`f_prev_log_time` datetime COMMENT '前次登录时间',
	`f_prev_log_ip` varchar(50) COMMENT '前次登录IP',
	`f_last_log_time` datetime COMMENT '最后登录时间',
	`f_last_log_ip` varchar(50) COMMENT '最后登录IP',
	`f_log_success_count` int COMMENT '登录成功次数',
	`f_log_error_count` int COMMENT '登录错误次数',
	`f_change_password_date` datetime COMMENT '最后修改密码时间',
	`f_language` varchar(50) COMMENT '系统语言',
	`f_theme` varchar(50) COMMENT '系统样式',
	`f_common_menu` longtext COMMENT '常用菜单',
	`f_is_administrator` int COMMENT '是否管理员',
	`f_property_json` longtext COMMENT '扩展属性',
	`f_manager_id` varchar(50) COMMENT '主管主键',
	`f_organize_id` varchar(50) COMMENT '组织主键',
	`f_position_id` varchar(50) COMMENT '岗位主键',
	`f_role_id` longtext COMMENT '角色主键',
	`f_portal_id` longtext COMMENT '门户主键',
	`f_lock_mark` int COMMENT '是否锁定',
	`f_unlock_time` datetime COMMENT '解锁时间',
	`f_group_id` varchar(50) COMMENT '分组id',
	`f_system_id` varchar(50) COMMENT '系统id',
	`f_handover_mark` int COMMENT '交接状态',
	`f_app_system_id` varchar(50) COMMENT 'App系统id',
	`f_ding_job_number` varchar(50) COMMENT '钉钉工号',
	`f_description` varchar(500) COMMENT '描述或说明',
	`f_enabled_mark` int COMMENT '有效标志(0-禁用，1-启用)',
	`f_sort_code` bigint COMMENT '排序',
	`f_creator_time` datetime COMMENT '创建时间',
	`f_creator_user_id` varchar(50) COMMENT '创建用户',
	`f_last_modify_time` datetime COMMENT '修改时间',
	`f_last_modify_user_id` varchar(50) COMMENT '修改用户',
	`f_delete_time` datetime COMMENT '删除时间',
	`f_delete_user_id` varchar(50) COMMENT '删除用户',
	`f_delete_mark` int COMMENT '删除标志',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id',
	`f_handover_userid` varchar(100) COMMENT '离职工作被交接的UserId',
	`f_rank` varchar(50) COMMENT '职级',
	`f_standing` int COMMENT '身份(1.管理员 2.超管 3.普通用户)',
	`f_app_standing` int COMMENT 'app身份(1.管理员 2.超管 3.普通用户)'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE base_user COMMENT = '用户信息';
-- ----------------------------
-- 表名：base_user_device
-- ----------------------------
CREATE TABLE base_user_device (
	`f_id` varchar(50) NOT NULL COMMENT '主键id',
	`f_client_id` varchar(50) COMMENT '设备id',
	`f_user_id` varchar(50) COMMENT '用户id',
	`f_enabled_mark` int COMMENT '有效标志(0-禁用，1-启用)',
	`f_sort_code` bigint COMMENT '排序',
	`f_creator_time` datetime COMMENT '创建时间',
	`f_creator_user_id` varchar(50) COMMENT '创建用户',
	`f_last_modify_time` datetime COMMENT '修改时间',
	`f_last_modify_user_id` varchar(50) COMMENT '修改用户',
	`f_delete_time` datetime COMMENT '删除时间',
	`f_delete_user_id` varchar(50) COMMENT '删除用户',
	`f_delete_mark` int COMMENT '删除标志',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE base_user_device COMMENT = '用户登录设备id表';
-- ----------------------------
-- 表名：base_user_old_password
-- ----------------------------
CREATE TABLE base_user_old_password (
	`f_id` varchar(50) NOT NULL COMMENT '自然主键',
	`f_user_id` varchar(50) COMMENT 'userid',
	`f_account` varchar(50) COMMENT '账户',
	`f_old_password` varchar(50) COMMENT '旧密码',
	`f_secretkey` varchar(50) COMMENT '秘钥',
	`f_sort_code` bigint COMMENT '排序',
	`f_creator_time` datetime COMMENT '创建时间',
	`f_creator_user_id` varchar(50) COMMENT '创建用户',
	`f_last_modify_time` datetime COMMENT '修改时间',
	`f_last_modify_user_id` varchar(50) COMMENT '修改用户',
	`f_delete_time` datetime COMMENT '删除时间',
	`f_delete_user_id` varchar(50) COMMENT '删除用户',
	`f_delete_mark` int COMMENT '删除标志',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE base_user_old_password COMMENT = '用户旧密码记录表';
-- ----------------------------
-- 表名：base_user_relation
-- ----------------------------
CREATE TABLE base_user_relation (
	`f_id` varchar(50) NOT NULL COMMENT '自然主键',
	`f_user_id` varchar(50) COMMENT '用户主键',
	`f_object_type` varchar(50) COMMENT '对象类型',
	`f_object_id` varchar(50) COMMENT '对象主键',
	`f_sort_code` bigint COMMENT '排序',
	`f_creator_time` datetime COMMENT '创建时间',
	`f_creator_user_id` varchar(50) COMMENT '创建用户',
	`f_last_modify_time` datetime COMMENT '修改时间',
	`f_last_modify_user_id` varchar(50) COMMENT '修改用户',
	`f_delete_time` datetime COMMENT '删除时间',
	`f_delete_user_id` varchar(50) COMMENT '删除用户',
	`f_delete_mark` int COMMENT '删除标志',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE base_user_relation COMMENT = '用户关系';
-- ----------------------------
-- 表名：base_visual_alias
-- ----------------------------
CREATE TABLE base_visual_alias (
	`f_id` varchar(50) NOT NULL COMMENT '自然主键',
	`f_visual_id` varchar(50) COMMENT '表单主键',
	`f_alias_name` varchar(255) COMMENT '规范名称',
	`f_table_name` varchar(255) COMMENT '表名',
	`f_field_name` varchar(255) COMMENT '字段名',
	`f_creator_time` datetime COMMENT '创建时间',
	`f_creator_user_id` varchar(50) COMMENT '创建用户',
	`f_last_modify_time` datetime COMMENT '修改时间',
	`f_last_modify_user_id` varchar(50) COMMENT '修改用户',
	`f_delete_time` datetime COMMENT '删除时间',
	`f_delete_user_id` varchar(50) COMMENT '删除用户',
	`f_delete_mark` int COMMENT '删除标志',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE base_visual_alias COMMENT = '代码生成命名规范';
-- ----------------------------
-- 表名：base_visual_dev
-- ----------------------------
CREATE TABLE base_visual_dev (
	`f_id` varchar(50) NOT NULL COMMENT '主键',
	`f_full_name` varchar(200) COMMENT '名称',
	`f_en_code` varchar(200) COMMENT '编码',
	`f_state` int COMMENT '状态(0-暂存（默认），1-发布)',
	`f_type` int COMMENT '状态(0-暂存(默认),1-发布,2-已修改)',
	`f_tables_data` longtext COMMENT '关联的表',
	`f_category` varchar(50) COMMENT '分类（数据字典）',
	`f_form_data` longtext COMMENT '表单配置JSON',
	`f_column_data` longtext COMMENT '列表配置JSON',
	`f_db_link_id` varchar(50) COMMENT '关联数据连接id',
	`f_web_type` int COMMENT '页面类型（1、纯表单，2、表单加列表，4、数据视图）',
	`f_app_column_data` longtext COMMENT 'app列表配置JSON',
	`f_enable_flow` int COMMENT '启用流程',
	`f_interface_id` varchar(50) COMMENT '接口id',
	`f_interface_param` longtext COMMENT '接口参数',
	`f_description` varchar(500) COMMENT '描述或说明',
	`f_enabled_mark` int COMMENT '有效标志(0-禁用，1-启用)',
	`f_sort_code` bigint COMMENT '排序',
	`f_creator_time` datetime COMMENT '创建时间',
	`f_creator_user_id` varchar(50) COMMENT '创建用户',
	`f_last_modify_time` datetime COMMENT '修改时间',
	`f_last_modify_user_id` varchar(50) COMMENT '修改用户',
	`f_delete_time` datetime COMMENT '删除时间',
	`f_delete_user_id` varchar(50) COMMENT '删除用户',
	`f_delete_mark` int COMMENT '删除标志',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id',
	`f_platform_release` varchar(100) COMMENT '发布选中平台',
	`f_url_address` varchar(500) COMMENT 'Web地址',
	`f_app_url_address` varchar(500) COMMENT 'APP地址',
	`f_interface_url` varchar(500) COMMENT '接口路径'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE base_visual_dev COMMENT = '可视化开发功能表';
-- ----------------------------
-- 表名：base_visual_filter
-- ----------------------------
CREATE TABLE base_visual_filter (
	`f_id` varchar(50) NOT NULL COMMENT '',
	`f_module_id` varchar(50) COMMENT '在线和代码生成记录主键',
	`f_config` longtext COMMENT '过滤配置',
	`f_config_app` longtext COMMENT '过滤配置app',
	`f_sort_code` bigint COMMENT '排序',
	`f_creator_time` datetime COMMENT '创建时间',
	`f_creator_user_id` varchar(50) COMMENT '创建用户',
	`f_last_modify_time` datetime COMMENT '修改时间',
	`f_last_modify_user_id` varchar(50) COMMENT '修改用户',
	`f_delete_time` datetime COMMENT '删除时间',
	`f_delete_user_id` varchar(50) COMMENT '删除用户',
	`f_delete_mark` int COMMENT '删除标志',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE base_visual_filter COMMENT = '过滤配置表';
-- ----------------------------
-- 表名：base_visual_kit
-- ----------------------------
CREATE TABLE base_visual_kit (
	`f_id` varchar(50) NOT NULL COMMENT '主键',
	`f_full_name` varchar(200) COMMENT '名称',
	`f_en_code` varchar(200) COMMENT '编码',
	`f_category` varchar(50) COMMENT '分类（数据字典）',
	`f_form_data` longtext COMMENT '表单套件JSON',
	`f_icon` varchar(255) COMMENT '图标',
	`f_description` varchar(500) COMMENT '描述或说明',
	`f_enabled_mark` int COMMENT '有效标志(0-禁用，1-启用)',
	`f_sort_code` bigint COMMENT '排序',
	`f_creator_time` datetime COMMENT '创建时间',
	`f_creator_user_id` varchar(50) COMMENT '创建用户',
	`f_last_modify_time` datetime COMMENT '修改时间',
	`f_last_modify_user_id` varchar(50) COMMENT '修改用户',
	`f_delete_time` datetime COMMENT '删除时间',
	`f_delete_user_id` varchar(50) COMMENT '删除用户',
	`f_delete_mark` int COMMENT '删除标志',
	`f_tenant_id` varchar(50) NOT NULL COMMENT '租户id'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE base_visual_kit COMMENT = '表单套件表';
-- ----------------------------
-- 表名：base_visual_link
-- ----------------------------
CREATE TABLE base_visual_link (
	`f_id` varchar(50) NOT NULL COMMENT '自然主键',
	`f_short_link` varchar(500) COMMENT '短链接',
	`f_form_use` int COMMENT '外链填单开关',
	`f_form_link` varchar(500) COMMENT '外链填单',
	`f_form_pass_use` int COMMENT '外链密码开关',
	`f_form_password` varchar(500) COMMENT '外链填单密码',
	`f_column_use` int COMMENT '公开查询开关',
	`f_column_link` varchar(500) COMMENT '公开查询',
	`f_column_pass_use` int COMMENT '查询密码开关',
	`f_column_password` varchar(500) COMMENT '公开查询密码',
	`f_column_condition` longtext COMMENT '查询条件',
	`f_column_text` longtext COMMENT '显示内容',
	`f_real_pc_link` varchar(500) COMMENT 'PC端链接',
	`f_real_app_link` varchar(500) COMMENT 'App端链接',
	`f_user_id` varchar(50) COMMENT '用户id',
	`f_enabled_mark` int COMMENT '有效标志(0-禁用，1-启用)',
	`f_creator_time` datetime COMMENT '创建时间',
	`f_creator_user_id` varchar(50) COMMENT '创建用户',
	`f_last_modify_time` datetime COMMENT '修改时间',
	`f_last_modify_user_id` varchar(50) COMMENT '修改用户',
	`f_delete_time` datetime COMMENT '删除时间',
	`f_delete_user_id` varchar(50) COMMENT '删除用户',
	`f_delete_mark` int COMMENT '删除标志',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id',
	`f_sort_code` bigint COMMENT '排序'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE base_visual_link COMMENT = '表单外链配置表';
-- ----------------------------
-- 表名：base_visual_log
-- ----------------------------
CREATE TABLE base_visual_log (
	`f_id` varchar(50) NOT NULL COMMENT '主键',
	`f_model_id` varchar(50) COMMENT '模板id',
	`f_type` int COMMENT '日志类型：0-新建，1-编辑',
	`f_data_id` varchar(50) COMMENT '数据id',
	`f_data_log` longtext COMMENT '日志内容',
	`f_creator_time` datetime COMMENT '创建时间',
	`f_creator_user_id` varchar(50) COMMENT '创建用户',
	`f_last_modify_time` datetime COMMENT '修改时间',
	`f_last_modify_user_id` varchar(50) COMMENT '修改用户',
	`f_delete_time` datetime COMMENT '删除时间',
	`f_delete_user_id` varchar(50) COMMENT '删除用户',
	`f_delete_mark` int COMMENT '删除标志',
	`f_tenant_id` varchar(50) NOT NULL COMMENT '租户id'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE base_visual_log COMMENT = '在线开发数据日志表';
-- ----------------------------
-- 表名：base_visual_personal
-- ----------------------------
CREATE TABLE base_visual_personal (
	`f_id` varchar(50) NOT NULL COMMENT '主键',
	`f_menu_id` varchar(50) COMMENT '菜单id',
	`f_full_name` varchar(255) COMMENT '视图名称',
	`f_type` int COMMENT '类型：0-系统，1-其他',
	`f_status` int COMMENT '状态：0-其他，1-默认',
	`f_search_list` text COMMENT '查询字段',
	`f_column_list` text COMMENT '列表字段',
	`f_creator_time` datetime COMMENT '创建时间',
	`f_creator_user_id` varchar(50) COMMENT '创建用户',
	`f_last_modify_time` datetime COMMENT '修改时间',
	`f_last_modify_user_id` varchar(50) COMMENT '修改用户',
	`f_delete_time` datetime COMMENT '删除时间',
	`f_delete_user_id` varchar(50) COMMENT '删除用户',
	`f_delete_mark` int COMMENT '删除标志',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE base_visual_personal COMMENT = '列表个性视图';
-- ----------------------------
-- 表名：base_visual_release
-- ----------------------------
CREATE TABLE base_visual_release (
	`f_id` varchar(50) NOT NULL COMMENT '主键',
	`f_full_name` varchar(200) COMMENT '名称',
	`f_en_code` varchar(200) COMMENT '编码',
	`f_state` int COMMENT '状态(0-暂存（默认），1-发布)',
	`f_type` int COMMENT '状态(0-暂存(默认),1-发布,2-已修改)',
	`f_tables_data` longtext COMMENT '关联的表',
	`f_category` varchar(50) COMMENT '分类（数据字典）',
	`f_form_data` longtext COMMENT '表单配置JSON',
	`f_column_data` longtext COMMENT '列表配置JSON',
	`f_db_link_id` varchar(50) COMMENT '关联数据连接id',
	`f_web_type` int COMMENT '页面类型（1、纯表单，2、表单加列表，4、数据视图）',
	`f_app_column_data` longtext COMMENT 'app列表配置JSON',
	`f_enable_flow` int DEFAULT '0' COMMENT '启用流程',
	`f_interface_id` varchar(50) COMMENT '接口id',
	`f_interface_param` longtext COMMENT '接口参数',
	`f_description` varchar(500) COMMENT '描述或说明',
	`f_enabled_mark` int COMMENT '有效标志(0-禁用，1-启用)',
	`f_sort_code` bigint COMMENT '排序',
	`f_creator_time` datetime COMMENT '创建时间',
	`f_creator_user_id` varchar(50) COMMENT '创建用户',
	`f_last_modify_time` datetime COMMENT '修改时间',
	`f_last_modify_user_id` varchar(50) COMMENT '修改用户',
	`f_delete_time` datetime COMMENT '删除时间',
	`f_delete_user_id` varchar(50) COMMENT '删除用户',
	`f_delete_mark` int COMMENT '删除标志',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id',
	`f_url_address` varchar(500) COMMENT 'Web地址',
	`f_app_url_address` varchar(500) COMMENT 'APP地址',
	`f_interface_url` varchar(500) COMMENT '接口路径',
	`f_old_content` longtext COMMENT '旧版数据json'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE base_visual_release COMMENT = '可视化开发功能已发布表';
-- ----------------------------
-- 表名：blade_visual
-- ----------------------------
CREATE TABLE blade_visual (
	`id` varchar(64) NOT NULL COMMENT '主键',
	`title` varchar(255) COMMENT '大屏标题',
	`background_url` longtext COMMENT '大屏背景',
	`category` int COMMENT '大屏类型',
	`password` varchar(255) COMMENT '发布密码',
	`create_user` varchar(64) COMMENT '创建人',
	`create_dept` varchar(64) COMMENT '创建部门',
	`create_time` datetime COMMENT '创建时间',
	`update_user` varchar(64) COMMENT '修改人',
	`update_time` datetime COMMENT '修改时间',
	`status` int NOT NULL COMMENT '状态',
	`is_deleted` int NOT NULL COMMENT '是否已删除',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id'

, PRIMARY KEY (id,f_tenant_id)
) ;
ALTER TABLE blade_visual COMMENT = '大屏信息';
-- ----------------------------
-- 表名：blade_visual_assets
-- ----------------------------
CREATE TABLE blade_visual_assets (
	`id` varchar(64) NOT NULL COMMENT '主键',
	`assetsName` varchar(100) COMMENT '资源名称',
	`assetsSize` varchar(50) COMMENT '资源大小 1M',
	`assetsTime` datetime COMMENT '资源上传时间',
	`assetsType` varchar(50) COMMENT '资源后缀名',
	`assetsUrl` varchar(255) COMMENT '资源地址',
	`f_tenant_id` varchar(50) NOT NULL COMMENT '租户id'

, PRIMARY KEY (id,f_tenant_id)
) ;
ALTER TABLE blade_visual_assets COMMENT = '大屏静态资源';
-- ----------------------------
-- 表名：blade_visual_category
-- ----------------------------
CREATE TABLE blade_visual_category (
	`id` varchar(64) NOT NULL COMMENT '主键',
	`category_key` varchar(12) COMMENT '分类键值',
	`category_value` varchar(64) COMMENT '分类名称',
	`is_deleted` int NOT NULL DEFAULT '0' COMMENT '是否已删除',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id'

, PRIMARY KEY (id,f_tenant_id)
) ;
ALTER TABLE blade_visual_category COMMENT = '大屏分类';
-- ----------------------------
-- 表名：blade_visual_component
-- ----------------------------
CREATE TABLE blade_visual_component (
	`id` varchar(64) NOT NULL COMMENT '主键',
	`name` varchar(50) COMMENT '组件名称',
	`content` longtext COMMENT '组件内容',
	`type` int COMMENT '',
	`img` varchar(255) COMMENT '',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id'

, PRIMARY KEY (id,f_tenant_id)
) ;
ALTER TABLE blade_visual_component COMMENT = '大屏自定义组件';
-- ----------------------------
-- 表名：blade_visual_config
-- ----------------------------
CREATE TABLE blade_visual_config (
	`id` varchar(64) NOT NULL COMMENT '主键',
	`visual_id` varchar(64) COMMENT '可视化表主键',
	`detail` longtext COMMENT '配置json',
	`component` longtext COMMENT '组件json',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id'

, PRIMARY KEY (id,f_tenant_id)
) ;
ALTER TABLE blade_visual_config COMMENT = '大屏信息配置';
-- ----------------------------
-- 表名：blade_visual_db
-- ----------------------------
CREATE TABLE blade_visual_db (
	`id` varchar(64) NOT NULL COMMENT '主键',
	`name` varchar(100) COMMENT '名称',
	`driver_class` varchar(100) COMMENT '驱动类',
	`url` varchar(500) COMMENT '连接地址',
	`username` varchar(50) COMMENT '用户名',
	`password` varchar(100) COMMENT '密码',
	`remark` varchar(255) COMMENT '备注',
	`create_user` varchar(64) COMMENT '创建人',
	`create_dept` varchar(64) COMMENT '创建部门',
	`create_time` datetime COMMENT '创建时间',
	`update_user` varchar(64) COMMENT '修改人',
	`update_time` datetime COMMENT '修改时间',
	`status` int COMMENT '状态',
	`is_deleted` int COMMENT '是否已删除',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id'

, PRIMARY KEY (id,f_tenant_id)
) ;
ALTER TABLE blade_visual_db COMMENT = '大屏数据源';
-- ----------------------------
-- 表名：blade_visual_glob
-- ----------------------------
CREATE TABLE blade_visual_glob (
	`id` varchar(64) NOT NULL COMMENT '主键',
	`globalName` varchar(255) COMMENT '变量名称',
	`globalKey` varchar(255) COMMENT '变量Key',
	`globalValue` varchar(4000) COMMENT '变量值',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id'

, PRIMARY KEY (id,f_tenant_id)
) ;
ALTER TABLE blade_visual_glob COMMENT = '大屏全局变量';
-- ----------------------------
-- 表名：blade_visual_map
-- ----------------------------
CREATE TABLE blade_visual_map (
	`id` varchar(64) NOT NULL COMMENT '主键',
	`name` varchar(255) COMMENT '地图名称',
	`data` longtext COMMENT '地图数据',
	`code` varchar(20) COMMENT '地图编码',
	`map_level` int COMMENT '地图级别 0:国家 1:省份 2:城市 3:区县',
	`parent_id` varchar(64) COMMENT '上级ID',
	`parent_code` varchar(20) COMMENT '上级编码',
	`ancestors` varchar(255) COMMENT '祖编码',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id'

, PRIMARY KEY (id,f_tenant_id)
) ;
ALTER TABLE blade_visual_map COMMENT = '大屏地图';
-- ----------------------------
-- 表名：blade_visual_record
-- ----------------------------
CREATE TABLE blade_visual_record (
	`id` varchar(64) NOT NULL COMMENT '主键',
	`name` varchar(255) COMMENT '名称',
	`url` varchar(255) COMMENT '请求地址',
	`dataType` int COMMENT '数据集类型',
	`dataMethod` varchar(255) COMMENT '请求方法',
	`dataHeader` varchar(4000) COMMENT '请求头部',
	`data` varchar(4000) COMMENT '请求数据',
	`dataQuery` varchar(4000) COMMENT '请求参数',
	`dataQueryType` varchar(255) COMMENT '请求参数类型',
	`dataFormatter` text COMMENT '过滤器',
	`proxy` int COMMENT '开启跨域',
	`wsUrl` varchar(255) COMMENT 'WebSocket地址',
	`dbsql` varchar(255) COMMENT '',
	`fsql` text COMMENT '',
	`result` varchar(255) COMMENT '',
	`mqttUrl` varchar(255) COMMENT 'MQTT地址',
	`mqttConfig` text COMMENT 'MQTT配置',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id'

, PRIMARY KEY (id,f_tenant_id)
) ;
ALTER TABLE blade_visual_record COMMENT = '大屏数据集';
-- ----------------------------
-- 表名：ct293714178055641925
-- ----------------------------
CREATE TABLE ct293714178055641925 (
	`selectField107` varchar(255) COMMENT '乐器',
	`f_id` varchar(50) NOT NULL COMMENT '主键',
	`f_foreignId` varchar(50) COMMENT '外键',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE ct293714178055641925 COMMENT = '子表';
-- ----------------------------
-- 表名：ct294012196562705414
-- ----------------------------
CREATE TABLE ct294012196562705414 (
	`dateField117` datetime COMMENT '开始日期',
	`dateField118` datetime COMMENT '结束日期',
	`comInputField119` varchar(255) COMMENT '公司名称',
	`comInputField120` varchar(255) COMMENT '担任职务',
	`textareaField121` varchar(255) COMMENT '主要工作内容',
	`f_id` varchar(50) NOT NULL COMMENT '主键',
	`f_foreignId` varchar(50) COMMENT '外键',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE ct294012196562705414 COMMENT = '子表';
-- ----------------------------
-- 表名：ct294022926200511493
-- ----------------------------
CREATE TABLE ct294022926200511493 (
	`comInputField145` varchar(255) COMMENT '包保人社区工作者姓名',
	`comInputField146` varchar(255) COMMENT '包保人社区工作者联系方式',
	`comInputField147` varchar(255) COMMENT '包保人医务工作者姓名',
	`comInputField148` varchar(255) COMMENT '包保人医务工作者联系方式',
	`comInputField149` varchar(255) COMMENT '包保人公安民警姓名',
	`comInputField150` varchar(255) COMMENT '包保人公安民警联系方式',
	`comInputField151` varchar(255) COMMENT '包保人志愿者姓名',
	`comInputField152` varchar(255) COMMENT '包保人志愿者联系方式',
	`f_id` varchar(50) NOT NULL COMMENT '主键',
	`f_foreignId` varchar(50) COMMENT '外键',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE ct294022926200511493 COMMENT = '子表';
-- ----------------------------
-- 表名：ct294031961024928774
-- ----------------------------
CREATE TABLE ct294031961024928774 (
	`selectField108` varchar(255) COMMENT '关联目标',
	`selectField109` varchar(255) COMMENT '目标达成度',
	`numInputField112` decimal(10,0) COMMENT '评分',
	`comInputField111` varchar(255) COMMENT '情况描述',
	`f_id` varchar(50) NOT NULL COMMENT '主键',
	`f_foreignId` varchar(50) COMMENT '外键',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE ct294031961024928774 COMMENT = '子表';
-- ----------------------------
-- 表名：ct294031961024928775
-- ----------------------------
CREATE TABLE ct294031961024928775 (
	`selectField114` varchar(255) COMMENT '关联结果',
	`selectField115` varchar(255) COMMENT '关键结果达成度',
	`numInputField116` decimal(10,0) COMMENT '评分',
	`comInputField117` varchar(255) COMMENT '情况描述',
	`f_id` varchar(50) NOT NULL COMMENT '主键',
	`f_foreignId` varchar(50) COMMENT '外键',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE ct294031961024928775 COMMENT = '子表';
-- ----------------------------
-- 表名：ct294037561750363142
-- ----------------------------
CREATE TABLE ct294037561750363142 (
	`comInputField108` varchar(255) COMMENT '巡检结果',
	`dateField109` datetime COMMENT '巡检日期',
	`comInputField110` varchar(255) COMMENT '情况说明',
	`userSelectField111` varchar(255) COMMENT '巡检人',
	`comInputField124` varchar(255) COMMENT '巡检人手机',
	`selectField112` varchar(255) COMMENT '巡检分类',
	`numInputField113` decimal(10,0) COMMENT '设备完好率',
	`uploadFzField114` text COMMENT '现场照片',
	`f_id` varchar(50) NOT NULL COMMENT '主键',
	`f_foreignId` varchar(50) COMMENT '外键',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE ct294037561750363142 COMMENT = '子表';
-- ----------------------------
-- 表名：ct294037561750363143
-- ----------------------------
CREATE TABLE ct294037561750363143 (
	`comInputField116` varchar(255) COMMENT '维修结果',
	`dateField117` datetime COMMENT '维修日期',
	`comInputField118` varchar(255) COMMENT '维修内容',
	`userSelectField119` varchar(255) COMMENT '维修人',
	`comInputField125` varchar(255) COMMENT '维修人手机',
	`uploadFzField122` text COMMENT '现场照片',
	`f_id` varchar(50) NOT NULL COMMENT '主键',
	`f_foreignId` varchar(50) COMMENT '外键',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE ct294037561750363143 COMMENT = '子表';
-- ----------------------------
-- 表名：ct294099893327272966
-- ----------------------------
CREATE TABLE ct294099893327272966 (
	`comInputField108` varchar(255) COMMENT '出差地点',
	`dateField109` datetime COMMENT '开始日期',
	`dateField110` datetime COMMENT '结束日期',
	`comInputField111` varchar(255) COMMENT '出差事由',
	`f_id` varchar(50) NOT NULL COMMENT '主键',
	`f_foreignId` varchar(50) COMMENT '外键',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE ct294099893327272966 COMMENT = '子表';
-- ----------------------------
-- 表名：ct294376098702073542
-- ----------------------------
CREATE TABLE ct294376098702073542 (
	`comInputField106` varchar(255) COMMENT '商品名',
	`comInputField107` varchar(255) COMMENT '编号',
	`numInputField108` decimal(10,0) COMMENT '销售价',
	`numInputField109` decimal(10,0) COMMENT '当前库存',
	`numInputField110` decimal(10,0) COMMENT '数量',
	`numInputField111` decimal(10,0) COMMENT '单品总价',
	`f_id` varchar(50) NOT NULL COMMENT '主键',
	`f_foreignId` varchar(50) COMMENT '外键',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE ct294376098702073542 COMMENT = '子表';
-- ----------------------------
-- 表名：ct294382866144468678
-- ----------------------------
CREATE TABLE ct294382866144468678 (
	`comInputField111` varchar(255) COMMENT '商品名称',
	`comInputField112` varchar(255) COMMENT '编号',
	`numInputField113` decimal(10,0) COMMENT '采购价',
	`numInputField114` decimal(10,0) COMMENT '数量',
	`calculateField118` varchar(255) COMMENT '单品总价',
	`numInputField116` decimal(10,0) COMMENT '当前库存',
	`numInputField117` decimal(10,0) COMMENT '入库后库存',
	`f_id` varchar(50) NOT NULL COMMENT '主键',
	`f_foreignId` varchar(50) COMMENT '外键',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE ct294382866144468678 COMMENT = '子表';
-- ----------------------------
-- 表名：ct395899726056134917
-- ----------------------------
CREATE TABLE ct395899726056134917 (
	`comSelectField111` varchar(255) COMMENT '默认当前组织',
	`depSelectField112` varchar(255) COMMENT '默认当前部门',
	`userSelectField113` varchar(255) COMMENT '默认当前用户',
	`dateField114` datetime COMMENT '默认当前系统时间',
	`f_id` varchar(50) NOT NULL COMMENT '主键',
	`f_foreignId` varchar(50) COMMENT '外键',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE ct395899726056134917 COMMENT = '3.4.6新增功能汇总示例-子表';
-- ----------------------------
-- 表名：ct469496947162544645
-- ----------------------------
CREATE TABLE ct469496947162544645 (
	`inputField110` varchar(255) COMMENT '摘要',
	`selectField112` varchar(255) COMMENT '下拉选择',
	`cascaderField114` varchar(255) COMMENT '级联选择',
	`textareaField113` varchar(255) COMMENT '说明',
	`inputNumberField115` decimal(38,15) COMMENT '金额',
	`f_id` varchar(50) NOT NULL COMMENT '主键',
	`f_foreign_id` varchar(50) COMMENT '外键',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE ct469496947162544645 COMMENT = '复杂表头示例-子表';
-- ----------------------------
-- 表名：ct469499339585157637
-- ----------------------------
CREATE TABLE ct469499339585157637 (
	`organizeSelectField114` varchar(255) COMMENT '组织选择',
	`depSelectField115` varchar(255) COMMENT '部门选择',
	`posSelectField116` varchar(255) COMMENT '岗位选择',
	`userSelectField117` varchar(255) COMMENT '用户选择',
	`usersSelectField118` varchar(255) COMMENT '用户组件',
	`groupSelectField119` varchar(255) COMMENT '分组选择',
	`f_id` varchar(50) NOT NULL COMMENT '主键',
	`f_foreign_id` varchar(50) COMMENT '外键',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE ct469499339585157637 COMMENT = '高级控件和默认查询-子表';
-- ----------------------------
-- 表名：ct585077626071155013
-- ----------------------------
CREATE TABLE ct585077626071155013 (
	`inputField108` varchar(255) COMMENT '产品编号',
	`inputField109` varchar(255) COMMENT '产品名称',
	`inputField110` varchar(255) COMMENT '规格型号',
	`inputField112` varchar(255) COMMENT '单位',
	`inputNumberField113` decimal(38,15) COMMENT '单价',
	`inputNumberField114` decimal(38,15) COMMENT '数量',
	`calculateField115` decimal(38,2) COMMENT '小计',
	`f_id` varchar(50) NOT NULL COMMENT '主键',
	`f_foreign_id` varchar(50) COMMENT '外键',
	`f_tenant_id` varchar(50) NOT NULL COMMENT '租户id'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE ct585077626071155013 COMMENT = '采购合同-子表';
-- ----------------------------
-- 表名：ct585113061728190981
-- ----------------------------
CREATE TABLE ct585113061728190981 (
	`datePickerField101` datetime COMMENT '费用月份',
	`inputNumberField103` decimal(38,15) COMMENT '用水量',
	`inputNumberField104` decimal(38,15) COMMENT '单价',
	`f_id` varchar(50) NOT NULL COMMENT '主键',
	`f_foreign_id` varchar(50) COMMENT '外键',
	`f_tenant_id` varchar(50) NOT NULL COMMENT '租户id',
	`inputNumberField105` decimal(65,3) COMMENT '合计'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE ct585113061728190981 COMMENT = '水电费用-子表';
-- ----------------------------
-- 表名：ct585113061732385285
-- ----------------------------
CREATE TABLE ct585113061732385285 (
	`datePickerField113` datetime COMMENT '费用月份',
	`inputNumberField114` decimal(38,15) COMMENT '用电量',
	`inputNumberField115` decimal(38,15) COMMENT '单价',
	`f_id` varchar(50) NOT NULL COMMENT '主键',
	`f_foreign_id` varchar(50) COMMENT '外键',
	`f_tenant_id` varchar(50) NOT NULL COMMENT '租户id',
	`inputNumberField116` decimal(65,3) COMMENT '合计'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE ct585113061732385285 COMMENT = '水电费用-子表';
-- ----------------------------
-- 表名：ct585115948990595589
-- ----------------------------
CREATE TABLE ct585115948990595589 (
	`inputField111` varchar(255) COMMENT '品名',
	`inputField112` varchar(255) COMMENT '规格',
	`inputField113` varchar(255) COMMENT '单位',
	`inputNumberField114` decimal(38,15) COMMENT '单价',
	`inputNumberField115` decimal(38,15) COMMENT '数量',
	`f_id` varchar(50) NOT NULL COMMENT '主键',
	`f_foreign_id` varchar(50) COMMENT '外键',
	`f_tenant_id` varchar(50) NOT NULL COMMENT '租户id',
	`inputNumberField116` decimal(18,3) COMMENT '小计'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE ct585115948990595589 COMMENT = '报价信息-子表';
-- ----------------------------
-- 表名：ct585115958725575173
-- ----------------------------
CREATE TABLE ct585115958725575173 (
	`datePickerField115` datetime COMMENT '开始年月',
	`datePickerField116` datetime COMMENT '日期选择',
	`inputField117` varchar(255) COMMENT '院校名称',
	`inputField118` varchar(255) COMMENT '专业',
	`f_id` varchar(50) NOT NULL COMMENT '主键',
	`f_foreign_id` varchar(50) COMMENT '外键',
	`f_tenant_id` varchar(50) NOT NULL COMMENT '租户id'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE ct585115958725575173 COMMENT = '入职申请-子表';
-- ----------------------------
-- 表名：ct585115958725575174
-- ----------------------------
CREATE TABLE ct585115958725575174 (
	`datePickerField120` datetime COMMENT '开始年月',
	`datePickerField121` datetime COMMENT '日期选择',
	`inputField122` varchar(255) COMMENT '工作单位',
	`inputField123` varchar(255) COMMENT '职位',
	`f_id` varchar(50) NOT NULL COMMENT '主键',
	`f_foreign_id` varchar(50) COMMENT '外键',
	`f_tenant_id` varchar(50) NOT NULL COMMENT '租户id'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE ct585115958725575174 COMMENT = '入职申请-子表';
-- ----------------------------
-- 表名：data_report
-- ----------------------------
CREATE TABLE data_report (
	`F_Id` varchar(50) NOT NULL COMMENT '主键ID',
	`F_CategoryId` varchar(50) COMMENT '分组ID',
	`F_FullName` varchar(50) COMMENT '报表名称',
	`F_Content` longtext COMMENT '报表内容',
	`F_EnCode` varchar(50) COMMENT '编码',
	`F_SortCode` varchar(50) COMMENT '排序码(默认0)',
	`F_EnabledMark` int COMMENT '状态(0-默认，禁用，1-启用)',
	`F_Description` varchar(500) COMMENT '描述或说明',
	`F_CreatorTime` datetime COMMENT '创建时间',
	`F_CreatorUserId` varchar(50) COMMENT '创建用户',
	`F_LastModifyTime` datetime COMMENT '修改时间',
	`F_LastModifyUserId` varchar(50) COMMENT '修改用户',
	`F_DeleteMark` int COMMENT '删除标志(默认0)',
	`F_DeleteTime` datetime COMMENT '删除时间',
	`F_DeleteUserId` varchar(50) COMMENT '删除用户id',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id'

, PRIMARY KEY (F_Id,f_tenant_id)
) ;
ALTER TABLE data_report COMMENT = '数据报表';
-- ----------------------------
-- 表名：ext_big_data
-- ----------------------------
CREATE TABLE ext_big_data (
	`f_id` varchar(50) NOT NULL COMMENT '自然主键',
	`f_en_code` varchar(200) COMMENT '编号',
	`f_full_name` varchar(200) COMMENT '名称',
	`f_sort_code` bigint COMMENT '排序',
	`f_creator_time` datetime COMMENT '创建时间',
	`f_creator_user_id` varchar(50) COMMENT '创建用户',
	`f_last_modify_time` datetime COMMENT '修改时间',
	`f_last_modify_user_id` varchar(50) COMMENT '修改用户',
	`f_delete_time` datetime COMMENT '删除时间',
	`f_delete_user_id` varchar(50) COMMENT '删除用户',
	`f_delete_mark` int COMMENT '删除标志',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE ext_big_data COMMENT = '大数据测试';
-- ----------------------------
-- 表名：ext_customer
-- ----------------------------
CREATE TABLE ext_customer (
	`f_id` varchar(50) NOT NULL COMMENT '主键',
	`f_en_code` varchar(50) COMMENT '编码',
	`f_customer_name` varchar(50) COMMENT '客户名称',
	`f_address` varchar(255) COMMENT '地址',
	`f_full_name` varchar(50) COMMENT '名称',
	`f_contact_tel` varchar(50) COMMENT '联系方式',
	`f_sort_code` bigint COMMENT '排序',
	`f_creator_time` datetime COMMENT '创建时间',
	`f_creator_user_id` varchar(50) COMMENT '创建用户',
	`f_last_modify_time` datetime COMMENT '修改时间',
	`f_last_modify_user_id` varchar(50) COMMENT '修改用户',
	`f_delete_mark` int COMMENT '删除标志',
	`f_delete_time` datetime COMMENT '删除时间',
	`f_delete_user_id` varchar(50) COMMENT '删除用户',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE ext_customer COMMENT = '客户信息';
-- ----------------------------
-- 表名：ext_document
-- ----------------------------
CREATE TABLE ext_document (
	`f_id` varchar(50) NOT NULL COMMENT '自然主键',
	`f_parent_id` varchar(50) COMMENT '文档父级',
	`f_type` int COMMENT '文档分类',
	`f_full_name` varchar(200) COMMENT '文件名称',
	`f_file_path` varchar(2000) COMMENT '文件路径',
	`f_file_size` varchar(50) COMMENT '文件大小',
	`f_file_extension` varchar(50) COMMENT '文件后缀',
	`f_read_count` int COMMENT '阅读数量',
	`f_is_share` int COMMENT '是否共享',
	`f_share_time` datetime COMMENT '共享时间',
	`f_upload_url` varchar(255) COMMENT '下载地址',
	`f_description` varchar(500) COMMENT '描述或说明',
	`f_enabled_mark` int COMMENT '有效标志(0-禁用，1-启用)',
	`f_sort_code` bigint COMMENT '排序',
	`f_creator_time` datetime COMMENT '创建时间',
	`f_creator_user_id` varchar(50) COMMENT '创建用户',
	`f_last_modify_time` datetime COMMENT '修改时间',
	`f_last_modify_user_id` varchar(50) COMMENT '修改用户',
	`f_delete_time` datetime COMMENT '删除时间',
	`f_delete_user_id` varchar(50) COMMENT '删除用户',
	`f_delete_mark` int COMMENT '删除标志',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE ext_document COMMENT = '知识文档';
-- ----------------------------
-- 表名：ext_document_log
-- ----------------------------
CREATE TABLE ext_document_log (
	`f_id` varchar(50) NOT NULL COMMENT '自然主键',
	`f_document_id` varchar(50) COMMENT '文档主键',
	`f_child_document` varchar(500) COMMENT '子文件id',
	`f_creator_time` datetime COMMENT '创建时间',
	`f_creator_user_id` varchar(50) COMMENT '创建用户',
	`f_last_modify_time` datetime COMMENT '修改时间',
	`f_last_modify_user_id` varchar(50) COMMENT '修改用户',
	`f_delete_time` datetime COMMENT '删除时间',
	`f_delete_user_id` varchar(50) COMMENT '删除用户',
	`f_delete_mark` int COMMENT '删除标志',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE ext_document_log COMMENT = '文档中心记录表';
-- ----------------------------
-- 表名：ext_document_share
-- ----------------------------
CREATE TABLE ext_document_share (
	`f_id` varchar(50) NOT NULL COMMENT '自然主键',
	`f_document_id` varchar(50) COMMENT '文档主键',
	`f_share_user_id` varchar(50) COMMENT '共享人员',
	`f_share_time` datetime COMMENT '共享时间',
	`f_sort_code` bigint COMMENT '排序',
	`f_creator_time` datetime COMMENT '创建时间',
	`f_creator_user_id` varchar(50) COMMENT '创建用户',
	`f_last_modify_time` datetime COMMENT '修改时间',
	`f_last_modify_user_id` varchar(50) COMMENT '修改用户',
	`f_delete_time` datetime COMMENT '删除时间',
	`f_delete_user_id` varchar(50) COMMENT '删除用户',
	`f_delete_mark` int COMMENT '删除标志',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE ext_document_share COMMENT = '知识文档共享';
-- ----------------------------
-- 表名：ext_email_config
-- ----------------------------
CREATE TABLE ext_email_config (
	`f_id` varchar(50) NOT NULL COMMENT '自然主键',
	`f_pop3_host` varchar(50) COMMENT 'POP3服务',
	`f_pop3_port` int COMMENT 'POP3端口',
	`f_smtp_host` varchar(50) COMMENT 'SMTP服务',
	`f_smtp_port` int COMMENT 'SMTP端口',
	`f_account` varchar(50) COMMENT '账户',
	`f_password` varchar(50) COMMENT '密码',
	`f_ssl` int COMMENT 'SSL登录',
	`f_sender_name` varchar(50) COMMENT '发件人名称',
	`f_folder_json` longtext COMMENT '我的文件夹',
	`f_description` varchar(500) COMMENT '描述或说明',
	`f_enabled_mark` int COMMENT '有效标志(0-禁用，1-启用)',
	`f_sort_code` bigint COMMENT '排序',
	`f_creator_time` datetime COMMENT '创建时间',
	`f_creator_user_id` varchar(50) COMMENT '创建用户',
	`f_last_modify_time` datetime COMMENT '修改时间',
	`f_last_modify_user_id` varchar(50) COMMENT '修改用户',
	`f_delete_time` datetime COMMENT '删除时间',
	`f_delete_user_id` varchar(50) COMMENT '删除用户',
	`f_delete_mark` int COMMENT '删除标志',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE ext_email_config COMMENT = '邮件配置';
-- ----------------------------
-- 表名：ext_email_receive
-- ----------------------------
CREATE TABLE ext_email_receive (
	`f_id` varchar(50) NOT NULL COMMENT '自然主键',
	`f_type` int COMMENT '类型',
	`f_maccount` varchar(50) COMMENT '邮箱账户',
	`f_mid` varchar(200) COMMENT 'F_MID',
	`f_sender` varchar(50) COMMENT '发件人',
	`f_sender_name` varchar(50) COMMENT '发件人名称',
	`f_subject` varchar(200) COMMENT '主题',
	`f_body_text` longtext COMMENT '正文',
	`f_attachment` longtext COMMENT '附件',
	`f_read` int COMMENT '阅读',
	`f_date` datetime COMMENT '',
	`f_starred` int COMMENT '星标',
	`f_description` varchar(500) COMMENT '描述或说明',
	`f_enabled_mark` int COMMENT '有效标志(0-禁用，1-启用)',
	`f_sort_code` bigint COMMENT '排序',
	`f_creator_time` datetime COMMENT '创建时间',
	`f_creator_user_id` varchar(50) COMMENT '创建用户',
	`f_last_modify_time` datetime COMMENT '修改时间',
	`f_last_modify_user_id` varchar(50) COMMENT '修改用户',
	`f_delete_time` datetime COMMENT '删除时间',
	`f_delete_user_id` varchar(50) COMMENT '删除用户',
	`f_delete_mark` int COMMENT '删除标志',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE ext_email_receive COMMENT = '邮件接收';
-- ----------------------------
-- 表名：ext_email_send
-- ----------------------------
CREATE TABLE ext_email_send (
	`f_id` varchar(50) NOT NULL COMMENT '自然主键',
	`f_type` int COMMENT '类型',
	`f_sender` longtext COMMENT '发件人',
	`f_to` longtext COMMENT '收件人',
	`f_cc` longtext COMMENT '抄送人',
	`f_bcc` longtext COMMENT '密送人',
	`f_colour` varchar(50) COMMENT '颜色',
	`f_subject` varchar(200) COMMENT '主题',
	`f_body_text` longtext COMMENT '正文',
	`f_attachment` longtext COMMENT '附件',
	`f_state` int COMMENT '状态',
	`f_description` varchar(500) COMMENT '描述或说明',
	`f_enabled_mark` int COMMENT '有效标志(0-禁用，1-启用)',
	`f_sort_code` bigint COMMENT '排序',
	`f_creator_time` datetime COMMENT '创建时间',
	`f_creator_user_id` varchar(50) COMMENT '创建用户',
	`f_last_modify_time` datetime COMMENT '修改时间',
	`f_last_modify_user_id` varchar(50) COMMENT '修改用户',
	`f_delete_time` datetime COMMENT '删除时间',
	`f_delete_user_id` varchar(50) COMMENT '删除用户',
	`f_delete_mark` int COMMENT '删除标志',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE ext_email_send COMMENT = '邮件发送';
-- ----------------------------
-- 表名：ext_employee
-- ----------------------------
CREATE TABLE ext_employee (
	`f_id` varchar(50) NOT NULL COMMENT '自然主键',
	`f_en_code` varchar(50) COMMENT '工号',
	`f_full_name` varchar(50) COMMENT '姓名',
	`f_gender` varchar(50) COMMENT '性别',
	`f_department_name` varchar(255) COMMENT '部门',
	`f_position_name` varchar(50) COMMENT '职位',
	`f_working_nature` varchar(50) COMMENT '用工性质',
	`f_ID_number` varchar(50) COMMENT '身份证号',
	`f_telephone` varchar(50) COMMENT '联系电话',
	`f_attend_work_time` datetime COMMENT '参加工作',
	`f_birthday` datetime COMMENT '出生年月',
	`f_education` varchar(50) COMMENT '最高学历',
	`f_major` varchar(50) COMMENT '所学专业',
	`f_graduation_academy` varchar(50) COMMENT '毕业院校',
	`f_graduation_time` datetime COMMENT '毕业时间',
	`f_description` varchar(500) COMMENT '描述或说明',
	`f_enabled_mark` int COMMENT '有效标志(0-禁用，1-启用)',
	`f_sort_code` bigint COMMENT '排序',
	`f_creator_time` datetime COMMENT '创建时间',
	`f_creator_user_id` varchar(50) COMMENT '创建用户',
	`f_last_modify_time` datetime COMMENT '修改时间',
	`f_last_modify_user_id` varchar(50) COMMENT '修改用户',
	`f_delete_time` datetime COMMENT '删除时间',
	`f_delete_user_id` varchar(50) COMMENT '删除用户',
	`f_delete_mark` int COMMENT '删除标志',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE ext_employee COMMENT = '职员信息';
-- ----------------------------
-- 表名：ext_order
-- ----------------------------
CREATE TABLE ext_order (
	`f_id` varchar(50) NOT NULL COMMENT '自然主键',
	`f_customer_id` varchar(50) COMMENT '客户Id',
	`f_customer_name` varchar(50) COMMENT '客户名称',
	`f_salesman_id` varchar(50) COMMENT '业务员Id',
	`f_salesman_name` varchar(50) COMMENT '业务员',
	`f_order_date` datetime COMMENT '订单日期',
	`f_order_code` varchar(50) COMMENT '订单编号',
	`f_transport_mode` varchar(50) COMMENT '运输方式',
	`f_delivery_date` datetime COMMENT '发货日期',
	`f_delivery_address` longtext COMMENT '发货地址',
	`f_payment_mode` varchar(50) COMMENT '付款方式',
	`f_receivable_money` decimal(18,2) COMMENT '应收金额',
	`f_earnest_rate` decimal(18,2) COMMENT '定金比率',
	`f_prepay_earnest` decimal(18,2) COMMENT '预付定金',
	`f_current_state` int COMMENT '当前状态',
	`f_file_json` longtext COMMENT '附件信息',
	`f_flow_id` varchar(50) COMMENT '引擎id',
	`f_description` varchar(500) COMMENT '描述或说明',
	`f_enabled_mark` int COMMENT '有效标志(0-禁用，1-启用)',
	`f_sort_code` bigint COMMENT '排序',
	`f_creator_time` datetime COMMENT '创建时间',
	`f_creator_user_id` varchar(50) COMMENT '创建用户',
	`f_last_modify_time` datetime COMMENT '修改时间',
	`f_last_modify_user_id` varchar(50) COMMENT '修改用户',
	`f_delete_time` datetime COMMENT '删除时间',
	`f_delete_user_id` varchar(50) COMMENT '删除用户',
	`f_delete_mark` int COMMENT '删除标志',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE ext_order COMMENT = '订单信息';
-- ----------------------------
-- 表名：ext_order_2
-- ----------------------------
CREATE TABLE ext_order_2 (
	`f_id` varchar(50) NOT NULL COMMENT '自然主键',
	`f_customer_id` varchar(50) COMMENT '客户Id',
	`f_customer_name` varchar(50) COMMENT '客户名称',
	`f_salesman_id` varchar(50) COMMENT '业务员Id',
	`f_salesman_name` varchar(50) COMMENT '业务员',
	`f_order_date` datetime COMMENT '订单日期',
	`f_order_code` varchar(50) COMMENT '订单编号',
	`f_transport_mode` varchar(50) COMMENT '运输方式',
	`f_delivery_date` datetime COMMENT '发货日期',
	`f_delivery_address` longtext COMMENT '发货地址',
	`f_payment_mode` varchar(50) COMMENT '付款方式',
	`f_receivable_money` decimal(18,2) COMMENT '应收金额',
	`f_earnest_rate` decimal(18,2) COMMENT '定金比率',
	`f_prepay_earnest` decimal(18,2) COMMENT '预付定金',
	`f_current_state` int COMMENT '当前状态',
	`f_file_json` longtext COMMENT '附件信息',
	`f_flow_id` varchar(50) COMMENT '引擎id',
	`f_description` varchar(500) COMMENT '描述或说明',
	`f_enabled_mark` int COMMENT '有效标志(0-禁用，1-启用)',
	`f_sort_code` bigint COMMENT '排序',
	`f_creator_time` datetime COMMENT '创建时间',
	`f_creator_user_id` varchar(50) COMMENT '创建用户',
	`f_last_modify_time` datetime COMMENT '修改时间',
	`f_last_modify_user_id` varchar(50) COMMENT '修改用户',
	`f_delete_time` datetime COMMENT '删除时间',
	`f_delete_user_id` varchar(50) COMMENT '删除用户',
	`f_delete_mark` int COMMENT '删除标志',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id',
	`f_flow_task_id` varchar(50) COMMENT '流程任务主键',
	`f_inte_assistant` int COMMENT '集成助手数据标识'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE ext_order_2 COMMENT = '订单信息-在线';
-- ----------------------------
-- 表名：ext_order_entry
-- ----------------------------
CREATE TABLE ext_order_entry (
	`f_id` varchar(50) NOT NULL COMMENT '自然主键',
	`f_order_id` varchar(50) COMMENT '订单主键',
	`f_goods_id` varchar(50) COMMENT '商品Id',
	`f_goods_code` varchar(50) COMMENT '商品编码',
	`f_goods_name` varchar(50) COMMENT '商品名称',
	`f_specifications` varchar(50) COMMENT '规格型号',
	`f_unit` varchar(50) COMMENT '单位',
	`f_qty` decimal(18,2) COMMENT '数量',
	`f_price` decimal(18,2) COMMENT '单价',
	`f_amount` decimal(18,2) COMMENT '金额',
	`f_discount` decimal(18,2) COMMENT '折扣%',
	`f_cess` decimal(18,2) COMMENT '税率%',
	`f_actual_price` decimal(18,2) COMMENT '实际单价',
	`f_actual_amount` decimal(18,2) COMMENT '实际金额',
	`f_description` varchar(500) COMMENT '描述或说明',
	`f_sort_code` bigint COMMENT '排序',
	`f_creator_time` datetime COMMENT '创建时间',
	`f_creator_user_id` varchar(50) COMMENT '创建用户',
	`f_last_modify_time` datetime COMMENT '修改时间',
	`f_last_modify_user_id` varchar(50) COMMENT '修改用户',
	`f_delete_time` datetime COMMENT '删除时间',
	`f_delete_user_id` varchar(50) COMMENT '删除用户',
	`f_delete_mark` int COMMENT '删除标志',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE ext_order_entry COMMENT = '订单明细';
-- ----------------------------
-- 表名：ext_order_entry_2
-- ----------------------------
CREATE TABLE ext_order_entry_2 (
	`f_id` varchar(50) NOT NULL COMMENT '自然主键',
	`f_order_id` varchar(50) COMMENT '订单主键',
	`f_goods_id` varchar(50) COMMENT '商品Id',
	`f_goods_code` varchar(50) COMMENT '商品编码',
	`f_goods_name` varchar(50) COMMENT '商品名称',
	`f_specifications` varchar(50) COMMENT '规格型号',
	`f_unit` varchar(50) COMMENT '单位',
	`f_qty` decimal(18,2) COMMENT '数量',
	`f_price` decimal(18,2) COMMENT '单价',
	`f_amount` decimal(18,2) COMMENT '金额',
	`f_discount` decimal(18,2) COMMENT '折扣%',
	`f_cess` decimal(18,2) COMMENT '税率%',
	`f_actual_price` decimal(18,2) COMMENT '实际单价',
	`f_actual_amount` decimal(18,2) COMMENT '实际金额',
	`f_description` varchar(500) COMMENT '描述或说明',
	`f_sort_code` bigint COMMENT '排序',
	`f_creator_time` datetime COMMENT '创建时间',
	`f_creator_user_id` varchar(50) COMMENT '创建用户',
	`f_last_modify_time` datetime COMMENT '修改时间',
	`f_last_modify_user_id` varchar(50) COMMENT '修改用户',
	`f_delete_time` datetime COMMENT '删除时间',
	`f_delete_user_id` varchar(50) COMMENT '删除用户',
	`f_delete_mark` int COMMENT '删除标志',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE ext_order_entry_2 COMMENT = '订单明细-在线';
-- ----------------------------
-- 表名：ext_order_receivable
-- ----------------------------
CREATE TABLE ext_order_receivable (
	`f_id` varchar(50) NOT NULL COMMENT '自然主键',
	`f_order_id` varchar(50) COMMENT '订单主键',
	`f_abstract` varchar(500) COMMENT '收款摘要',
	`f_receivable_date` datetime COMMENT '收款日期',
	`f_receivable_rate` decimal(18,2) COMMENT '收款比率',
	`f_receivable_money` decimal(18,2) COMMENT '收款金额',
	`f_receivable_mode` varchar(50) COMMENT '收款方式',
	`f_receivable_state` int COMMENT '收款状态',
	`f_description` varchar(500) COMMENT '描述或说明',
	`f_sort_code` bigint COMMENT '排序',
	`f_creator_time` datetime COMMENT '创建时间',
	`f_creator_user_id` varchar(50) COMMENT '创建用户',
	`f_last_modify_time` datetime COMMENT '修改时间',
	`f_last_modify_user_id` varchar(50) COMMENT '修改用户',
	`f_delete_time` datetime COMMENT '删除时间',
	`f_delete_user_id` varchar(50) COMMENT '删除用户',
	`f_delete_mark` int COMMENT '删除标志',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE ext_order_receivable COMMENT = '订单收款';
-- ----------------------------
-- 表名：ext_order_receivable_2
-- ----------------------------
CREATE TABLE ext_order_receivable_2 (
	`f_id` varchar(50) NOT NULL COMMENT '自然主键',
	`f_order_id` varchar(50) COMMENT '订单主键',
	`f_abstract` varchar(500) COMMENT '收款摘要',
	`f_receivable_date` datetime COMMENT '收款日期',
	`f_receivable_rate` decimal(18,2) COMMENT '收款比率',
	`f_receivable_money` decimal(18,2) COMMENT '收款金额',
	`f_receivable_mode` varchar(50) COMMENT '收款方式',
	`f_receivable_state` int COMMENT '收款状态',
	`f_description` varchar(500) COMMENT '描述或说明',
	`f_sort_code` bigint COMMENT '排序',
	`f_creator_time` datetime COMMENT '创建时间',
	`f_creator_user_id` varchar(50) COMMENT '创建用户',
	`f_last_modify_time` datetime COMMENT '修改时间',
	`f_last_modify_user_id` varchar(50) COMMENT '修改用户',
	`f_delete_time` datetime COMMENT '删除时间',
	`f_delete_user_id` varchar(50) COMMENT '删除用户',
	`f_delete_mark` int COMMENT '删除标志',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE ext_order_receivable_2 COMMENT = '订单收款-在线';
-- ----------------------------
-- 表名：ext_product
-- ----------------------------
CREATE TABLE ext_product (
	`f_id` varchar(50) NOT NULL COMMENT '',
	`f_en_code` varchar(50) COMMENT '订单编号',
	`f_type` varchar(50) COMMENT '客户类别',
	`f_customer_id` varchar(50) COMMENT '客户id',
	`f_customer_name` varchar(50) COMMENT '客户名称',
	`f_salesman_id` varchar(50) COMMENT '制单人id',
	`f_salesman_name` varchar(50) COMMENT '制单人名称',
	`f_salesman_date` datetime COMMENT '制单日期',
	`f_audit_name` varchar(50) COMMENT '审核人',
	`f_audit_date` datetime COMMENT '审核日期',
	`f_audit_state` int COMMENT '审核状态',
	`f_goods_warehouse` varchar(50) COMMENT '发货仓库',
	`f_goods_date` datetime COMMENT '发货通知时间',
	`f_consignor` varchar(50) COMMENT '发货通知人',
	`f_goods_state` int COMMENT '发货通知',
	`f_close_state` int COMMENT '关闭状态',
	`f_close_date` datetime COMMENT '关闭日期',
	`f_gathering_type` varchar(50) COMMENT '收款方式',
	`f_business` varchar(50) COMMENT '业务员',
	`f_address` varchar(50) COMMENT '送货地址',
	`f_contact_tel` varchar(50) COMMENT '联系方式',
	`f_contact_name` varchar(50) COMMENT '联系人',
	`f_harvest_msg` int COMMENT '收货消息',
	`f_harvest_warehouse` varchar(50) COMMENT '收货仓库',
	`f_issuing_name` varchar(50) COMMENT '代发客户',
	`f_part_price` decimal(18,2) COMMENT '让利金额',
	`f_reduced_price` decimal(18,2) COMMENT '优惠金额',
	`f_discount_price` decimal(18,2) COMMENT '折后金额',
	`f_description` varchar(500) COMMENT '描述或说明',
	`f_sort_code` bigint COMMENT '排序',
	`f_creator_time` datetime COMMENT '创建时间',
	`f_creator_user_id` varchar(50) COMMENT '创建用户',
	`f_last_modify_time` datetime COMMENT '修改时间',
	`f_last_modify_user_id` varchar(50) COMMENT '修改用户',
	`f_delete_time` datetime COMMENT '删除时间',
	`f_delete_user_id` varchar(50) COMMENT '删除用户',
	`f_delete_mark` int COMMENT '删除标志',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE ext_product COMMENT = '销售订单';
-- ----------------------------
-- 表名：ext_product_classify
-- ----------------------------
CREATE TABLE ext_product_classify (
	`f_id` varchar(50) NOT NULL COMMENT '主键',
	`f_parent_id` varchar(50) COMMENT '上级',
	`f_full_name` varchar(50) COMMENT '名称',
	`f_sort_code` bigint COMMENT '排序',
	`f_creator_time` datetime COMMENT '创建时间',
	`f_creator_user_id` varchar(50) COMMENT '创建用户',
	`f_last_modify_time` datetime COMMENT '修改时间',
	`f_last_modify_user_id` varchar(50) COMMENT '修改用户',
	`f_delete_time` datetime COMMENT '删除时间',
	`f_delete_user_id` varchar(50) COMMENT '删除用户',
	`f_delete_mark` int COMMENT '删除标志',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE ext_product_classify COMMENT = '产品分类';
-- ----------------------------
-- 表名：ext_product_entry
-- ----------------------------
CREATE TABLE ext_product_entry (
	`f_id` varchar(50) NOT NULL COMMENT '主键',
	`f_product_id` varchar(50) COMMENT '订单主键',
	`f_product_code` varchar(50) COMMENT '产品编号',
	`f_product_name` varchar(50) COMMENT '产品名称',
	`f_product_specification` varchar(50) COMMENT '产品规格',
	`f_qty` int COMMENT '数量',
	`f_command_type` varchar(50) COMMENT '控制方式',
	`f_type` varchar(50) COMMENT '订货类型',
	`f_money` decimal(18,2) COMMENT '单价',
	`f_util` varchar(50) COMMENT '单位',
	`f_price` decimal(18,2) COMMENT '折后单价',
	`f_amount` decimal(18,2) COMMENT '金额',
	`f_activity` varchar(50) COMMENT '活动',
	`f_description` varchar(500) COMMENT '描述或说明',
	`f_sort_code` bigint COMMENT '排序',
	`f_creator_time` datetime COMMENT '创建时间',
	`f_creator_user_id` varchar(50) COMMENT '创建用户',
	`f_last_modify_time` datetime COMMENT '修改时间',
	`f_last_modify_user_id` varchar(50) COMMENT '修改用户',
	`f_delete_time` datetime COMMENT '删除时间',
	`f_delete_user_id` varchar(50) COMMENT '删除用户',
	`f_delete_mark` int COMMENT '删除标志',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE ext_product_entry COMMENT = '产品明细';
-- ----------------------------
-- 表名：ext_product_goods
-- ----------------------------
CREATE TABLE ext_product_goods (
	`f_id` varchar(50) NOT NULL COMMENT '主键',
	`f_classify_id` varchar(50) COMMENT '分类主键',
	`f_en_code` varchar(50) COMMENT '产品编号',
	`f_full_name` varchar(50) COMMENT '产品名称',
	`f_type` varchar(50) COMMENT '产品分类',
	`f_amount` decimal(18,2) COMMENT '金额',
	`f_money` decimal(18,2) COMMENT '单价',
	`f_product_specification` varchar(50) COMMENT '产品规格',
	`f_qty` int COMMENT '库存数',
	`f_sort_code` bigint COMMENT '排序',
	`f_creator_time` datetime COMMENT '创建时间',
	`f_creator_user_id` varchar(50) COMMENT '创建用户',
	`f_last_modify_time` datetime COMMENT '修改时间',
	`f_last_modify_user_id` varchar(50) COMMENT '修改用户',
	`f_delete_time` datetime COMMENT '删除时间',
	`f_delete_user_id` varchar(50) COMMENT '删除用户',
	`f_delete_mark` int COMMENT '删除标志',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE ext_product_goods COMMENT = '产品商品';
-- ----------------------------
-- 表名：ext_project_gantt
-- ----------------------------
CREATE TABLE ext_project_gantt (
	`f_id` varchar(50) NOT NULL COMMENT '自然主键',
	`f_parent_id` varchar(50) COMMENT '项目上级',
	`f_project_id` varchar(50) COMMENT '项目主键',
	`f_type` int COMMENT '项目类型',
	`f_en_code` varchar(50) COMMENT '项目编号',
	`f_full_name` varchar(50) COMMENT '项目名称',
	`f_time_limit` decimal(18,0) COMMENT '项目工期',
	`f_sign` varchar(50) COMMENT '项目标记',
	`f_sign_color` varchar(50) COMMENT '标记颜色',
	`f_start_time` datetime COMMENT '开始时间',
	`f_end_time` datetime COMMENT '结束时间',
	`f_schedule` int COMMENT '当前进度',
	`f_manager_ids` longtext COMMENT '负责人',
	`f_description` varchar(500) COMMENT '描述或说明',
	`f_enabled_mark` int COMMENT '有效标志(0-禁用，1-启用)',
	`f_sort_code` bigint COMMENT '排序',
	`f_creator_time` datetime COMMENT '创建时间',
	`f_creator_user_id` varchar(50) COMMENT '创建用户',
	`f_last_modify_time` datetime COMMENT '修改时间',
	`f_last_modify_user_id` varchar(50) COMMENT '修改用户',
	`f_delete_time` datetime COMMENT '删除时间',
	`f_delete_user_id` varchar(50) COMMENT '删除用户',
	`f_delete_mark` int COMMENT '删除标志',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE ext_project_gantt COMMENT = '项目计划';
-- ----------------------------
-- 表名：ext_table_example
-- ----------------------------
CREATE TABLE ext_table_example (
	`f_id` varchar(50) NOT NULL COMMENT '自然主键',
	`f_interaction_date` datetime COMMENT '交互日期',
	`f_project_code` varchar(50) COMMENT '项目编码',
	`f_project_name` varchar(50) COMMENT '项目名称',
	`f_principal` varchar(50) COMMENT '负责人',
	`f_jack_stands` varchar(50) COMMENT '立顶人',
	`f_project_type` varchar(50) COMMENT '项目类型',
	`f_project_phase` varchar(200) COMMENT '项目阶段',
	`f_customer_name` varchar(50) COMMENT '客户名称',
	`f_cost_amount` decimal(18,2) COMMENT '费用金额',
	`f_tunes_amount` decimal(18,2) COMMENT '已用金额',
	`f_projected_income` decimal(18,2) COMMENT '预计收入',
	`f_registrant` varchar(50) COMMENT '登记人',
	`f_register_date` datetime COMMENT '登记时间',
	`f_sign` longtext COMMENT '标记',
	`f_postil_json` longtext COMMENT '批注列表Json',
	`f_postil_count` int COMMENT '批注总数',
	`f_description` varchar(500) COMMENT '描述或说明',
	`f_enabled_mark` int COMMENT '有效标志(0-禁用，1-启用)',
	`f_sort_code` bigint COMMENT '排序',
	`f_creator_time` datetime COMMENT '创建时间',
	`f_creator_user_id` varchar(50) COMMENT '创建用户',
	`f_last_modify_time` datetime COMMENT '修改时间',
	`f_last_modify_user_id` varchar(50) COMMENT '修改用户',
	`f_delete_time` datetime COMMENT '删除时间',
	`f_delete_user_id` varchar(50) COMMENT '删除用户',
	`f_delete_mark` int COMMENT '删除标志',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE ext_table_example COMMENT = '表格示例数据';
-- ----------------------------
-- 表名：ext_work_log
-- ----------------------------
CREATE TABLE ext_work_log (
	`f_id` varchar(50) NOT NULL COMMENT '',
	`f_title` varchar(50) COMMENT '日志标题',
	`f_today_content` varchar(2000) COMMENT '今天内容',
	`f_tomorrow_content` varchar(2000) COMMENT '明天内容',
	`f_question` varchar(2000) COMMENT '遇到问题',
	`f_to_user_id` longtext COMMENT '发送给谁',
	`f_description` varchar(500) COMMENT '描述',
	`f_sort_code` bigint COMMENT '排序',
	`f_enabled_mark` int COMMENT '有效标志',
	`f_creator_time` datetime COMMENT '创建时间',
	`f_creator_user_id` varchar(50) COMMENT '创建用户',
	`f_last_modify_time` datetime COMMENT '修改时间',
	`f_last_modify_user_id` varchar(50) COMMENT '修改用户',
	`f_delete_mark` int COMMENT '删除标志',
	`f_delete_time` datetime COMMENT '删除时间',
	`f_delete_user_id` varchar(50) COMMENT '删除用户',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE ext_work_log COMMENT = '工作日志';
-- ----------------------------
-- 表名：ext_work_log_share
-- ----------------------------
CREATE TABLE ext_work_log_share (
	`f_id` varchar(50) NOT NULL COMMENT '自然主键',
	`f_work_log_id` varchar(50) COMMENT '日志主键',
	`f_share_user_id` varchar(50) COMMENT '共享人员',
	`f_share_time` datetime COMMENT '共享时间',
	`f_sort_code` bigint COMMENT '排序',
	`f_creator_time` datetime COMMENT '创建时间',
	`f_creator_user_id` varchar(50) COMMENT '创建用户',
	`f_last_modify_time` datetime COMMENT '修改时间',
	`f_last_modify_user_id` varchar(50) COMMENT '修改用户',
	`f_delete_time` datetime COMMENT '删除时间',
	`f_delete_user_id` varchar(50) COMMENT '删除用户',
	`f_delete_mark` int COMMENT '删除标志',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE ext_work_log_share COMMENT = '工作日志分享';
-- ----------------------------
-- 表名：mt293714178051447621
-- ----------------------------
CREATE TABLE mt293714178051447621 (
	`comInputField115` varchar(255) COMMENT '编号',
	`comInputField103` varchar(255) COMMENT '姓名',
	`dateField102` datetime COMMENT '报名时间',
	`selectField111` varchar(255) COMMENT '性别',
	`comInputField110` varchar(255) COMMENT '年纪',
	`comInputField104` varchar(255) COMMENT '联系电话',
	`comInputField112` varchar(255) COMMENT '籍贯',
	`comInputField113` varchar(255) COMMENT '家庭地址',
	`numInputField116` decimal(10,0) COMMENT '报名费用',
	`f_id` varchar(50) NOT NULL COMMENT '主键',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id',
	`f_flow_id` varchar(50) COMMENT '流程id',
	`f_flow_task_id` varchar(50) COMMENT '流程任务主键',
	`f_inte_assistant` int COMMENT '集成助手数据标识'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE mt293714178051447621 COMMENT = '主表';
-- ----------------------------
-- 表名：mt293732572561709893
-- ----------------------------
CREATE TABLE mt293732572561709893 (
	`billRuleField119` varchar(255) COMMENT '编号',
	`comInputField102` varchar(255) COMMENT '购药人',
	`comInputField103` varchar(255) COMMENT '药品名称',
	`comInputField104` varchar(255) COMMENT '身份证号',
	`comInputField105` varchar(255) COMMENT '现住址',
	`comInputField106` varchar(255) COMMENT '所属街道社区',
	`comInputField107` varchar(255) COMMENT '电话',
	`radioField108` varchar(255) COMMENT '是否有重点地区旅居史',
	`radioField109` varchar(255) COMMENT '症状描述（是否发热、咳嗽）',
	`comInputField110` varchar(255) COMMENT '工作单位',
	`comInputField111` varchar(255) COMMENT '症状',
	`comInputField112` varchar(255) COMMENT '营业员',
	`comInputField113` varchar(255) COMMENT '联系人电话',
	`dateField114` datetime COMMENT '销售时间',
	`comInputField115` varchar(255) COMMENT '药房名称',
	`comInputField116` varchar(255) COMMENT '许可证',
	`f_id` varchar(50) NOT NULL COMMENT '主键',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id',
	`f_flow_id` varchar(50) COMMENT '流程id',
	`f_flow_task_id` varchar(50) COMMENT '流程任务主键',
	`f_inte_assistant` int COMMENT '集成助手数据标识'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE mt293732572561709893 COMMENT = '主表';
-- ----------------------------
-- 表名：mt293737725377420101
-- ----------------------------
CREATE TABLE mt293737725377420101 (
	`billRuleField110` varchar(255) COMMENT '编号',
	`comInputField101` varchar(255) COMMENT '姓名',
	`comInputField102` varchar(255) COMMENT '身份证号/护照',
	`uploadFzField109` text COMMENT '身份证',
	`dateField105` datetime COMMENT '核酸检测时间',
	`comInputField106` varchar(255) COMMENT '联系方式（手机或座机）',
	`comInputField107` varchar(255) COMMENT '家庭住址',
	`selectField108` varchar(255) COMMENT '所在社区',
	`f_id` varchar(50) NOT NULL COMMENT '主键',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id',
	`f_flow_id` varchar(50) COMMENT '流程id',
	`f_flow_task_id` varchar(50) COMMENT '流程任务主键',
	`f_inte_assistant` int COMMENT '集成助手数据标识'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE mt293737725377420101 COMMENT = '主表';
-- ----------------------------
-- 表名：mt293740367726025541
-- ----------------------------
CREATE TABLE mt293740367726025541 (
	`billRuleField101` varchar(255) COMMENT '产品编码',
	`selectField102` varchar(255) COMMENT '产品分类',
	`comInputField116` varchar(255) COMMENT '产品名称',
	`selectField115` varchar(255) COMMENT '产品型号',
	`numInputField105` decimal(10,0) COMMENT '采购单价',
	`numInputField106` decimal(10,0) COMMENT '销售单价',
	`uploadImgField107` text COMMENT '产品图片',
	`textareaField108` varchar(255) COMMENT '产品描述',
	`createUserField110` varchar(255) COMMENT '提交人',
	`createTimeField111` datetime COMMENT '创建时间',
	`modifyTimeField113` datetime COMMENT '修改时间',
	`f_id` varchar(50) NOT NULL COMMENT '主键',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id',
	`f_flow_id` varchar(50) COMMENT '流程id',
	`f_flow_task_id` varchar(50) COMMENT '流程任务主键',
	`f_inte_assistant` int COMMENT '集成助手数据标识'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE mt293740367726025541 COMMENT = '主表';
-- ----------------------------
-- 表名：mt293756710756064069
-- ----------------------------
CREATE TABLE mt293756710756064069 (
	`billRuleField102` varchar(255) COMMENT '编号',
	`userSelectField103` varchar(255) COMMENT '申请人',
	`dateField108` datetime COMMENT '申请时间',
	`dateField104` datetime COMMENT '用车时间',
	`dateField105` datetime COMMENT '归还时间',
	`textareaField107` varchar(255) COMMENT '申请备注',
	`f_id` varchar(50) NOT NULL COMMENT '主键',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id',
	`f_flow_id` varchar(50) COMMENT '流程id',
	`f_flow_task_id` varchar(50) COMMENT '流程任务主键',
	`f_inte_assistant` int COMMENT '集成助手数据标识'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE mt293756710756064069 COMMENT = '主表';
-- ----------------------------
-- 表名：mt294012196562705413
-- ----------------------------
CREATE TABLE mt294012196562705413 (
	`comInputField102` varchar(255) COMMENT '姓名',
	`radioField103` varchar(255) COMMENT '性别',
	`numInputField113` decimal(10,0) COMMENT '年纪',
	`comInputField104` varchar(255) COMMENT '联系电话',
	`comInputField105` varchar(255) COMMENT '邮箱',
	`uploadFzField106` text COMMENT '简历附件',
	`textareaField115` varchar(255) COMMENT '家庭地址',
	`comInputField107` varchar(255) COMMENT '身份证号',
	`comInputField108` varchar(255) COMMENT '出生日期',
	`comInputField109` varchar(255) COMMENT '毕业院校',
	`comInputField110` varchar(255) COMMENT '专业名称',
	`selectField112` varchar(255) COMMENT '最高学历',
	`f_id` varchar(50) NOT NULL COMMENT '主键',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id',
	`f_flow_id` varchar(50) COMMENT '流程id',
	`f_inte_assistant` int COMMENT '集成助手数据标识',
	`f_flow_task_id` varchar(50) COMMENT '流程任务主键'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE mt294012196562705413 COMMENT = '主表';
-- ----------------------------
-- 表名：mt294022926196317189
-- ----------------------------
CREATE TABLE mt294022926196317189 (
	`comInputField101` varchar(255) COMMENT '姓名',
	`radioField102` varchar(255) COMMENT '性别',
	`selectField103` varchar(255) COMMENT '送诊',
	`comInputField104` varchar(255) COMMENT '送诊地址',
	`selectField105` varchar(255) COMMENT '发热',
	`selectField106` varchar(255) COMMENT '证件类型',
	`comInputField107` varchar(255) COMMENT '证件号',
	`comInputField108` varchar(255) COMMENT '联系方式',
	`comInputField109` varchar(255) COMMENT '人员状态',
	`textareaField110` varchar(255) COMMENT '人员状态备注',
	`addressField111` text COMMENT '区县',
	`comInputField153` varchar(255) COMMENT '街道',
	`comInputField114` varchar(255) COMMENT '社区',
	`comInputField117` varchar(255) COMMENT '具体地址',
	`selectField119` varchar(255) COMMENT '管控状态',
	`selectField120` varchar(255) COMMENT '管控隔离类型',
	`selectField121` varchar(255) COMMENT '人员类型（一级）',
	`selectField122` varchar(255) COMMENT '人员类型（二级）',
	`comInputField123` varchar(255) COMMENT '密接相关人',
	`dateField125` datetime COMMENT '返回时间',
	`selectField126` varchar(255) COMMENT '交通方式',
	`textareaField127` varchar(255) COMMENT '返回后活动路径',
	`comInputField128` varchar(255) COMMENT '返回经过地',
	`comInputField129` varchar(255) COMMENT '同行人员',
	`comInputField130` varchar(255) COMMENT '接触人员',
	`dateField131` datetime COMMENT '填写时间',
	`comInputField132` varchar(255) COMMENT '机构名称',
	`comInputField133` varchar(255) COMMENT '机构编号',
	`selectField134` varchar(255) COMMENT '社区/农村',
	`dateField135` datetime COMMENT '离开日期',
	`addressField138` text COMMENT '返回前前出发地',
	`comInputField139` varchar(255) COMMENT '核酸检测',
	`comInputField140` varchar(255) COMMENT '第一次检测结果',
	`comInputField141` varchar(255) COMMENT '第二次检测结果',
	`selectField142` varchar(255) COMMENT '是否才去信息化管控',
	`dateField143` datetime COMMENT '本次管控日期',
	`f_id` varchar(50) NOT NULL COMMENT '主键',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id',
	`f_flow_id` varchar(50) COMMENT '流程id',
	`f_inte_assistant` int COMMENT '集成助手数据标识',
	`f_flow_task_id` varchar(50) COMMENT '流程任务主键'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE mt294022926196317189 COMMENT = '主表';
-- ----------------------------
-- 表名：mt294027801932110853
-- ----------------------------
CREATE TABLE mt294027801932110853 (
	`comInputField101` varchar(255) COMMENT '姓名',
	`comInputField102` varchar(255) COMMENT '工号',
	`currOrganizeField103` varchar(255) COMMENT '部门',
	`numInputField104` decimal(10,0) COMMENT '基本工资',
	`numInputField105` decimal(10,0) COMMENT '岗位工资',
	`numInputField106` decimal(10,0) COMMENT '补贴金额',
	`numInputField107` decimal(10,0) COMMENT '绩效/每月',
	`numInputField108` decimal(10,0) COMMENT '迟到早退扣款',
	`numInputField109` decimal(10,0) COMMENT '病假扣款',
	`numInputField110` decimal(10,0) COMMENT '事假扣款',
	`numInputField111` decimal(10,0) COMMENT '旷工扣款',
	`numInputField112` decimal(10,0) COMMENT '应发工资',
	`numInputField113` decimal(10,0) COMMENT '个人养老保险',
	`numInputField114` decimal(10,0) COMMENT '个人医疗保险',
	`numInputField115` decimal(10,0) COMMENT '个人事业险',
	`numInputField116` decimal(10,0) COMMENT '个人大病险',
	`numInputField117` decimal(10,0) COMMENT '个人公积金',
	`numInputField118` decimal(10,0) COMMENT '累计收入',
	`numInputField119` decimal(10,0) COMMENT '累计扣减个税',
	`numInputField120` decimal(10,0) COMMENT '累计应纳税所得额',
	`numInputField121` decimal(10,0) COMMENT '本期个税',
	`textareaField122` varchar(255) COMMENT '备注',
	`f_id` varchar(50) NOT NULL COMMENT '主键',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id',
	`f_flow_id` varchar(50) COMMENT '流程id',
	`f_inte_assistant` int COMMENT '集成助手数据标识',
	`f_flow_task_id` varchar(50) COMMENT '流程任务主键'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE mt294027801932110853 COMMENT = '主表';
-- ----------------------------
-- 表名：mt294031961024928773
-- ----------------------------
CREATE TABLE mt294031961024928773 (
	`selectField101` varchar(255) COMMENT '评估周期',
	`userSelectField102` varchar(255) COMMENT '评估人',
	`comInputField118` varchar(255) COMMENT '工号',
	`depSelectField105` varchar(255) COMMENT '部门',
	`f_id` varchar(50) NOT NULL COMMENT '主键',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id',
	`f_flow_id` varchar(50) COMMENT '流程id',
	`f_flow_task_id` varchar(50) COMMENT '流程任务主键',
	`f_inte_assistant` int COMMENT '集成助手数据标识'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE mt294031961024928773 COMMENT = '主表';
-- ----------------------------
-- 表名：mt294037561750363141
-- ----------------------------
CREATE TABLE mt294037561750363141 (
	`comInputField101` varchar(255) COMMENT '设备名称',
	`comInputField102` varchar(255) COMMENT '设备编号',
	`comInputField103` varchar(255) COMMENT '所在位置',
	`userSelectField104` varchar(255) COMMENT '责任人',
	`comInputField105` varchar(255) COMMENT '联系方式',
	`createUserField126` varchar(255) COMMENT '提交人',
	`createTimeField123` datetime COMMENT '创建时间',
	`modifyTimeField127` datetime COMMENT '修改时间',
	`uploadImgField106` text COMMENT '设备图片',
	`f_id` varchar(50) NOT NULL COMMENT '主键',
	`f_version` int COMMENT '乐观锁',
	`f_flowtaskid` varchar(50) COMMENT '流程任务主键',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id',
	`f_flow_id` varchar(50) COMMENT '流程id',
	`f_flow_task_id` varchar(50) COMMENT '流程任务主键',
	`f_inte_assistant` int COMMENT '集成助手数据标识'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE mt294037561750363141 COMMENT = '主表';
-- ----------------------------
-- 表名：mt294090217118276613
-- ----------------------------
CREATE TABLE mt294090217118276613 (
	`selectField102` varchar(255) COMMENT '上报部门',
	`selectField103` varchar(255) COMMENT '药剂科分部门',
	`dateField104` datetime COMMENT '上报时间',
	`dateField105` datetime COMMENT '差错时间',
	`comInputField106` varchar(255) COMMENT '病历/门诊号',
	`comInputField107` varchar(255) COMMENT '患者姓名',
	`selectField108` varchar(255) COMMENT '性别',
	`comInputField109` varchar(255) COMMENT '年龄',
	`comInputField110` varchar(255) COMMENT '诊断',
	`comInputField111` varchar(255) COMMENT '发现人员',
	`comInputField112` varchar(255) COMMENT '差错人员',
	`dateField129` datetime COMMENT '发生日期',
	`comInputField113` varchar(255) COMMENT '药品名称',
	`userSelectField125` varchar(255) COMMENT '当前处理人',
	`selectField124` varchar(255) COMMENT '流程状态',
	`textareaField114` varchar(255) COMMENT '差错详情',
	`textareaField115` varchar(255) COMMENT '建议改进措施',
	`textareaField126` varchar(255) COMMENT '处理结果',
	`comInputField130` varchar(255) COMMENT '来文号',
	`dateField131` datetime COMMENT '来文日期',
	`selectField127` varchar(255) COMMENT '环节',
	`selectField128` varchar(255) COMMENT '原因',
	`selectField121` varchar(255) COMMENT '事件等级',
	`selectField122` varchar(255) COMMENT '事件级别',
	`uploadFzField123` text COMMENT '附件',
	`f_id` varchar(50) NOT NULL COMMENT '主键',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id',
	`f_flowid` varchar(50) COMMENT '流程id',
	`f_flow_task_id` varchar(50) COMMENT '流程任务主键',
	`f_flow_id` varchar(50) COMMENT '流程id',
	`f_inte_assistant` int COMMENT '集成助手数据标识'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE mt294090217118276613 COMMENT = '主表';
-- ----------------------------
-- 表名：mt294099237023526085
-- ----------------------------
CREATE TABLE mt294099237023526085 (
	`userSelectField101` varchar(255) COMMENT '用户选择',
	`f_id` varchar(50) NOT NULL COMMENT '主键',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE mt294099237023526085 COMMENT = '主表';
-- ----------------------------
-- 表名：mt294099893327272965
-- ----------------------------
CREATE TABLE mt294099893327272965 (
	`userSelectField102` varchar(255) COMMENT '出差申请人',
	`currOrganizeField103` varchar(255) COMMENT '所属部门',
	`dateField104` datetime COMMENT '申请日期',
	`dateField105` datetime COMMENT '出差日期',
	`dateField106` datetime COMMENT '归来日期',
	`createUserField112` varchar(255) COMMENT '申请人',
	`createTimeField113` datetime COMMENT '申请时间',
	`f_id` varchar(50) NOT NULL COMMENT '主键',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id',
	`f_flowid` varchar(50) COMMENT '流程id',
	`f_flow_task_id` varchar(50) COMMENT '流程任务主键',
	`f_flow_id` varchar(50) COMMENT '流程id',
	`f_inte_assistant` int COMMENT '集成助手数据标识'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE mt294099893327272965 COMMENT = '主表';
-- ----------------------------
-- 表名：mt294104577349819397
-- ----------------------------
CREATE TABLE mt294104577349819397 (
	`depSelectField102` varchar(255) COMMENT '部门',
	`dateField103` datetime COMMENT '当前时间',
	`dateField104` datetime COMMENT '预算年份',
	`dateField105` datetime COMMENT '预算月份',
	`numInputField107` decimal(10,0) COMMENT '预算金额',
	`comInputField108` varchar(255) COMMENT '金额大写',
	`textareaField109` varchar(255) COMMENT '备注',
	`createUserField110` varchar(255) COMMENT '申请人',
	`createTimeField111` datetime COMMENT '申请时间',
	`f_id` varchar(50) NOT NULL COMMENT '主键',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE mt294104577349819397 COMMENT = '主表';
-- ----------------------------
-- 表名：mt294376098702073541
-- ----------------------------
CREATE TABLE mt294376098702073541 (
	`billRuleField101` varchar(255) COMMENT '内部订单号',
	`comInputField102` varchar(255) COMMENT '客户名称',
	`comInputField103` varchar(255) COMMENT '联系电话',
	`textareaField104` varchar(255) COMMENT '详细地址',
	`f_id` varchar(50) NOT NULL COMMENT '主键',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id',
	`f_flow_id` varchar(50) COMMENT '流程id',
	`f_flow_task_id` varchar(50) COMMENT '流程任务主键',
	`f_inte_assistant` int COMMENT '集成助手数据标识'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE mt294376098702073541 COMMENT = '主表';
-- ----------------------------
-- 表名：mt294382866144468677
-- ----------------------------
CREATE TABLE mt294382866144468677 (
	`billRuleField102` varchar(255) COMMENT '订单号',
	`comInputField104` varchar(255) COMMENT '供应商',
	`selectField105` varchar(255) COMMENT '仓库',
	`depSelectField106` varchar(255) COMMENT '采购部门',
	`comInputField108` varchar(255) COMMENT '部门代号',
	`userSelectField109` varchar(255) COMMENT '业务负责人',
	`uploadFzField119` text COMMENT '发票上传',
	`f_id` varchar(50) NOT NULL COMMENT '主键',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id',
	`f_flowid` varchar(50) COMMENT '流程id',
	`f_flow_id` varchar(50) COMMENT '流程id',
	`f_inte_assistant` int COMMENT '集成助手数据标识',
	`f_flow_task_id` varchar(50) COMMENT '流程任务主键'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE mt294382866144468677 COMMENT = '主表';
-- ----------------------------
-- 表名：mt382811547782648325
-- ----------------------------
CREATE TABLE mt382811547782648325 (
	`comInputField101` varchar(255) COMMENT '单行输入',
	`textareaField102` varchar(255) COMMENT '多行输入',
	`numInputField103` decimal(65,0) COMMENT '数字输入',
	`f_flowid` varchar(255) COMMENT '流程引擎id',
	`f_version` int COMMENT '乐观锁',
	`f_flowtaskid` varchar(255) COMMENT '流程任务主键',
	`f_id` varchar(50) NOT NULL COMMENT '主键',
	`f_flow_id` varchar(50) COMMENT '流程id',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id',
	`f_inte_assistant` int COMMENT '集成助手数据标识',
	`f_flow_task_id` varchar(50) COMMENT '流程任务主键'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE mt382811547782648325 COMMENT = '0111流程表单-主表';
-- ----------------------------
-- 表名：mt385453315686752389
-- ----------------------------
CREATE TABLE mt385453315686752389 (
	`depSelectField102` varchar(255) COMMENT '部门',
	`dateField103` datetime COMMENT '当前时间',
	`dateField104` datetime COMMENT '预算年份',
	`dateField105` datetime COMMENT '预算月份',
	`numInputField107` decimal(65,0) COMMENT '预算金额',
	`comInputField108` varchar(255) COMMENT '金额大写',
	`textareaField109` varchar(255) COMMENT '备注',
	`createUserField110` varchar(255) COMMENT '申请人',
	`createTimeField111` datetime COMMENT '申请时间',
	`f_flowid` varchar(50) COMMENT '流程id',
	`f_version` bigint COMMENT '乐观锁',
	`f_flowtaskid` varchar(50) COMMENT '流程任务主键',
	`f_id` varchar(50) NOT NULL COMMENT '主键',
	`f_flow_id` varchar(50) COMMENT '流程id',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id',
	`f_flow_task_id` varchar(50) COMMENT '流程任务Id',
	`f_inte_assistant` int COMMENT '集成助手数据标识'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE mt385453315686752389 COMMENT = '预算管理-主表';
-- ----------------------------
-- 表名：mt395179351563312389
-- ----------------------------
CREATE TABLE mt395179351563312389 (
	`pid` varchar(255) COMMENT '上级',
	`name` varchar(255) COMMENT '名称',
	`encode` varchar(255) COMMENT '编号',
	`f_flowid` varchar(50) COMMENT '流程id',
	`f_version` int COMMENT '乐观锁',
	`f_flowtaskid` varchar(50) COMMENT '流程任务主键',
	`f_id` varchar(50) NOT NULL COMMENT '主键',
	`f_flow_id` varchar(50) COMMENT '流程id',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id',
	`f_flow_task_id` varchar(50) COMMENT '流程任务主键',
	`f_inte_assistant` int COMMENT '集成助手数据标识'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE mt395179351563312389 COMMENT = '列表树形表格-主表';
-- ----------------------------
-- 表名：mt395899725691230469
-- ----------------------------
CREATE TABLE mt395899725691230469 (
	`comInputField102` varchar(255) COMMENT '设计表单名称显示',
	`comInputField103` varchar(255) COMMENT '控件类型中文名',
	`comInputField106` varchar(255) COMMENT 'css示例添加',
	`selectField121` varchar(255) COMMENT '添加多个快捷入口',
	`uploadFzField107` text COMMENT '支持自定义路径和分用户存储',
	`uploadFzField108` text COMMENT '支持文件类型多选',
	`comInputField118` varchar(255) COMMENT '打印模板多选',
	`comInputField117` varchar(255) COMMENT '数据条件过滤',
	`comInputField119` varchar(255) COMMENT '批量打印/下载',
	`comInputField120` varchar(255) COMMENT '自定义按钮调整',
	`comInputField122` varchar(255) COMMENT '保存并新增',
	`comInputField123` varchar(255) COMMENT '支持控件多选查询',
	`treeSelectField126` varchar(255) COMMENT '列表树形表格',
	`f_flowid` varchar(50) COMMENT '流程id',
	`f_version` int COMMENT '乐观锁',
	`f_flowtaskid` varchar(50) COMMENT '流程任务主键',
	`f_id` varchar(50) NOT NULL COMMENT '主键',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE mt395899725691230469 COMMENT = '3.4.6新增功能汇总示例-主表';
-- ----------------------------
-- 表名：mt395964134161651973
-- ----------------------------
CREATE TABLE mt395964134161651973 (
	`relationFormField101` varchar(255) COMMENT '产品名称',
	`popupSelectField104` varchar(255) COMMENT '人员名称',
	`f_flowid` varchar(50) COMMENT '流程id',
	`f_version` int COMMENT '乐观锁',
	`f_flowtaskid` varchar(50) COMMENT '流程任务主键',
	`f_id` varchar(50) NOT NULL COMMENT '主键',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE mt395964134161651973 COMMENT = '列表数据链接查看详情页-主表';
-- ----------------------------
-- 表名：mt400655094485373381
-- ----------------------------
CREATE TABLE mt400655094485373381 (
	`comInputField101` varchar(255) COMMENT '单行输入',
	`f_flowid` varchar(50) COMMENT '流程id',
	`f_version` int COMMENT '乐观锁',
	`f_flowtaskid` varchar(50) COMMENT '流程任务主键',
	`f_id` varchar(50) NOT NULL COMMENT '主键',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE mt400655094485373381 COMMENT = 'cccccc-主表';
-- ----------------------------
-- 表名：mt420589912199274117
-- ----------------------------
CREATE TABLE mt420589912199274117 (
	`selectField101` varchar(255) COMMENT '省',
	`selectField102` varchar(255) COMMENT '市',
	`selectField103` varchar(255) COMMENT '区',
	`f_flowid` varchar(50) COMMENT '流程id',
	`f_version` int COMMENT '乐观锁',
	`f_flowtaskid` varchar(50) COMMENT '流程任务主键',
	`f_id` varchar(50) NOT NULL COMMENT '主键',
	`f_flow_id` varchar(50) COMMENT '流程id',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id',
	`f_flow_task_id` varchar(50) COMMENT '流程任务主键',
	`f_inte_assistant` int COMMENT '集成助手数据标识'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE mt420589912199274117 COMMENT = '行政区划联动-主表';
-- ----------------------------
-- 表名：mt456990191458975685
-- ----------------------------
CREATE TABLE mt456990191458975685 (
	`F_Id` varchar(50) NOT NULL COMMENT '主键',
	`inputField101` varchar(500) COMMENT '单行输入',
	`textareaField102` varchar(500) COMMENT '多行输入',
	`inputNumberField103` varchar(500) COMMENT '数字输入',
	`switchField104` varchar(500) COMMENT '开关',
	`radioField105` varchar(500) COMMENT '单选框组',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id'

, PRIMARY KEY (F_Id,f_tenant_id)
) ;
ALTER TABLE mt456990191458975685 COMMENT = 'Test08041';
-- ----------------------------
-- 表名：mt469496947087047173
-- ----------------------------
CREATE TABLE mt469496947087047173 (
	`inputField101` varchar(255) COMMENT '客户名称',
	`inputNumberField102` decimal(38,15) COMMENT '金额',
	`datePickerField111` datetime COMMENT '日期',
	`selectField106` varchar(255) COMMENT '方式字典',
	`textareaField107` varchar(255) COMMENT '备注',
	`f_flow_id` varchar(50) COMMENT '流程id',
	`f_version` int COMMENT '乐观锁',
	`f_flow_task_id` varchar(50) COMMENT '流程任务主键',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id',
	`f_id` varchar(50) NOT NULL COMMENT '主键',
	`f_inte_assistant` int COMMENT '集成助手数据标识'

, PRIMARY KEY (f_tenant_id,f_id)
) ;
ALTER TABLE mt469496947087047173 COMMENT = '复杂表头示例-主表';
-- ----------------------------
-- 表名：mt469499339534825989
-- ----------------------------
CREATE TABLE mt469499339534825989 (
	`inputField112` varchar(255) COMMENT '姓名',
	`organizeSelectField105` varchar(255) COMMENT '组织选择',
	`depSelectField107` varchar(255) COMMENT '部门选择',
	`posSelectField108` varchar(255) COMMENT '岗位选择',
	`groupSelectField111` varchar(255) COMMENT '分组选择',
	`userSelectField109` varchar(255) COMMENT '用户选择',
	`usersSelectField110` varchar(255) COMMENT '用户组件',
	`f_flow_id` varchar(50) COMMENT '流程id',
	`f_version` int COMMENT '乐观锁',
	`f_flow_task_id` varchar(50) COMMENT '流程任务主键',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id',
	`f_id` varchar(50) NOT NULL COMMENT '主键',
	`f_inte_assistant` int COMMENT '集成助手数据标识'

, PRIMARY KEY (f_tenant_id,f_id)
) ;
ALTER TABLE mt469499339534825989 COMMENT = '高级控件和默认查询-主表';
-- ----------------------------
-- 表名：mt469502670336489989
-- ----------------------------
CREATE TABLE mt469502670336489989 (
	`inputField104` varchar(255) COMMENT '姓名',
	`radioField106` varchar(255) COMMENT '性别',
	`radioField101` varchar(255) COMMENT '单选框组',
	`checkboxField102` varchar(255) COMMENT '多选框组',
	`selectField103` varchar(255) COMMENT '下拉选择',
	`cascaderField107` varchar(255) COMMENT '级联选择',
	`treeSelectField108` varchar(255) COMMENT '树形',
	`popupTableSelectField109` varchar(255) COMMENT '下拉表格真分页',
	`autoCompleteField111` varchar(255) COMMENT '下拉补全',
	`popupSelectField110` varchar(255) COMMENT '弹窗选择',
	`f_flow_id` varchar(50) COMMENT '流程id',
	`f_version` int COMMENT '乐观锁',
	`f_flow_task_id` varchar(50) COMMENT '流程任务主键',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id',
	`f_id` varchar(50) NOT NULL COMMENT '主键',
	`f_inte_assistant` int COMMENT '集成助手数据标识'

, PRIMARY KEY (f_tenant_id,f_id)
) ;
ALTER TABLE mt469502670336489989 COMMENT = '数据接口字段示例-主表';
-- ----------------------------
-- 表名：mt470888132380721605
-- ----------------------------
CREATE TABLE mt470888132380721605 (
	`uploadImgField142` text COMMENT '图片上传',
	`uploadImgField143` text COMMENT '图片上传',
	`uploadImgField144` text COMMENT '图片上传',
	`uploadImgField145` text COMMENT '图片上传',
	`uploadImgField147` text COMMENT '图片上传',
	`uploadImgField146` text COMMENT '图片上传',
	`uploadImgField148` text COMMENT '图片上传',
	`uploadImgField178` text COMMENT '图片上传',
	`uploadImgField181` text COMMENT '图片上传',
	`uploadImgField149` text COMMENT '图片上传',
	`uploadImgField150` text COMMENT '图片上传',
	`uploadImgField151` text COMMENT '图片上传',
	`uploadImgField152` text COMMENT '图片上传',
	`uploadImgField153` text COMMENT '图片上传',
	`uploadImgField154` text COMMENT '图片上传',
	`uploadImgField155` text COMMENT '图片上传',
	`uploadImgField156` text COMMENT '图片上传',
	`uploadImgField158` text COMMENT '图片上传',
	`uploadImgField161` text COMMENT '图片上传',
	`uploadImgField162` text COMMENT '图片上传',
	`uploadImgField164` text COMMENT '图片上传',
	`uploadImgField165` text COMMENT '图片上传',
	`uploadImgField166` text COMMENT '图片上传',
	`uploadImgField167` text COMMENT '图片上传',
	`uploadImgField168` text COMMENT '图片上传',
	`uploadImgField169` text COMMENT '图片上传',
	`uploadImgField170` text COMMENT '图片上传',
	`uploadImgField171` text COMMENT '图片上传',
	`uploadImgField172` text COMMENT '图片上传',
	`uploadImgField173` text COMMENT '图片上传',
	`f_flow_id` varchar(50) COMMENT '流程id',
	`f_version` int COMMENT '乐观锁',
	`f_flow_task_id` varchar(50) COMMENT '流程任务主键',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id',
	`f_id` varchar(50) NOT NULL COMMENT '主键',
	`uploadImgField157` text COMMENT '图片上传',
	`uploadImgField11` varchar(50) COMMENT '文件上传',
	`uploadImgField12` text COMMENT '文件上传1'

, PRIMARY KEY (f_tenant_id,f_id)
) ;
ALTER TABLE mt470888132380721605 COMMENT = '3.5.0更新功能-主表';
-- ----------------------------
-- 表名：mt470913062111543749
-- ----------------------------
CREATE TABLE mt470913062111543749 (
	`inputField101` varchar(255) COMMENT '单行输入1',
	`inputField102` varchar(255) COMMENT '单行输入2',
	`inputField103` varchar(255) COMMENT '单行输入3',
	`inputField104` varchar(255) COMMENT '单行输入4',
	`f_flow_id` varchar(50) COMMENT '流程id',
	`f_version` int COMMENT '乐观锁',
	`f_flow_task_id` varchar(50) COMMENT '流程任务主键',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id',
	`f_id` varchar(50) NOT NULL COMMENT '主键',
	`f_inte_assistant` int COMMENT '集成助手数据标识'

, PRIMARY KEY (f_tenant_id,f_id)
) ;
ALTER TABLE mt470913062111543749 COMMENT = '集成助手暂存数据表-主表';
-- ----------------------------
-- 表名：mt470929966582727173
-- ----------------------------
CREATE TABLE mt470929966582727173 (
	`inputField101` varchar(255) COMMENT '内部订单号',
	`inputField102` varchar(255) COMMENT '客户名称',
	`inputField103` varchar(255) COMMENT '联系电话',
	`inputField104` varchar(255) COMMENT '详细地址',
	`inputField105` varchar(255) COMMENT '商品名',
	`inputField106` varchar(255) COMMENT '编号',
	`inputField107` varchar(255) COMMENT '销售价',
	`inputField108` varchar(255) COMMENT '当前库存',
	`inputField109` varchar(255) COMMENT '数量',
	`inputField110` varchar(255) COMMENT '单品总价',
	`f_flow_id` varchar(50) COMMENT '流程id',
	`f_version` int COMMENT '乐观锁',
	`f_flow_task_id` varchar(50) COMMENT '流程任务主键',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id',
	`f_id` varchar(50) NOT NULL COMMENT '主键',
	`f_inte_assistant` int COMMENT '集成助手数据标识'

, PRIMARY KEY (f_tenant_id,f_id)
) ;
ALTER TABLE mt470929966582727173 COMMENT = '客户管理记录表-主表';
-- ----------------------------
-- 表名：mt517668914876910661
-- ----------------------------
CREATE TABLE mt517668914876910661 (
	`createTimeField101` datetime COMMENT '创建时间',
	`datePickerField102` datetime COMMENT '年',
	`datePickerField104` datetime COMMENT '年月',
	`datePickerField105` datetime COMMENT '年月',
	`timePickerField103` varchar(255) COMMENT '时间选择',
	`selectField106` varchar(255) COMMENT '下拉选择',
	`cascaderField107` varchar(255) COMMENT '级联选择',
	`f_flow_id` varchar(50) COMMENT '流程id',
	`f_version` int COMMENT '乐观锁',
	`f_flow_task_id` varchar(50) COMMENT '流程任务主键',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id',
	`f_id` varchar(50) NOT NULL COMMENT '主键'

, PRIMARY KEY (f_tenant_id,f_id)
) ;
ALTER TABLE mt517668914876910661 COMMENT = '打印回显示例-主表';
-- ----------------------------
-- 表名：mt585077626008240453
-- ----------------------------
CREATE TABLE mt585077626008240453 (
	`billRuleField106` varchar(255) COMMENT '合同编号',
	`inputField101` varchar(255) COMMENT '供应商',
	`datePickerField102` datetime COMMENT '签订日期',
	`selectField103` varchar(255) COMMENT '付款方式',
	`userSelectField104` varchar(255) COMMENT '经手人',
	`userSelectField105` varchar(255) COMMENT '审核人',
	`calculateField116` decimal(38,2) COMMENT '总数量',
	`calculateField117` decimal(38,2) COMMENT '合同金额',
	`f_id` varchar(50) NOT NULL COMMENT '主键',
	`f_tenant_id` varchar(50) NOT NULL COMMENT '租户id',
	`f_flow_id` varchar(50) COMMENT '流程id',
	`f_version` int COMMENT '乐观锁',
	`f_flow_task_id` varchar(50) COMMENT '流程任务主键',
	`f_inte_assistant` int COMMENT '集成助手数据标识'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE mt585077626008240453 COMMENT = '采购合同-主表';
-- ----------------------------
-- 表名：mt585113061585584645
-- ----------------------------
CREATE TABLE mt585113061585584645 (
	`inputField106` varchar(255) COMMENT '楼层号',
	`inputField107` varchar(255) COMMENT '业主姓名',
	`inputField111` varchar(255) COMMENT '联系方式',
	`calculateField119` decimal(38,2) COMMENT '水电费用',
	`f_id` varchar(50) NOT NULL COMMENT '主键',
	`f_tenant_id` varchar(50) NOT NULL COMMENT '租户id',
	`f_flow_id` varchar(50) COMMENT '流程id',
	`f_version` int COMMENT '乐观锁',
	`f_flow_task_id` varchar(50) COMMENT '流程任务主键',
	`f_inte_assistant` int COMMENT '集成助手数据标识'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE mt585113061585584645 COMMENT = '水电费用-主表';
-- ----------------------------
-- 表名：mt585115948944458245
-- ----------------------------
CREATE TABLE mt585115948944458245 (
	`inputField101` varchar(255) COMMENT '需方联系员',
	`inputField102` varchar(255) COMMENT '需方联系电话',
	`inputField106` varchar(255) COMMENT '需方邮编',
	`areaSelectField105` varchar(255) COMMENT '需方地址',
	`inputField107` varchar(255) COMMENT '供方联系人',
	`inputField104` varchar(255) COMMENT '供方联系电话',
	`areaSelectField108` varchar(255) COMMENT '供方邮编',
	`inputField119` varchar(255) COMMENT '供方地址',
	`f_id` varchar(50) NOT NULL COMMENT '主键',
	`f_tenant_id` varchar(50) NOT NULL COMMENT '租户id',
	`f_flow_id` varchar(50) COMMENT '流程id',
	`f_version` int COMMENT '乐观锁',
	`f_flow_task_id` varchar(50) COMMENT '流程任务主键',
	`f_inte_assistant` int COMMENT '集成助手数据标识'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE mt585115948944458245 COMMENT = '报价信息-主表';
-- ----------------------------
-- 表名：mt585115958712992261
-- ----------------------------
CREATE TABLE mt585115958712992261 (
	`datePickerField126` datetime COMMENT '填表日期',
	`inputField101` varchar(255) COMMENT '姓名',
	`radioField102` varchar(255) COMMENT '性别',
	`datePickerField125` datetime COMMENT '出生年月',
	`inputField113` varchar(255) COMMENT '年龄',
	`selectField124` varchar(255) COMMENT '民族',
	`selectField104` varchar(255) COMMENT '学历',
	`inputField106` varchar(255) COMMENT '联系电话',
	`areaSelectField107` varchar(255) COMMENT '家庭住址',
	`radioField110` varchar(255) COMMENT '能否加班',
	`radioField111` varchar(255) COMMENT '能否出差',
	`radioField112` varchar(255) COMMENT '能否接受调动',
	`f_id` varchar(50) NOT NULL COMMENT '主键',
	`f_tenant_id` varchar(50) NOT NULL COMMENT '租户id',
	`f_flow_id` varchar(50) COMMENT '流程id',
	`f_version` int COMMENT '乐观锁',
	`f_flow_task_id` varchar(50) COMMENT '流程任务主键',
	`f_inte_assistant` int COMMENT '集成助手数据标识'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE mt585115958712992261 COMMENT = '入职申请-主表';
-- ----------------------------
-- 表名：mt585385026032501317
-- ----------------------------
CREATE TABLE mt585385026032501317 (
	`billRuleField101` varchar(255) COMMENT '订单号',
	`inputField102` varchar(255) COMMENT '收件邮编',
	`inputField103` varchar(255) COMMENT '寄达局',
	`inputField104` varchar(255) COMMENT '收件人姓名',
	`inputField105` varchar(255) COMMENT '收件人电话',
	`inputField106` varchar(255) COMMENT '单位名称',
	`inputField130` varchar(255) COMMENT '详细地址',
	`inputField110` varchar(255) COMMENT '寄件人姓名',
	`inputField111` varchar(255) COMMENT '寄件人电话',
	`inputField112` varchar(255) COMMENT '单位名称',
	`inputField113` varchar(255) COMMENT '详细地址',
	`inputField114` varchar(255) COMMENT '大客户代码',
	`inputField131` varchar(255) COMMENT '邮政编码',
	`selectField132` varchar(255) COMMENT '品名',
	`inputNumberField118` decimal(38,0) COMMENT '数量',
	`inputNumberField126` decimal(38,15) COMMENT '重量',
	`inputNumberField127` decimal(38,15) COMMENT '金额',
	`inputNumberField119` decimal(38,15) COMMENT '收款金额',
	`signField120` text COMMENT '寄件人签名',
	`datePickerField122` datetime COMMENT '收寄日期',
	`inputField123` varchar(255) COMMENT '收寄局名',
	`signField124` text COMMENT '收寄人签名',
	`datePickerField128` datetime COMMENT '收件日期',
	`signField129` text COMMENT '收件人签名',
	`f_id` varchar(50) NOT NULL COMMENT '主键',
	`f_tenant_id` varchar(50) NOT NULL COMMENT '租户id',
	`f_flow_id` varchar(50) COMMENT '流程id',
	`f_version` int COMMENT '乐观锁',
	`f_flow_task_id` varchar(50) COMMENT '流程任务主键',
	`f_inte_assistant` int COMMENT '集成助手数据标识'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE mt585385026032501317 COMMENT = '套打示例-主表';
-- ----------------------------
-- 表名：mt585398421410546245
-- ----------------------------
CREATE TABLE mt585398421410546245 (
	`datePickerField102` datetime COMMENT '申请日期',
	`depSelectField101` varchar(255) COMMENT '申请部门',
	`userSelectField108` varchar(255) COMMENT '申请人',
	`textareaField109` varchar(255) COMMENT '申请事由',
	`inputField105` varchar(255) COMMENT '开户银行',
	`inputField106` varchar(255) COMMENT '账户',
	`inputNumberField107` decimal(38,15) COMMENT '款项金额',
	`f_id` varchar(50) NOT NULL COMMENT '主键',
	`f_tenant_id` varchar(50) NOT NULL COMMENT '租户id',
	`f_flow_id` varchar(50) COMMENT '流程id',
	`f_version` int COMMENT '乐观锁',
	`f_flow_task_id` varchar(50) COMMENT '流程任务主键',
	`f_inte_assistant` int COMMENT '集成助手数据标识'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE mt585398421410546245 COMMENT = '付款申请-主表';
-- ----------------------------
-- 表名：mt585441085065528069
-- ----------------------------
CREATE TABLE mt585441085065528069 (
	`datePickerField107` datetime COMMENT '申请日期',
	`depSelectField102` varchar(255) COMMENT '所属部门',
	`userSelectField101` varchar(255) COMMENT '申请人',
	`inputField104` varchar(255) COMMENT '请购物资',
	`inputField105` varchar(255) COMMENT '规格型号',
	`inputNumberField106` decimal(38,15) COMMENT '请购数量',
	`f_id` varchar(50) NOT NULL COMMENT '主键',
	`f_tenant_id` varchar(50) NOT NULL COMMENT '租户id',
	`f_flow_id` varchar(50) COMMENT '流程id',
	`f_version` int COMMENT '乐观锁',
	`f_flow_task_id` varchar(50) COMMENT '流程任务主键'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE mt585441085065528069 COMMENT = '采购申请-主表';
-- ----------------------------
-- 表名：mt585441095630979845
-- ----------------------------
CREATE TABLE mt585441095630979845 (
	`datePickerField107` datetime COMMENT '申请日期',
	`depSelectField101` varchar(255) COMMENT '申请部门',
	`userSelectField102` varchar(255) COMMENT '申请人',
	`inputField103` varchar(255) COMMENT '申请物资',
	`inputField104` varchar(255) COMMENT '规格型号',
	`inputNumberField105` decimal(38,15) COMMENT '数量',
	`textareaField106` varchar(255) COMMENT '用途',
	`f_id` varchar(50) NOT NULL COMMENT '主键',
	`f_tenant_id` varchar(50) NOT NULL COMMENT '租户id',
	`f_flow_id` varchar(50) COMMENT '流程id',
	`f_version` int COMMENT '乐观锁',
	`f_flow_task_id` varchar(50) COMMENT '流程任务主键',
	`inputField107` varchar(255) COMMENT '库存',
	`f_inte_assistant` int COMMENT '集成助手数据标识'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE mt585441095630979845 COMMENT = '物资申请-主表';
-- ----------------------------
-- 表名：mt585484941698007941
-- ----------------------------
CREATE TABLE mt585484941698007941 (
	`inputField101` varchar(255) COMMENT '单行输入',
	`f_id` varchar(50) NOT NULL COMMENT '主键',
	`f_tenant_id` varchar(50) NOT NULL COMMENT '租户id',
	`f_flow_id` varchar(50) COMMENT '流程id',
	`f_version` int COMMENT '乐观锁',
	`f_flow_task_id` varchar(50) COMMENT '流程任务主键'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE mt585484941698007941 COMMENT = 'JS控制列表上按钮的颜色-主表';
-- ----------------------------
-- 表名：mt585806222716830853
-- ----------------------------
CREATE TABLE mt585806222716830853 (
	`depSelectField101` varchar(255) COMMENT '部门选择',
	`inputField102` varchar(255) COMMENT '单行输入',
	`f_id` varchar(50) NOT NULL COMMENT '主键',
	`f_tenant_id` varchar(50) NOT NULL COMMENT '租户id',
	`f_flow_id` varchar(50) COMMENT '流程id',
	`f_version` int COMMENT '乐观锁',
	`f_flow_task_id` varchar(50) COMMENT '流程任务主键'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE mt585806222716830853 COMMENT = '列表左侧树-主表';
-- ----------------------------
-- 表名：mt585825608643118213
-- ----------------------------
CREATE TABLE mt585825608643118213 (
	`selectField101` varchar(255) COMMENT '客户分类',
	`inputField102` varchar(255) COMMENT '客户名称',
	`textareaField103` varchar(255) COMMENT '备注',
	`inputNumberField104` decimal(38,15) COMMENT '需求数量',
	`f_id` varchar(50) NOT NULL COMMENT '主键',
	`f_tenant_id` varchar(50) NOT NULL COMMENT '租户id',
	`f_flow_id` varchar(50) COMMENT '流程id',
	`f_version` int COMMENT '乐观锁',
	`f_flow_task_id` varchar(50) COMMENT '流程任务主键'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE mt585825608643118213 COMMENT = '列表标签面板-主表';
-- ----------------------------
-- 表名：mt585831812765320325
-- ----------------------------
CREATE TABLE mt585831812765320325 (
	`inputField102` varchar(255) COMMENT '单行输入',
	`selectField103` varchar(255) COMMENT '下拉选择',
	`f_id` varchar(50) NOT NULL COMMENT '主键',
	`f_tenant_id` varchar(50) NOT NULL COMMENT '租户id',
	`f_flow_id` varchar(50) COMMENT '流程id',
	`f_version` int COMMENT '乐观锁',
	`f_flow_task_id` varchar(50) COMMENT '流程任务主键'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE mt585831812765320325 COMMENT = 'js列表按钮显隐-主表';
-- ----------------------------
-- 表名：mt623163332936859845
-- ----------------------------
CREATE TABLE mt623163332936859845 (
	`inputFielde343ea` varchar(255) COMMENT '工号',
	`depSelectField3e4be5` varchar(255) COMMENT '所在部门',
	`userSelectFieldde46f0` varchar(255) COMMENT '姓名',
	`datePickerField8796e7` datetime COMMENT '预计离职日期',
	`radioFieldc7dbea` varchar(255) COMMENT '离职类型',
	`textareaField5bece7` varchar(255) COMMENT '离职原因',
	`f_id` varchar(50) NOT NULL COMMENT '主键',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id',
	`f_flow_id` varchar(50) COMMENT '流程id',
	`f_version` int COMMENT '乐观锁',
	`f_flow_task_id` varchar(50) COMMENT '流程任务主键'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE mt623163332936859845 COMMENT = '离职申请-主表';
-- ----------------------------
-- 表名：mt623163941190631621
-- ----------------------------
CREATE TABLE mt623163941190631621 (
	`inputFieldb9b2fb` varchar(255) COMMENT '工号',
	`userSelectField168af6` varchar(255) COMMENT '姓名',
	`depSelectField5a4271` varchar(255) COMMENT '部门',
	`datePickerField21a50a` datetime COMMENT '入职日期',
	`inputField08827c` varchar(255) COMMENT '在职状态',
	`inputField7cdfad` varchar(255) COMMENT '联系方式',
	`inputFielda4e0a4` varchar(255) COMMENT '身份证号',
	`textareaFielde9424d` varchar(255) COMMENT '家庭住址',
	`f_id` varchar(50) NOT NULL COMMENT '主键',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id',
	`f_flow_id` varchar(50) COMMENT '流程id',
	`f_version` int COMMENT '乐观锁',
	`f_flow_task_id` varchar(50) COMMENT '流程任务主键',
	`f_dateht` datetime COMMENT '合同到期时间'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE mt623163941190631621 COMMENT = '员工信息-主表';
-- ----------------------------
-- 表名：mt623183981692584133
-- ----------------------------
CREATE TABLE mt623183981692584133 (
	`inputField9ee228` varchar(255) COMMENT '工号',
	`depSelectFieldf77c52` varchar(255) COMMENT '部门',
	`userSelectField39fc3a` varchar(255) COMMENT '姓名',
	`datePickerField21e750` datetime COMMENT '离职日期',
	`inputField73d616` varchar(255) COMMENT '离职类型',
	`textareaField406675` varchar(255) COMMENT '离职原因',
	`f_id` varchar(50) NOT NULL COMMENT '主键',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id',
	`f_flow_id` varchar(50) COMMENT '流程id',
	`f_version` int COMMENT '乐观锁',
	`f_flow_task_id` varchar(50) COMMENT '流程任务主键'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE mt623183981692584133 COMMENT = '离职员工表-主表';
-- ----------------------------
-- 表名：mt623417550885093381
-- ----------------------------
CREATE TABLE mt623417550885093381 (
	`userSelectFieldc1737e` varchar(255) COMMENT '离职员工',
	`depSelectFieldca3bda` varchar(255) COMMENT '所在部门',
	`datePickerField6e1b8e` datetime COMMENT '离职日期',
	`inputField0120f5` varchar(255) COMMENT '离职原因',
	`textareaField5131eb` varchar(255) COMMENT '工作事项',
	`textareaField240d59` varchar(255) COMMENT '未完成事项',
	`uploadFileField567e4d` text COMMENT '文件交接',
	`f_id` varchar(50) NOT NULL COMMENT '主键',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id',
	`f_flow_id` varchar(50) COMMENT '流程id',
	`f_version` int COMMENT '乐观锁',
	`f_flow_task_id` varchar(50) COMMENT '流程任务主键'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE mt623417550885093381 COMMENT = '离职交接表-主表';
-- ----------------------------
-- 表名：mt623425084727492613
-- ----------------------------
CREATE TABLE mt623425084727492613 (
	`inputField16dc57` varchar(255) COMMENT '工号',
	`userSelectFieldd17ae6` varchar(255) COMMENT '姓名',
	`depSelectFielde34b42` varchar(255) COMMENT '所在部门',
	`inputFieldcd3bc7` varchar(255) COMMENT '合同类型',
	`datePickerField2032c2` datetime COMMENT '合同到期日',
	`uploadFileFieldb4e26c` text COMMENT '合同附件',
	`f_id` varchar(50) NOT NULL COMMENT '主键',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id',
	`f_flow_id` varchar(50) COMMENT '流程id',
	`f_version` int COMMENT '乐观锁',
	`f_flow_task_id` varchar(50) COMMENT '流程任务主键'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE mt623425084727492613 COMMENT = '劳动合同续签-主表';
-- ----------------------------
-- 表名：mt624164005967037317
-- ----------------------------
CREATE TABLE mt624164005967037317 (
	`inputField44a3a9` varchar(255) COMMENT '工号',
	`userSelectField570fc8` varchar(255) COMMENT '姓名',
	`depSelectField0c00ce` varchar(255) COMMENT '部门',
	`datePickerFieldf1981d` datetime COMMENT '入职时间',
	`inputField5fe3ce` varchar(255) COMMENT '在职状态',
	`inputField8f47fd` varchar(255) COMMENT '联系方式',
	`inputField51c3c2` varchar(255) COMMENT '身份证',
	`textareaField700cef` varchar(255) COMMENT '家庭住址',
	`datePickerFieldcced1f` datetime COMMENT '合同到期时间',
	`f_id` varchar(50) NOT NULL COMMENT '主键',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id',
	`f_flow_id` varchar(50) COMMENT '流程id',
	`f_version` int COMMENT '乐观锁',
	`f_flow_task_id` varchar(50) COMMENT '流程任务主键'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE mt624164005967037317 COMMENT = '入职申请-主表';
-- ----------------------------
-- 表名：mt624165616286172037
-- ----------------------------
CREATE TABLE mt624165616286172037 (
	`inputField5facef` varchar(255) COMMENT '工号',
	`userSelectFieldd6fa6c` varchar(255) COMMENT '培训申请人',
	`depSelectField0312fd` varchar(255) COMMENT '所在部门',
	`inputFielda924aa` varchar(255) COMMENT '培训项目',
	`datePickerField2f5617` datetime COMMENT '申请时间',
	`selectField1ce6ab` varchar(255) COMMENT '培训方式',
	`textareaField0ef029` varchar(255) COMMENT '培训目的',
	`f_id` varchar(50) NOT NULL COMMENT '主键',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id',
	`f_flow_id` varchar(50) COMMENT '流程id',
	`f_version` int COMMENT '乐观锁',
	`f_flow_task_id` varchar(50) COMMENT '流程任务主键'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE mt624165616286172037 COMMENT = '员工培训-主表';
-- ----------------------------
-- 表名：report_charts
-- ----------------------------
CREATE TABLE report_charts (
	`ID` varchar(50) NOT NULL COMMENT '',
	`QYBM` varchar(255) COMMENT '',
	`FXDMC` varchar(255) COMMENT '',
	`FXDJ` varchar(255) COMMENT '',
	`PGRY` varchar(255) COMMENT '',
	`PGRQ` varchar(255) COMMENT '',
	`FXFXFF` varchar(255) COMMENT '',
	`LECE` varchar(255) COMMENT '',
	`LECC` varchar(255) COMMENT '',
	`LSL` varchar(255) COMMENT '',
	`LSS` varchar(255) COMMENT '',
	`PGFXZ` varchar(255) COMMENT '',
	`FPRQ` varchar(255) COMMENT '',
	`STATUS` varchar(255) COMMENT '',
	`createDate` varchar(255) COMMENT '',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id'

, PRIMARY KEY (ID,f_tenant_id)
) ;
ALTER TABLE report_charts COMMENT = '报表图表';
-- ----------------------------
-- 表名：report_department
-- ----------------------------
CREATE TABLE report_department (
	`id` varchar(50) NOT NULL COMMENT '',
	`departmentName` varchar(255) COMMENT '',
	`departmentNum` varchar(11) COMMENT '',
	`organizationName` varchar(255) COMMENT '',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id'

, PRIMARY KEY (id,f_tenant_id)
) ;
ALTER TABLE report_department COMMENT = '报表部门示例';
-- ----------------------------
-- 表名：report_template
-- ----------------------------
CREATE TABLE report_template (
	`f_id` varchar(50) NOT NULL COMMENT '主键',
	`f_version_id` varchar(50) COMMENT '版本主键',
	`f_full_name` varchar(200) NOT NULL COMMENT '名称',
	`f_en_code` varchar(50) NOT NULL COMMENT '编码',
	`f_category` varchar(50) NOT NULL COMMENT '分类',
	`f_description` varchar(500) COMMENT '描述或说明',
	`f_enabled_mark` int COMMENT '有效标志',
	`f_sort_code` bigint COMMENT '排序',
	`f_creator_time` datetime COMMENT '创建时间',
	`f_creator_user_id` varchar(50) COMMENT '创建用户',
	`f_last_modify_time` datetime COMMENT '修改时间',
	`f_last_modify_user_id` varchar(50) COMMENT '修改用户',
	`f_delete_time` datetime COMMENT '删除时间',
	`f_delete_user_id` varchar(50) COMMENT '删除用户',
	`f_delete_mark` int COMMENT '删除标志',
	`f_tenant_id` varchar(50) NOT NULL COMMENT '租户id',
	`f_allow_export` int COMMENT '是否导出',
	`f_allow_print` int COMMENT '是否打印',
	`f_platform_release` varchar(100) COMMENT '发布选中平台'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE report_template COMMENT = '报表模板';
-- ----------------------------
-- 表名：report_user
-- ----------------------------
CREATE TABLE report_user (
	`id` varchar(255) NOT NULL COMMENT '',
	`username` varchar(255) COMMENT '',
	`education` varchar(255) COMMENT '',
	`sex` varchar(255) COMMENT '',
	`salary` decimal(10,2) COMMENT '',
	`departmentnum` varchar(255) COMMENT '',
	`peoplenum` varchar(255) COMMENT '',
	`month` int COMMENT '',
	`year` int COMMENT '',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id'

, PRIMARY KEY (id,f_tenant_id)
) ;
ALTER TABLE report_user COMMENT = '报表用户示例';
-- ----------------------------
-- 表名：report_version
-- ----------------------------
CREATE TABLE report_version (
	`f_id` varchar(50) NOT NULL COMMENT '主键',
	`f_template_id` varchar(50) COMMENT '报表模板id',
	`f_state` int COMMENT '状态：0-设计中，1-启用中，2-已归档',
	`f_version` int COMMENT '版本',
	`f_cells` longtext COMMENT '模板json',
	`f_snapshot` longtext COMMENT '模板json',
	`f_query_list` longtext COMMENT '模板json',
	`f_convert_config` longtext COMMENT '模板json',
	`f_sort_code` bigint COMMENT '排序',
	`f_description` varchar(500) COMMENT '描述或说明',
	`f_enabled_mark` int COMMENT '有效标志',
	`f_creator_time` datetime COMMENT '创建时间',
	`f_creator_user_id` varchar(50) COMMENT '创建用户',
	`f_last_modify_time` datetime COMMENT '修改时间',
	`f_last_modify_user_id` varchar(50) COMMENT '修改用户',
	`f_delete_time` datetime COMMENT '删除时间',
	`f_delete_user_id` varchar(50) COMMENT '删除用户',
	`f_delete_mark` int COMMENT '删除标志',
	`f_tenant_id` varchar(50) NOT NULL COMMENT '租户id',
	`f_sort_list` longtext COMMENT '模板json'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE report_version COMMENT = '报表版本记录';
-- ----------------------------
-- 表名：test_carapplication
-- ----------------------------
CREATE TABLE test_carapplication (
	`F_Id` varchar(50) NOT NULL COMMENT '主键',
	`F_Applicationno` varchar(50) COMMENT '申请单号',
	`F_Applicant` varchar(100) COMMENT '申请人',
	`F_Applicantdate` datetime COMMENT '申请日期',
	`f_Destination` varchar(100) COMMENT '目的地',
	`F_Startdate` datetime COMMENT '起始时间',
	`F_Enddate` datetime COMMENT '结束时间',
	`F_Vehiclenumber` varchar(100) COMMENT '车辆号码',
	`F_Driver` varchar(100) COMMENT '驾驶员',
	`F_Estimated` varchar(200) COMMENT '预计里程/KM',
	`F_Entourage` varchar(500) COMMENT '随行人员',
	`F_Reasons` varchar(300) COMMENT '用车事由',
	`F_Remarks` varchar(300) COMMENT '备注',
	`F_CreatorUserId` varchar(50) COMMENT '创建用户',
	`F_CreatorTime` datetime COMMENT '创建时间',
	`F_LastModifyTime` datetime COMMENT '修改时间',
	`F_LastModifyUserId` varchar(50) COMMENT '修改用户',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id'

, PRIMARY KEY (F_Id,f_tenant_id)
) ;
ALTER TABLE test_carapplication COMMENT = '用车申请表';
-- ----------------------------
-- 表名：test_cost
-- ----------------------------
CREATE TABLE test_cost (
	`F_Id` varchar(50) NOT NULL COMMENT '主键',
	`F_Reimbursementid` varchar(50) COMMENT '主表主键',
	`F_Cost_classes` varchar(200) COMMENT '费用类别',
	`F_Amount` decimal(18,2) COMMENT '报销金额',
	`F_Remarks` varchar(200) COMMENT '备注',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id'

, PRIMARY KEY (F_Id,f_tenant_id)
) ;
ALTER TABLE test_cost COMMENT = '费用明细表';
-- ----------------------------
-- 表名：test_customer
-- ----------------------------
CREATE TABLE test_customer (
	`F_Id` varchar(50) NOT NULL COMMENT '主键',
	`F_SortCode` varchar(50) COMMENT '序号',
	`F_Depname` varchar(255) COMMENT '所属部门',
	`F_Username` varchar(50) COMMENT '业务员姓名',
	`F_Type` varchar(50) COMMENT '客户类型',
	`F_Grade` varchar(50) COMMENT '客户等级',
	`F_Customername` varchar(200) COMMENT '客户全称',
	`F_Leveladdress` varchar(500) COMMENT '省份',
	`F_Channel` varchar(200) COMMENT '渠道全称',
	`F_Trade` varchar(200) COMMENT '行业',
	`F_Nature` varchar(500) COMMENT '企业性质',
	`F_Model` varchar(500) COMMENT '企业规模',
	`F_Address` varchar(500) COMMENT '企业地址（详细地址）',
	`F_CreatorTime` datetime COMMENT '创建时间',
	`F_CreatorUserId` varchar(50) COMMENT '创建用户',
	`F_LastModifyTime` datetime COMMENT '修改时间',
	`F_LastModifyUserId` varchar(50) COMMENT '修改用户',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id',
	`f_flow_id` varchar(50) COMMENT '流程id',
	`f_flow_task_id` varchar(50) COMMENT '流程任务主键',
	`f_inte_assistant` int COMMENT '集成助手数据标识'

, PRIMARY KEY (F_Id,f_tenant_id)
) ;
ALTER TABLE test_customer COMMENT = '大客户信息表';
-- ----------------------------
-- 表名：test_details
-- ----------------------------
CREATE TABLE test_details (
	`F_Id` varchar(50) NOT NULL COMMENT '主键',
	`F_Receivableid` varchar(50) COMMENT '主表主键',
	`F_Month` varchar(200) COMMENT '缴费月份',
	`F_Rent` decimal(18,2) COMMENT '房租',
	`F_Water_rent` decimal(18,2) COMMENT '水费',
	`F_Powerrate` decimal(18,2) COMMENT '电费',
	`F_Property` decimal(18,2) COMMENT '物业费',
	`F_Cleaning` decimal(18,2) COMMENT '垃圾费',
	`F_Pollutant` decimal(18,2) COMMENT '排污费',
	`F_Totalbilling` decimal(18,2) COMMENT '累计应收费用',
	`F_CreatorTime` datetime COMMENT '创建时间',
	`F_CreatorUserId` varchar(50) COMMENT '创建用户',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id'

, PRIMARY KEY (F_Id,f_tenant_id)
) ;
ALTER TABLE test_details COMMENT = '应收费用明细表';
-- ----------------------------
-- 表名：test_position
-- ----------------------------
CREATE TABLE test_position (
	`F_Id` varchar(50) NOT NULL COMMENT '主键',
	`F_Applys` varchar(50) COMMENT '申请人',
	`F_Dep_name` varchar(255) COMMENT '所属部门',
	`F_Station_name` varchar(100) COMMENT '岗位名称',
	`F_Arrival_Date` date COMMENT '期望到岗日期',
	`F_Drade` varchar(50) COMMENT '优先级',
	`F_Worknature` varchar(100) COMMENT '工作性质',
	`F_Stationpay` varchar(100) COMMENT '岗位平均薪资',
	`F_Add_number` varchar(50) COMMENT '增补原因',
	`F_Education` varchar(50) COMMENT '最低学历',
	`F_Gender` varchar(50) COMMENT '性别',
	`F_Working_seniority` varchar(100) COMMENT '工作经验年限',
	`F_Marriage` varchar(50) COMMENT '婚姻状况',
	`F_Age` varchar(50) COMMENT '年龄范围',
	`F_Stationpays` varchar(100) COMMENT '薪资范围',
	`F_Duty` varchar(50) COMMENT '职责描述',
	`F_Stationask` varchar(50) COMMENT '岗位要求',
	`F_Stationkey` varchar(50) COMMENT '岗位关键字',
	`F_Creator_Time` datetime COMMENT '创建时间',
	`F_Creator_UserId` varchar(50) COMMENT '创建用户',
	`F_LastModify_Time` datetime COMMENT '修改时间',
	`F_LastModify_UserId` varchar(50) COMMENT '修改用户',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id',
	`f_flow_id` varchar(50) COMMENT '流程id',
	`f_flow_task_id` varchar(50) COMMENT '流程任务主键',
	`f_inte_assistant` int COMMENT '集成助手数据标识'

, PRIMARY KEY (F_Id,f_tenant_id)
) ;
ALTER TABLE test_position COMMENT = '招聘表';
-- ----------------------------
-- 表名：test_projects
-- ----------------------------
CREATE TABLE test_projects (
	`F_Id` varchar(50) NOT NULL COMMENT '主键',
	`F_FlowId` varchar(50) COMMENT '流程主键',
	`F_Projectname` varchar(200) COMMENT '项目名称',
	`F_Projecttype` varchar(10) COMMENT '项目类型',
	`F_Projectcode` varchar(50) COMMENT '项目编号',
	`F_Projectfunding` decimal(18,2) COMMENT '项目经费',
	`F_Depname` varchar(255) COMMENT '负责部门',
	`F_Person` varchar(100) COMMENT '负责人',
	`F_Degree` varchar(10) COMMENT '项目密级',
	`F_CreatorTime` datetime COMMENT '创建时间',
	`F_CreatorUserId` varchar(50) COMMENT '创建用户',
	`F_LastModifyTime` datetime COMMENT '修改时间',
	`F_LastModifyUserId` varchar(50) COMMENT '修改用户',
	`billno` varchar(50) COMMENT '单据规则',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id',
	`f_flow_task_id` varchar(50) COMMENT '流程任务主键',
	`f_flow_id` varchar(50) COMMENT '流程id'

, PRIMARY KEY (F_Id,f_tenant_id)
) ;
ALTER TABLE test_projects COMMENT = '项目立项申请表';
-- ----------------------------
-- 表名：test_purchase
-- ----------------------------
CREATE TABLE test_purchase (
	`F_Id` varchar(50) NOT NULL COMMENT '主键',
	`F_Purchase_number` varchar(50) COMMENT '采购单号',
	`F_Sort_Code` varchar(50) COMMENT '排序',
	`F_Applys` varchar(50) COMMENT '采购申请人',
	`F_Dep_Name` varchar(255) COMMENT '所属部门',
	`F_Purchase` datetime COMMENT '采购申请日期',
	`F_Reasons` varchar(100) COMMENT '采购原因',
	`F_Remarks` varchar(500) COMMENT '备注',
	`F_CreatorTime` datetime COMMENT '创建时间',
	`F_CreatorUserId` varchar(50) COMMENT '创建用户',
	`F_LastModifyTime` datetime COMMENT '修改时间',
	`F_LastModifyUserId` varchar(50) COMMENT '修改用户',
	`F_Descz` bigint COMMENT '',
	`F_sasa` time COMMENT '',
	`F_asad` int COMMENT '',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id',
	`f_flow_id` varchar(50) COMMENT '流程id',
	`f_flow_task_id` varchar(50) COMMENT '流程任务主键',
	`f_inte_assistant` int COMMENT '集成助手数据标识'

, PRIMARY KEY (F_Id,f_tenant_id)
) ;
ALTER TABLE test_purchase COMMENT = '采购申请表';
-- ----------------------------
-- 表名：test_purchase_form
-- ----------------------------
CREATE TABLE test_purchase_form (
	`F_Id` varchar(50) NOT NULL COMMENT '主键',
	`F_FlowId` varchar(50) COMMENT '流程主键',
	`F_Supplier_code` varchar(50) COMMENT '供应商识别码',
	`F_SortCode` varchar(50) COMMENT '排序',
	`F_Buyer` varchar(50) COMMENT '采购员',
	`F_Depname` varchar(255) COMMENT '所属部门',
	`F_Purchase_Date` datetime COMMENT '采购日期',
	`F_Statuss` varchar(100) COMMENT '入库状态',
	`F_Totals` decimal(38,0) COMMENT '订单合计金额',
	`F_Supplier` varchar(100) COMMENT '供应商对接人',
	`F_Phone` varchar(50) COMMENT '联系电话',
	`F_Add_ress` varchar(200) COMMENT '收货地址',
	`F_Creator_Time` datetime COMMENT '创建时间',
	`F_CreatorUserId` varchar(50) COMMENT '创建用户',
	`F_LastModifyTime` datetime COMMENT '修改时间',
	`F_LastModifyUserId` varchar(50) COMMENT '修改用户',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id',
	`f_flow_task_id` varchar(50) COMMENT '流程任务主键',
	`f_flow_id` varchar(50) COMMENT '流程id'

, PRIMARY KEY (F_Id,f_tenant_id)
) ;
ALTER TABLE test_purchase_form COMMENT = '采购订单表';
-- ----------------------------
-- 表名：test_purchase_form_order
-- ----------------------------
CREATE TABLE test_purchase_form_order (
	`F_Id` varchar(50) NOT NULL COMMENT '主键',
	`F_Purchase_id` varchar(50) COMMENT '主表主键',
	`F_Product` varchar(50) COMMENT '产品',
	`F_Product_name_2` varchar(50) COMMENT '产品名称',
	`F_Product_code` varchar(50) COMMENT '产品编码',
	`F_Product_Category` varchar(50) COMMENT '产品分类',
	`F_Specifications` varchar(50) COMMENT '规格',
	`F_Unit` decimal(18,2) COMMENT '单位',
	`F_Unitprice` decimal(18,2) COMMENT '单价',
	`F_Discount` decimal(18,2) COMMENT '折扣（%）',
	`F_Actualunit_price_name` decimal(18,2) COMMENT '实际单价（元）',
	`F_Numbers` decimal(18,2) COMMENT '数量',
	`F_CreatorTime` datetime COMMENT '创建时间',
	`F_CreatorUserId` varchar(50) COMMENT '创建用户',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id'

, PRIMARY KEY (F_Id,f_tenant_id)
) ;
ALTER TABLE test_purchase_form_order COMMENT = '采购订单明细表';
-- ----------------------------
-- 表名：test_purchaseorder
-- ----------------------------
CREATE TABLE test_purchaseorder (
	`F_Id` varchar(50) NOT NULL COMMENT '主键',
	`F_Purchaseid` varchar(50) COMMENT '主表主键',
	`F_Product` varchar(50) COMMENT '产品',
	`F_Product_name` varchar(50) COMMENT '产品名称',
	`F_Product_Code` varchar(50) COMMENT '产品编码',
	`F_Product_category` varchar(50) COMMENT '产品分类',
	`F_Specifications` varchar(100) COMMENT '规格',
	`F_Unit` varchar(50) COMMENT 'F_Unit',
	`F_Numbers` decimal(18,2) COMMENT '数量',
	`F_CreatorTime` datetime COMMENT '创建时间',
	`F_CreatorUserId` varchar(50) COMMENT '创建用户',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id'

, PRIMARY KEY (F_Id,f_tenant_id)
) ;
ALTER TABLE test_purchaseorder COMMENT = '采购单明细表';
-- ----------------------------
-- 表名：test_receivable
-- ----------------------------
CREATE TABLE test_receivable (
	`F_Id` varchar(50) NOT NULL COMMENT '主键',
	`F_Building` varchar(100) COMMENT '楼宇号',
	`F_Room` varchar(100) COMMENT '房间号',
	`F_Company_name` varchar(50) COMMENT '公司名称',
	`F_Userid` varchar(50) COMMENT '对接人',
	`F_Phone` varchar(50) COMMENT '联系方式',
	`F_Ost` varchar(50) COMMENT '职务',
	`F_Sort_Code` bigint COMMENT '排序',
	`F_EnabledMark` int COMMENT '有效标志',
	`F_CreatorTime` datetime COMMENT '创建时间',
	`F_CreatorUserId` varchar(50) COMMENT '创建用户',
	`F_LastModifyTime` datetime COMMENT '修改时间',
	`F_LastModifyUserId` varchar(50) COMMENT '修改用户',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id',
	`f_version` int COMMENT '乐观锁',
	`f_flowtaskid` varchar(50) COMMENT '流程任务主键',
	`f_flow_id` varchar(50) COMMENT '流程id',
	`f_flow_task_id` varchar(50) COMMENT '流程任务主键',
	`f_inte_assistant` int COMMENT '集成助手数据标识'

, PRIMARY KEY (F_Id,f_tenant_id)
) ;
ALTER TABLE test_receivable COMMENT = '应收费用主表';
-- ----------------------------
-- 表名：test_reimbursement
-- ----------------------------
CREATE TABLE test_reimbursement (
	`F_Id` varchar(50) NOT NULL COMMENT '主键',
	`F_Reimburse_ment` varchar(50) COMMENT '报销单号',
	`F_Reimbursement_date_AP` varchar(50) COMMENT '项目名称',
	`F_Userid` varchar(200) COMMENT '报销人',
	`F_Dep_Name` varchar(255) COMMENT '所属部门',
	`F_Totala_Mount` decimal(18,2) COMMENT '总金额',
	`F_Reasons` varchar(300) COMMENT '报销事由',
	`F_Remarks` varchar(500) COMMENT '备注',
	`F_CreatorTime` datetime COMMENT '创建时间',
	`F_CreatorUserId` varchar(50) COMMENT '创建用户',
	`F_LastModify_Time` datetime COMMENT '修改时间',
	`F_LastModify_UserId` varchar(50) COMMENT '修改用户',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id'

, PRIMARY KEY (F_Id,f_tenant_id)
) ;
ALTER TABLE test_reimbursement COMMENT = '财务报销信息表';
-- ----------------------------
-- 表名：test_subpackage
-- ----------------------------
CREATE TABLE test_subpackage (
	`F_Id` varchar(50) NOT NULL COMMENT '主键',
	`F_Sort_Code` bigint COMMENT '序号',
	`F_Applys` varchar(500) COMMENT '填单人',
	`F_Arrival_Date` datetime COMMENT '填单日期',
	`F_Project_s` varchar(200) COMMENT '所属项目',
	`F_Dep_name_A` varchar(255) COMMENT '所属部门',
	`F_Contractor` varchar(100) COMMENT '承包方',
	`F_Signer` varchar(100) COMMENT '合同签订人',
	`F_Firstparty` varchar(300) COMMENT '客户名称',
	`F_Contract` varchar(100) COMMENT '合同',
	`F_Contract_number` varchar(100) COMMENT '合同编号',
	`F_Contract_date` datetime COMMENT '合同签订日期',
	`F_Start_date_AA` datetime COMMENT '开始日期',
	`F_Enddate_QP` datetime COMMENT '结束日期',
	`F_Contract_money` decimal(18,2) COMMENT '合同金额',
	`F_Remarks` varchar(1000) COMMENT '备注',
	`F_fujian` text COMMENT '附件',
	`F_Invoiced` decimal(18,2) COMMENT '已付款金额',
	`F_CreatorUserId` varchar(50) COMMENT '创建用户',
	`F_CreatorTime` datetime COMMENT '创建时间',
	`F_LastModifyTime` datetime COMMENT '修改时间',
	`F_LastModifyUserId` varchar(50) COMMENT '修改用户',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id',
	`f_flowid` varchar(50) COMMENT '流程id',
	`f_flow_task_id` varchar(50) COMMENT '流程任务主键',
	`f_flow_id` varchar(50) COMMENT '流程id'

, PRIMARY KEY (F_Id,f_tenant_id)
) ;
ALTER TABLE test_subpackage COMMENT = '分包合同表';
-- ----------------------------
-- 表名：test_vehicleinfo
-- ----------------------------
CREATE TABLE test_vehicleinfo (
	`F_Id` varchar(50) NOT NULL COMMENT '主键',
	`F_SortCode` varchar(50) COMMENT '序号',
	`F_Numberplate` varchar(50) COMMENT '车辆号牌',
	`F_Brand` varchar(50) COMMENT '车辆品牌',
	`F_Model` varchar(50) COMMENT '车辆型号',
	`F_Type` varchar(50) COMMENT '车辆类型',
	`F_Colour` varchar(50) COMMENT '车身颜色',
	`F_Number` varchar(50) COMMENT '乘坐人数',
	`F_Purchaseprice` varchar(50) COMMENT '购置价格',
	`F_Purchasedate` datetime COMMENT '购置日期',
	`F_Subordinate` varchar(50) COMMENT '所属领导',
	`F_Depname` varchar(255) COMMENT '所属部门',
	`F_EnableMark` varchar(50) COMMENT '车辆状态',
	`F_Mileagetraveled` varchar(50) COMMENT '已行驶里程/KM',
	`F_Credentials` varchar(50) COMMENT '随车证件',
	`F_Remarks` varchar(500) COMMENT '其他信息',
	`F_CreatorTime` datetime COMMENT '创建时间',
	`F_CreatorUserId` varchar(50) COMMENT '创建用户',
	`F_LastModifyTime` datetime COMMENT '修改时间',
	`F_LastModifyUserId` varchar(50) COMMENT '修改用户',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id'

, PRIMARY KEY (F_Id,f_tenant_id)
) ;
ALTER TABLE test_vehicleinfo COMMENT = '车辆信息表';
-- ----------------------------
-- 表名：test_warehousing
-- ----------------------------
CREATE TABLE test_warehousing (
	`F_Id` varchar(50) NOT NULL COMMENT '主键',
	`F_Purchase_number` varchar(50) COMMENT '入库单号',
	`F_Sort_Code` varchar(50) COMMENT '排序',
	`F_Applys` varchar(50) COMMENT '入库员',
	`F_Dep_name` varchar(255) COMMENT '所属部门',
	`F_Purchase` datetime COMMENT '入库日期',
	`F_Creator_Time` datetime COMMENT '创建时间',
	`F_Creator_UserId` varchar(50) COMMENT '创建用户',
	`F_LastModify_time` datetime COMMENT '修改时间',
	`F_LastModifyUserId` varchar(50) COMMENT '修改用户',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id'

, PRIMARY KEY (F_Id,f_tenant_id)
) ;
ALTER TABLE test_warehousing COMMENT = '采购入库表';
-- ----------------------------
-- 表名：test_warehousingorder
-- ----------------------------
CREATE TABLE test_warehousingorder (
	`F_Id` varchar(50) NOT NULL COMMENT '主键',
	`F_Purchaseid` varchar(50) COMMENT '主表主键',
	`F_Product` varchar(50) COMMENT '产品',
	`F_Product_name` varchar(50) COMMENT '产品名称',
	`F_Product_Code` varchar(50) COMMENT '产品编码',
	`F_Product_category_bb` varchar(50) COMMENT '产品分类',
	`F_Specifications` varchar(100) COMMENT '规格',
	`F_Unit` varchar(50) COMMENT '单位',
	`F_Actualunitprice` decimal(18,2) COMMENT '单价',
	`F_Numbers` decimal(18,2) COMMENT '采购数量',
	`F_Creator_Time` datetime COMMENT '创建时间',
	`F_CreatorUserId` varchar(50) COMMENT '创建用户',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id'

, PRIMARY KEY (F_Id,f_tenant_id)
) ;
ALTER TABLE test_warehousingorder COMMENT = '入库单明细表';
-- ----------------------------
-- 表名：undo_log
-- ----------------------------
CREATE TABLE undo_log (
	`id` bigint AUTO_INCREMENT COMMENT '',
	`branch_id` bigint NOT NULL COMMENT '',
	`xid` varchar(100) NOT NULL COMMENT '',
	`context` varchar(128) NOT NULL COMMENT '',
	`rollback_info` longblob NOT NULL COMMENT '',
	`log_status` int NOT NULL COMMENT '',
	`log_created` datetime COMMENT '',
	`log_modified` datetime COMMENT '',
	`ext` varchar(100) COMMENT '',
	`f_tenant_id` varchar(50) COMMENT '租户id'

, PRIMARY KEY (id)
) ;
ALTER TABLE undo_log COMMENT = '事务表';
-- ----------------------------
-- 表名：wform_applybanquet
-- ----------------------------
CREATE TABLE wform_applybanquet (
	`F_Id` varchar(50) NOT NULL COMMENT '自然主键',
	`F_FlowId` varchar(50) COMMENT '流程主键',
	`F_FlowTitle` varchar(50) COMMENT '流程标题',
	`F_FlowUrgent` int COMMENT '紧急程度',
	`F_BillNo` varchar(50) COMMENT '流程单据',
	`F_ApplyUser` varchar(50) COMMENT '申请人员',
	`F_Position` varchar(50) COMMENT '所属职务',
	`F_ApplyDate` datetime COMMENT '申请日期',
	`F_BanquetNum` varchar(50) COMMENT '宴请人数',
	`F_BanquetPeople` longtext COMMENT '宴请人员',
	`F_Total` varchar(50) COMMENT '人员总数',
	`F_Place` varchar(50) COMMENT '宴请地点',
	`F_ExpectedCost` decimal(18,2) COMMENT '预计费用',
	`F_Description` text COMMENT '备注',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id',
	`f_flow_id` varchar(50) COMMENT '流程id'

, PRIMARY KEY (F_Id,f_tenant_id)
) ;
ALTER TABLE wform_applybanquet COMMENT = '宴请申请';
-- ----------------------------
-- 表名：wform_applydelivergoods
-- ----------------------------
CREATE TABLE wform_applydelivergoods (
	`F_Id` varchar(50) NOT NULL COMMENT '自然主键',
	`F_FlowId` varchar(50) COMMENT '流程主键',
	`F_FlowTitle` varchar(50) COMMENT '流程标题',
	`F_FlowUrgent` int COMMENT '紧急程度',
	`F_BillNo` varchar(50) COMMENT '流程单据',
	`F_CustomerName` varchar(50) COMMENT '客户名称',
	`F_Contacts` varchar(50) COMMENT '联系人',
	`F_ContactPhone` varchar(50) COMMENT '联系电话',
	`F_CustomerAddres` varchar(50) COMMENT '客户地址',
	`F_GoodsBelonged` varchar(50) COMMENT '货品所属',
	`F_InvoiceDate` datetime COMMENT '发货日期',
	`F_FreightCompany` varchar(50) COMMENT '货运公司',
	`F_DeliveryType` varchar(50) COMMENT '发货类型',
	`F_RransportNum` varchar(50) COMMENT '货运单号',
	`F_FreightCharges` decimal(18,2) COMMENT '货运费',
	`F_CargoInsurance` decimal(18,2) COMMENT '保险金额',
	`F_Description` text COMMENT '备注',
	`F_InvoiceValue` decimal(18,2) COMMENT '发货金额',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id',
	`f_flow_id` varchar(50) COMMENT '流程id'

, PRIMARY KEY (F_Id,f_tenant_id)
) ;
ALTER TABLE wform_applydelivergoods COMMENT = '发货申请单';
-- ----------------------------
-- 表名：wform_applydelivergoodsentry
-- ----------------------------
CREATE TABLE wform_applydelivergoodsentry (
	`F_Id` varchar(50) NOT NULL COMMENT '自然主键',
	`F_InvoiceId` varchar(50) COMMENT '发货主键',
	`F_GoodsName` varchar(50) COMMENT '商品名称',
	`F_Specifications` varchar(50) COMMENT '规格型号',
	`F_Unit` longtext COMMENT '单位',
	`F_Qty` varchar(50) COMMENT '数量',
	`F_Price` decimal(18,2) COMMENT '单价',
	`F_Amount` decimal(18,2) COMMENT '金额',
	`F_Description` text COMMENT '描述',
	`F_SortCode` bigint COMMENT '排序码',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id'

, PRIMARY KEY (F_Id,f_tenant_id)
) ;
ALTER TABLE wform_applydelivergoodsentry COMMENT = '发货明细';
-- ----------------------------
-- 表名：wform_applymeeting
-- ----------------------------
CREATE TABLE wform_applymeeting (
	`F_Id` varchar(50) NOT NULL COMMENT '自然主键',
	`F_FlowId` varchar(50) COMMENT '流程主键',
	`F_FlowTitle` varchar(50) COMMENT '流程标题',
	`F_FlowUrgent` int COMMENT '紧急程度',
	`F_BillNo` varchar(50) COMMENT '流程单据',
	`F_ApplyUser` varchar(50) COMMENT '申请人',
	`F_Position` varchar(50) COMMENT '所属职务',
	`F_ConferenceName` varchar(50) COMMENT '会议名称',
	`F_ConferenceTheme` varchar(50) COMMENT '会议主题',
	`F_ConferenceType` varchar(50) COMMENT '会议类型',
	`F_EstimatePeople` varchar(50) COMMENT '预计人数',
	`F_ConferenceRoom` varchar(50) COMMENT '会议室',
	`F_Administrator` varchar(50) COMMENT '管理人',
	`F_LookPeople` varchar(50) COMMENT '查看人',
	`F_Memo` varchar(50) COMMENT '纪要员',
	`F_Attendees` varchar(50) COMMENT '出席人',
	`F_ApplyMaterial` varchar(50) COMMENT '申请材料',
	`F_EstimatedAmount` decimal(18,2) COMMENT '预计金额',
	`F_OtherAttendee` varchar(50) COMMENT '其他出席人',
	`F_StartDate` datetime COMMENT '开始时间',
	`F_EndDate` datetime COMMENT '结束时间',
	`F_FileJson` longtext COMMENT '相关附件',
	`F_Describe` text COMMENT '会议描述',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id',
	`f_flow_id` varchar(50) COMMENT '流程id'

, PRIMARY KEY (F_Id,f_tenant_id)
) ;
ALTER TABLE wform_applymeeting COMMENT = '会议申请';
-- ----------------------------
-- 表名：wform_archivalborrow
-- ----------------------------
CREATE TABLE wform_archivalborrow (
	`F_Id` varchar(50) NOT NULL COMMENT '自然主键',
	`F_FlowId` varchar(50) COMMENT '流程主键',
	`F_FlowTitle` varchar(50) COMMENT '流程标题',
	`F_FlowUrgent` int COMMENT '紧急程度',
	`F_BillNo` varchar(50) COMMENT '流程单据',
	`F_ApplyUser` varchar(50) COMMENT '申请人',
	`F_BorrowingDepartment` varchar(255) COMMENT '借阅部门',
	`F_ArchivesName` varchar(50) COMMENT '档案名称',
	`F_ArchivalAttributes` varchar(50) COMMENT '档案属性',
	`F_BorrowMode` varchar(50) COMMENT '借阅方式',
	`F_ApplyReason` text COMMENT '申请原因',
	`F_ArchivesId` varchar(50) COMMENT '档案编号',
	`F_BorrowingDate` datetime COMMENT '借阅时间',
	`F_ReturnDate` datetime COMMENT '归还时间',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id',
	`f_flow_id` varchar(50) COMMENT '流程id'

, PRIMARY KEY (F_Id,f_tenant_id)
) ;
ALTER TABLE wform_archivalborrow COMMENT = '档案借阅申请';
-- ----------------------------
-- 表名：wform_articleswarehous
-- ----------------------------
CREATE TABLE wform_articleswarehous (
	`F_Id` varchar(50) NOT NULL COMMENT '自然主键',
	`F_FlowId` varchar(50) COMMENT '流程主键',
	`F_FlowTitle` varchar(50) COMMENT '流程标题',
	`F_FlowUrgent` int COMMENT '紧急程度',
	`F_BillNo` varchar(50) COMMENT '流程单据',
	`F_ApplyUser` varchar(50) COMMENT '申请人',
	`F_Department` varchar(255) COMMENT '所属部门',
	`F_Articles` varchar(50) COMMENT '用品库存',
	`F_Classification` varchar(50) COMMENT '用品分类',
	`F_ArticlesId` varchar(50) COMMENT '用品编号',
	`F_Company` varchar(50) COMMENT '单位',
	`F_EstimatePeople` varchar(50) COMMENT '数量',
	`F_ApplyReasons` text COMMENT '申请原因',
	`F_ApplyDate` datetime COMMENT '申请时间',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id',
	`f_flow_id` varchar(50) COMMENT '流程id'

, PRIMARY KEY (F_Id,f_tenant_id)
) ;
ALTER TABLE wform_articleswarehous COMMENT = '用品入库申请表';
-- ----------------------------
-- 表名：wform_batchpack
-- ----------------------------
CREATE TABLE wform_batchpack (
	`F_Id` varchar(50) NOT NULL COMMENT '自然主键',
	`F_FlowId` varchar(50) COMMENT '流程主键',
	`F_FlowTitle` varchar(50) COMMENT '流程标题',
	`F_FlowUrgent` int COMMENT '紧急程度',
	`F_BillNo` varchar(50) COMMENT '流程单据',
	`F_ProductName` varchar(50) COMMENT '产品名称',
	`F_Production` varchar(50) COMMENT '生产车间',
	`F_Compactor` varchar(50) COMMENT '编制人员',
	`F_CompactorDate` datetime COMMENT '编制日期',
	`F_Standard` varchar(50) COMMENT '产品规格',
	`F_WarehousNo` varchar(50) COMMENT '入库序号',
	`F_ProductionQuty` varchar(50) COMMENT '批产数量',
	`F_OperationDate` datetime COMMENT '操作日期',
	`F_Regulations` varchar(50) COMMENT '工艺规程',
	`F_Packing` varchar(50) COMMENT '包装规格',
	`F_Description` text COMMENT '备注',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id',
	`f_flow_id` varchar(50) COMMENT '流程id'

, PRIMARY KEY (F_Id,f_tenant_id)
) ;
ALTER TABLE wform_batchpack COMMENT = '批包装指令';
-- ----------------------------
-- 表名：wform_batchtable
-- ----------------------------
CREATE TABLE wform_batchtable (
	`F_Id` varchar(50) NOT NULL COMMENT '自然主键',
	`F_FlowId` varchar(50) COMMENT '流程主键',
	`F_FlowTitle` varchar(50) COMMENT '流程标题',
	`F_FlowUrgent` int COMMENT '紧急程度',
	`F_BillNo` varchar(50) COMMENT '流程单据',
	`F_FileTitle` varchar(50) COMMENT '文件标题',
	`F_DraftedPerson` varchar(50) COMMENT '主办单位',
	`F_FillNum` varchar(50) COMMENT '文件编号',
	`F_SendUnit` varchar(50) COMMENT '发往单位',
	`F_Typing` varchar(50) COMMENT '打字',
	`F_WritingDate` datetime COMMENT '发文日期',
	`F_ShareNum` varchar(50) COMMENT '份数',
	`F_FileJson` longtext COMMENT '相关附件',
	`F_Description` text COMMENT '备注',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id',
	`f_flow_id` varchar(50) COMMENT '流程id'

, PRIMARY KEY (F_Id,f_tenant_id)
) ;
ALTER TABLE wform_batchtable COMMENT = '行文呈批表';
-- ----------------------------
-- 表名：wform_conbilling
-- ----------------------------
CREATE TABLE wform_conbilling (
	`F_Id` varchar(50) NOT NULL COMMENT '自然主键',
	`F_FlowId` varchar(50) COMMENT '流程主键',
	`F_FlowTitle` varchar(50) COMMENT '流程标题',
	`F_FlowUrgent` int COMMENT '紧急程度',
	`F_BillNo` varchar(50) COMMENT '流程单据',
	`F_Drawer` varchar(50) COMMENT '开票人',
	`F_BillDate` datetime COMMENT '开票日期',
	`F_CompanyName` varchar(50) COMMENT '公司名称',
	`F_ConName` varchar(50) COMMENT '关联名称',
	`F_Bank` varchar(50) COMMENT '开户银行',
	`F_Amount` varchar(50) COMMENT '开户账号',
	`F_BillAmount` decimal(18,2) COMMENT '开票金额',
	`F_TaxId` varchar(50) COMMENT '税号',
	`F_InvoiceId` varchar(50) COMMENT '发票号',
	`F_InvoAddress` varchar(50) COMMENT '发票地址',
	`F_PayAmount` decimal(18,2) COMMENT '付款金额',
	`F_FileJson` longtext COMMENT '相关附件',
	`F_Description` text COMMENT '备注',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id',
	`f_flow_id` varchar(50) COMMENT '流程id'

, PRIMARY KEY (F_Id,f_tenant_id)
) ;
ALTER TABLE wform_conbilling COMMENT = '合同开票流程';
-- ----------------------------
-- 表名：wform_contractapproval
-- ----------------------------
CREATE TABLE wform_contractapproval (
	`F_Id` varchar(50) NOT NULL COMMENT '自然主键',
	`F_FlowId` varchar(50) COMMENT '流程主键',
	`F_FlowTitle` varchar(50) COMMENT '流程标题',
	`F_FlowUrgent` int COMMENT '紧急程度',
	`F_BillNo` varchar(50) COMMENT '流程单据',
	`F_FirstPartyUnit` varchar(50) COMMENT '甲方单位',
	`F_SecondPartyUnit` varchar(50) COMMENT '乙方单位',
	`F_FirstPartyPerson` varchar(50) COMMENT '甲方负责人',
	`F_SecondPartyPerson` varchar(50) COMMENT '乙方负责人',
	`F_FirstPartyContact` varchar(50) COMMENT '甲方联系方式',
	`F_SecondPartyContact` varchar(50) COMMENT '乙方联系方式',
	`F_ContractName` varchar(50) COMMENT '合同名称',
	`F_ContractClass` varchar(50) COMMENT '合同分类',
	`F_ContractType` varchar(50) COMMENT '合同类型',
	`F_ContractId` varchar(50) COMMENT '合同编号',
	`F_BusinessPerson` varchar(50) COMMENT '业务人员',
	`F_IncomeAmount` decimal(18,2) COMMENT '收入金额',
	`F_InputPerson` varchar(50) COMMENT '填写人员',
	`F_FileJson` longtext COMMENT '相关附件',
	`F_PrimaryCoverage` text COMMENT '主要内容',
	`F_Description` text COMMENT '备注',
	`F_SigningDate` datetime COMMENT '签约时间',
	`F_StartDate` datetime COMMENT '开始时间',
	`F_EndDate` datetime COMMENT '结束时间',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id',
	`f_flow_id` varchar(50) COMMENT '流程id'

, PRIMARY KEY (F_Id,f_tenant_id)
) ;
ALTER TABLE wform_contractapproval COMMENT = '合同审批';
-- ----------------------------
-- 表名：wform_contractapprovalsheet
-- ----------------------------
CREATE TABLE wform_contractapprovalsheet (
	`F_Id` varchar(50) NOT NULL COMMENT '自然主键',
	`F_FlowId` varchar(50) COMMENT '流程主键',
	`F_FlowTitle` varchar(50) COMMENT '流程标题',
	`F_FlowUrgent` int COMMENT '紧急程度',
	`F_BillNo` varchar(50) COMMENT '流程单据',
	`F_ApplyUser` varchar(50) COMMENT '申请人',
	`F_ApplyDate` datetime COMMENT '申请日期',
	`F_ContractId` varchar(50) COMMENT '编号支出',
	`F_ContractNum` varchar(50) COMMENT '合同号',
	`F_FirstParty` varchar(50) COMMENT '签署方(甲方)',
	`F_SecondParty` varchar(50) COMMENT '乙方',
	`F_ContractName` varchar(50) COMMENT '合同名称',
	`F_ContractType` varchar(50) COMMENT '合同类型',
	`F_PersonCharge` varchar(50) COMMENT '合作负责人',
	`F_LeadDepartment` varchar(255) COMMENT '所属部门',
	`F_SignArea` varchar(50) COMMENT '签订地区',
	`F_IncomeAmount` decimal(18,2) COMMENT '收入金额',
	`F_TotalExpenditure` decimal(18,2) COMMENT '支出总额',
	`F_ContractPeriod` varchar(50) COMMENT '合同期限',
	`F_PaymentMethod` varchar(50) COMMENT '付款方式',
	`F_BudgetaryApproval` varchar(50) COMMENT '预算批付',
	`F_StartContractDate` datetime COMMENT '开始时间',
	`F_EndContractDate` datetime COMMENT '',
	`F_FileJson` longtext COMMENT '相关附件',
	`F_ContractContent` text COMMENT '内容简要',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id',
	`f_flow_id` varchar(50) COMMENT '流程id'

, PRIMARY KEY (F_Id,f_tenant_id)
) ;
ALTER TABLE wform_contractapprovalsheet COMMENT = '合同申请单表';
-- ----------------------------
-- 表名：wform_debitbill
-- ----------------------------
CREATE TABLE wform_debitbill (
	`F_Id` varchar(50) NOT NULL COMMENT '自然主键',
	`F_FlowId` varchar(50) COMMENT '流程主键',
	`F_FlowTitle` varchar(50) COMMENT '流程标题',
	`F_FlowUrgent` int COMMENT '紧急程度',
	`F_BillNo` varchar(50) COMMENT '流程单据',
	`F_Departmental` varchar(255) COMMENT '工作部门',
	`F_ApplyDate` datetime COMMENT '申请日期',
	`F_StaffName` varchar(50) COMMENT '员工姓名',
	`F_StaffPost` varchar(50) COMMENT '员工职务',
	`F_StaffId` varchar(50) COMMENT '员工编号',
	`F_LoanMode` varchar(50) COMMENT '借款方式',
	`F_AmountDebit` decimal(18,2) COMMENT '借支金额',
	`F_TransferAccount` varchar(50) COMMENT '转账账户',
	`F_RepaymentBill` varchar(50) COMMENT '还款票据',
	`F_TeachingDate` datetime COMMENT '还款日期',
	`F_PaymentMethod` varchar(50) COMMENT '支付方式',
	`F_Reason` text COMMENT '借款原因',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id',
	`f_flow_id` varchar(50) COMMENT '流程id'

, PRIMARY KEY (F_Id,f_tenant_id)
) ;
ALTER TABLE wform_debitbill COMMENT = '借支单';
-- ----------------------------
-- 表名：wform_documentapproval
-- ----------------------------
CREATE TABLE wform_documentapproval (
	`F_Id` varchar(50) NOT NULL COMMENT '自然主键',
	`F_FlowId` varchar(50) COMMENT '流程主键',
	`F_FlowTitle` varchar(50) COMMENT '流程标题',
	`F_FlowUrgent` int COMMENT '紧急程度',
	`F_BillNo` varchar(50) COMMENT '流程单据',
	`F_FileName` varchar(50) COMMENT '文件名称',
	`F_DraftedPerson` varchar(50) COMMENT '拟稿人',
	`F_ServiceUnit` varchar(50) COMMENT '发文单位',
	`F_FillPreparation` varchar(50) COMMENT '文件拟办',
	`F_FillNum` varchar(50) COMMENT '文件编号',
	`F_ReceiptDate` datetime COMMENT '收文日期',
	`F_FileJson` longtext COMMENT '相关附件',
	`F_ModifyOpinion` longtext COMMENT '修改意见',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id',
	`f_flow_id` varchar(50) COMMENT '流程id'

, PRIMARY KEY (F_Id,f_tenant_id)
) ;
ALTER TABLE wform_documentapproval COMMENT = '文件签批意见表';
-- ----------------------------
-- 表名：wform_documentsigning
-- ----------------------------
CREATE TABLE wform_documentsigning (
	`F_Id` varchar(50) NOT NULL COMMENT '自然主键',
	`F_FlowId` varchar(50) COMMENT '流程主键',
	`F_FlowTitle` varchar(50) COMMENT '流程标题',
	`F_FlowUrgent` int COMMENT '紧急程度',
	`F_BillNo` varchar(50) COMMENT '流程单据',
	`F_FileName` varchar(50) COMMENT '文件名称',
	`F_FillNum` varchar(50) COMMENT '文件编号',
	`F_DraftedPerson` varchar(50) COMMENT '拟稿人',
	`F_Reader` varchar(50) COMMENT '签阅人',
	`F_FillPreparation` varchar(50) COMMENT '文件拟办',
	`F_CheckDate` datetime COMMENT '签阅时间',
	`F_PublicationDate` datetime COMMENT '发稿日期',
	`F_FileJson` longtext COMMENT '相关附件',
	`F_DocumentContent` longtext COMMENT '文件内容',
	`F_AdviceColumn` text COMMENT '建议栏',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id',
	`f_flow_id` varchar(50) COMMENT '流程id'

, PRIMARY KEY (F_Id,f_tenant_id)
) ;
ALTER TABLE wform_documentsigning COMMENT = '文件签阅表';
-- ----------------------------
-- 表名：wform_expenseexpenditure
-- ----------------------------
CREATE TABLE wform_expenseexpenditure (
	`F_Id` varchar(50) NOT NULL COMMENT '自然主键',
	`F_FlowId` varchar(50) COMMENT '流程主键',
	`F_FlowTitle` varchar(50) COMMENT '流程标题',
	`F_FlowUrgent` int COMMENT '流程等级',
	`F_BillNo` varchar(50) COMMENT '流程单据',
	`F_ApplyUser` varchar(50) COMMENT '申请人员',
	`F_Department` varchar(255) COMMENT '所在部门',
	`F_ApplyDate` datetime COMMENT '申请日期',
	`F_ContractNum` varchar(50) COMMENT '合同编号',
	`F_NonContract` varchar(50) COMMENT '非合同支出',
	`F_AccountOpeningBank` varchar(50) COMMENT '开户银行',
	`F_BankAccount` varchar(50) COMMENT '银行账号',
	`F_OpenAccount` varchar(50) COMMENT '开户姓名',
	`F_Total` decimal(18,2) COMMENT '合计费用',
	`F_PaymentMethod` varchar(50) COMMENT '支付方式',
	`F_AmountPayment` decimal(18,2) COMMENT '支付金额',
	`F_Description` text COMMENT '备注',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id',
	`f_flow_id` varchar(50) COMMENT '流程id'

, PRIMARY KEY (F_Id,f_tenant_id)
) ;
ALTER TABLE wform_expenseexpenditure COMMENT = '费用支出单';
-- ----------------------------
-- 表名：wform_finishedproduct
-- ----------------------------
CREATE TABLE wform_finishedproduct (
	`F_Id` varchar(50) NOT NULL COMMENT '自然主键',
	`F_FlowId` varchar(50) COMMENT '流程主键',
	`F_FlowTitle` varchar(50) COMMENT '流程标题',
	`F_FlowUrgent` int COMMENT '紧急程度',
	`F_BillNo` varchar(50) COMMENT '流程单据',
	`F_WarehouseName` varchar(50) COMMENT '入库人',
	`F_Warehouse` varchar(50) COMMENT '仓库',
	`F_Description` text COMMENT '备注',
	`F_ReservoirDate` datetime COMMENT '入库时间',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id',
	`f_flow_id` varchar(50) COMMENT '流程id'

, PRIMARY KEY (F_Id,f_tenant_id)
) ;
ALTER TABLE wform_finishedproduct COMMENT = '成品入库单';
-- ----------------------------
-- 表名：wform_finishedproductentry
-- ----------------------------
CREATE TABLE wform_finishedproductentry (
	`F_Id` varchar(50) NOT NULL COMMENT '自然主键',
	`F_WarehouseId` varchar(50) COMMENT '入库单号',
	`F_GoodsName` varchar(50) COMMENT '商品名称',
	`F_Specifications` varchar(50) COMMENT '规格型号',
	`F_Unit` varchar(50) COMMENT '单位',
	`F_Qty` varchar(50) COMMENT '数量',
	`F_Price` decimal(18,2) COMMENT '单价',
	`F_Amount` decimal(18,2) COMMENT '金额',
	`F_Description` text COMMENT '备注',
	`F_SortCode` bigint COMMENT '排序号',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id'

, PRIMARY KEY (F_Id,f_tenant_id)
) ;
ALTER TABLE wform_finishedproductentry COMMENT = '成品入库单明细';
-- ----------------------------
-- 表名：wform_incomerecognition
-- ----------------------------
CREATE TABLE wform_incomerecognition (
	`F_Id` varchar(50) NOT NULL COMMENT '自然主键',
	`F_FlowId` varchar(50) COMMENT '流程主题',
	`F_FlowTitle` varchar(50) COMMENT '流程标题',
	`F_FlowUrgent` int COMMENT '紧急程度',
	`F_BillNo` varchar(50) COMMENT '流程单据',
	`F_SettlementMonth` varchar(50) COMMENT '结算月份',
	`F_CustomerName` varchar(50) COMMENT '客户名称',
	`F_ContractNum` varchar(50) COMMENT '合同编号',
	`F_TotalAmount` decimal(18,2) COMMENT '合同金额',
	`F_MoneyBank` varchar(50) COMMENT '到款银行',
	`F_ActualAmount` decimal(18,2) COMMENT '到款金额',
	`F_ContactName` varchar(50) COMMENT '联系人姓名',
	`F_ContacPhone` varchar(50) COMMENT '联系电话',
	`F_ContactQQ` varchar(50) COMMENT '联系QQ',
	`F_UnpaidAmount` decimal(18,2) COMMENT '未付金额',
	`F_AmountPaid` decimal(18,2) COMMENT '已付金额',
	`F_Description` text COMMENT '备注',
	`F_PaymentDate` datetime COMMENT '到款日期',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id',
	`f_flow_id` varchar(50) COMMENT '流程id'

, PRIMARY KEY (F_Id,f_tenant_id)
) ;
ALTER TABLE wform_incomerecognition COMMENT = '收入确认分析表';
-- ----------------------------
-- 表名：wform_leaveapply
-- ----------------------------
CREATE TABLE wform_leaveapply (
	`F_Id` varchar(50) NOT NULL COMMENT '自然主键',
	`F_FlowId` varchar(50) COMMENT '流程主键',
	`F_FlowTitle` varchar(200) COMMENT '流程标题',
	`F_FlowUrgent` int COMMENT '紧急程度',
	`F_BillNo` varchar(50) COMMENT '单据编号',
	`F_ApplyUser` varchar(50) COMMENT '申请人员',
	`F_ApplyDept` varchar(255) COMMENT '申请部门',
	`F_ApplyPost` varchar(50) COMMENT '申请职位',
	`F_LeaveType` varchar(50) COMMENT '请假类别',
	`F_LeaveReason` text COMMENT '请假原因',
	`F_LeaveDayCount` varchar(50) COMMENT '请假天数',
	`F_LeaveHour` varchar(50) COMMENT '请假小时',
	`F_FileJson` longtext COMMENT '相关附件',
	`F_Description` text COMMENT '备注',
	`F_ApplyDate` datetime COMMENT '申请日期',
	`F_LeaveStartTime` datetime COMMENT '请假时间',
	`F_LeaveEndTime` datetime COMMENT '结束时间',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id'

, PRIMARY KEY (F_Id,f_tenant_id)
) ;
ALTER TABLE wform_leaveapply COMMENT = '流程表单【请假申请】';
-- ----------------------------
-- 表名：wform_letterservice
-- ----------------------------
CREATE TABLE wform_letterservice (
	`F_Id` varchar(50) NOT NULL COMMENT '自然主键',
	`F_FlowId` varchar(50) COMMENT '流程主键',
	`F_FlowTitle` varchar(50) COMMENT '流程标题',
	`F_FlowUrgent` int COMMENT '紧急程度',
	`F_BillNo` varchar(50) COMMENT '流程单据',
	`F_HostUnit` varchar(50) COMMENT '主办单位',
	`F_Title` varchar(50) COMMENT '发文标题',
	`F_IssuedNum` varchar(50) COMMENT '发文字号',
	`F_WritingDate` datetime COMMENT '发文日期',
	`F_ShareNum` varchar(50) COMMENT '份数',
	`F_MainDelivery` varchar(50) COMMENT '主送',
	`F_Copy` varchar(50) COMMENT '抄送',
	`F_FileJson` longtext COMMENT '相关附件',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id',
	`f_flow_id` varchar(50) COMMENT '流程id'

, PRIMARY KEY (F_Id,f_tenant_id)
) ;
ALTER TABLE wform_letterservice COMMENT = '发文单';
-- ----------------------------
-- 表名：wform_materialrequisition
-- ----------------------------
CREATE TABLE wform_materialrequisition (
	`F_Id` varchar(50) NOT NULL COMMENT '自然主键',
	`F_FlowId` varchar(50) COMMENT '流程主键',
	`F_FlowTitle` varchar(50) COMMENT '流程标题',
	`F_FlowUrgent` int COMMENT '紧急程度',
	`F_BillNo` varchar(50) COMMENT '流程单据',
	`F_LeadPeople` varchar(50) COMMENT '领料人',
	`F_LeadDepartment` varchar(255) COMMENT '领料部门',
	`F_LeadDate` datetime COMMENT '领料日期',
	`F_Warehouse` varchar(50) COMMENT '仓库',
	`F_Description` text COMMENT '备注',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id',
	`f_flow_id` varchar(50) COMMENT '流程id'

, PRIMARY KEY (F_Id,f_tenant_id)
) ;
ALTER TABLE wform_materialrequisition COMMENT = '领料单';
-- ----------------------------
-- 表名：wform_materialrequisitionentry
-- ----------------------------
CREATE TABLE wform_materialrequisitionentry (
	`F_Id` varchar(50) NOT NULL COMMENT '自然主键',
	`F_LeadeId` varchar(50) COMMENT '领料主键',
	`F_GoodsName` varchar(50) COMMENT '商品名称',
	`F_Specifications` varchar(50) COMMENT '规格型号',
	`F_Unit` varchar(50) COMMENT '单位',
	`F_MaterialDemand` varchar(50) COMMENT '需数量',
	`F_Proportioning` varchar(50) COMMENT '配数量',
	`F_Price` decimal(18,2) COMMENT '单价',
	`F_Amount` decimal(18,2) COMMENT '金额',
	`F_Description` text COMMENT '备注',
	`F_SortCode` bigint COMMENT '排序码',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id'

, PRIMARY KEY (F_Id,f_tenant_id)
) ;
ALTER TABLE wform_materialrequisitionentry COMMENT = '领料明细';
-- ----------------------------
-- 表名：wform_monthlyreport
-- ----------------------------
CREATE TABLE wform_monthlyreport (
	`F_Id` varchar(50) NOT NULL COMMENT '自然主键',
	`F_FlowId` varchar(50) COMMENT '流程主键',
	`F_FlowTitle` varchar(50) COMMENT '流程标题',
	`F_FlowUrgent` int COMMENT '紧急程度',
	`F_BillNo` varchar(50) COMMENT '流程单据',
	`F_ApplyUser` varchar(50) COMMENT '创建人',
	`F_ApplyDate` datetime COMMENT '创建日期',
	`F_ApplyDept` varchar(255) COMMENT '所属部门',
	`F_ApplyPost` varchar(50) COMMENT '所属职务',
	`F_PlanEndTime` datetime COMMENT '完成时间',
	`F_OveralEvaluat` longtext COMMENT '总体评价',
	`F_NPWorkMatter` varchar(50) COMMENT '工作事项',
	`F_NPFinishTime` datetime COMMENT '次月日期',
	`F_NFinishMethod` longtext COMMENT '次月目标',
	`F_FileJson` longtext COMMENT '相关附件',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id',
	`f_flow_id` varchar(50) COMMENT '流程id'

, PRIMARY KEY (F_Id,f_tenant_id)
) ;
ALTER TABLE wform_monthlyreport COMMENT = '月工作总结';
-- ----------------------------
-- 表名：wform_officesupplies
-- ----------------------------
CREATE TABLE wform_officesupplies (
	`F_Id` varchar(50) NOT NULL COMMENT '自然主键',
	`F_FlowId` varchar(50) COMMENT '流程主键',
	`F_FlowTitle` varchar(50) COMMENT '流程标题',
	`F_FlowUrgent` int COMMENT '紧急程度',
	`F_BillNo` varchar(50) COMMENT '流程单据',
	`F_ApplyUser` varchar(255) COMMENT '申请部门',
	`F_Department` varchar(255) COMMENT '所属部门',
	`F_UseStock` varchar(50) COMMENT '领用仓库',
	`F_Classification` varchar(50) COMMENT '用品分类',
	`F_ArticlesName` varchar(50) COMMENT '用品名称',
	`F_ArticlesNum` varchar(50) COMMENT '用品数量',
	`F_ArticlesId` varchar(50) COMMENT '用品编号',
	`F_ApplyReasons` text COMMENT '申请原因',
	`F_ApplyDate` datetime COMMENT '申请时间',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id',
	`f_flow_id` varchar(50) COMMENT '流程id'

, PRIMARY KEY (F_Id,f_tenant_id)
) ;
ALTER TABLE wform_officesupplies COMMENT = '领用办公用品申请表';
-- ----------------------------
-- 表名：wform_outboundorder
-- ----------------------------
CREATE TABLE wform_outboundorder (
	`F_Id` varchar(50) NOT NULL COMMENT '自然主键',
	`F_FlowId` varchar(50) COMMENT '流程主键',
	`F_FlowTitle` varchar(50) COMMENT '流程标题',
	`F_FlowUrgent` int COMMENT '紧急程度',
	`F_BillNo` varchar(50) COMMENT '流程单据',
	`F_CustomerName` varchar(50) COMMENT '客户名称',
	`F_Warehouse` varchar(50) COMMENT '仓库',
	`F_OutStorage` varchar(50) COMMENT '仓库人',
	`F_BusinessPeople` varchar(50) COMMENT '业务人员',
	`F_BusinessType` varchar(50) COMMENT '业务类型',
	`F_OutboundDate` datetime COMMENT '出库日期',
	`F_Description` text COMMENT '备注',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id',
	`f_flow_id` varchar(50) COMMENT '流程id'

, PRIMARY KEY (F_Id,f_tenant_id)
) ;
ALTER TABLE wform_outboundorder COMMENT = '出库单';
-- ----------------------------
-- 表名：wform_outboundorderentry
-- ----------------------------
CREATE TABLE wform_outboundorderentry (
	`F_Id` varchar(50) NOT NULL COMMENT '自然主键',
	`F_OutboundId` varchar(50) COMMENT '出库单号',
	`F_GoodsName` varchar(50) COMMENT '商品名称',
	`F_Specifications` varchar(50) COMMENT '规格型号',
	`F_Unit` varchar(50) COMMENT '单位',
	`F_Qty` varchar(50) COMMENT '数量',
	`F_Price` decimal(18,2) COMMENT '单价',
	`F_Amount` decimal(18,2) COMMENT '金额',
	`F_Description` text COMMENT '备注',
	`F_SortCode` bigint COMMENT '排序码',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id'

, PRIMARY KEY (F_Id,f_tenant_id)
) ;
ALTER TABLE wform_outboundorderentry COMMENT = '出库单明细';
-- ----------------------------
-- 表名：wform_outgoingapply
-- ----------------------------
CREATE TABLE wform_outgoingapply (
	`F_Id` varchar(50) NOT NULL COMMENT '自然主键',
	`F_FlowId` varchar(50) COMMENT '流程主键',
	`F_FlowTitle` varchar(50) COMMENT '流程标题',
	`F_FlowUrgent` int COMMENT '紧急程度',
	`F_BillNo` varchar(50) COMMENT '流程单据',
	`F_ApplyUser` varchar(50) COMMENT '申请人',
	`F_Department` varchar(255) COMMENT '所在部门',
	`F_ApplyDate` datetime COMMENT '申请日期',
	`F_OutgoingTotle` varchar(50) COMMENT '外出总计',
	`F_StartTime` datetime COMMENT '开始时间',
	`F_EndTime` datetime COMMENT '结束时间',
	`F_Destination` varchar(50) COMMENT '目的地',
	`F_FileJson` longtext COMMENT '相关附件',
	`F_OutgoingCause` text COMMENT '外出事由',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id',
	`f_flow_id` varchar(50) COMMENT '流程id'

, PRIMARY KEY (F_Id,f_tenant_id)
) ;
ALTER TABLE wform_outgoingapply COMMENT = '外出申请单';
-- ----------------------------
-- 表名：wform_paydistribution
-- ----------------------------
CREATE TABLE wform_paydistribution (
	`F_Id` varchar(50) NOT NULL COMMENT '自然主键',
	`F_FlowId` varchar(50) COMMENT '流程主键',
	`F_FlowTitle` varchar(50) COMMENT '流程标题',
	`F_FlowUrgent` int COMMENT '紧急程度',
	`F_BillNo` varchar(50) COMMENT '流程单据',
	`F_Month` varchar(50) COMMENT '所属月份',
	`F_IssuingUnit` varchar(50) COMMENT '发放单位',
	`F_Department` varchar(255) COMMENT '员工部门',
	`F_Position` varchar(50) COMMENT '员工职位',
	`F_BaseSalary` decimal(18,2) COMMENT '基本薪资',
	`F_ActualAttendance` varchar(50) COMMENT '出勤天数',
	`F_Allowance` decimal(18,2) COMMENT '员工津贴',
	`F_IncomeTax` decimal(18,2) COMMENT '所得税',
	`F_Insurance` decimal(18,2) COMMENT '员工保险',
	`F_Performance` decimal(18,2) COMMENT '员工绩效',
	`F_OvertimePay` decimal(18,2) COMMENT '加班费用',
	`F_GrossPay` decimal(18,2) COMMENT '应发工资',
	`F_Payroll` decimal(18,2) COMMENT '实发工资',
	`F_Description` text COMMENT '备注',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id',
	`f_flow_id` varchar(50) COMMENT '流程id'

, PRIMARY KEY (F_Id,f_tenant_id)
) ;
ALTER TABLE wform_paydistribution COMMENT = '薪酬发放';
-- ----------------------------
-- 表名：wform_paymentapply
-- ----------------------------
CREATE TABLE wform_paymentapply (
	`F_Id` varchar(50) NOT NULL COMMENT '自然主键',
	`F_FlowId` varchar(50) COMMENT '流程主键',
	`F_FlowTitle` varchar(50) COMMENT '流程标题',
	`F_FlowUrgent` int COMMENT '紧急程度',
	`F_BillNo` varchar(50) COMMENT '流程单据',
	`F_ApplyUser` varchar(50) COMMENT '申请人',
	`F_Departmental` varchar(255) COMMENT '申请部门',
	`F_PurposeName` varchar(50) COMMENT '用途名称',
	`F_ProjectCategory` varchar(50) COMMENT '项目类别',
	`F_ProjectLeader` varchar(50) COMMENT '项目负责人',
	`F_OpeningBank` varchar(50) COMMENT '开户银行',
	`F_BeneficiaryAccount` varchar(50) COMMENT '收款账号',
	`F_ReceivableContact` varchar(50) COMMENT '联系方式',
	`F_PaymentUnit` varchar(50) COMMENT '付款单位',
	`F_ApplyAmount` decimal(18,2) COMMENT '申请金额',
	`F_SettlementMethod` varchar(50) COMMENT '结算方式',
	`F_PaymentType` varchar(50) COMMENT '付款类型',
	`F_AmountPaid` decimal(18,2) COMMENT '付款金额',
	`F_Description` text COMMENT '备注',
	`F_ApplyDate` datetime COMMENT '申请日期',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id',
	`f_flow_id` varchar(50) COMMENT '流程id'

, PRIMARY KEY (F_Id,f_tenant_id)
) ;
ALTER TABLE wform_paymentapply COMMENT = '付款申请单';
-- ----------------------------
-- 表名：wform_postbatchtab
-- ----------------------------
CREATE TABLE wform_postbatchtab (
	`F_Id` varchar(50) NOT NULL COMMENT '自然主键',
	`F_FlowId` varchar(50) COMMENT '流程主键',
	`F_FlowTitle` varchar(50) COMMENT '流程标题',
	`F_FlowUrgent` int COMMENT '紧急程度',
	`F_BillNo` varchar(50) COMMENT '流程单据',
	`F_FileTitle` varchar(50) COMMENT '文件标题',
	`F_DraftedPerson` varchar(50) COMMENT '主办单位',
	`F_SendUnit` varchar(50) COMMENT '发往单位',
	`F_WritingNum` varchar(50) COMMENT '发文编号',
	`F_WritingDate` datetime COMMENT '发文日期',
	`F_ShareNum` varchar(50) COMMENT '份数',
	`F_FileJson` longtext COMMENT '相关附件',
	`F_Description` text COMMENT '备注',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id',
	`f_flow_id` varchar(50) COMMENT '流程id'

, PRIMARY KEY (F_Id,f_tenant_id)
) ;
ALTER TABLE wform_postbatchtab COMMENT = '发文呈批表';
-- ----------------------------
-- 表名：wform_procurementmaterial
-- ----------------------------
CREATE TABLE wform_procurementmaterial (
	`F_Id` varchar(50) NOT NULL COMMENT '自然主键',
	`F_FlowId` varchar(50) COMMENT '流程主键',
	`F_FlowTitle` varchar(50) COMMENT '流程标题',
	`F_FlowUrgent` int COMMENT '紧急程度',
	`F_BillNo` varchar(50) COMMENT '流程单据',
	`F_ApplyUser` varchar(50) COMMENT '申请人',
	`F_Departmental` varchar(255) COMMENT '申请部门',
	`F_ApplyDate` datetime COMMENT '申请日期',
	`F_PurchaseUnit` varchar(50) COMMENT '采购单位',
	`F_DeliveryMode` varchar(50) COMMENT '送货方式',
	`F_DeliveryAddress` varchar(50) COMMENT '送货地址',
	`F_PaymentMethod` varchar(50) COMMENT '付款方式',
	`F_PaymentMoney` decimal(18,2) COMMENT '付款金额',
	`F_FileJson` longtext COMMENT '相关附件',
	`F_Reason` text COMMENT '用途原因',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id',
	`f_flow_id` varchar(50) COMMENT '流程id'

, PRIMARY KEY (F_Id,f_tenant_id)
) ;
ALTER TABLE wform_procurementmaterial COMMENT = '采购原材料';
-- ----------------------------
-- 表名：wform_procurementmaterialentry
-- ----------------------------
CREATE TABLE wform_procurementmaterialentry (
	`F_Id` varchar(50) NOT NULL COMMENT '自然主键',
	`F_ProcurementId` varchar(50) COMMENT '采购主键',
	`F_GoodsName` varchar(50) COMMENT '商品名称',
	`F_Specifications` varchar(50) COMMENT '规格型号',
	`F_Unit` longtext COMMENT '单位',
	`F_Qty` varchar(50) COMMENT '数量',
	`F_Price` decimal(18,2) COMMENT '单价',
	`F_Amount` decimal(18,2) COMMENT '金额',
	`F_Description` text COMMENT '备注',
	`F_SortCode` bigint COMMENT '排序码',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id'

, PRIMARY KEY (F_Id,f_tenant_id)
) ;
ALTER TABLE wform_procurementmaterialentry COMMENT = '采购明细';
-- ----------------------------
-- 表名：wform_purchaselist
-- ----------------------------
CREATE TABLE wform_purchaselist (
	`F_Id` varchar(50) NOT NULL COMMENT '自然主键',
	`F_FlowId` varchar(50) COMMENT '流程主键',
	`F_FlowTitle` varchar(50) COMMENT '流程标题',
	`F_FlowUrgent` int COMMENT '紧急程度',
	`F_BillNo` varchar(50) COMMENT '流程单据',
	`F_ApplyUser` varchar(50) COMMENT '申请人',
	`F_Departmental` varchar(255) COMMENT '所在部门',
	`F_VendorName` varchar(50) COMMENT '供应商名称',
	`F_Buyer` varchar(50) COMMENT '采购人员',
	`F_PurchaseDate` datetime COMMENT '采购日期',
	`F_Warehouse` varchar(50) COMMENT '仓库',
	`F_Telephone` varchar(50) COMMENT '联系方式',
	`F_PaymentMethod` varchar(50) COMMENT '支付方式',
	`F_PaymentMoney` decimal(18,2) COMMENT '支付总额',
	`F_FileJson` longtext COMMENT '相关附件',
	`F_Reason` text COMMENT '用途原因',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id',
	`f_flow_id` varchar(50) COMMENT '流程id'

, PRIMARY KEY (F_Id,f_tenant_id)
) ;
ALTER TABLE wform_purchaselist COMMENT = '日常物品采购清单';
-- ----------------------------
-- 表名：wform_purchaselistentry
-- ----------------------------
CREATE TABLE wform_purchaselistentry (
	`F_Id` varchar(50) NOT NULL COMMENT '自然主键',
	`F_PurchaseId` varchar(50) COMMENT '采购主键',
	`F_GoodsName` varchar(50) COMMENT '商品名称',
	`F_Specifications` varchar(50) COMMENT '规格型号',
	`F_Unit` varchar(50) COMMENT '单位',
	`F_Qty` varchar(50) COMMENT '数量',
	`F_Price` decimal(18,2) COMMENT '单价',
	`F_Amount` decimal(18,2) COMMENT '金额',
	`F_Description` text COMMENT '备注',
	`F_SortCode` bigint COMMENT '排序码',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id'

, PRIMARY KEY (F_Id,f_tenant_id)
) ;
ALTER TABLE wform_purchaselistentry COMMENT = '日常物品采购清单';
-- ----------------------------
-- 表名：wform_quotationapproval
-- ----------------------------
CREATE TABLE wform_quotationapproval (
	`F_Id` varchar(50) NOT NULL COMMENT '自然主键',
	`F_FlowId` varchar(50) COMMENT '流程主键',
	`F_FlowTitle` varchar(50) COMMENT '流程标题',
	`F_FlowUrgent` int COMMENT '流程等级',
	`F_BillNo` varchar(50) COMMENT '流程单据',
	`F_Writer` varchar(50) COMMENT '填报人',
	`F_WriteDate` datetime COMMENT '填表日期',
	`F_CustomerName` varchar(50) COMMENT '客户名称',
	`F_QuotationType` varchar(50) COMMENT '类型',
	`F_PartnerName` varchar(50) COMMENT '合作人名',
	`F_StandardFile` varchar(50) COMMENT '模板参考',
	`F_CustSituation` text COMMENT '情况描述',
	`F_FileJson` longtext COMMENT '相关附件',
	`F_type` varchar(255) COMMENT '报价类型',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id',
	`f_flow_id` varchar(50) COMMENT '流程id'

, PRIMARY KEY (F_Id,f_tenant_id)
) ;
ALTER TABLE wform_quotationapproval COMMENT = '报价审批表';
-- ----------------------------
-- 表名：wform_receiptprocessing
-- ----------------------------
CREATE TABLE wform_receiptprocessing (
	`F_Id` varchar(50) NOT NULL COMMENT '自然主键',
	`F_FlowId` varchar(50) COMMENT '流程主键',
	`F_FlowTitle` varchar(50) COMMENT '流程标题',
	`F_FlowUrgent` int COMMENT '紧急程度',
	`F_BillNo` varchar(50) COMMENT '流程单据',
	`F_FileTitle` varchar(50) COMMENT '文件标题',
	`F_CommunicationUnit` varchar(50) COMMENT '来文单位',
	`F_LetterNum` varchar(50) COMMENT '来文字号',
	`F_ReceiptDate` datetime COMMENT '收文日期',
	`F_FileJson` longtext COMMENT '相关附件',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id',
	`f_flow_id` varchar(50) COMMENT '流程id'

, PRIMARY KEY (F_Id,f_tenant_id)
) ;
ALTER TABLE wform_receiptprocessing COMMENT = '收文处理表';
-- ----------------------------
-- 表名：wform_receiptsign
-- ----------------------------
CREATE TABLE wform_receiptsign (
	`F_Id` varchar(50) NOT NULL COMMENT '自然主键',
	`F_FlowId` varchar(50) COMMENT '流程主键',
	`F_FlowTitle` varchar(50) COMMENT '流程标题',
	`F_FlowUrgent` int COMMENT '紧急程度',
	`F_BillNo` varchar(50) COMMENT '流程单据',
	`F_ReceiptTitle` varchar(50) COMMENT '收文标题',
	`F_Department` varchar(255) COMMENT '收文部门',
	`F_Collector` varchar(50) COMMENT '收文人',
	`F_FileJson` longtext COMMENT '相关附件',
	`F_ReceiptPaper` longtext COMMENT '收文简述',
	`F_ReceiptDate` datetime COMMENT '收文日期',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id',
	`f_flow_id` varchar(50) COMMENT '流程id'

, PRIMARY KEY (F_Id,f_tenant_id)
) ;
ALTER TABLE wform_receiptsign COMMENT = '收文签呈单';
-- ----------------------------
-- 表名：wform_rewardpunishment
-- ----------------------------
CREATE TABLE wform_rewardpunishment (
	`F_Id` varchar(50) NOT NULL COMMENT '自然主键',
	`F_FlowId` varchar(50) COMMENT '主键',
	`F_FlowTitle` varchar(50) COMMENT '流程标题',
	`F_FlowUrgent` int COMMENT '紧急程度',
	`F_BillNo` varchar(50) COMMENT '流程单据',
	`F_FullName` varchar(50) COMMENT '员工姓名',
	`F_FillFromDate` datetime COMMENT '填表日期',
	`F_Department` varchar(255) COMMENT '员工部门',
	`F_Position` varchar(50) COMMENT '员工职位',
	`F_RewardPun` decimal(18,2) COMMENT '赏罚金额',
	`F_Reason` text COMMENT '赏罚原因',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id',
	`f_flow_id` varchar(50) COMMENT '流程id'

, PRIMARY KEY (F_Id,f_tenant_id)
) ;
ALTER TABLE wform_rewardpunishment COMMENT = '行政赏罚单';
-- ----------------------------
-- 表名：wform_salesorder
-- ----------------------------
CREATE TABLE wform_salesorder (
	`F_Id` varchar(50) NOT NULL COMMENT '自然主键',
	`F_FlowId` varchar(50) COMMENT '流程主键',
	`F_FlowTitle` varchar(50) COMMENT '流程标题',
	`F_FlowUrgent` int COMMENT '流程等级',
	`F_BillNo` varchar(50) COMMENT '流程单据',
	`F_Salesman` varchar(50) COMMENT '业务人员',
	`F_CustomerName` varchar(50) COMMENT '客户名称',
	`F_Contacts` varchar(50) COMMENT '联系人',
	`F_ContactPhone` varchar(50) COMMENT '联系电话',
	`F_CustomerAddres` varchar(50) COMMENT '客户地址',
	`F_TicketNum` varchar(50) COMMENT '发票编号',
	`F_InvoiceType` varchar(50) COMMENT '发票类型',
	`F_PaymentMethod` varchar(50) COMMENT '付款方式',
	`F_PaymentMoney` decimal(18,2) COMMENT '付款金额',
	`F_SalesDate` datetime COMMENT '销售日期',
	`F_FileJson` longtext COMMENT '相关附件',
	`F_Description` text COMMENT '描述',
	`F_TicketDate` datetime COMMENT '开票日期',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id'

, PRIMARY KEY (F_Id,f_tenant_id)
) ;
ALTER TABLE wform_salesorder COMMENT = '销售订单';
-- ----------------------------
-- 表名：wform_salesorderentry
-- ----------------------------
CREATE TABLE wform_salesorderentry (
	`F_Id` varchar(50) NOT NULL COMMENT '自然主键',
	`F_SalesOrderId` varchar(50) COMMENT '订单主键',
	`F_GoodsName` varchar(50) COMMENT '商品名称',
	`F_Specifications` varchar(50) COMMENT '规格型号',
	`F_Unit` longtext COMMENT '单位',
	`F_Qty` varchar(50) COMMENT '数量',
	`F_Price` decimal(18,2) COMMENT '单价',
	`F_Amount` decimal(18,2) COMMENT '金额',
	`F_Description` text COMMENT '描述',
	`F_SortCode` bigint COMMENT '',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id'

, PRIMARY KEY (F_Id,f_tenant_id)
) ;
ALTER TABLE wform_salesorderentry COMMENT = '销售订单明细';
-- ----------------------------
-- 表名：wform_salessupport
-- ----------------------------
CREATE TABLE wform_salessupport (
	`F_Id` varchar(50) NOT NULL COMMENT '自然主键',
	`F_FlowId` varchar(50) COMMENT '流程主键',
	`F_FlowTitle` varchar(50) COMMENT '流程标题',
	`F_FlowUrgent` int COMMENT '紧急程度',
	`F_BillNo` varchar(50) COMMENT '流程单据',
	`F_ApplyUser` varchar(50) COMMENT '申请人',
	`F_ApplyDate` datetime COMMENT '申请日期',
	`F_ApplyDept` varchar(255) COMMENT '申请部门',
	`F_Customer` varchar(50) COMMENT '相关客户',
	`F_Project` varchar(50) COMMENT '相关项目',
	`F_PSaleSupInfo` varchar(50) COMMENT '售前支持',
	`F_StartDate` datetime COMMENT '开始时间',
	`F_EndDate` datetime COMMENT '结束日期',
	`F_PSaleSupDays` varchar(50) COMMENT '支持天数',
	`F_PSalePreDays` varchar(50) COMMENT '准备天数',
	`F_ConsulManager` varchar(50) COMMENT '机构咨询',
	`F_PSalSupConsul` varchar(50) COMMENT '售前顾问',
	`F_FileJson` longtext COMMENT '',
	`F_SalSupConclu` text COMMENT '销售总结',
	`F_ConsultResult` text COMMENT '交付说明',
	`F_IEvaluation` text COMMENT '咨询评价',
	`F_Conclusion` text COMMENT '发起人总结',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id',
	`f_flow_id` varchar(50) COMMENT '流程id'

, PRIMARY KEY (F_Id,f_tenant_id)
) ;
ALTER TABLE wform_salessupport COMMENT = '销售支持表';
-- ----------------------------
-- 表名：wform_staffovertime
-- ----------------------------
CREATE TABLE wform_staffovertime (
	`F_Id` varchar(50) NOT NULL COMMENT '自然主键',
	`F_FlowId` varchar(50) COMMENT '流程标题',
	`F_FlowTitle` varchar(50) COMMENT '流程标题',
	`F_FlowUrgent` int COMMENT '紧急程度',
	`F_BillNo` varchar(50) COMMENT '流程单据',
	`F_ApplyUser` varchar(50) COMMENT '申请人',
	`F_Department` varchar(255) COMMENT '申请部门',
	`F_ApplyDate` datetime COMMENT '申请日期',
	`F_TotleTime` varchar(50) COMMENT '总计时间',
	`F_StartTime` datetime COMMENT '开始时间',
	`F_EndTime` datetime COMMENT '结束时间',
	`F_Category` varchar(50) COMMENT '记入类别',
	`F_Cause` text COMMENT '加班事由',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id',
	`f_flow_id` varchar(50) COMMENT '流程id'

, PRIMARY KEY (F_Id,f_tenant_id)
) ;
ALTER TABLE wform_staffovertime COMMENT = '员工加班申请表';
-- ----------------------------
-- 表名：wform_supplementcard
-- ----------------------------
CREATE TABLE wform_supplementcard (
	`F_Id` varchar(50) NOT NULL COMMENT '自然主键',
	`F_FlowId` varchar(50) COMMENT '流程主键',
	`F_FlowTitle` varchar(50) COMMENT '流程标题',
	`F_FlowUrgent` int COMMENT '紧急程度',
	`F_BillNo` varchar(50) COMMENT '流程单据',
	`F_FullName` varchar(50) COMMENT '员工姓名',
	`F_Department` varchar(255) COMMENT '所在部门',
	`F_Position` varchar(50) COMMENT '所在职务',
	`F_Witness` varchar(50) COMMENT '证明人',
	`F_SupplementNum` varchar(50) COMMENT '补卡次数',
	`F_Description` text COMMENT '备注',
	`F_ApplyDate` datetime COMMENT '申请日期',
	`F_StartTime` datetime COMMENT '开始时间',
	`F_EndTime` datetime COMMENT '结束日期',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id',
	`f_flow_id` varchar(50) COMMENT '流程id'

, PRIMARY KEY (F_Id,f_tenant_id)
) ;
ALTER TABLE wform_supplementcard COMMENT = '补卡申请';
-- ----------------------------
-- 表名：wform_travelapply
-- ----------------------------
CREATE TABLE wform_travelapply (
	`F_Id` varchar(50) NOT NULL COMMENT '自然主键',
	`F_FlowId` varchar(50) COMMENT '流程主键',
	`F_FlowTitle` varchar(50) COMMENT '流程标题',
	`F_FlowUrgent` int COMMENT '紧急程度',
	`F_BillNo` varchar(50) COMMENT '流程单据',
	`F_TravelMan` varchar(50) COMMENT '出差人',
	`F_ApplyDate` datetime COMMENT '申请日期',
	`F_Departmental` varchar(255) COMMENT '所属部门',
	`F_Position` varchar(50) COMMENT '所属职务',
	`F_StartDate` datetime COMMENT '开始日期',
	`F_EndDate` datetime COMMENT '结束日期',
	`F_StartPlace` varchar(50) COMMENT '起始地点',
	`F_Destination` varchar(50) COMMENT '目的地',
	`F_PrepaidTravel` decimal(18,2) COMMENT '预支旅费',
	`F_Description` text COMMENT '备注',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id',
	`f_flow_id` varchar(50) COMMENT '流程id'

, PRIMARY KEY (F_Id,f_tenant_id)
) ;
ALTER TABLE wform_travelapply COMMENT = '出差预支申请单';
-- ----------------------------
-- 表名：wform_travelreimbursement
-- ----------------------------
CREATE TABLE wform_travelreimbursement (
	`F_Id` varchar(50) NOT NULL COMMENT '自然主键',
	`F_FlowId` varchar(50) COMMENT '流程主键',
	`F_FlowTitle` varchar(50) COMMENT '流程标题',
	`F_FlowUrgent` int COMMENT '流程等级',
	`F_BillNo` varchar(50) COMMENT '流程单据',
	`F_ApplyUser` varchar(50) COMMENT '申请人',
	`F_Departmental` varchar(255) COMMENT '申请部门',
	`F_BillsNum` varchar(50) COMMENT '票据数',
	`F_BusinessMission` text COMMENT '出差任务',
	`F_SetOutDate` datetime COMMENT '出发日期',
	`F_ReturnDate` datetime COMMENT '回归日期',
	`F_Destination` varchar(50) COMMENT '到达地',
	`F_PlaneTicket` decimal(18,2) COMMENT '机票费',
	`F_Fare` decimal(18,2) COMMENT '车船费',
	`F_GetAccommodation` decimal(18,2) COMMENT '住宿费用',
	`F_TravelAllowance` decimal(18,2) COMMENT '出差补助',
	`F_Other` decimal(18,2) COMMENT '其他费用',
	`F_Total` decimal(18,2) COMMENT '合计',
	`F_ReimbursementAmount` decimal(18,2) COMMENT '报销金额',
	`F_LoanAmount` decimal(18,2) COMMENT '借款金额',
	`F_SumOfMoney` decimal(18,2) COMMENT '补找金额',
	`F_TravelerUser` varchar(50) COMMENT '',
	`F_VehicleMileage` decimal(18,2) COMMENT '车辆里程',
	`F_RoadFee` decimal(18,2) COMMENT '过路费',
	`F_ParkingRate` decimal(18,2) COMMENT '停车费',
	`F_MealAllowance` decimal(18,2) COMMENT '餐补费用',
	`F_BreakdownFee` decimal(18,2) COMMENT '故障报修费',
	`F_ReimbursementId` varchar(50) COMMENT '报销编号',
	`F_RailTransit` decimal(18,2) COMMENT '轨道交通费',
	`F_ApplyDate` datetime COMMENT '申请时间',
	`f_versions` int COMMENT '乐观锁',
	`f_flowtaskid` varchar(50) COMMENT '流程任务主键',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id',
	`f_flow_id` varchar(50) COMMENT '流程id'

, PRIMARY KEY (F_Id,f_tenant_id)
) ;
ALTER TABLE wform_travelreimbursement COMMENT = '差旅报销申请表';
-- ----------------------------
-- 表名：wform_vehicleapply
-- ----------------------------
CREATE TABLE wform_vehicleapply (
	`F_Id` varchar(50) NOT NULL COMMENT '自然主键',
	`F_FlowId` varchar(50) COMMENT '流程主键',
	`F_FlowTitle` varchar(50) COMMENT '流程标题',
	`F_FlowUrgent` int COMMENT '紧急程度',
	`F_BillNo` varchar(50) COMMENT '流程单据',
	`F_CarMan` varchar(50) COMMENT '用车人',
	`F_Department` varchar(255) COMMENT '所在部门',
	`F_PlateNum` varchar(50) COMMENT '车牌号',
	`F_Destination` varchar(50) COMMENT '目的地',
	`F_RoadFee` decimal(18,2) COMMENT '路费金额',
	`F_KilometreNum` varchar(50) COMMENT '公里数',
	`F_Entourage` varchar(50) COMMENT '随行人数',
	`F_Description` text COMMENT '备注',
	`F_StartDate` datetime COMMENT '开始日期',
	`F_EndDate` datetime COMMENT '结束日期',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id',
	`f_flow_id` varchar(50) COMMENT '流程id'

, PRIMARY KEY (F_Id,f_tenant_id)
) ;
ALTER TABLE wform_vehicleapply COMMENT = '车辆申请';
-- ----------------------------
-- 表名：wform_violationhandling
-- ----------------------------
CREATE TABLE wform_violationhandling (
	`F_Id` varchar(50) NOT NULL COMMENT '自然主键',
	`F_FlowId` varchar(50) COMMENT '流程主键',
	`F_FlowTitle` varchar(50) COMMENT '流程标题',
	`F_FlowUrgent` int COMMENT '紧急程度',
	`F_BillNo` varchar(50) COMMENT '流程单据',
	`F_PlateNum` varchar(50) COMMENT '车牌号',
	`F_Driver` varchar(50) COMMENT '驾驶人',
	`F_LeadingOfficial` varchar(50) COMMENT '负责人',
	`F_ViolationSite` varchar(50) COMMENT '违章地点',
	`F_ViolationBehavior` varchar(50) COMMENT '违章行为',
	`F_Deduction` varchar(50) COMMENT '违章扣分',
	`F_AmountMoney` decimal(18,2) COMMENT '违章罚款',
	`F_Description` text COMMENT '备注',
	`F_NoticeDate` datetime COMMENT '通知日期',
	`F_PeccancyDate` datetime COMMENT '违章日期',
	`F_LimitDate` datetime COMMENT '限处理日期',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id',
	`f_flow_id` varchar(50) COMMENT '流程id'

, PRIMARY KEY (F_Id,f_tenant_id)
) ;
ALTER TABLE wform_violationhandling COMMENT = '违章处理申请表';
-- ----------------------------
-- 表名：wform_warehousereceipt
-- ----------------------------
CREATE TABLE wform_warehousereceipt (
	`F_Id` varchar(50) NOT NULL COMMENT '自然主键',
	`F_FlowId` varchar(50) COMMENT '流程主键',
	`F_FlowTitle` varchar(50) COMMENT '流程标题',
	`F_FlowUrgent` int COMMENT '紧急程度',
	`F_BillNo` varchar(50) COMMENT '流程单据',
	`F_SupplierName` varchar(50) COMMENT '供应商名称',
	`F_ContactPhone` varchar(50) COMMENT '联系电话',
	`F_WarehousCategory` varchar(50) COMMENT '入库类别',
	`F_Warehouse` varchar(50) COMMENT '仓库',
	`F_WarehousesPeople` varchar(50) COMMENT '入库人',
	`F_DeliveryNo` varchar(50) COMMENT '送货单号',
	`F_WarehouseNo` varchar(50) COMMENT '入库单号',
	`F_WarehousDate` datetime COMMENT '入库日期',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id',
	`f_flow_id` varchar(50) COMMENT '流程id'

, PRIMARY KEY (F_Id,f_tenant_id)
) ;
ALTER TABLE wform_warehousereceipt COMMENT = '入库申请单';
-- ----------------------------
-- 表名：wform_warehousereceiptentry
-- ----------------------------
CREATE TABLE wform_warehousereceiptentry (
	`F_Id` varchar(50) NOT NULL COMMENT '自然主键',
	`F_WarehouseId` varchar(50) COMMENT '入库主键',
	`F_GoodsName` varchar(50) COMMENT '商品名称',
	`F_Specifications` varchar(50) COMMENT '规格型号',
	`F_Unit` varchar(50) COMMENT '单位',
	`F_Qty` varchar(50) COMMENT '数量',
	`F_Price` decimal(18,2) COMMENT '单价',
	`F_Amount` decimal(18,2) COMMENT '金额',
	`F_Description` text COMMENT '备注',
	`F_SortCode` bigint COMMENT '排序码',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id'

, PRIMARY KEY (F_Id,f_tenant_id)
) ;
ALTER TABLE wform_warehousereceiptentry COMMENT = '出库单明细';
-- ----------------------------
-- 表名：wform_workcontactsheet
-- ----------------------------
CREATE TABLE wform_workcontactsheet (
	`F_Id` varchar(50) NOT NULL COMMENT '自然主键',
	`F_FlowId` varchar(50) COMMENT '流程主键',
	`F_FlowTitle` varchar(50) COMMENT '流程标题',
	`F_FlowUrgent` int COMMENT '紧急程度',
	`F_BillNo` varchar(50) COMMENT '流程单据',
	`F_DrawPeople` varchar(50) COMMENT '发件人',
	`F_IssuingDepartment` varchar(255) COMMENT '发件部门',
	`F_ServiceDepartment` varchar(255) COMMENT '收件部门',
	`F_Recipients` varchar(50) COMMENT '收件人',
	`F_Coordination` longtext COMMENT '协调事项',
	`F_FileJson` longtext COMMENT '相关附件',
	`F_ToDate` datetime COMMENT '发件日期',
	`F_CollectionDate` datetime COMMENT '收件日期',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id',
	`f_flow_id` varchar(50) COMMENT '流程id'

, PRIMARY KEY (F_Id,f_tenant_id)
) ;
ALTER TABLE wform_workcontactsheet COMMENT = '工作联系单';
-- ----------------------------
-- 表名：wform_zjf_wikxqi
-- ----------------------------
CREATE TABLE wform_zjf_wikxqi (
	`userSelectField101` varchar(255) COMMENT '用户选择',
	`f_id` varchar(50) NOT NULL COMMENT '主键',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE wform_zjf_wikxqi COMMENT = '主表';
-- ----------------------------
-- 表名：workflow_candidates
-- ----------------------------
CREATE TABLE workflow_candidates (
	`f_id` varchar(50) NOT NULL COMMENT '自然主键',
	`f_node_code` varchar(50) COMMENT '节点编码',
	`f_task_id` varchar(50) COMMENT '任务id',
	`f_handle_id` varchar(50) COMMENT '审批人id',
	`f_account` varchar(50) COMMENT '审批人账号',
	`f_candidates` longtext COMMENT '候选人',
	`f_operator_id` varchar(50) COMMENT '经办主键',
	`f_type` int COMMENT '审批类型(1-候选人 2-异常处理人)',
	`f_sort_code` bigint COMMENT '排序',
	`f_creator_time` datetime COMMENT '创建时间',
	`f_creator_user_id` varchar(50) COMMENT '创建用户',
	`f_last_modify_time` datetime COMMENT '修改时间',
	`f_last_modify_user_id` varchar(50) COMMENT '修改用户',
	`f_delete_time` datetime COMMENT '删除时间',
	`f_delete_user_id` varchar(50) COMMENT '删除用户',
	`f_delete_mark` int COMMENT '删除标志',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE workflow_candidates COMMENT = '流程候选人/异常处理人';
-- ----------------------------
-- 表名：workflow_circulate
-- ----------------------------
CREATE TABLE workflow_circulate (
	`f_id` varchar(50) NOT NULL COMMENT '自然主键',
	`f_user_id` varchar(50) COMMENT '抄送人员',
	`f_task_id` varchar(50) COMMENT '任务主键',
	`f_node_code` varchar(50) COMMENT '节点编号',
	`f_node_name` varchar(50) COMMENT '节点名称',
	`f_node_id` varchar(50) COMMENT '节点主键',
	`f_operator_id` varchar(50) COMMENT '经办主键',
	`f_read` int COMMENT '是否已读',
	`f_sort_code` bigint COMMENT '排序',
	`f_creator_time` datetime COMMENT '创建时间',
	`f_creator_user_id` varchar(50) COMMENT '创建用户',
	`f_last_modify_time` datetime COMMENT '修改时间',
	`f_last_modify_user_id` varchar(50) COMMENT '修改用户',
	`f_delete_time` datetime COMMENT '删除时间',
	`f_delete_user_id` varchar(50) COMMENT '删除用户',
	`f_delete_mark` int COMMENT '删除标志',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE workflow_circulate COMMENT = '流程抄送';
-- ----------------------------
-- 表名：workflow_comment
-- ----------------------------
CREATE TABLE workflow_comment (
	`f_id` varchar(50) NOT NULL COMMENT '自然主键',
	`f_task_id` varchar(50) COMMENT '任务主键',
	`f_reply_id` varchar(50) COMMENT '回复评论id',
	`f_text` longtext COMMENT '文本',
	`f_image` longtext COMMENT '图片',
	`f_file` longtext COMMENT '附件',
	`f_delete_show` int COMMENT '评论删除显示',
	`f_enabled_mark` int COMMENT '有效标志',
	`f_sort_code` bigint COMMENT '排序',
	`f_creator_time` datetime COMMENT '创建时间',
	`f_creator_user_id` varchar(50) COMMENT '创建用户',
	`f_last_modify_time` datetime COMMENT '修改时间',
	`f_last_modify_user_id` varchar(50) COMMENT '修改用户',
	`f_delete_mark` int COMMENT '删除标志',
	`f_delete_time` datetime COMMENT '删除时间',
	`f_delete_user_id` varchar(50) COMMENT '删除用户',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE workflow_comment COMMENT = '流程评论';
-- ----------------------------
-- 表名：workflow_common
-- ----------------------------
CREATE TABLE workflow_common (
	`f_id` varchar(50) NOT NULL COMMENT '自然主键',
	`f_type` varchar(50) COMMENT '类型 web、app',
	`f_flow_id` varchar(50) COMMENT '流程版本id',
	`f_creator_time` datetime COMMENT '创建时间',
	`f_creator_user_id` varchar(50) COMMENT '创建用户',
	`f_last_modify_time` datetime COMMENT '修改时间',
	`f_last_modify_user_id` varchar(50) COMMENT '修改用户',
	`f_delete_time` datetime COMMENT '删除时间',
	`f_delete_user_id` varchar(50) COMMENT '删除用户',
	`f_delete_mark` int COMMENT '删除标志',
	`f_sort_code` bigint COMMENT '排序',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE workflow_common COMMENT = '常用流程';
-- ----------------------------
-- 表名：workflow_delegate
-- ----------------------------
CREATE TABLE workflow_delegate (
	`f_id` varchar(50) NOT NULL COMMENT '自然主键',
	`f_flow_id` varchar(4000) COMMENT '委托流程（为空是全部流程）',
	`f_flow_name` varchar(4000) COMMENT '委托流程名称',
	`f_start_time` datetime COMMENT '开始时间',
	`f_end_time` datetime COMMENT '结束时间',
	`f_user_id` varchar(50) COMMENT '委托人',
	`f_user_name` varchar(50) COMMENT '委托人名称',
	`f_type` int COMMENT '委托类型（0-发起委托，1-审批委托）',
	`f_description` varchar(500) COMMENT '描述或说明',
	`f_enabled_mark` int COMMENT '有效标志(0-禁用，1-启用)',
	`f_sort_code` bigint COMMENT '排序',
	`f_creator_time` datetime COMMENT '创建时间',
	`f_creator_user_id` varchar(50) COMMENT '创建用户',
	`f_last_modify_time` datetime COMMENT '修改时间',
	`f_last_modify_user_id` varchar(50) COMMENT '修改用户',
	`f_delete_time` datetime COMMENT '删除时间',
	`f_delete_user_id` varchar(50) COMMENT '删除用户',
	`f_delete_mark` int COMMENT '删除标志',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE workflow_delegate COMMENT = '流程委托';
-- ----------------------------
-- 表名：workflow_delegate_info
-- ----------------------------
CREATE TABLE workflow_delegate_info (
	`f_id` varchar(50) NOT NULL COMMENT '主键',
	`f_delegate_id` varchar(50) NOT NULL COMMENT '委托主键',
	`f_to_user_id` varchar(50) COMMENT '被委托人id',
	`f_to_user_name` varchar(50) COMMENT '被委托人',
	`f_status` int COMMENT '状态(0.待确认 1.已接受 2.已拒绝)',
	`f_sort_code` bigint COMMENT '排序',
	`f_creator_time` datetime COMMENT '创建时间',
	`f_creator_user_id` varchar(50) COMMENT '创建用户',
	`f_last_modify_time` datetime COMMENT '修改时间',
	`f_last_modify_user_id` varchar(50) COMMENT '修改用户',
	`f_delete_time` datetime COMMENT '删除时间',
	`f_delete_user_id` varchar(50) COMMENT '删除用户',
	`f_delete_mark` int COMMENT '删除标志',
	`f_tenant_id` varchar(50) NOT NULL COMMENT '租户id'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE workflow_delegate_info COMMENT = '委托信息';
-- ----------------------------
-- 表名：workflow_form_relation
-- ----------------------------
CREATE TABLE workflow_form_relation (
	`f_id` varchar(50) NOT NULL COMMENT '主键',
	`f_flow_id` varchar(50) COMMENT '流程id',
	`f_form_id` varchar(50) COMMENT '表单id',
	`f_sort_code` bigint COMMENT '排序',
	`f_creator_time` datetime COMMENT '创建时间',
	`f_creator_user_id` varchar(50) COMMENT '创建用户',
	`f_last_modify_time` datetime COMMENT '修改时间',
	`f_last_modify_user_id` varchar(50) COMMENT '修改用户',
	`f_delete_time` datetime COMMENT '删除时间',
	`f_delete_user_id` varchar(50) COMMENT '删除用户',
	`f_delete_mark` int COMMENT '删除标志',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE workflow_form_relation COMMENT = '流程表单关联表';
-- ----------------------------
-- 表名：workflow_launch_user
-- ----------------------------
CREATE TABLE workflow_launch_user (
	`f_id` varchar(50) NOT NULL COMMENT '主键',
	`f_organize_id` longtext COMMENT '组织主键',
	`f_position_id` longtext COMMENT '岗位主键',
	`f_manager_id` varchar(50) COMMENT '主管主键',
	`f_superior` varchar(50) COMMENT '上级用户',
	`f_subordinate` longtext COMMENT '下属用户',
	`f_task_id` varchar(50) COMMENT '任务主键',
	`f_department` longtext COMMENT '公司下所有部门',
	`f_sort_code` bigint COMMENT '排序',
	`f_creator_time` datetime COMMENT '创建时间',
	`f_creator_user_id` varchar(50) COMMENT '创建用户',
	`f_last_modify_time` datetime COMMENT '修改时间',
	`f_last_modify_user_id` varchar(50) COMMENT '修改用户',
	`f_delete_time` datetime COMMENT '删除时间',
	`f_delete_user_id` varchar(50) COMMENT '删除用户',
	`f_delete_mark` int COMMENT '删除标志',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE workflow_launch_user COMMENT = '流程发起用户信息';
-- ----------------------------
-- 表名：workflow_node
-- ----------------------------
CREATE TABLE workflow_node (
	`f_id` varchar(50) NOT NULL COMMENT '主键',
	`f_flow_id` varchar(50) COMMENT '流程版本主键',
	`f_form_id` varchar(50) COMMENT '表单主键',
	`f_node_type` varchar(50) COMMENT '节点类型',
	`f_node_code` varchar(50) COMMENT '节点编码',
	`f_node_json` longtext COMMENT '节点属性',
	`f_sort_code` bigint COMMENT '排序',
	`f_creator_time` datetime COMMENT '创建时间',
	`f_creator_user_id` varchar(50) COMMENT '创建用户',
	`f_last_modify_time` datetime COMMENT '修改时间',
	`f_last_modify_user_id` varchar(50) COMMENT '修改用户',
	`f_delete_time` datetime COMMENT '删除时间',
	`f_delete_user_id` varchar(50) COMMENT '删除用户',
	`f_delete_mark` int COMMENT '删除标志',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE workflow_node COMMENT = '流程节点';
-- ----------------------------
-- 表名：workflow_node_record
-- ----------------------------
CREATE TABLE workflow_node_record (
	`f_id` varchar(50) NOT NULL COMMENT '主键',
	`f_task_id` varchar(50) COMMENT '任务id',
	`f_node_id` varchar(50) COMMENT '节点id',
	`f_node_code` varchar(50) COMMENT '节点编码',
	`f_node_name` varchar(50) COMMENT '节点名称',
	`f_node_status` int COMMENT '节点状态',
	`f_creator_time` datetime COMMENT '创建时间',
	`f_creator_user_id` varchar(50) COMMENT '创建用户',
	`f_last_modify_time` datetime COMMENT '修改时间',
	`f_last_modify_user_id` varchar(50) COMMENT '修改用户',
	`f_delete_time` datetime COMMENT '删除时间',
	`f_delete_user_id` varchar(50) COMMENT '删除用户',
	`f_delete_mark` int COMMENT '删除标志',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id',
	`f_sort_code` bigint COMMENT '排序'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE workflow_node_record COMMENT = '节点流转';
-- ----------------------------
-- 表名：workflow_operator
-- ----------------------------
CREATE TABLE workflow_operator (
	`f_id` varchar(50) NOT NULL COMMENT '自然主键',
	`f_node_name` varchar(50) COMMENT '节点名称',
	`f_node_code` varchar(50) COMMENT '节点编码',
	`f_task_id` varchar(50) COMMENT '任务id',
	`f_node_id` varchar(50) COMMENT '节点id（对应引擎的任务id）',
	`f_parent_id` varchar(50) COMMENT '加签经办父级id',
	`f_handle_time` datetime COMMENT '处理时间',
	`f_handle_id` varchar(50) COMMENT '处理人id',
	`f_handle_all` longtext COMMENT '全部处理人',
	`f_handle_status` int COMMENT '处理状态',
	`f_handle_parameter` longtext COMMENT '处理参数',
	`f_start_handle_time` datetime COMMENT '开始处理时间',
	`f_duedate` datetime COMMENT '截止时间',
	`f_sign_time` datetime COMMENT '签收时间',
	`f_status` int COMMENT '状态',
	`f_instance_id` varchar(50) COMMENT '流程引擎任务id',
	`f_engine_type` int COMMENT '流程引擎类型;1.flowable,2,activity,3.canmda',
	`f_sort_code` bigint COMMENT '排序',
	`f_creator_time` datetime COMMENT '创建时间',
	`f_creator_user_id` varchar(50) COMMENT '创建用户',
	`f_last_modify_time` datetime COMMENT '修改时间',
	`f_last_modify_user_id` varchar(50) COMMENT '修改用户',
	`f_delete_time` datetime COMMENT '删除时间',
	`f_delete_user_id` varchar(50) COMMENT '删除用户',
	`f_delete_mark` int COMMENT '删除标志',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id',
	`f_draft_data` longtext COMMENT '草稿数据',
	`f_completion` int COMMENT '是否完成',
	`f_is_processing` int COMMENT '是否办理节点(0否 1是)'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE workflow_operator COMMENT = '流程经办';
-- ----------------------------
-- 表名：workflow_record
-- ----------------------------
CREATE TABLE workflow_record (
	`f_id` varchar(50) NOT NULL COMMENT '自然主键',
	`f_task_id` varchar(50) COMMENT '任务主键',
	`f_operator_id` varchar(50) COMMENT '经办主键',
	`f_node_id` varchar(2000) COMMENT '节点id',
	`f_node_code` varchar(2000) COMMENT '节点编号',
	`f_node_name` varchar(2000) COMMENT '节点名称',
	`f_handle_type` int COMMENT '经办类型',
	`f_handle_id` varchar(50) COMMENT '经办人员',
	`f_handle_time` datetime COMMENT '经办时间',
	`f_handle_opinion` varchar(500) COMMENT '经办理由',
	`f_handle_user_id` varchar(4000) COMMENT '流转操作人',
	`f_sign_img` longtext COMMENT '签名图片',
	`f_file_list` longtext COMMENT '经办文件',
	`f_status` int COMMENT '状态',
	`f_expand_field` longtext COMMENT '拓展字段',
	`f_sort_code` bigint COMMENT '排序',
	`f_creator_time` datetime COMMENT '创建时间',
	`f_creator_user_id` varchar(50) COMMENT '创建用户',
	`f_last_modify_time` datetime COMMENT '修改时间',
	`f_last_modify_user_id` varchar(50) COMMENT '修改用户',
	`f_delete_time` datetime COMMENT '删除时间',
	`f_delete_user_id` varchar(50) COMMENT '删除用户',
	`f_delete_mark` int COMMENT '删除标志',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE workflow_record COMMENT = '流程记录';
-- ----------------------------
-- 表名：workflow_reject_data
-- ----------------------------
CREATE TABLE workflow_reject_data (
	`f_id` varchar(50) NOT NULL COMMENT '主键',
	`f_task_json` longtext COMMENT '任务json',
	`f_operator_json` longtext COMMENT '经办json',
	`f_node_code` varchar(50) COMMENT '节点编码',
	`f_sort_code` bigint COMMENT '排序',
	`f_creator_time` datetime COMMENT '创建时间',
	`f_creator_user_id` varchar(50) COMMENT '创建用户',
	`f_last_modify_time` datetime COMMENT '修改时间',
	`f_last_modify_user_id` varchar(50) COMMENT '修改用户',
	`f_delete_time` datetime COMMENT '删除时间',
	`f_delete_user_id` varchar(50) COMMENT '删除用户',
	`f_delete_mark` int COMMENT '删除标志',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE workflow_reject_data COMMENT = '冻结审批';
-- ----------------------------
-- 表名：workflow_revoke
-- ----------------------------
CREATE TABLE workflow_revoke (
	`f_id` varchar(50) NOT NULL COMMENT '主键',
	`f_task_id` varchar(50) COMMENT '任务主键',
	`f_revoke_task_id` varchar(50) COMMENT '撤销任务主键',
	`f_form_data` longtext COMMENT '表单数据',
	`f_sort_code` bigint COMMENT '排序',
	`f_creator_time` datetime COMMENT '创建时间',
	`f_creator_user_id` varchar(50) COMMENT '创建用户',
	`f_last_modify_time` datetime COMMENT '修改时间',
	`f_last_modify_user_id` varchar(50) COMMENT '修改用户',
	`f_delete_time` datetime COMMENT '删除时间',
	`f_delete_user_id` varchar(50) COMMENT '删除用户',
	`f_delete_mark` int COMMENT '删除标志',
	`f_tenant_id` varchar(50) NOT NULL COMMENT '租户id'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE workflow_revoke COMMENT = '流程撤销';
-- ----------------------------
-- 表名：workflow_subtask_data
-- ----------------------------
CREATE TABLE workflow_subtask_data (
	`f_id` varchar(50) NOT NULL COMMENT '主键',
	`f_subtask_json` longtext COMMENT '子流程发起参数',
	`f_parent_id` varchar(50) COMMENT '父流程id',
	`f_node_code` varchar(50) COMMENT '节点编码',
	`f_sort_code` bigint COMMENT '排序',
	`f_creator_time` datetime COMMENT '创建时间',
	`f_creator_user_id` varchar(50) COMMENT '创建用户',
	`f_last_modify_time` datetime COMMENT '修改时间',
	`f_last_modify_user_id` varchar(50) COMMENT '修改用户',
	`f_delete_time` datetime COMMENT '删除时间',
	`f_delete_user_id` varchar(50) COMMENT '删除用户',
	`f_delete_mark` int COMMENT '删除标志',
	`f_tenant_id` varchar(50) NOT NULL COMMENT '租户id'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE workflow_subtask_data COMMENT = '子流程发起参数(依次发起)';
-- ----------------------------
-- 表名：workflow_task
-- ----------------------------
CREATE TABLE workflow_task (
	`f_id` varchar(50) NOT NULL COMMENT '主键',
	`f_en_code` varchar(200) COMMENT '编号',
	`f_full_name` varchar(200) COMMENT '标题',
	`f_flow_name` varchar(200) COMMENT '流程名称',
	`f_flow_code` varchar(200) COMMENT '流程编号',
	`f_flow_category` varchar(50) COMMENT '流程分类',
	`f_status` int COMMENT '状态',
	`f_flow_type` int COMMENT '流程类型',
	`f_flow_version` varchar(50) COMMENT '流程版本',
	`f_is_async` int COMMENT '同步异步（0：同步，1：异步）',
	`f_sub_parameter` varchar(2000) COMMENT '子流程参数',
	`f_parent_id` varchar(50) COMMENT '父级实例id',
	`f_urgent` int COMMENT '紧急程度',
	`f_template_id` varchar(50) COMMENT '流程主键',
	`f_flow_id` varchar(50) COMMENT '流程版本主键',
	`f_instance_id` varchar(255) COMMENT '流程引擎实例id',
	`f_engine_type` int COMMENT '流程引擎类型;1.flowable,2,activity,3.canmda',
	`f_delegate_user_id` varchar(50) COMMENT '委托用户',
	`f_start_time` datetime COMMENT '开始时间',
	`f_end_time` datetime COMMENT '结束时间',
	`f_current_node_name` varchar(2000) COMMENT '当前节点名称',
	`f_sort_code` bigint COMMENT '排序',
	`f_creator_time` datetime COMMENT '创建时间',
	`f_creator_user_id` varchar(50) COMMENT '创建用户',
	`f_last_modify_time` datetime COMMENT '修改时间',
	`f_last_modify_user_id` varchar(50) COMMENT '修改用户',
	`f_delete_time` datetime COMMENT '删除时间',
	`f_delete_user_id` varchar(50) COMMENT '删除用户',
	`f_delete_mark` int COMMENT '删除标志',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id',
	`f_engine_id` varchar(50) COMMENT '流程引擎id',
	`f_current_node_code` varchar(2000) COMMENT '当前节点编码',
	`f_reject_data_id` varchar(50) COMMENT '冻结审批',
	`f_sub_code` varchar(50) COMMENT '子流程节点编码',
	`f_global_parameter` longtext COMMENT '全局参数',
	`f_his_status` int COMMENT '历史状态',
	`f_restore` int COMMENT '是否能恢复（0：能，1：不能）',
	`f_is_file` int COMMENT '是否归档（null：未配置，0：未归档，1：已归档）',
	`f_type` int COMMENT '类型(0-功能 1-发起)'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE workflow_task COMMENT = '流程任务';
-- ----------------------------
-- 表名：workflow_task_line
-- ----------------------------
CREATE TABLE workflow_task_line (
	`f_id` varchar(50) NOT NULL COMMENT '主键',
	`f_task_id` varchar(50) COMMENT '任务主键',
	`f_line_key` varchar(50) COMMENT '线的键',
	`f_line_value` varchar(50) COMMENT '线的值',
	`f_sort_code` bigint COMMENT '排序',
	`f_creator_time` datetime COMMENT '创建时间',
	`f_creator_user_id` varchar(50) COMMENT '创建用户',
	`f_last_modify_time` datetime COMMENT '修改时间',
	`f_last_modify_user_id` varchar(50) COMMENT '修改用户',
	`f_delete_time` datetime COMMENT '删除时间',
	`f_delete_user_id` varchar(50) COMMENT '删除用户',
	`f_delete_mark` int COMMENT '删除标志',
	`f_tenant_id` varchar(50) NOT NULL COMMENT '租户id'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE workflow_task_line COMMENT = '任务条件';
-- ----------------------------
-- 表名：workflow_template
-- ----------------------------
CREATE TABLE workflow_template (
	`f_id` varchar(50) NOT NULL COMMENT '自然主键',
	`f_flow_id` varchar(50) COMMENT '流程主版本id',
	`f_version` varchar(50) COMMENT '流程主版本',
	`f_en_code` varchar(200) COMMENT '流程编码',
	`f_full_name` varchar(200) COMMENT '流程名称',
	`f_type` int COMMENT '流程类型',
	`f_category` varchar(50) COMMENT '流程分类',
	`f_icon` varchar(50) COMMENT '图标',
	`f_icon_background` varchar(50) COMMENT '图标背景色',
	`f_configuration` longtext COMMENT '流程参数设置',
	`f_activiti_id` varchar(50) COMMENT 'activiti部署id',
	`f_flowable_id` varchar(50) COMMENT 'flowable部署id',
	`f_camunda_id` varchar(50) COMMENT 'camunda部署id',
	`f_description` varchar(500) COMMENT '描述或说明',
	`f_enabled_mark` int COMMENT '有效标志(0-禁用，1-启用)',
	`f_sort_code` bigint COMMENT '排序',
	`f_creator_time` datetime COMMENT '创建时间',
	`f_creator_user_id` varchar(50) COMMENT '创建用户',
	`f_last_modify_time` datetime COMMENT '修改时间',
	`f_last_modify_user_id` varchar(50) COMMENT '修改用户',
	`f_delete_time` datetime COMMENT '删除时间',
	`f_delete_user_id` varchar(50) COMMENT '删除用户',
	`f_delete_mark` int COMMENT '删除标志',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id',
	`f_visible_type` int COMMENT '流程权限（1全局 2权限）',
	`f_flow_config` longtext COMMENT '流程设置',
	`f_show_type` int COMMENT '流程显示类型（0-全局 1-流程 2-菜单）',
	`f_status` int COMMENT '状态(0.未上架,1.上架,2.下架-继续审批，3.下架-隐藏审批)'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE workflow_template COMMENT = '流程定义';
-- ----------------------------
-- 表名：workflow_trigger_record
-- ----------------------------
CREATE TABLE workflow_trigger_record (
	`f_id` varchar(50) NOT NULL COMMENT '自然主键',
	`f_trigger_id` varchar(50) COMMENT '触发主键',
	`f_task_id` varchar(50) COMMENT '标准任务主键',
	`f_node_id` varchar(50) COMMENT '节点id',
	`f_node_code` varchar(50) COMMENT '节点编号',
	`f_node_name` varchar(50) COMMENT '节点名称',
	`f_start_time` datetime COMMENT '开始时间',
	`f_end_time` datetime COMMENT '结束时间',
	`f_status` int COMMENT '状态（0-通过 1-异常）',
	`f_error_tip` varchar(500) COMMENT '错误提示',
	`f_error_data` longtext COMMENT '错误数据',
	`f_sort_code` bigint COMMENT '排序',
	`f_creator_time` datetime COMMENT '创建时间',
	`f_creator_user_id` varchar(50) COMMENT '创建用户',
	`f_last_modify_time` datetime COMMENT '修改时间',
	`f_last_modify_user_id` varchar(50) COMMENT '修改用户',
	`f_delete_time` datetime COMMENT '删除时间',
	`f_delete_user_id` varchar(50) COMMENT '删除用户',
	`f_delete_mark` int COMMENT '删除标志',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE workflow_trigger_record COMMENT = '触发记录';
-- ----------------------------
-- 表名：workflow_trigger_task
-- ----------------------------
CREATE TABLE workflow_trigger_task (
	`f_id` varchar(50) NOT NULL COMMENT '自然主键',
	`f_full_name` varchar(50) COMMENT '任务名称',
	`f_parent_time` datetime COMMENT '重试任务开始时间',
	`f_parent_id` varchar(50) COMMENT '重试任务主键id',
	`f_task_id` varchar(50) COMMENT '标准任务主键',
	`f_node_code` varchar(50) COMMENT '节点编码',
	`f_node_id` varchar(50) COMMENT '节点id',
	`f_is_async` int COMMENT '0-同步 1-异步',
	`f_start_time` datetime COMMENT '开始时间',
	`f_flow_id` varchar(50) COMMENT '模板id',
	`f_data` longtext COMMENT '数据',
	`f_data_id` varchar(50) COMMENT '数据主键',
	`f_instance_id` varchar(50) COMMENT '引擎主键',
	`f_engine_type` int COMMENT '流程引擎类型;1.flowable,2,activity,3.canmda',
	`f_status` int COMMENT '状态(0-进行中 1-通过 2-异常 3-终止)',
	`f_sort_code` bigint COMMENT '排序',
	`f_creator_time` datetime COMMENT '创建时间',
	`f_creator_user_id` varchar(50) COMMENT '创建用户',
	`f_last_modify_time` datetime COMMENT '修改时间',
	`f_last_modify_user_id` varchar(50) COMMENT '修改用户',
	`f_delete_time` datetime COMMENT '删除时间',
	`f_delete_user_id` varchar(50) COMMENT '删除用户',
	`f_delete_mark` int COMMENT '删除标志',
	`f_tenant_id` varchar(50) NOT NULL COMMENT '租户id'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE workflow_trigger_task COMMENT = '触发任务';
-- ----------------------------
-- 表名：workflow_version
-- ----------------------------
CREATE TABLE workflow_version (
	`f_id` varchar(50) NOT NULL COMMENT '自然主键',
	`f_template_id` varchar(50) COMMENT '流程定义主键',
	`f_flowable_id` varchar(50) COMMENT 'flowable部署id',
	`f_activiti_id` varchar(50) COMMENT 'activiti部署id',
	`f_camunda_id` varchar(50) COMMENT 'camunda部署id',
	`f_version` varchar(50) COMMENT '流程版本',
	`f_xml` longtext COMMENT '流程xml',
	`f_status` int COMMENT '状态(0.设计,1.启用,2.历史)',
	`f_sort_code` bigint COMMENT '排序',
	`f_send_config_ids` longtext COMMENT '消息配置id',
	`f_creator_time` datetime COMMENT '创建时间',
	`f_creator_user_id` varchar(50) COMMENT '创建用户',
	`f_last_modify_time` datetime COMMENT '修改时间',
	`f_last_modify_user_id` varchar(50) COMMENT '修改用户',
	`f_delete_time` datetime COMMENT '删除时间',
	`f_delete_user_id` varchar(50) COMMENT '删除用户',
	`f_delete_mark` int COMMENT '删除标志',
	`f_tenant_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '租户id'

, PRIMARY KEY (f_id,f_tenant_id)
) ;
ALTER TABLE workflow_version COMMENT = '流程定义版本';


INSERT INTO base_advanced_query_scheme SELECT * FROM ${dbName}.base_advanced_query_scheme where f_tenant_id = '0';
INSERT INTO base_app_data SELECT * FROM ${dbName}.base_app_data where f_tenant_id = '0';
INSERT INTO base_authorize SELECT * FROM ${dbName}.base_authorize where f_tenant_id = '0';
INSERT INTO base_bill_num SELECT * FROM ${dbName}.base_bill_num where f_tenant_id = '0';
INSERT INTO base_bill_rule SELECT * FROM ${dbName}.base_bill_rule where f_tenant_id = '0';
INSERT INTO base_columns_purview SELECT * FROM ${dbName}.base_columns_purview where f_tenant_id = '0';
INSERT INTO base_common_fields SELECT * FROM ${dbName}.base_common_fields where f_tenant_id = '0';
INSERT INTO base_common_words SELECT * FROM ${dbName}.base_common_words where f_tenant_id = '0';
INSERT INTO base_data_interface SELECT * FROM ${dbName}.base_data_interface where f_tenant_id = '0';
INSERT INTO base_data_interface_log SELECT * FROM ${dbName}.base_data_interface_log where f_tenant_id = '0';
INSERT INTO base_data_interface_oauth SELECT * FROM ${dbName}.base_data_interface_oauth where f_tenant_id = '0';
INSERT INTO base_data_interface_user SELECT * FROM ${dbName}.base_data_interface_user where f_tenant_id = '0';
INSERT INTO base_data_interface_variate SELECT * FROM ${dbName}.base_data_interface_variate where f_tenant_id = '0';
INSERT INTO base_data_set SELECT * FROM ${dbName}.base_data_set where f_tenant_id = '0';
INSERT INTO base_db_link SELECT * FROM ${dbName}.base_db_link where f_tenant_id = '0';
INSERT INTO base_dictionary_data SELECT * FROM ${dbName}.base_dictionary_data where f_tenant_id = '0';
INSERT INTO base_dictionary_type SELECT * FROM ${dbName}.base_dictionary_type where f_tenant_id = '0';
INSERT INTO base_file SELECT * FROM ${dbName}.base_file where f_tenant_id = '0';
INSERT INTO base_group SELECT * FROM ${dbName}.base_group where f_tenant_id = '0';
INSERT INTO base_im_content SELECT * FROM ${dbName}.base_im_content where f_tenant_id = '0';
INSERT INTO base_im_reply SELECT * FROM ${dbName}.base_im_reply where f_tenant_id = '0';
INSERT INTO base_integrate SELECT * FROM ${dbName}.base_integrate where f_tenant_id = '0';
INSERT INTO base_integrate_node SELECT * FROM ${dbName}.base_integrate_node where f_tenant_id = '0';
INSERT INTO base_integrate_queue SELECT * FROM ${dbName}.base_integrate_queue where f_tenant_id = '0';
INSERT INTO base_integrate_task SELECT * FROM ${dbName}.base_integrate_task where f_tenant_id = '0';
INSERT INTO base_language SELECT * FROM ${dbName}.base_language where f_tenant_id = '0';
INSERT INTO base_message SELECT * FROM ${dbName}.base_message where f_tenant_id = '0';
INSERT INTO base_module SELECT * FROM ${dbName}.base_module where f_tenant_id = '0';
INSERT INTO base_module_authorize SELECT * FROM ${dbName}.base_module_authorize where f_tenant_id = '0';
INSERT INTO base_module_button SELECT * FROM ${dbName}.base_module_button where f_tenant_id = '0';
INSERT INTO base_module_column SELECT * FROM ${dbName}.base_module_column where f_tenant_id = '0';
INSERT INTO base_module_data SELECT * FROM ${dbName}.base_module_data where f_tenant_id = '0';
INSERT INTO base_module_form SELECT * FROM ${dbName}.base_module_form where f_tenant_id = '0';
INSERT INTO base_module_link SELECT * FROM ${dbName}.base_module_link where f_tenant_id = '0';
INSERT INTO base_module_scheme SELECT * FROM ${dbName}.base_module_scheme where f_tenant_id = '0';
INSERT INTO base_msg_account SELECT * FROM ${dbName}.base_msg_account where f_tenant_id = '0';
INSERT INTO base_msg_monitor SELECT * FROM ${dbName}.base_msg_monitor where f_tenant_id = '0';
INSERT INTO base_msg_send SELECT * FROM ${dbName}.base_msg_send where f_tenant_id = '0';
INSERT INTO base_msg_send_template SELECT * FROM ${dbName}.base_msg_send_template where f_tenant_id = '0';
INSERT INTO base_msg_short_link SELECT * FROM ${dbName}.base_msg_short_link where f_tenant_id = '0';
INSERT INTO base_msg_sms_field SELECT * FROM ${dbName}.base_msg_sms_field where f_tenant_id = '0';
INSERT INTO base_msg_template SELECT * FROM ${dbName}.base_msg_template where f_tenant_id = '0';
INSERT INTO base_msg_template_param SELECT * FROM ${dbName}.base_msg_template_param where f_tenant_id = '0';
INSERT INTO base_msg_wechat_user SELECT * FROM ${dbName}.base_msg_wechat_user where f_tenant_id = '0';
INSERT INTO base_notice SELECT * FROM ${dbName}.base_notice where f_tenant_id = '0';
INSERT INTO base_organize SELECT * FROM ${dbName}.base_organize where f_tenant_id = '0';
INSERT INTO base_organize_administrator SELECT * FROM ${dbName}.base_organize_administrator where f_tenant_id = '0';
INSERT INTO base_organize_relation SELECT * FROM ${dbName}.base_organize_relation where f_tenant_id = '0';
INSERT INTO base_permission_group SELECT * FROM ${dbName}.base_permission_group where f_tenant_id = '0';
INSERT INTO base_portal SELECT * FROM ${dbName}.base_portal where f_tenant_id = '0';
INSERT INTO base_portal_data SELECT * FROM ${dbName}.base_portal_data where f_tenant_id = '0';
INSERT INTO base_portal_manage SELECT * FROM ${dbName}.base_portal_manage where f_tenant_id = '0';
INSERT INTO base_position SELECT * FROM ${dbName}.base_position where f_tenant_id = '0';
INSERT INTO base_print_log SELECT * FROM ${dbName}.base_print_log where f_tenant_id = '0';
INSERT INTO base_print_template SELECT * FROM ${dbName}.base_print_template where f_tenant_id = '0';
INSERT INTO base_print_version SELECT * FROM ${dbName}.base_print_version where f_tenant_id = '0';
INSERT INTO base_province SELECT * FROM ${dbName}.base_province where f_tenant_id = '0';
INSERT INTO base_province_atlas SELECT * FROM ${dbName}.base_province_atlas where f_tenant_id = '0';
INSERT INTO base_role SELECT * FROM ${dbName}.base_role where f_tenant_id = '0';
INSERT INTO base_schedule SELECT * FROM ${dbName}.base_schedule where f_tenant_id = '0';
INSERT INTO base_schedule_log SELECT * FROM ${dbName}.base_schedule_log where f_tenant_id = '0';
INSERT INTO base_schedule_user SELECT * FROM ${dbName}.base_schedule_user where f_tenant_id = '0';
INSERT INTO base_sign_img SELECT * FROM ${dbName}.base_sign_img where f_tenant_id = '0';
INSERT INTO base_signature SELECT * FROM ${dbName}.base_signature where f_tenant_id = '0';
INSERT INTO base_signature_user SELECT * FROM ${dbName}.base_signature_user where f_tenant_id = '0';
INSERT INTO base_socials_users SELECT * FROM ${dbName}.base_socials_users where f_tenant_id = '0';
INSERT INTO base_syn_third_info SELECT * FROM ${dbName}.base_syn_third_info where f_tenant_id = '0';
INSERT INTO base_sys_config SELECT * FROM ${dbName}.base_sys_config where f_tenant_id = '0';
INSERT INTO base_sys_log SELECT * FROM ${dbName}.base_sys_log where f_tenant_id = '0';
INSERT INTO base_system SELECT * FROM ${dbName}.base_system where f_tenant_id = '0';
INSERT INTO base_time_task SELECT * FROM ${dbName}.base_time_task where f_tenant_id = '0';
INSERT INTO base_time_task_log SELECT * FROM ${dbName}.base_time_task_log where f_tenant_id = '0';
INSERT INTO base_user SELECT * FROM ${dbName}.base_user where f_tenant_id = '0';
INSERT INTO base_user_device SELECT * FROM ${dbName}.base_user_device where f_tenant_id = '0';
INSERT INTO base_user_old_password SELECT * FROM ${dbName}.base_user_old_password where f_tenant_id = '0';
INSERT INTO base_user_relation SELECT * FROM ${dbName}.base_user_relation where f_tenant_id = '0';
INSERT INTO base_visual_alias SELECT * FROM ${dbName}.base_visual_alias where f_tenant_id = '0';
INSERT INTO base_visual_dev SELECT * FROM ${dbName}.base_visual_dev where f_tenant_id = '0';
INSERT INTO base_visual_filter SELECT * FROM ${dbName}.base_visual_filter where f_tenant_id = '0';
INSERT INTO base_visual_kit SELECT * FROM ${dbName}.base_visual_kit where f_tenant_id = '0';
INSERT INTO base_visual_link SELECT * FROM ${dbName}.base_visual_link where f_tenant_id = '0';
INSERT INTO base_visual_log SELECT * FROM ${dbName}.base_visual_log where f_tenant_id = '0';
INSERT INTO base_visual_personal SELECT * FROM ${dbName}.base_visual_personal where f_tenant_id = '0';
INSERT INTO base_visual_release SELECT * FROM ${dbName}.base_visual_release where f_tenant_id = '0';
INSERT INTO blade_visual SELECT * FROM ${dbName}.blade_visual where f_tenant_id = '0';
INSERT INTO blade_visual_assets SELECT * FROM ${dbName}.blade_visual_assets where f_tenant_id = '0';
INSERT INTO blade_visual_category SELECT * FROM ${dbName}.blade_visual_category where f_tenant_id = '0';
INSERT INTO blade_visual_component SELECT * FROM ${dbName}.blade_visual_component where f_tenant_id = '0';
INSERT INTO blade_visual_config SELECT * FROM ${dbName}.blade_visual_config where f_tenant_id = '0';
INSERT INTO blade_visual_db SELECT * FROM ${dbName}.blade_visual_db where f_tenant_id = '0';
INSERT INTO blade_visual_glob SELECT * FROM ${dbName}.blade_visual_glob where f_tenant_id = '0';
INSERT INTO blade_visual_map SELECT * FROM ${dbName}.blade_visual_map where f_tenant_id = '0';
INSERT INTO blade_visual_record SELECT * FROM ${dbName}.blade_visual_record where f_tenant_id = '0';
INSERT INTO ct293714178055641925 SELECT * FROM ${dbName}.ct293714178055641925 where f_tenant_id = '0';
INSERT INTO ct294012196562705414 SELECT * FROM ${dbName}.ct294012196562705414 where f_tenant_id = '0';
INSERT INTO ct294022926200511493 SELECT * FROM ${dbName}.ct294022926200511493 where f_tenant_id = '0';
INSERT INTO ct294031961024928774 SELECT * FROM ${dbName}.ct294031961024928774 where f_tenant_id = '0';
INSERT INTO ct294031961024928775 SELECT * FROM ${dbName}.ct294031961024928775 where f_tenant_id = '0';
INSERT INTO ct294037561750363142 SELECT * FROM ${dbName}.ct294037561750363142 where f_tenant_id = '0';
INSERT INTO ct294037561750363143 SELECT * FROM ${dbName}.ct294037561750363143 where f_tenant_id = '0';
INSERT INTO ct294099893327272966 SELECT * FROM ${dbName}.ct294099893327272966 where f_tenant_id = '0';
INSERT INTO ct294376098702073542 SELECT * FROM ${dbName}.ct294376098702073542 where f_tenant_id = '0';
INSERT INTO ct294382866144468678 SELECT * FROM ${dbName}.ct294382866144468678 where f_tenant_id = '0';
INSERT INTO ct395899726056134917 SELECT * FROM ${dbName}.ct395899726056134917 where f_tenant_id = '0';
INSERT INTO ct469496947162544645 SELECT * FROM ${dbName}.ct469496947162544645 where f_tenant_id = '0';
INSERT INTO ct469499339585157637 SELECT * FROM ${dbName}.ct469499339585157637 where f_tenant_id = '0';
INSERT INTO ct585077626071155013 SELECT * FROM ${dbName}.ct585077626071155013 where f_tenant_id = '0';
INSERT INTO ct585113061728190981 SELECT * FROM ${dbName}.ct585113061728190981 where f_tenant_id = '0';
INSERT INTO ct585113061732385285 SELECT * FROM ${dbName}.ct585113061732385285 where f_tenant_id = '0';
INSERT INTO ct585115948990595589 SELECT * FROM ${dbName}.ct585115948990595589 where f_tenant_id = '0';
INSERT INTO ct585115958725575173 SELECT * FROM ${dbName}.ct585115958725575173 where f_tenant_id = '0';
INSERT INTO ct585115958725575174 SELECT * FROM ${dbName}.ct585115958725575174 where f_tenant_id = '0';
INSERT INTO data_report SELECT * FROM ${dbName}.data_report where f_tenant_id = '0';
INSERT INTO ext_big_data SELECT * FROM ${dbName}.ext_big_data where f_tenant_id = '0';
INSERT INTO ext_customer SELECT * FROM ${dbName}.ext_customer where f_tenant_id = '0';
INSERT INTO ext_document SELECT * FROM ${dbName}.ext_document where f_tenant_id = '0';
INSERT INTO ext_document_log SELECT * FROM ${dbName}.ext_document_log where f_tenant_id = '0';
INSERT INTO ext_document_share SELECT * FROM ${dbName}.ext_document_share where f_tenant_id = '0';
INSERT INTO ext_email_config SELECT * FROM ${dbName}.ext_email_config where f_tenant_id = '0';
INSERT INTO ext_email_receive SELECT * FROM ${dbName}.ext_email_receive where f_tenant_id = '0';
INSERT INTO ext_email_send SELECT * FROM ${dbName}.ext_email_send where f_tenant_id = '0';
INSERT INTO ext_employee SELECT * FROM ${dbName}.ext_employee where f_tenant_id = '0';
INSERT INTO ext_order SELECT * FROM ${dbName}.ext_order where f_tenant_id = '0';
INSERT INTO ext_order_2 SELECT * FROM ${dbName}.ext_order_2 where f_tenant_id = '0';
INSERT INTO ext_order_entry SELECT * FROM ${dbName}.ext_order_entry where f_tenant_id = '0';
INSERT INTO ext_order_entry_2 SELECT * FROM ${dbName}.ext_order_entry_2 where f_tenant_id = '0';
INSERT INTO ext_order_receivable SELECT * FROM ${dbName}.ext_order_receivable where f_tenant_id = '0';
INSERT INTO ext_order_receivable_2 SELECT * FROM ${dbName}.ext_order_receivable_2 where f_tenant_id = '0';
INSERT INTO ext_product SELECT * FROM ${dbName}.ext_product where f_tenant_id = '0';
INSERT INTO ext_product_classify SELECT * FROM ${dbName}.ext_product_classify where f_tenant_id = '0';
INSERT INTO ext_product_entry SELECT * FROM ${dbName}.ext_product_entry where f_tenant_id = '0';
INSERT INTO ext_product_goods SELECT * FROM ${dbName}.ext_product_goods where f_tenant_id = '0';
INSERT INTO ext_project_gantt SELECT * FROM ${dbName}.ext_project_gantt where f_tenant_id = '0';
INSERT INTO ext_table_example SELECT * FROM ${dbName}.ext_table_example where f_tenant_id = '0';
INSERT INTO ext_work_log SELECT * FROM ${dbName}.ext_work_log where f_tenant_id = '0';
INSERT INTO ext_work_log_share SELECT * FROM ${dbName}.ext_work_log_share where f_tenant_id = '0';
INSERT INTO mt293714178051447621 SELECT * FROM ${dbName}.mt293714178051447621 where f_tenant_id = '0';
INSERT INTO mt293732572561709893 SELECT * FROM ${dbName}.mt293732572561709893 where f_tenant_id = '0';
INSERT INTO mt293737725377420101 SELECT * FROM ${dbName}.mt293737725377420101 where f_tenant_id = '0';
INSERT INTO mt293740367726025541 SELECT * FROM ${dbName}.mt293740367726025541 where f_tenant_id = '0';
INSERT INTO mt293756710756064069 SELECT * FROM ${dbName}.mt293756710756064069 where f_tenant_id = '0';
INSERT INTO mt294012196562705413 SELECT * FROM ${dbName}.mt294012196562705413 where f_tenant_id = '0';
INSERT INTO mt294022926196317189 SELECT * FROM ${dbName}.mt294022926196317189 where f_tenant_id = '0';
INSERT INTO mt294027801932110853 SELECT * FROM ${dbName}.mt294027801932110853 where f_tenant_id = '0';
INSERT INTO mt294031961024928773 SELECT * FROM ${dbName}.mt294031961024928773 where f_tenant_id = '0';
INSERT INTO mt294037561750363141 SELECT * FROM ${dbName}.mt294037561750363141 where f_tenant_id = '0';
INSERT INTO mt294090217118276613 SELECT * FROM ${dbName}.mt294090217118276613 where f_tenant_id = '0';
INSERT INTO mt294099237023526085 SELECT * FROM ${dbName}.mt294099237023526085 where f_tenant_id = '0';
INSERT INTO mt294099893327272965 SELECT * FROM ${dbName}.mt294099893327272965 where f_tenant_id = '0';
INSERT INTO mt294104577349819397 SELECT * FROM ${dbName}.mt294104577349819397 where f_tenant_id = '0';
INSERT INTO mt294376098702073541 SELECT * FROM ${dbName}.mt294376098702073541 where f_tenant_id = '0';
INSERT INTO mt294382866144468677 SELECT * FROM ${dbName}.mt294382866144468677 where f_tenant_id = '0';
INSERT INTO mt382811547782648325 SELECT * FROM ${dbName}.mt382811547782648325 where f_tenant_id = '0';
INSERT INTO mt385453315686752389 SELECT * FROM ${dbName}.mt385453315686752389 where f_tenant_id = '0';
INSERT INTO mt395179351563312389 SELECT * FROM ${dbName}.mt395179351563312389 where f_tenant_id = '0';
INSERT INTO mt395899725691230469 SELECT * FROM ${dbName}.mt395899725691230469 where f_tenant_id = '0';
INSERT INTO mt395964134161651973 SELECT * FROM ${dbName}.mt395964134161651973 where f_tenant_id = '0';
INSERT INTO mt400655094485373381 SELECT * FROM ${dbName}.mt400655094485373381 where f_tenant_id = '0';
INSERT INTO mt420589912199274117 SELECT * FROM ${dbName}.mt420589912199274117 where f_tenant_id = '0';
INSERT INTO mt456990191458975685 SELECT * FROM ${dbName}.mt456990191458975685 where f_tenant_id = '0';
INSERT INTO mt469496947087047173 SELECT * FROM ${dbName}.mt469496947087047173 where f_tenant_id = '0';
INSERT INTO mt469499339534825989 SELECT * FROM ${dbName}.mt469499339534825989 where f_tenant_id = '0';
INSERT INTO mt469502670336489989 SELECT * FROM ${dbName}.mt469502670336489989 where f_tenant_id = '0';
INSERT INTO mt470888132380721605 SELECT * FROM ${dbName}.mt470888132380721605 where f_tenant_id = '0';
INSERT INTO mt470913062111543749 SELECT * FROM ${dbName}.mt470913062111543749 where f_tenant_id = '0';
INSERT INTO mt470929966582727173 SELECT * FROM ${dbName}.mt470929966582727173 where f_tenant_id = '0';
INSERT INTO mt517668914876910661 SELECT * FROM ${dbName}.mt517668914876910661 where f_tenant_id = '0';
INSERT INTO mt585077626008240453 SELECT * FROM ${dbName}.mt585077626008240453 where f_tenant_id = '0';
INSERT INTO mt585113061585584645 SELECT * FROM ${dbName}.mt585113061585584645 where f_tenant_id = '0';
INSERT INTO mt585115948944458245 SELECT * FROM ${dbName}.mt585115948944458245 where f_tenant_id = '0';
INSERT INTO mt585115958712992261 SELECT * FROM ${dbName}.mt585115958712992261 where f_tenant_id = '0';
INSERT INTO mt585385026032501317 SELECT * FROM ${dbName}.mt585385026032501317 where f_tenant_id = '0';
INSERT INTO mt585398421410546245 SELECT * FROM ${dbName}.mt585398421410546245 where f_tenant_id = '0';
INSERT INTO mt585441085065528069 SELECT * FROM ${dbName}.mt585441085065528069 where f_tenant_id = '0';
INSERT INTO mt585441095630979845 SELECT * FROM ${dbName}.mt585441095630979845 where f_tenant_id = '0';
INSERT INTO mt585484941698007941 SELECT * FROM ${dbName}.mt585484941698007941 where f_tenant_id = '0';
INSERT INTO mt585806222716830853 SELECT * FROM ${dbName}.mt585806222716830853 where f_tenant_id = '0';
INSERT INTO mt585825608643118213 SELECT * FROM ${dbName}.mt585825608643118213 where f_tenant_id = '0';
INSERT INTO mt585831812765320325 SELECT * FROM ${dbName}.mt585831812765320325 where f_tenant_id = '0';
INSERT INTO mt623163332936859845 SELECT * FROM ${dbName}.mt623163332936859845 where f_tenant_id = '0';
INSERT INTO mt623163941190631621 SELECT * FROM ${dbName}.mt623163941190631621 where f_tenant_id = '0';
INSERT INTO mt623183981692584133 SELECT * FROM ${dbName}.mt623183981692584133 where f_tenant_id = '0';
INSERT INTO mt623417550885093381 SELECT * FROM ${dbName}.mt623417550885093381 where f_tenant_id = '0';
INSERT INTO mt623425084727492613 SELECT * FROM ${dbName}.mt623425084727492613 where f_tenant_id = '0';
INSERT INTO mt624164005967037317 SELECT * FROM ${dbName}.mt624164005967037317 where f_tenant_id = '0';
INSERT INTO mt624165616286172037 SELECT * FROM ${dbName}.mt624165616286172037 where f_tenant_id = '0';
INSERT INTO report_charts SELECT * FROM ${dbName}.report_charts where f_tenant_id = '0';
INSERT INTO report_department SELECT * FROM ${dbName}.report_department where f_tenant_id = '0';
INSERT INTO report_template SELECT * FROM ${dbName}.report_template where f_tenant_id = '0';
INSERT INTO report_user SELECT * FROM ${dbName}.report_user where f_tenant_id = '0';
INSERT INTO report_version SELECT * FROM ${dbName}.report_version where f_tenant_id = '0';
INSERT INTO test_carapplication SELECT * FROM ${dbName}.test_carapplication where f_tenant_id = '0';
INSERT INTO test_cost SELECT * FROM ${dbName}.test_cost where f_tenant_id = '0';
INSERT INTO test_customer SELECT * FROM ${dbName}.test_customer where f_tenant_id = '0';
INSERT INTO test_details SELECT * FROM ${dbName}.test_details where f_tenant_id = '0';
INSERT INTO test_position SELECT * FROM ${dbName}.test_position where f_tenant_id = '0';
INSERT INTO test_projects SELECT * FROM ${dbName}.test_projects where f_tenant_id = '0';
INSERT INTO test_purchase SELECT * FROM ${dbName}.test_purchase where f_tenant_id = '0';
INSERT INTO test_purchase_form SELECT * FROM ${dbName}.test_purchase_form where f_tenant_id = '0';
INSERT INTO test_purchase_form_order SELECT * FROM ${dbName}.test_purchase_form_order where f_tenant_id = '0';
INSERT INTO test_purchaseorder SELECT * FROM ${dbName}.test_purchaseorder where f_tenant_id = '0';
INSERT INTO test_receivable SELECT * FROM ${dbName}.test_receivable where f_tenant_id = '0';
INSERT INTO test_reimbursement SELECT * FROM ${dbName}.test_reimbursement where f_tenant_id = '0';
INSERT INTO test_subpackage SELECT * FROM ${dbName}.test_subpackage where f_tenant_id = '0';
INSERT INTO test_vehicleinfo SELECT * FROM ${dbName}.test_vehicleinfo where f_tenant_id = '0';
INSERT INTO test_warehousing SELECT * FROM ${dbName}.test_warehousing where f_tenant_id = '0';
INSERT INTO test_warehousingorder SELECT * FROM ${dbName}.test_warehousingorder where f_tenant_id = '0';
INSERT INTO wform_applybanquet SELECT * FROM ${dbName}.wform_applybanquet where f_tenant_id = '0';
INSERT INTO wform_applydelivergoods SELECT * FROM ${dbName}.wform_applydelivergoods where f_tenant_id = '0';
INSERT INTO wform_applydelivergoodsentry SELECT * FROM ${dbName}.wform_applydelivergoodsentry where f_tenant_id = '0';
INSERT INTO wform_applymeeting SELECT * FROM ${dbName}.wform_applymeeting where f_tenant_id = '0';
INSERT INTO wform_archivalborrow SELECT * FROM ${dbName}.wform_archivalborrow where f_tenant_id = '0';
INSERT INTO wform_articleswarehous SELECT * FROM ${dbName}.wform_articleswarehous where f_tenant_id = '0';
INSERT INTO wform_batchpack SELECT * FROM ${dbName}.wform_batchpack where f_tenant_id = '0';
INSERT INTO wform_batchtable SELECT * FROM ${dbName}.wform_batchtable where f_tenant_id = '0';
INSERT INTO wform_conbilling SELECT * FROM ${dbName}.wform_conbilling where f_tenant_id = '0';
INSERT INTO wform_contractapproval SELECT * FROM ${dbName}.wform_contractapproval where f_tenant_id = '0';
INSERT INTO wform_contractapprovalsheet SELECT * FROM ${dbName}.wform_contractapprovalsheet where f_tenant_id = '0';
INSERT INTO wform_debitbill SELECT * FROM ${dbName}.wform_debitbill where f_tenant_id = '0';
INSERT INTO wform_documentapproval SELECT * FROM ${dbName}.wform_documentapproval where f_tenant_id = '0';
INSERT INTO wform_documentsigning SELECT * FROM ${dbName}.wform_documentsigning where f_tenant_id = '0';
INSERT INTO wform_expenseexpenditure SELECT * FROM ${dbName}.wform_expenseexpenditure where f_tenant_id = '0';
INSERT INTO wform_finishedproduct SELECT * FROM ${dbName}.wform_finishedproduct where f_tenant_id = '0';
INSERT INTO wform_finishedproductentry SELECT * FROM ${dbName}.wform_finishedproductentry where f_tenant_id = '0';
INSERT INTO wform_incomerecognition SELECT * FROM ${dbName}.wform_incomerecognition where f_tenant_id = '0';
INSERT INTO wform_leaveapply SELECT * FROM ${dbName}.wform_leaveapply where f_tenant_id = '0';
INSERT INTO wform_letterservice SELECT * FROM ${dbName}.wform_letterservice where f_tenant_id = '0';
INSERT INTO wform_materialrequisition SELECT * FROM ${dbName}.wform_materialrequisition where f_tenant_id = '0';
INSERT INTO wform_materialrequisitionentry SELECT * FROM ${dbName}.wform_materialrequisitionentry where f_tenant_id = '0';
INSERT INTO wform_monthlyreport SELECT * FROM ${dbName}.wform_monthlyreport where f_tenant_id = '0';
INSERT INTO wform_officesupplies SELECT * FROM ${dbName}.wform_officesupplies where f_tenant_id = '0';
INSERT INTO wform_outboundorder SELECT * FROM ${dbName}.wform_outboundorder where f_tenant_id = '0';
INSERT INTO wform_outboundorderentry SELECT * FROM ${dbName}.wform_outboundorderentry where f_tenant_id = '0';
INSERT INTO wform_outgoingapply SELECT * FROM ${dbName}.wform_outgoingapply where f_tenant_id = '0';
INSERT INTO wform_paydistribution SELECT * FROM ${dbName}.wform_paydistribution where f_tenant_id = '0';
INSERT INTO wform_paymentapply SELECT * FROM ${dbName}.wform_paymentapply where f_tenant_id = '0';
INSERT INTO wform_postbatchtab SELECT * FROM ${dbName}.wform_postbatchtab where f_tenant_id = '0';
INSERT INTO wform_procurementmaterial SELECT * FROM ${dbName}.wform_procurementmaterial where f_tenant_id = '0';
INSERT INTO wform_procurementmaterialentry SELECT * FROM ${dbName}.wform_procurementmaterialentry where f_tenant_id = '0';
INSERT INTO wform_purchaselist SELECT * FROM ${dbName}.wform_purchaselist where f_tenant_id = '0';
INSERT INTO wform_purchaselistentry SELECT * FROM ${dbName}.wform_purchaselistentry where f_tenant_id = '0';
INSERT INTO wform_quotationapproval SELECT * FROM ${dbName}.wform_quotationapproval where f_tenant_id = '0';
INSERT INTO wform_receiptprocessing SELECT * FROM ${dbName}.wform_receiptprocessing where f_tenant_id = '0';
INSERT INTO wform_receiptsign SELECT * FROM ${dbName}.wform_receiptsign where f_tenant_id = '0';
INSERT INTO wform_rewardpunishment SELECT * FROM ${dbName}.wform_rewardpunishment where f_tenant_id = '0';
INSERT INTO wform_salesorder SELECT * FROM ${dbName}.wform_salesorder where f_tenant_id = '0';
INSERT INTO wform_salesorderentry SELECT * FROM ${dbName}.wform_salesorderentry where f_tenant_id = '0';
INSERT INTO wform_salessupport SELECT * FROM ${dbName}.wform_salessupport where f_tenant_id = '0';
INSERT INTO wform_staffovertime SELECT * FROM ${dbName}.wform_staffovertime where f_tenant_id = '0';
INSERT INTO wform_supplementcard SELECT * FROM ${dbName}.wform_supplementcard where f_tenant_id = '0';
INSERT INTO wform_travelapply SELECT * FROM ${dbName}.wform_travelapply where f_tenant_id = '0';
INSERT INTO wform_travelreimbursement SELECT * FROM ${dbName}.wform_travelreimbursement where f_tenant_id = '0';
INSERT INTO wform_vehicleapply SELECT * FROM ${dbName}.wform_vehicleapply where f_tenant_id = '0';
INSERT INTO wform_violationhandling SELECT * FROM ${dbName}.wform_violationhandling where f_tenant_id = '0';
INSERT INTO wform_warehousereceipt SELECT * FROM ${dbName}.wform_warehousereceipt where f_tenant_id = '0';
INSERT INTO wform_warehousereceiptentry SELECT * FROM ${dbName}.wform_warehousereceiptentry where f_tenant_id = '0';
INSERT INTO wform_workcontactsheet SELECT * FROM ${dbName}.wform_workcontactsheet where f_tenant_id = '0';
INSERT INTO wform_zjf_wikxqi SELECT * FROM ${dbName}.wform_zjf_wikxqi where f_tenant_id = '0';
INSERT INTO workflow_candidates SELECT * FROM ${dbName}.workflow_candidates where f_tenant_id = '0';
INSERT INTO workflow_circulate SELECT * FROM ${dbName}.workflow_circulate where f_tenant_id = '0';
INSERT INTO workflow_comment SELECT * FROM ${dbName}.workflow_comment where f_tenant_id = '0';
INSERT INTO workflow_common SELECT * FROM ${dbName}.workflow_common where f_tenant_id = '0';
INSERT INTO workflow_delegate SELECT * FROM ${dbName}.workflow_delegate where f_tenant_id = '0';
INSERT INTO workflow_delegate_info SELECT * FROM ${dbName}.workflow_delegate_info where f_tenant_id = '0';
INSERT INTO workflow_form_relation SELECT * FROM ${dbName}.workflow_form_relation where f_tenant_id = '0';
INSERT INTO workflow_launch_user SELECT * FROM ${dbName}.workflow_launch_user where f_tenant_id = '0';
INSERT INTO workflow_node SELECT * FROM ${dbName}.workflow_node where f_tenant_id = '0';
INSERT INTO workflow_node_record SELECT * FROM ${dbName}.workflow_node_record where f_tenant_id = '0';
INSERT INTO workflow_operator SELECT * FROM ${dbName}.workflow_operator where f_tenant_id = '0';
INSERT INTO workflow_record SELECT * FROM ${dbName}.workflow_record where f_tenant_id = '0';
INSERT INTO workflow_reject_data SELECT * FROM ${dbName}.workflow_reject_data where f_tenant_id = '0';
INSERT INTO workflow_revoke SELECT * FROM ${dbName}.workflow_revoke where f_tenant_id = '0';
INSERT INTO workflow_subtask_data SELECT * FROM ${dbName}.workflow_subtask_data where f_tenant_id = '0';
INSERT INTO workflow_task SELECT * FROM ${dbName}.workflow_task where f_tenant_id = '0';
INSERT INTO workflow_task_line SELECT * FROM ${dbName}.workflow_task_line where f_tenant_id = '0';
INSERT INTO workflow_template SELECT * FROM ${dbName}.workflow_template where f_tenant_id = '0';
INSERT INTO workflow_trigger_record SELECT * FROM ${dbName}.workflow_trigger_record where f_tenant_id = '0';
INSERT INTO workflow_trigger_task SELECT * FROM ${dbName}.workflow_trigger_task where f_tenant_id = '0';
INSERT INTO workflow_version SELECT * FROM ${dbName}.workflow_version where f_tenant_id = '0';

ALTER TABLE `base_user` ADD INDEX `i_bu_fa`(`f_account`);
ALTER TABLE `base_user` ADD INDEX `i_bu_fmi`(`f_manager_id`);
ALTER TABLE `base_user_relation` ADD INDEX `i_bur_fui`(`f_user_id`);
ALTER TABLE `base_organize_relation` ADD INDEX `i_bor_foi`(`f_organize_id`);
ALTER TABLE `base_organize_relation` ADD INDEX `i_bor_foi2`(`f_object_id`);
ALTER TABLE `base_position` ADD INDEX `i_bp_foi`(`f_organize_id`);
ALTER TABLE `base_authorize` ADD INDEX `i_ba_foi`(`f_object_id`);
ALTER TABLE `base_sys_log` ADD INDEX `i_bsl_fct`(`f_creator_time`);
ALTER TABLE `undo_log` ADD INDEX `ux_undo_log`(`xid`,`branch_id`);