-- ----------------------------
-- 表名：base_advanced_query_scheme
-- ----------------------------
CREATE TABLE base_advanced_query_scheme (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_FULL_NAME" NVARCHAR2(200),
	"F_MATCH_LOGIC" NVARCHAR2(20),
	"F_CONDITION_JSON" CLOB,
	"F_MODULE_ID" NVARCHAR2(50),
	"F_CREATOR_TIME" TIMESTAMP,
	"F_CREATOR_USER_ID" NVARCHAR2(50),
	"F_LAST_MODIFY_TIME" TIMESTAMP,
	"F_LAST_MODIFY_USER_ID" NVARCHAR2(50),
	"F_DELETE_TIME" TIMESTAMP,
	"F_DELETE_USER_ID" NVARCHAR2(50),
	"F_DELETE_MARK" NUMBER,
	"F_SORT_CODE" NUMBER,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0'

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE base_advanced_query_scheme IS '高级查询方案';
COMMENT ON COLUMN base_advanced_query_scheme."F_ID" IS '自然主键';
COMMENT ON COLUMN base_advanced_query_scheme."F_FULL_NAME" IS '方案名称';
COMMENT ON COLUMN base_advanced_query_scheme."F_MATCH_LOGIC" IS '匹配逻辑';
COMMENT ON COLUMN base_advanced_query_scheme."F_CONDITION_JSON" IS '条件规则Json';
COMMENT ON COLUMN base_advanced_query_scheme."F_MODULE_ID" IS '菜单主键';
COMMENT ON COLUMN base_advanced_query_scheme."F_CREATOR_TIME" IS '创建时间';
COMMENT ON COLUMN base_advanced_query_scheme."F_CREATOR_USER_ID" IS '创建用户';
COMMENT ON COLUMN base_advanced_query_scheme."F_LAST_MODIFY_TIME" IS '修改时间';
COMMENT ON COLUMN base_advanced_query_scheme."F_LAST_MODIFY_USER_ID" IS '修改用户';
COMMENT ON COLUMN base_advanced_query_scheme."F_DELETE_TIME" IS '删除时间';
COMMENT ON COLUMN base_advanced_query_scheme."F_DELETE_USER_ID" IS '删除用户';
COMMENT ON COLUMN base_advanced_query_scheme."F_DELETE_MARK" IS '删除标志';
COMMENT ON COLUMN base_advanced_query_scheme."F_SORT_CODE" IS '排序';
COMMENT ON COLUMN base_advanced_query_scheme."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：base_app_data
-- ----------------------------
CREATE TABLE base_app_data (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_OBJECT_TYPE" NVARCHAR2(50),
	"F_OBJECT_ID" NVARCHAR2(50),
	"F_OBJECT_DATA" CLOB,
	"F_DESCRIPTION" NVARCHAR2(500),
	"F_ENABLED_MARK" NUMBER,
	"F_SYSTEM_ID" NVARCHAR2(50),
	"F_CREATOR_TIME" TIMESTAMP,
	"F_CREATOR_USER_ID" NVARCHAR2(50),
	"F_LAST_MODIFY_TIME" TIMESTAMP,
	"F_LAST_MODIFY_USER_ID" NVARCHAR2(50),
	"F_DELETE_TIME" TIMESTAMP,
	"F_DELETE_USER_ID" NVARCHAR2(50),
	"F_DELETE_MARK" NUMBER,
	"F_SORT_CODE" NUMBER,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0'

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE base_app_data IS 'app常用数据';
COMMENT ON COLUMN base_app_data."F_ID" IS '自然主键';
COMMENT ON COLUMN base_app_data."F_OBJECT_TYPE" IS '对象类型';
COMMENT ON COLUMN base_app_data."F_OBJECT_ID" IS '对象主键';
COMMENT ON COLUMN base_app_data."F_OBJECT_DATA" IS '对象json';
COMMENT ON COLUMN base_app_data."F_DESCRIPTION" IS '描述或说明';
COMMENT ON COLUMN base_app_data."F_ENABLED_MARK" IS '有效标志(0-禁用，1-启用)';
COMMENT ON COLUMN base_app_data."F_SYSTEM_ID" IS '系统id';
COMMENT ON COLUMN base_app_data."F_CREATOR_TIME" IS '创建时间';
COMMENT ON COLUMN base_app_data."F_CREATOR_USER_ID" IS '创建用户';
COMMENT ON COLUMN base_app_data."F_LAST_MODIFY_TIME" IS '修改时间';
COMMENT ON COLUMN base_app_data."F_LAST_MODIFY_USER_ID" IS '修改用户';
COMMENT ON COLUMN base_app_data."F_DELETE_TIME" IS '删除时间';
COMMENT ON COLUMN base_app_data."F_DELETE_USER_ID" IS '删除用户';
COMMENT ON COLUMN base_app_data."F_DELETE_MARK" IS '删除标志';
COMMENT ON COLUMN base_app_data."F_SORT_CODE" IS '排序';
COMMENT ON COLUMN base_app_data."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：base_authorize
-- ----------------------------
CREATE TABLE base_authorize (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_ITEM_TYPE" NVARCHAR2(50),
	"F_ITEM_ID" NVARCHAR2(50),
	"F_OBJECT_TYPE" NVARCHAR2(50),
	"F_OBJECT_ID" NVARCHAR2(50),
	"F_SORT_CODE" NUMBER,
	"F_CREATOR_TIME" TIMESTAMP,
	"F_CREATOR_USER_ID" NVARCHAR2(50),
	"F_LAST_MODIFY_TIME" TIMESTAMP,
	"F_LAST_MODIFY_USER_ID" NVARCHAR2(50),
	"F_DELETE_TIME" TIMESTAMP,
	"F_DELETE_USER_ID" NVARCHAR2(50),
	"F_DELETE_MARK" NUMBER,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0'

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE base_authorize IS '操作权限';
COMMENT ON COLUMN base_authorize."F_ID" IS '自然主键';
COMMENT ON COLUMN base_authorize."F_ITEM_TYPE" IS '项目类型';
COMMENT ON COLUMN base_authorize."F_ITEM_ID" IS '项目主键';
COMMENT ON COLUMN base_authorize."F_OBJECT_TYPE" IS '对象类型';
COMMENT ON COLUMN base_authorize."F_OBJECT_ID" IS '对象主键';
COMMENT ON COLUMN base_authorize."F_SORT_CODE" IS '排序';
COMMENT ON COLUMN base_authorize."F_CREATOR_TIME" IS '创建时间';
COMMENT ON COLUMN base_authorize."F_CREATOR_USER_ID" IS '创建用户';
COMMENT ON COLUMN base_authorize."F_LAST_MODIFY_TIME" IS '修改时间';
COMMENT ON COLUMN base_authorize."F_LAST_MODIFY_USER_ID" IS '修改用户';
COMMENT ON COLUMN base_authorize."F_DELETE_TIME" IS '删除时间';
COMMENT ON COLUMN base_authorize."F_DELETE_USER_ID" IS '删除用户';
COMMENT ON COLUMN base_authorize."F_DELETE_MARK" IS '删除标志';
COMMENT ON COLUMN base_authorize."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：base_bill_num
-- ----------------------------
CREATE TABLE base_bill_num (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_RULE_ID" NVARCHAR2(50),
	"F_VISUAL_ID" NVARCHAR2(50),
	"F_FLOW_ID" NVARCHAR2(50),
	"F_RULE_CONFIG" CLOB,
	"F_DATE_VALUE" NVARCHAR2(50),
	"F_NUM" NUMBER,
	"F_CREATOR_TIME" TIMESTAMP,
	"F_CREATOR_USER_ID" NVARCHAR2(50),
	"F_LAST_MODIFY_TIME" TIMESTAMP,
	"F_LAST_MODIFY_USER_ID" NVARCHAR2(50),
	"F_DELETE_TIME" TIMESTAMP,
	"F_DELETE_USER_ID" NVARCHAR2(50),
	"F_DELETE_MARK" NUMBER,
	"F_TENANT_ID" NVARCHAR2(50) NOT NULL

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE base_bill_num IS '单据规则记录';
COMMENT ON COLUMN base_bill_num."F_ID" IS '自然主键';
COMMENT ON COLUMN base_bill_num."F_RULE_ID" IS '单据规则id';
COMMENT ON COLUMN base_bill_num."F_VISUAL_ID" IS '功能id';
COMMENT ON COLUMN base_bill_num."F_FLOW_ID" IS '流程id';
COMMENT ON COLUMN base_bill_num."F_RULE_CONFIG" IS '规则配置';
COMMENT ON COLUMN base_bill_num."F_DATE_VALUE" IS '时间规则值：用于判断是否重置';
COMMENT ON COLUMN base_bill_num."F_NUM" IS '单据递增序号';
COMMENT ON COLUMN base_bill_num."F_CREATOR_TIME" IS '创建时间';
COMMENT ON COLUMN base_bill_num."F_CREATOR_USER_ID" IS '创建用户';
COMMENT ON COLUMN base_bill_num."F_LAST_MODIFY_TIME" IS '修改时间';
COMMENT ON COLUMN base_bill_num."F_LAST_MODIFY_USER_ID" IS '修改用户';
COMMENT ON COLUMN base_bill_num."F_DELETE_TIME" IS '删除时间';
COMMENT ON COLUMN base_bill_num."F_DELETE_USER_ID" IS '删除用户';
COMMENT ON COLUMN base_bill_num."F_DELETE_MARK" IS '删除标志';
COMMENT ON COLUMN base_bill_num."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：base_bill_rule
-- ----------------------------
CREATE TABLE base_bill_rule (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_FULL_NAME" NVARCHAR2(200),
	"F_EN_CODE" NVARCHAR2(200),
	"F_PREFIX" NVARCHAR2(50),
	"F_DATE_FORMAT" NVARCHAR2(50),
	"F_DIGIT" NUMBER,
	"F_START_NUMBER" NVARCHAR2(50),
	"F_EXAMPLE" NVARCHAR2(100),
	"F_THIS_NUMBER" NUMBER,
	"F_OUTPUT_NUMBER" NVARCHAR2(100),
	"F_DESCRIPTION" NVARCHAR2(500),
	"F_ENABLED_MARK" NUMBER,
	"F_CATEGORY" NVARCHAR2(50),
	"F_SORT_CODE" NUMBER,
	"F_CREATOR_TIME" TIMESTAMP,
	"F_CREATOR_USER_ID" NVARCHAR2(50),
	"F_LAST_MODIFY_TIME" TIMESTAMP,
	"F_LAST_MODIFY_USER_ID" NVARCHAR2(50),
	"F_DELETE_TIME" TIMESTAMP,
	"F_DELETE_USER_ID" NVARCHAR2(50),
	"F_DELETE_MARK" NUMBER,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0',
	"F_TYPE" NUMBER,
	"F_RANDOM_DIGIT" NUMBER,
	"F_RANDOM_TYPE" NUMBER,
	"F_SUFFIX" NVARCHAR2(50)

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE base_bill_rule IS '单据规则';
COMMENT ON COLUMN base_bill_rule."F_ID" IS '自然主键';
COMMENT ON COLUMN base_bill_rule."F_FULL_NAME" IS '单据名称';
COMMENT ON COLUMN base_bill_rule."F_EN_CODE" IS '单据编号';
COMMENT ON COLUMN base_bill_rule."F_PREFIX" IS '单据前缀';
COMMENT ON COLUMN base_bill_rule."F_DATE_FORMAT" IS '日期格式';
COMMENT ON COLUMN base_bill_rule."F_DIGIT" IS '流水位数';
COMMENT ON COLUMN base_bill_rule."F_START_NUMBER" IS '流水起始';
COMMENT ON COLUMN base_bill_rule."F_EXAMPLE" IS '流水范例';
COMMENT ON COLUMN base_bill_rule."F_THIS_NUMBER" IS '当前流水号';
COMMENT ON COLUMN base_bill_rule."F_OUTPUT_NUMBER" IS '输出流水号';
COMMENT ON COLUMN base_bill_rule."F_DESCRIPTION" IS '描述或说明';
COMMENT ON COLUMN base_bill_rule."F_ENABLED_MARK" IS '有效标志(0-禁用，1-启用)';
COMMENT ON COLUMN base_bill_rule."F_CATEGORY" IS '业务分类';
COMMENT ON COLUMN base_bill_rule."F_SORT_CODE" IS '排序';
COMMENT ON COLUMN base_bill_rule."F_CREATOR_TIME" IS '创建时间';
COMMENT ON COLUMN base_bill_rule."F_CREATOR_USER_ID" IS '创建用户';
COMMENT ON COLUMN base_bill_rule."F_LAST_MODIFY_TIME" IS '修改时间';
COMMENT ON COLUMN base_bill_rule."F_LAST_MODIFY_USER_ID" IS '修改用户';
COMMENT ON COLUMN base_bill_rule."F_DELETE_TIME" IS '删除时间';
COMMENT ON COLUMN base_bill_rule."F_DELETE_USER_ID" IS '删除用户';
COMMENT ON COLUMN base_bill_rule."F_DELETE_MARK" IS '删除标志';
COMMENT ON COLUMN base_bill_rule."F_TENANT_ID" IS '租户id';
COMMENT ON COLUMN base_bill_rule."F_TYPE" IS '方式 1-时间格式，2-随机数编号，3-UUID';
COMMENT ON COLUMN base_bill_rule."F_RANDOM_DIGIT" IS '随机数位数';
COMMENT ON COLUMN base_bill_rule."F_RANDOM_TYPE" IS '随机数类型';
COMMENT ON COLUMN base_bill_rule."F_SUFFIX" IS '单据后缀';
-- ----------------------------
-- 表名：base_columns_purview
-- ----------------------------
CREATE TABLE base_columns_purview (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_FIELD_LIST" CLOB,
	"F_MODULE_ID" NVARCHAR2(50),
	"F_ENABLED_MARK" NUMBER,
	"F_SORT_CODE" NUMBER,
	"F_CREATOR_TIME" TIMESTAMP,
	"F_CREATOR_USER_ID" NVARCHAR2(50),
	"F_LAST_MODIFY_TIME" TIMESTAMP,
	"F_LAST_MODIFY_USER_ID" NVARCHAR2(50),
	"F_DELETE_TIME" TIMESTAMP,
	"F_DELETE_USER_ID" NVARCHAR2(50),
	"F_DELETE_MARK" NUMBER,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0'

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE base_columns_purview IS '模块列表权限';
COMMENT ON COLUMN base_columns_purview."F_ID" IS '主键Id';
COMMENT ON COLUMN base_columns_purview."F_FIELD_LIST" IS '列表字段数组';
COMMENT ON COLUMN base_columns_purview."F_MODULE_ID" IS '模块ID';
COMMENT ON COLUMN base_columns_purview."F_ENABLED_MARK" IS '有效标志(0-禁用，1-启用)';
COMMENT ON COLUMN base_columns_purview."F_SORT_CODE" IS '排序';
COMMENT ON COLUMN base_columns_purview."F_CREATOR_TIME" IS '创建时间';
COMMENT ON COLUMN base_columns_purview."F_CREATOR_USER_ID" IS '创建用户';
COMMENT ON COLUMN base_columns_purview."F_LAST_MODIFY_TIME" IS '修改时间';
COMMENT ON COLUMN base_columns_purview."F_LAST_MODIFY_USER_ID" IS '修改用户';
COMMENT ON COLUMN base_columns_purview."F_DELETE_TIME" IS '删除时间';
COMMENT ON COLUMN base_columns_purview."F_DELETE_USER_ID" IS '删除用户';
COMMENT ON COLUMN base_columns_purview."F_DELETE_MARK" IS '删除标志';
COMMENT ON COLUMN base_columns_purview."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：base_common_fields
-- ----------------------------
CREATE TABLE base_common_fields (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_FIELD_NAME" NVARCHAR2(50),
	"F_DATA_TYPE" NVARCHAR2(50),
	"F_DATA_LENGTH" NVARCHAR2(50),
	"F_ALLOW_NULL" NUMBER,
	"F_FIELD" NVARCHAR2(50),
	"F_DESCRIPTION" NVARCHAR2(500),
	"F_ENABLED_MARK" NUMBER,
	"F_SORT_CODE" NUMBER,
	"F_CREATOR_TIME" TIMESTAMP,
	"F_CREATOR_USER_ID" NVARCHAR2(50),
	"F_LAST_MODIFY_TIME" TIMESTAMP,
	"F_LAST_MODIFY_USER_ID" NVARCHAR2(50),
	"F_DELETE_TIME" TIMESTAMP,
	"F_DELETE_USER_ID" NVARCHAR2(50),
	"F_DELETE_MARK" NUMBER,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0'

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE base_common_fields IS '常用表字段';
COMMENT ON COLUMN base_common_fields."F_ID" IS '主键';
COMMENT ON COLUMN base_common_fields."F_FIELD_NAME" IS '列说名';
COMMENT ON COLUMN base_common_fields."F_DATA_TYPE" IS '类型';
COMMENT ON COLUMN base_common_fields."F_DATA_LENGTH" IS '长度';
COMMENT ON COLUMN base_common_fields."F_ALLOW_NULL" IS '是否为空（1允许，0不允许）';
COMMENT ON COLUMN base_common_fields."F_FIELD" IS '列名';
COMMENT ON COLUMN base_common_fields."F_DESCRIPTION" IS '描述或说明';
COMMENT ON COLUMN base_common_fields."F_ENABLED_MARK" IS '有效标志(0-禁用，1-启用)';
COMMENT ON COLUMN base_common_fields."F_SORT_CODE" IS '排序';
COMMENT ON COLUMN base_common_fields."F_CREATOR_TIME" IS '创建时间';
COMMENT ON COLUMN base_common_fields."F_CREATOR_USER_ID" IS '创建用户';
COMMENT ON COLUMN base_common_fields."F_LAST_MODIFY_TIME" IS '修改时间';
COMMENT ON COLUMN base_common_fields."F_LAST_MODIFY_USER_ID" IS '修改用户';
COMMENT ON COLUMN base_common_fields."F_DELETE_TIME" IS '删除时间';
COMMENT ON COLUMN base_common_fields."F_DELETE_USER_ID" IS '删除用户';
COMMENT ON COLUMN base_common_fields."F_DELETE_MARK" IS '删除标志';
COMMENT ON COLUMN base_common_fields."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：base_common_words
-- ----------------------------
CREATE TABLE base_common_words (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_SYSTEM_IDS" NVARCHAR2(2000),
	"F_COMMON_WORDS_TEXT" NVARCHAR2(2000),
	"F_COMMON_WORDS_TYPE" NUMBER,
	"F_SORT_CODE" NUMBER,
	"F_ENABLED_MARK" NUMBER,
	"F_CREATOR_TIME" TIMESTAMP,
	"F_CREATOR_USER_ID" NVARCHAR2(50),
	"F_LAST_MODIFY_TIME" TIMESTAMP,
	"F_LAST_MODIFY_USER_ID" NVARCHAR2(50),
	"F_DELETE_TIME" TIMESTAMP,
	"F_DELETE_USER_ID" NVARCHAR2(50),
	"F_DELETE_MARK" NUMBER,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0',
	"F_USES_NUM" NUMBER

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE base_common_words IS '常用语';
COMMENT ON COLUMN base_common_words."F_ID" IS '自然主键';
COMMENT ON COLUMN base_common_words."F_SYSTEM_IDS" IS '应用id';
COMMENT ON COLUMN base_common_words."F_COMMON_WORDS_TEXT" IS '常用语';
COMMENT ON COLUMN base_common_words."F_COMMON_WORDS_TYPE" IS '常用语类型(0:系统,1:个人)';
COMMENT ON COLUMN base_common_words."F_SORT_CODE" IS '排序';
COMMENT ON COLUMN base_common_words."F_ENABLED_MARK" IS '有效标志';
COMMENT ON COLUMN base_common_words."F_CREATOR_TIME" IS '创建时间';
COMMENT ON COLUMN base_common_words."F_CREATOR_USER_ID" IS '创建用户';
COMMENT ON COLUMN base_common_words."F_LAST_MODIFY_TIME" IS '修改时间';
COMMENT ON COLUMN base_common_words."F_LAST_MODIFY_USER_ID" IS '修改用户';
COMMENT ON COLUMN base_common_words."F_DELETE_TIME" IS '删除时间';
COMMENT ON COLUMN base_common_words."F_DELETE_USER_ID" IS '删除用户';
COMMENT ON COLUMN base_common_words."F_DELETE_MARK" IS '删除标志';
COMMENT ON COLUMN base_common_words."F_TENANT_ID" IS '租户id';
COMMENT ON COLUMN base_common_words."F_USES_NUM" IS '使用次数';
-- ----------------------------
-- 表名：base_data_interface
-- ----------------------------
CREATE TABLE base_data_interface (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_FULL_NAME" NVARCHAR2(200),
	"F_EN_CODE" NVARCHAR2(200),
	"F_CATEGORY" NVARCHAR2(50),
	"F_TYPE" NUMBER,
	"F_ACTION" NUMBER,
	"F_HAS_PAGE" NUMBER,
	"F_IS_POSTPOSITION" NUMBER,
	"F_DATA_CONFIG_JSON" CLOB NOT NULL,
	"F_DATA_COUNT_JSON" CLOB NOT NULL,
	"F_DATA_ECHO_JSON" CLOB NOT NULL,
	"F_DATA_EXCEPTION_JSON" CLOB,
	"F_DATA_JS_JSON" CLOB NOT NULL,
	"F_PARAMETER_JSON" CLOB,
	"F_FIELD_JSON" CLOB,
	"F_DESCRIPTION" NVARCHAR2(500),
	"F_ENABLED_MARK" NUMBER,
	"F_SORT_CODE" NUMBER,
	"F_CREATOR_TIME" TIMESTAMP,
	"F_CREATOR_USER_ID" NVARCHAR2(50),
	"F_LAST_MODIFY_TIME" TIMESTAMP,
	"F_LAST_MODIFY_USER_ID" NVARCHAR2(50),
	"F_DELETE_TIME" TIMESTAMP,
	"F_DELETE_USER_ID" NVARCHAR2(50),
	"F_DELETE_MARK" NUMBER,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0'

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE base_data_interface IS '数据接口';
COMMENT ON COLUMN base_data_interface."F_ID" IS '主键ID';
COMMENT ON COLUMN base_data_interface."F_FULL_NAME" IS '名称';
COMMENT ON COLUMN base_data_interface."F_EN_CODE" IS '编码';
COMMENT ON COLUMN base_data_interface."F_CATEGORY" IS '分类';
COMMENT ON COLUMN base_data_interface."F_TYPE" IS '类型(1-静态数据，2-sql，3-api)';
COMMENT ON COLUMN base_data_interface."F_ACTION" IS '动作(3-查询)';
COMMENT ON COLUMN base_data_interface."F_HAS_PAGE" IS '分页(0-禁用，1-启用)';
COMMENT ON COLUMN base_data_interface."F_IS_POSTPOSITION" IS '后置接口(0-否 1-是)';
COMMENT ON COLUMN base_data_interface."F_DATA_CONFIG_JSON" IS '数据配置json';
COMMENT ON COLUMN base_data_interface."F_DATA_COUNT_JSON" IS '数据统计json';
COMMENT ON COLUMN base_data_interface."F_DATA_ECHO_JSON" IS '数据回显json';
COMMENT ON COLUMN base_data_interface."F_DATA_EXCEPTION_JSON" IS '异常验证json';
COMMENT ON COLUMN base_data_interface."F_DATA_JS_JSON" IS '数据处理json';
COMMENT ON COLUMN base_data_interface."F_PARAMETER_JSON" IS '参数json';
COMMENT ON COLUMN base_data_interface."F_FIELD_JSON" IS '字段JSON';
COMMENT ON COLUMN base_data_interface."F_DESCRIPTION" IS '描述或说明';
COMMENT ON COLUMN base_data_interface."F_ENABLED_MARK" IS '有效标志(0-禁用，1-启用)';
COMMENT ON COLUMN base_data_interface."F_SORT_CODE" IS '排序';
COMMENT ON COLUMN base_data_interface."F_CREATOR_TIME" IS '创建时间';
COMMENT ON COLUMN base_data_interface."F_CREATOR_USER_ID" IS '创建用户';
COMMENT ON COLUMN base_data_interface."F_LAST_MODIFY_TIME" IS '修改时间';
COMMENT ON COLUMN base_data_interface."F_LAST_MODIFY_USER_ID" IS '修改用户';
COMMENT ON COLUMN base_data_interface."F_DELETE_TIME" IS '删除时间';
COMMENT ON COLUMN base_data_interface."F_DELETE_USER_ID" IS '删除用户';
COMMENT ON COLUMN base_data_interface."F_DELETE_MARK" IS '删除标志';
COMMENT ON COLUMN base_data_interface."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：base_data_interface_log
-- ----------------------------
CREATE TABLE base_data_interface_log (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_INVOK_ID" NVARCHAR2(50) NOT NULL,
	"F_INVOK_TIME" TIMESTAMP,
	"F_USER_ID" NVARCHAR2(50),
	"F_INVOK_IP" NVARCHAR2(50),
	"F_INVOK_DEVICE" NVARCHAR2(500),
	"F_INVOK_TYPE" NVARCHAR2(50),
	"F_INVOK_WASTE_TIME" NUMBER,
	"F_OAUTH_APP_ID" NVARCHAR2(50),
	"F_SORT_CODE" NUMBER,
	"F_CREATOR_TIME" TIMESTAMP,
	"F_CREATOR_USER_ID" NVARCHAR2(50),
	"F_LAST_MODIFY_TIME" TIMESTAMP,
	"F_LAST_MODIFY_USER_ID" NVARCHAR2(50),
	"F_DELETE_TIME" TIMESTAMP,
	"F_DELETE_USER_ID" NVARCHAR2(50),
	"F_DELETE_MARK" NUMBER,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0'

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE base_data_interface_log IS '数据接口调用日志';
COMMENT ON COLUMN base_data_interface_log."F_ID" IS '主键id';
COMMENT ON COLUMN base_data_interface_log."F_INVOK_ID" IS '调用接口id';
COMMENT ON COLUMN base_data_interface_log."F_INVOK_TIME" IS '调用时间';
COMMENT ON COLUMN base_data_interface_log."F_USER_ID" IS '调用者id';
COMMENT ON COLUMN base_data_interface_log."F_INVOK_IP" IS '请求ip';
COMMENT ON COLUMN base_data_interface_log."F_INVOK_DEVICE" IS '请求设备';
COMMENT ON COLUMN base_data_interface_log."F_INVOK_TYPE" IS '请求类型';
COMMENT ON COLUMN base_data_interface_log."F_INVOK_WASTE_TIME" IS '请求耗时';
COMMENT ON COLUMN base_data_interface_log."F_OAUTH_APP_ID" IS '';
COMMENT ON COLUMN base_data_interface_log."F_SORT_CODE" IS '排序';
COMMENT ON COLUMN base_data_interface_log."F_CREATOR_TIME" IS '创建时间';
COMMENT ON COLUMN base_data_interface_log."F_CREATOR_USER_ID" IS '创建用户';
COMMENT ON COLUMN base_data_interface_log."F_LAST_MODIFY_TIME" IS '修改时间';
COMMENT ON COLUMN base_data_interface_log."F_LAST_MODIFY_USER_ID" IS '修改用户';
COMMENT ON COLUMN base_data_interface_log."F_DELETE_TIME" IS '删除时间';
COMMENT ON COLUMN base_data_interface_log."F_DELETE_USER_ID" IS '删除用户';
COMMENT ON COLUMN base_data_interface_log."F_DELETE_MARK" IS '删除标志';
COMMENT ON COLUMN base_data_interface_log."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：base_data_interface_oauth
-- ----------------------------
CREATE TABLE base_data_interface_oauth (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_APP_ID" NVARCHAR2(200) NOT NULL,
	"F_APP_NAME" NVARCHAR2(50) NOT NULL,
	"F_APP_SECRET" NVARCHAR2(200) NOT NULL,
	"F_VERIFY_SIGNATURE" NUMBER,
	"F_USEFUL_LIFE" TIMESTAMP,
	"F_WHITE_LIST" CLOB,
	"F_BLACK_LIST" CLOB,
	"F_DATA_INTERFACE_IDS" CLOB,
	"F_SORT_CODE" NUMBER,
	"F_CREATOR_TIME" TIMESTAMP,
	"F_CREATOR_USER_ID" NVARCHAR2(50),
	"F_LAST_MODIFY_TIME" TIMESTAMP,
	"F_LAST_MODIFY_USER_ID" NVARCHAR2(50),
	"F_ENABLED_MARK" NUMBER,
	"F_DESCRIPTION" NVARCHAR2(500),
	"F_DELETE_TIME" TIMESTAMP,
	"F_DELETE_USER_ID" NVARCHAR2(50),
	"F_DELETE_MARK" NUMBER,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0'

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE base_data_interface_oauth IS '接口认证';
COMMENT ON COLUMN base_data_interface_oauth."F_ID" IS '主键';
COMMENT ON COLUMN base_data_interface_oauth."F_APP_ID" IS '应用id';
COMMENT ON COLUMN base_data_interface_oauth."F_APP_NAME" IS '应用名称';
COMMENT ON COLUMN base_data_interface_oauth."F_APP_SECRET" IS '应用秘钥';
COMMENT ON COLUMN base_data_interface_oauth."F_VERIFY_SIGNATURE" IS '验证签名';
COMMENT ON COLUMN base_data_interface_oauth."F_USEFUL_LIFE" IS '使用期限';
COMMENT ON COLUMN base_data_interface_oauth."F_WHITE_LIST" IS '白名单';
COMMENT ON COLUMN base_data_interface_oauth."F_BLACK_LIST" IS '黑名单';
COMMENT ON COLUMN base_data_interface_oauth."F_DATA_INTERFACE_IDS" IS '接口列表';
COMMENT ON COLUMN base_data_interface_oauth."F_SORT_CODE" IS '排序';
COMMENT ON COLUMN base_data_interface_oauth."F_CREATOR_TIME" IS '创建时间';
COMMENT ON COLUMN base_data_interface_oauth."F_CREATOR_USER_ID" IS '创建用户';
COMMENT ON COLUMN base_data_interface_oauth."F_LAST_MODIFY_TIME" IS '修改时间';
COMMENT ON COLUMN base_data_interface_oauth."F_LAST_MODIFY_USER_ID" IS '修改用户';
COMMENT ON COLUMN base_data_interface_oauth."F_ENABLED_MARK" IS '状态';
COMMENT ON COLUMN base_data_interface_oauth."F_DESCRIPTION" IS '说明';
COMMENT ON COLUMN base_data_interface_oauth."F_DELETE_TIME" IS '删除时间';
COMMENT ON COLUMN base_data_interface_oauth."F_DELETE_USER_ID" IS '删除用户';
COMMENT ON COLUMN base_data_interface_oauth."F_DELETE_MARK" IS '删除标志';
COMMENT ON COLUMN base_data_interface_oauth."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：base_data_interface_user
-- ----------------------------
CREATE TABLE base_data_interface_user (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_USER_ID" NVARCHAR2(50),
	"F_USER_KEY" NVARCHAR2(50),
	"F_OAUTH_ID" NVARCHAR2(50),
	"F_SORT_CODE" NUMBER,
	"F_CREATOR_TIME" TIMESTAMP,
	"F_CREATOR_USER_ID" NVARCHAR2(50),
	"F_LAST_MODIFY_TIME" TIMESTAMP,
	"F_LAST_MODIFY_USER_ID" NVARCHAR2(50),
	"F_DELETE_TIME" TIMESTAMP,
	"F_DELETE_USER_ID" NVARCHAR2(50),
	"F_DELETE_MARK" NUMBER,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0'

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE base_data_interface_user IS '接口认证用户';
COMMENT ON COLUMN base_data_interface_user."F_ID" IS '自然主键';
COMMENT ON COLUMN base_data_interface_user."F_USER_ID" IS '用户主键';
COMMENT ON COLUMN base_data_interface_user."F_USER_KEY" IS '用户密钥';
COMMENT ON COLUMN base_data_interface_user."F_OAUTH_ID" IS '接口认证主键';
COMMENT ON COLUMN base_data_interface_user."F_SORT_CODE" IS '排序';
COMMENT ON COLUMN base_data_interface_user."F_CREATOR_TIME" IS '创建时间';
COMMENT ON COLUMN base_data_interface_user."F_CREATOR_USER_ID" IS '创建用户';
COMMENT ON COLUMN base_data_interface_user."F_LAST_MODIFY_TIME" IS '修改时间';
COMMENT ON COLUMN base_data_interface_user."F_LAST_MODIFY_USER_ID" IS '修改用户';
COMMENT ON COLUMN base_data_interface_user."F_DELETE_TIME" IS '删除时间';
COMMENT ON COLUMN base_data_interface_user."F_DELETE_USER_ID" IS '删除用户';
COMMENT ON COLUMN base_data_interface_user."F_DELETE_MARK" IS '删除标志';
COMMENT ON COLUMN base_data_interface_user."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：base_data_interface_variate
-- ----------------------------
CREATE TABLE base_data_interface_variate (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_INTERFACE_ID" NVARCHAR2(50) NOT NULL,
	"F_FULL_NAME" NVARCHAR2(200),
	"F_EXPRESSION" NVARCHAR2(500),
	"F_VALUE" CLOB,
	"F_SORT_CODE" NUMBER,
	"F_CREATOR_TIME" TIMESTAMP,
	"F_CREATOR_USER_ID" NVARCHAR2(50),
	"F_LAST_MODIFY_TIME" TIMESTAMP,
	"F_LAST_MODIFY_USER_ID" NVARCHAR2(50),
	"F_DELETE_TIME" TIMESTAMP,
	"F_DELETE_USER_ID" NVARCHAR2(50),
	"F_DELETE_MARK" NUMBER,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0'

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE base_data_interface_variate IS '数据接口变量';
COMMENT ON COLUMN base_data_interface_variate."F_ID" IS '主键id';
COMMENT ON COLUMN base_data_interface_variate."F_INTERFACE_ID" IS '数据接口id';
COMMENT ON COLUMN base_data_interface_variate."F_FULL_NAME" IS '变量名';
COMMENT ON COLUMN base_data_interface_variate."F_EXPRESSION" IS '表达式';
COMMENT ON COLUMN base_data_interface_variate."F_VALUE" IS '变量值';
COMMENT ON COLUMN base_data_interface_variate."F_SORT_CODE" IS '排序';
COMMENT ON COLUMN base_data_interface_variate."F_CREATOR_TIME" IS '创建时间';
COMMENT ON COLUMN base_data_interface_variate."F_CREATOR_USER_ID" IS '创建用户';
COMMENT ON COLUMN base_data_interface_variate."F_LAST_MODIFY_TIME" IS '修改时间';
COMMENT ON COLUMN base_data_interface_variate."F_LAST_MODIFY_USER_ID" IS '修改用户';
COMMENT ON COLUMN base_data_interface_variate."F_DELETE_TIME" IS '删除时间';
COMMENT ON COLUMN base_data_interface_variate."F_DELETE_USER_ID" IS '删除用户';
COMMENT ON COLUMN base_data_interface_variate."F_DELETE_MARK" IS '删除标志';
COMMENT ON COLUMN base_data_interface_variate."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：base_data_set
-- ----------------------------
CREATE TABLE base_data_set (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_OBJECT_TYPE" NVARCHAR2(50),
	"F_OBJECT_ID" NVARCHAR2(50),
	"F_FULL_NAME" NVARCHAR2(255) NOT NULL,
	"F_DB_LINK_ID" NVARCHAR2(50) DEFAULT '0',
	"F_DATA_CONFIG_JSON" CLOB,
	"F_PARAMETER_JSON" CLOB,
	"F_FIELD_JSON" CLOB,
	"F_SORT_CODE" NUMBER,
	"F_DESCRIPTION" NVARCHAR2(500),
	"F_CREATOR_TIME" TIMESTAMP,
	"F_CREATOR_USER_ID" NVARCHAR2(50),
	"F_LAST_MODIFY_TIME" TIMESTAMP,
	"F_LAST_MODIFY_USER_ID" NVARCHAR2(50),
	"F_DELETE_TIME" TIMESTAMP,
	"F_DELETE_USER_ID" NVARCHAR2(50),
	"F_DELETE_MARK" NUMBER,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0',
	"F_TYPE" NUMBER DEFAULT '0',
	"F_VISUAL_CONFIG_JSON" CLOB,
	"F_FILTER_CONFIG_JSON" CLOB,
	"F_INTERFACE_ID" NVARCHAR2(50)

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE base_data_set IS '数据集';
COMMENT ON COLUMN base_data_set."F_ID" IS '主键_id';
COMMENT ON COLUMN base_data_set."F_OBJECT_TYPE" IS '关联数据类型';
COMMENT ON COLUMN base_data_set."F_OBJECT_ID" IS '关联的数据id';
COMMENT ON COLUMN base_data_set."F_FULL_NAME" IS '数据集名称';
COMMENT ON COLUMN base_data_set."F_DB_LINK_ID" IS '连接数据 _id';
COMMENT ON COLUMN base_data_set."F_DATA_CONFIG_JSON" IS '数据sql语句';
COMMENT ON COLUMN base_data_set."F_PARAMETER_JSON" IS '输入参数';
COMMENT ON COLUMN base_data_set."F_FIELD_JSON" IS '显示字段';
COMMENT ON COLUMN base_data_set."F_SORT_CODE" IS '排序';
COMMENT ON COLUMN base_data_set."F_DESCRIPTION" IS '描述或说明';
COMMENT ON COLUMN base_data_set."F_CREATOR_TIME" IS '创建时间';
COMMENT ON COLUMN base_data_set."F_CREATOR_USER_ID" IS '创建用户';
COMMENT ON COLUMN base_data_set."F_LAST_MODIFY_TIME" IS '修改时间';
COMMENT ON COLUMN base_data_set."F_LAST_MODIFY_USER_ID" IS '修改用户';
COMMENT ON COLUMN base_data_set."F_DELETE_TIME" IS '删除时间';
COMMENT ON COLUMN base_data_set."F_DELETE_USER_ID" IS '删除用户';
COMMENT ON COLUMN base_data_set."F_DELETE_MARK" IS '删除标志';
COMMENT ON COLUMN base_data_set."F_TENANT_ID" IS '租户id';
COMMENT ON COLUMN base_data_set."F_TYPE" IS '类型：1-sql语句，2-配置式';
COMMENT ON COLUMN base_data_set."F_VISUAL_CONFIG_JSON" IS '配置json';
COMMENT ON COLUMN base_data_set."F_FILTER_CONFIG_JSON" IS '筛选设置json';
COMMENT ON COLUMN base_data_set."F_INTERFACE_ID" IS '数据接口id';
-- ----------------------------
-- 表名：base_db_link
-- ----------------------------
CREATE TABLE base_db_link (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_FULL_NAME" NVARCHAR2(200),
	"F_DB_TYPE" NVARCHAR2(50),
	"F_HOST" NVARCHAR2(50),
	"F_PORT" NUMBER,
	"F_USER_NAME" NVARCHAR2(50),
	"F_PASSWORD" NVARCHAR2(100),
	"F_SERVICE_NAME" NVARCHAR2(50),
	"F_DESCRIPTION" NVARCHAR2(500),
	"F_DB_SCHEMA" NVARCHAR2(50),
	"F_TABLE_SPACE" NVARCHAR2(50),
	"F_ORACLE_PARAM" NVARCHAR2(500),
	"F_ORACLE_EXTEND" NUMBER,
	"F_SORT_CODE" NUMBER,
	"F_CREATOR_TIME" TIMESTAMP,
	"F_CREATOR_USER_ID" NVARCHAR2(50),
	"F_LAST_MODIFY_TIME" TIMESTAMP,
	"F_LAST_MODIFY_USER_ID" NVARCHAR2(50),
	"F_DELETE_TIME" TIMESTAMP,
	"F_DELETE_USER_ID" NVARCHAR2(50),
	"F_DELETE_MARK" NUMBER,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0'

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE base_db_link IS '数据连接';
COMMENT ON COLUMN base_db_link."F_ID" IS '自然主键';
COMMENT ON COLUMN base_db_link."F_FULL_NAME" IS '连接名称';
COMMENT ON COLUMN base_db_link."F_DB_TYPE" IS '连接驱动';
COMMENT ON COLUMN base_db_link."F_HOST" IS '主机地址';
COMMENT ON COLUMN base_db_link."F_PORT" IS '端口';
COMMENT ON COLUMN base_db_link."F_USER_NAME" IS '用户';
COMMENT ON COLUMN base_db_link."F_PASSWORD" IS '密码';
COMMENT ON COLUMN base_db_link."F_SERVICE_NAME" IS '服务名称';
COMMENT ON COLUMN base_db_link."F_DESCRIPTION" IS '描述或说明';
COMMENT ON COLUMN base_db_link."F_DB_SCHEMA" IS '模式';
COMMENT ON COLUMN base_db_link."F_TABLE_SPACE" IS '表空间';
COMMENT ON COLUMN base_db_link."F_ORACLE_PARAM" IS 'oracle连接参数';
COMMENT ON COLUMN base_db_link."F_ORACLE_EXTEND" IS 'Oracle扩展开关 1:开启 0:关闭';
COMMENT ON COLUMN base_db_link."F_SORT_CODE" IS '排序';
COMMENT ON COLUMN base_db_link."F_CREATOR_TIME" IS '创建时间';
COMMENT ON COLUMN base_db_link."F_CREATOR_USER_ID" IS '创建用户';
COMMENT ON COLUMN base_db_link."F_LAST_MODIFY_TIME" IS '修改时间';
COMMENT ON COLUMN base_db_link."F_LAST_MODIFY_USER_ID" IS '修改用户';
COMMENT ON COLUMN base_db_link."F_DELETE_TIME" IS '删除时间';
COMMENT ON COLUMN base_db_link."F_DELETE_USER_ID" IS '删除用户';
COMMENT ON COLUMN base_db_link."F_DELETE_MARK" IS '删除标志';
COMMENT ON COLUMN base_db_link."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：base_dictionary_data
-- ----------------------------
CREATE TABLE base_dictionary_data (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_PARENT_ID" NVARCHAR2(50),
	"F_FULL_NAME" NVARCHAR2(200),
	"F_EN_CODE" NVARCHAR2(200),
	"F_SIMPLE_SPELLING" NVARCHAR2(500),
	"F_IS_DEFAULT" NUMBER,
	"F_DESCRIPTION" NVARCHAR2(500),
	"F_ENABLED_MARK" NUMBER,
	"F_DICTIONARY_TYPE_ID" NVARCHAR2(50),
	"F_SORT_CODE" NUMBER,
	"F_CREATOR_TIME" TIMESTAMP,
	"F_CREATOR_USER_ID" NVARCHAR2(50),
	"F_LAST_MODIFY_TIME" TIMESTAMP,
	"F_LAST_MODIFY_USER_ID" NVARCHAR2(50),
	"F_DELETE_TIME" TIMESTAMP,
	"F_DELETE_USER_ID" NVARCHAR2(50),
	"F_DELETE_MARK" NUMBER,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0'

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE base_dictionary_data IS '字典数据';
COMMENT ON COLUMN base_dictionary_data."F_ID" IS '自然主键';
COMMENT ON COLUMN base_dictionary_data."F_PARENT_ID" IS '上级';
COMMENT ON COLUMN base_dictionary_data."F_FULL_NAME" IS '名称';
COMMENT ON COLUMN base_dictionary_data."F_EN_CODE" IS '编号';
COMMENT ON COLUMN base_dictionary_data."F_SIMPLE_SPELLING" IS '拼音';
COMMENT ON COLUMN base_dictionary_data."F_IS_DEFAULT" IS '默认';
COMMENT ON COLUMN base_dictionary_data."F_DESCRIPTION" IS '描述';
COMMENT ON COLUMN base_dictionary_data."F_ENABLED_MARK" IS '有效标志';
COMMENT ON COLUMN base_dictionary_data."F_DICTIONARY_TYPE_ID" IS '类别主键';
COMMENT ON COLUMN base_dictionary_data."F_SORT_CODE" IS '排序';
COMMENT ON COLUMN base_dictionary_data."F_CREATOR_TIME" IS '创建时间';
COMMENT ON COLUMN base_dictionary_data."F_CREATOR_USER_ID" IS '创建用户';
COMMENT ON COLUMN base_dictionary_data."F_LAST_MODIFY_TIME" IS '修改时间';
COMMENT ON COLUMN base_dictionary_data."F_LAST_MODIFY_USER_ID" IS '修改用户';
COMMENT ON COLUMN base_dictionary_data."F_DELETE_TIME" IS '删除时间';
COMMENT ON COLUMN base_dictionary_data."F_DELETE_USER_ID" IS '删除用户';
COMMENT ON COLUMN base_dictionary_data."F_DELETE_MARK" IS '删除标志';
COMMENT ON COLUMN base_dictionary_data."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：base_dictionary_type
-- ----------------------------
CREATE TABLE base_dictionary_type (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_PARENT_ID" NVARCHAR2(50),
	"F_FULL_NAME" NVARCHAR2(200),
	"F_EN_CODE" NVARCHAR2(200),
	"F_IS_TREE" NUMBER,
	"F_TYPE" NUMBER,
	"F_DESCRIPTION" NVARCHAR2(500),
	"F_ENABLED_MARK" NUMBER,
	"F_SORT_CODE" NUMBER,
	"F_CREATOR_TIME" TIMESTAMP,
	"F_CREATOR_USER_ID" NVARCHAR2(50),
	"F_LAST_MODIFY_TIME" TIMESTAMP,
	"F_LAST_MODIFY_USER_ID" NVARCHAR2(50),
	"F_DELETE_TIME" TIMESTAMP,
	"F_DELETE_USER_ID" NVARCHAR2(50),
	"F_DELETE_MARK" NUMBER,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0'

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE base_dictionary_type IS '字典分类';
COMMENT ON COLUMN base_dictionary_type."F_ID" IS '自然主键';
COMMENT ON COLUMN base_dictionary_type."F_PARENT_ID" IS '上级';
COMMENT ON COLUMN base_dictionary_type."F_FULL_NAME" IS '名称';
COMMENT ON COLUMN base_dictionary_type."F_EN_CODE" IS '编号';
COMMENT ON COLUMN base_dictionary_type."F_IS_TREE" IS '树形';
COMMENT ON COLUMN base_dictionary_type."F_TYPE" IS '类型 1 系统 0 业务';
COMMENT ON COLUMN base_dictionary_type."F_DESCRIPTION" IS '描述或说明';
COMMENT ON COLUMN base_dictionary_type."F_ENABLED_MARK" IS '有效标志(0-禁用，1-启用)';
COMMENT ON COLUMN base_dictionary_type."F_SORT_CODE" IS '排序';
COMMENT ON COLUMN base_dictionary_type."F_CREATOR_TIME" IS '创建时间';
COMMENT ON COLUMN base_dictionary_type."F_CREATOR_USER_ID" IS '创建用户';
COMMENT ON COLUMN base_dictionary_type."F_LAST_MODIFY_TIME" IS '修改时间';
COMMENT ON COLUMN base_dictionary_type."F_LAST_MODIFY_USER_ID" IS '修改用户';
COMMENT ON COLUMN base_dictionary_type."F_DELETE_TIME" IS '删除时间';
COMMENT ON COLUMN base_dictionary_type."F_DELETE_USER_ID" IS '删除用户';
COMMENT ON COLUMN base_dictionary_type."F_DELETE_MARK" IS '删除标志';
COMMENT ON COLUMN base_dictionary_type."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：base_file
-- ----------------------------
CREATE TABLE base_file (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_FILE_VERSION" NVARCHAR2(500),
	"F_FILE_NAME" NVARCHAR2(500),
	"F_TYPE" NUMBER,
	"F_URL" NVARCHAR2(500),
	"F_OLD_FILE_VERSION_ID" NVARCHAR2(500),
	"F_SORT_CODE" NUMBER,
	"F_CREATOR_TIME" TIMESTAMP,
	"F_CREATOR_USER_ID" NVARCHAR2(50),
	"F_LAST_MODIFY_TIME" TIMESTAMP,
	"F_LAST_MODIFY_USER_ID" NVARCHAR2(50),
	"F_DELETE_TIME" TIMESTAMP,
	"F_DELETE_USER_ID" NVARCHAR2(50),
	"F_DELETE_MARK" NUMBER,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0'

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE base_file IS '文件在线编辑';
COMMENT ON COLUMN base_file."F_ID" IS '主键id';
COMMENT ON COLUMN base_file."F_FILE_VERSION" IS '文件版本';
COMMENT ON COLUMN base_file."F_FILE_NAME" IS '文件名';
COMMENT ON COLUMN base_file."F_TYPE" IS '上传方式: 1.local 本地上传 2.http http上传 3.create 新建';
COMMENT ON COLUMN base_file."F_URL" IS 'http上传的url';
COMMENT ON COLUMN base_file."F_OLD_FILE_VERSION_ID" IS '历史版本id';
COMMENT ON COLUMN base_file."F_SORT_CODE" IS '排序';
COMMENT ON COLUMN base_file."F_CREATOR_TIME" IS '创建时间';
COMMENT ON COLUMN base_file."F_CREATOR_USER_ID" IS '创建用户';
COMMENT ON COLUMN base_file."F_LAST_MODIFY_TIME" IS '修改时间';
COMMENT ON COLUMN base_file."F_LAST_MODIFY_USER_ID" IS '修改用户';
COMMENT ON COLUMN base_file."F_DELETE_TIME" IS '删除时间';
COMMENT ON COLUMN base_file."F_DELETE_USER_ID" IS '删除用户';
COMMENT ON COLUMN base_file."F_DELETE_MARK" IS '删除标志';
COMMENT ON COLUMN base_file."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：base_group
-- ----------------------------
CREATE TABLE base_group (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_FULL_NAME" NVARCHAR2(200),
	"F_EN_CODE" NVARCHAR2(200),
	"F_CATEGORY" NVARCHAR2(50),
	"F_DESCRIPTION" NVARCHAR2(500),
	"F_ENABLED_MARK" NUMBER,
	"F_SORT_CODE" NUMBER,
	"F_CREATOR_TIME" TIMESTAMP,
	"F_CREATOR_USER_ID" NVARCHAR2(50),
	"F_LAST_MODIFY_TIME" TIMESTAMP,
	"F_LAST_MODIFY_USER_ID" NVARCHAR2(50),
	"F_DELETE_TIME" TIMESTAMP,
	"F_DELETE_USER_ID" NVARCHAR2(50),
	"F_DELETE_MARK" NUMBER,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0'

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE base_group IS '分组管理';
COMMENT ON COLUMN base_group."F_ID" IS '自然主键';
COMMENT ON COLUMN base_group."F_FULL_NAME" IS '名称';
COMMENT ON COLUMN base_group."F_EN_CODE" IS '编码';
COMMENT ON COLUMN base_group."F_CATEGORY" IS '分类';
COMMENT ON COLUMN base_group."F_DESCRIPTION" IS '描述或说明';
COMMENT ON COLUMN base_group."F_ENABLED_MARK" IS '有效标志(0-禁用，1-启用)';
COMMENT ON COLUMN base_group."F_SORT_CODE" IS '排序';
COMMENT ON COLUMN base_group."F_CREATOR_TIME" IS '创建时间';
COMMENT ON COLUMN base_group."F_CREATOR_USER_ID" IS '创建用户';
COMMENT ON COLUMN base_group."F_LAST_MODIFY_TIME" IS '修改时间';
COMMENT ON COLUMN base_group."F_LAST_MODIFY_USER_ID" IS '修改用户';
COMMENT ON COLUMN base_group."F_DELETE_TIME" IS '删除时间';
COMMENT ON COLUMN base_group."F_DELETE_USER_ID" IS '删除用户';
COMMENT ON COLUMN base_group."F_DELETE_MARK" IS '删除标志';
COMMENT ON COLUMN base_group."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：base_im_content
-- ----------------------------
CREATE TABLE base_im_content (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_SEND_USER_ID" NVARCHAR2(50),
	"F_SEND_TIME" TIMESTAMP,
	"F_RECEIVE_USER_ID" NVARCHAR2(50),
	"F_RECEIVE_TIME" TIMESTAMP,
	"F_CONTENT" CLOB,
	"F_CONTENT_TYPE" NVARCHAR2(50),
	"F_ENABLED_MARK" NUMBER,
	"F_SORT_CODE" NUMBER,
	"F_CREATOR_TIME" TIMESTAMP,
	"F_CREATOR_USER_ID" NVARCHAR2(50),
	"F_LAST_MODIFY_TIME" TIMESTAMP,
	"F_LAST_MODIFY_USER_ID" NVARCHAR2(50),
	"F_DELETE_TIME" TIMESTAMP,
	"F_DELETE_USER_ID" NVARCHAR2(50),
	"F_DELETE_MARK" NUMBER,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0'

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE base_im_content IS '聊天内容';
COMMENT ON COLUMN base_im_content."F_ID" IS '自然主键';
COMMENT ON COLUMN base_im_content."F_SEND_USER_ID" IS '发送者';
COMMENT ON COLUMN base_im_content."F_SEND_TIME" IS '发送时间';
COMMENT ON COLUMN base_im_content."F_RECEIVE_USER_ID" IS '接收者';
COMMENT ON COLUMN base_im_content."F_RECEIVE_TIME" IS '接收时间';
COMMENT ON COLUMN base_im_content."F_CONTENT" IS '内容';
COMMENT ON COLUMN base_im_content."F_CONTENT_TYPE" IS '内容类型：text、img、file';
COMMENT ON COLUMN base_im_content."F_ENABLED_MARK" IS '有效标志(0-未读，1-已读)';
COMMENT ON COLUMN base_im_content."F_SORT_CODE" IS '排序';
COMMENT ON COLUMN base_im_content."F_CREATOR_TIME" IS '创建时间';
COMMENT ON COLUMN base_im_content."F_CREATOR_USER_ID" IS '创建用户';
COMMENT ON COLUMN base_im_content."F_LAST_MODIFY_TIME" IS '修改时间';
COMMENT ON COLUMN base_im_content."F_LAST_MODIFY_USER_ID" IS '修改用户';
COMMENT ON COLUMN base_im_content."F_DELETE_TIME" IS '删除时间';
COMMENT ON COLUMN base_im_content."F_DELETE_USER_ID" IS '删除用户';
COMMENT ON COLUMN base_im_content."F_DELETE_MARK" IS '删除标志';
COMMENT ON COLUMN base_im_content."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：base_im_reply
-- ----------------------------
CREATE TABLE base_im_reply (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_USER_ID" NVARCHAR2(50),
	"F_RECEIVE_USER_ID" NVARCHAR2(50),
	"F_RECEIVE_TIME" TIMESTAMP,
	"F_SORT_CODE" NUMBER,
	"F_CREATOR_TIME" TIMESTAMP,
	"F_CREATOR_USER_ID" NVARCHAR2(50),
	"F_LAST_MODIFY_TIME" TIMESTAMP,
	"F_LAST_MODIFY_USER_ID" NVARCHAR2(50),
	"F_DELETE_TIME" TIMESTAMP,
	"F_DELETE_USER_ID" NVARCHAR2(50),
	"F_DELETE_MARK" NUMBER,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0'

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE base_im_reply IS '聊天会话';
COMMENT ON COLUMN base_im_reply."F_ID" IS '主键';
COMMENT ON COLUMN base_im_reply."F_USER_ID" IS '用户主键';
COMMENT ON COLUMN base_im_reply."F_RECEIVE_USER_ID" IS '接收用户';
COMMENT ON COLUMN base_im_reply."F_RECEIVE_TIME" IS '接收时间';
COMMENT ON COLUMN base_im_reply."F_SORT_CODE" IS '排序';
COMMENT ON COLUMN base_im_reply."F_CREATOR_TIME" IS '创建时间';
COMMENT ON COLUMN base_im_reply."F_CREATOR_USER_ID" IS '创建用户';
COMMENT ON COLUMN base_im_reply."F_LAST_MODIFY_TIME" IS '修改时间';
COMMENT ON COLUMN base_im_reply."F_LAST_MODIFY_USER_ID" IS '修改用户';
COMMENT ON COLUMN base_im_reply."F_DELETE_TIME" IS '删除时间';
COMMENT ON COLUMN base_im_reply."F_DELETE_USER_ID" IS '删除用户';
COMMENT ON COLUMN base_im_reply."F_DELETE_MARK" IS '删除标志';
COMMENT ON COLUMN base_im_reply."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：base_integrate
-- ----------------------------
CREATE TABLE base_integrate (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_FULL_NAME" NVARCHAR2(200),
	"F_EN_CODE" NVARCHAR2(200),
	"F_TEMPLATE_JSON" CLOB,
	"F_TRIGGER_TYPE" NUMBER,
	"F_RESULT_TYPE" NUMBER,
	"F_TYPE" NUMBER,
	"F_FORM_ID" NVARCHAR2(50),
	"F_DESCRIPTION" NVARCHAR2(500),
	"F_ENABLED_MARK" NUMBER,
	"F_SORT_CODE" NUMBER,
	"F_CREATOR_TIME" TIMESTAMP,
	"F_CREATOR_USER_ID" NVARCHAR2(50),
	"F_LAST_MODIFY_TIME" TIMESTAMP,
	"F_LAST_MODIFY_USER_ID" NVARCHAR2(50),
	"F_DELETE_TIME" TIMESTAMP,
	"F_DELETE_USER_ID" NVARCHAR2(50),
	"F_DELETE_MARK" NUMBER,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0'

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE base_integrate IS '系统集成';
COMMENT ON COLUMN base_integrate."F_ID" IS '自然主键';
COMMENT ON COLUMN base_integrate."F_FULL_NAME" IS '集成名称';
COMMENT ON COLUMN base_integrate."F_EN_CODE" IS '集成编号';
COMMENT ON COLUMN base_integrate."F_TEMPLATE_JSON" IS '集成模板';
COMMENT ON COLUMN base_integrate."F_TRIGGER_TYPE" IS '触发事件(1.新增 2.修改 3.删除)';
COMMENT ON COLUMN base_integrate."F_RESULT_TYPE" IS '结果';
COMMENT ON COLUMN base_integrate."F_TYPE" IS '触发类型(1-事件，2-定时 )';
COMMENT ON COLUMN base_integrate."F_FORM_ID" IS '表单id';
COMMENT ON COLUMN base_integrate."F_DESCRIPTION" IS '描述或说明';
COMMENT ON COLUMN base_integrate."F_ENABLED_MARK" IS '有效标志(0-禁用，1-启用)';
COMMENT ON COLUMN base_integrate."F_SORT_CODE" IS '排序';
COMMENT ON COLUMN base_integrate."F_CREATOR_TIME" IS '创建时间';
COMMENT ON COLUMN base_integrate."F_CREATOR_USER_ID" IS '创建用户';
COMMENT ON COLUMN base_integrate."F_LAST_MODIFY_TIME" IS '修改时间';
COMMENT ON COLUMN base_integrate."F_LAST_MODIFY_USER_ID" IS '修改用户';
COMMENT ON COLUMN base_integrate."F_DELETE_TIME" IS '删除时间';
COMMENT ON COLUMN base_integrate."F_DELETE_USER_ID" IS '删除用户';
COMMENT ON COLUMN base_integrate."F_DELETE_MARK" IS '删除标志';
COMMENT ON COLUMN base_integrate."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：base_integrate_node
-- ----------------------------
CREATE TABLE base_integrate_node (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_TASK_ID" NVARCHAR2(50),
	"F_FORM_ID" NVARCHAR2(50),
	"F_NODE_TYPE" NVARCHAR2(50),
	"F_START_TIME" TIMESTAMP,
	"F_END_TIME" TIMESTAMP,
	"F_ERROR_MSG" CLOB,
	"F_NODE_CODE" NVARCHAR2(50),
	"F_NODE_NAME" NVARCHAR2(50),
	"F_NODE_NEXT" NVARCHAR2(2000),
	"F_RESULT_TYPE" NUMBER,
	"F_NODE_PROPERTY_JSON" CLOB,
	"F_ENABLED_MARK" NUMBER,
	"F_SORT_CODE" NUMBER,
	"F_CREATOR_TIME" TIMESTAMP,
	"F_CREATOR_USER_ID" NVARCHAR2(50),
	"F_LAST_MODIFY_TIME" TIMESTAMP,
	"F_LAST_MODIFY_USER_ID" NVARCHAR2(50),
	"F_DELETE_TIME" TIMESTAMP,
	"F_DELETE_USER_ID" NVARCHAR2(50),
	"F_DELETE_MARK" NUMBER,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0',
	"F_DESCRIPTION" NVARCHAR2(500),
	"F_PARENT_ID" NVARCHAR2(50),
	"F_IS_RETRY" NUMBER

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE base_integrate_node IS '系统集成节点';
COMMENT ON COLUMN base_integrate_node."F_ID" IS '自然主键';
COMMENT ON COLUMN base_integrate_node."F_TASK_ID" IS '任务主键';
COMMENT ON COLUMN base_integrate_node."F_FORM_ID" IS '表单主键';
COMMENT ON COLUMN base_integrate_node."F_NODE_TYPE" IS '类型';
COMMENT ON COLUMN base_integrate_node."F_START_TIME" IS '开始时间';
COMMENT ON COLUMN base_integrate_node."F_END_TIME" IS '结束时间';
COMMENT ON COLUMN base_integrate_node."F_ERROR_MSG" IS '异常提示';
COMMENT ON COLUMN base_integrate_node."F_NODE_CODE" IS '节点编号';
COMMENT ON COLUMN base_integrate_node."F_NODE_NAME" IS '节点名称';
COMMENT ON COLUMN base_integrate_node."F_NODE_NEXT" IS '下节点';
COMMENT ON COLUMN base_integrate_node."F_RESULT_TYPE" IS '是否完成';
COMMENT ON COLUMN base_integrate_node."F_NODE_PROPERTY_JSON" IS '节点属性Json';
COMMENT ON COLUMN base_integrate_node."F_ENABLED_MARK" IS '有效标志(0-禁用，1-启用)';
COMMENT ON COLUMN base_integrate_node."F_SORT_CODE" IS '排序';
COMMENT ON COLUMN base_integrate_node."F_CREATOR_TIME" IS '创建时间';
COMMENT ON COLUMN base_integrate_node."F_CREATOR_USER_ID" IS '创建用户';
COMMENT ON COLUMN base_integrate_node."F_LAST_MODIFY_TIME" IS '修改时间';
COMMENT ON COLUMN base_integrate_node."F_LAST_MODIFY_USER_ID" IS '修改用户';
COMMENT ON COLUMN base_integrate_node."F_DELETE_TIME" IS '删除时间';
COMMENT ON COLUMN base_integrate_node."F_DELETE_USER_ID" IS '删除用户';
COMMENT ON COLUMN base_integrate_node."F_DELETE_MARK" IS '删除标志';
COMMENT ON COLUMN base_integrate_node."F_TENANT_ID" IS '租户id';
COMMENT ON COLUMN base_integrate_node."F_DESCRIPTION" IS '描述或说明';
COMMENT ON COLUMN base_integrate_node."F_PARENT_ID" IS '父节点id';
COMMENT ON COLUMN base_integrate_node."F_IS_RETRY" IS '能否重试';
-- ----------------------------
-- 表名：base_integrate_queue
-- ----------------------------
CREATE TABLE base_integrate_queue (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_FULL_NAME" NVARCHAR2(50),
	"F_INTEGRATE_ID" NVARCHAR2(200),
	"F_EXECUTION_TIME" TIMESTAMP,
	"F_STATE" NUMBER,
	"F_ENABLED_MARK" NUMBER,
	"F_CREATOR_TIME" TIMESTAMP,
	"F_CREATOR_USER_ID" NVARCHAR2(50),
	"F_LAST_MODIFY_TIME" TIMESTAMP,
	"F_LAST_MODIFY_USER_ID" NVARCHAR2(50),
	"F_DELETE_TIME" TIMESTAMP,
	"F_DELETE_USER_ID" NVARCHAR2(50),
	"F_DELETE_MARK" NUMBER,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0',
	"F_DESCRIPTION" NVARCHAR2(2000),
	"F_SORT_CODE" NUMBER

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE base_integrate_queue IS '系统集成队列';
COMMENT ON COLUMN base_integrate_queue."F_ID" IS '自然主键';
COMMENT ON COLUMN base_integrate_queue."F_FULL_NAME" IS '集成名称';
COMMENT ON COLUMN base_integrate_queue."F_INTEGRATE_ID" IS '集成主键';
COMMENT ON COLUMN base_integrate_queue."F_EXECUTION_TIME" IS '执行时间';
COMMENT ON COLUMN base_integrate_queue."F_STATE" IS '状态';
COMMENT ON COLUMN base_integrate_queue."F_ENABLED_MARK" IS '有效标志(0-禁用，1-启用)';
COMMENT ON COLUMN base_integrate_queue."F_CREATOR_TIME" IS '创建时间';
COMMENT ON COLUMN base_integrate_queue."F_CREATOR_USER_ID" IS '创建用户';
COMMENT ON COLUMN base_integrate_queue."F_LAST_MODIFY_TIME" IS '修改时间';
COMMENT ON COLUMN base_integrate_queue."F_LAST_MODIFY_USER_ID" IS '修改用户';
COMMENT ON COLUMN base_integrate_queue."F_DELETE_TIME" IS '删除时间';
COMMENT ON COLUMN base_integrate_queue."F_DELETE_USER_ID" IS '删除用户';
COMMENT ON COLUMN base_integrate_queue."F_DELETE_MARK" IS '删除标志';
COMMENT ON COLUMN base_integrate_queue."F_TENANT_ID" IS '租户id';
COMMENT ON COLUMN base_integrate_queue."F_DESCRIPTION" IS '描述';
COMMENT ON COLUMN base_integrate_queue."F_SORT_CODE" IS '排序';
-- ----------------------------
-- 表名：base_integrate_task
-- ----------------------------
CREATE TABLE base_integrate_task (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_PROCESS_ID" NVARCHAR2(50),
	"F_PARENT_TIME" TIMESTAMP,
	"F_PARENT_ID" NVARCHAR2(50),
	"F_EXECUTION_TIME" TIMESTAMP,
	"F_TEMPLATE_JSON" CLOB,
	"F_DATA" CLOB,
	"F_DATA_ID" NVARCHAR2(50),
	"F_TYPE" NUMBER,
	"F_INTEGRATE_ID" NVARCHAR2(200),
	"F_RESULT_TYPE" NUMBER,
	"F_DESCRIPTION" NVARCHAR2(500),
	"F_ENABLED_MARK" NUMBER,
	"F_SORT_CODE" NUMBER,
	"F_CREATOR_TIME" TIMESTAMP,
	"F_CREATOR_USER_ID" NVARCHAR2(50),
	"F_LAST_MODIFY_TIME" TIMESTAMP,
	"F_LAST_MODIFY_USER_ID" NVARCHAR2(50),
	"F_DELETE_TIME" TIMESTAMP,
	"F_DELETE_USER_ID" NVARCHAR2(50),
	"F_DELETE_MARK" NUMBER,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0'

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE base_integrate_task IS '系统集成任务';
COMMENT ON COLUMN base_integrate_task."F_ID" IS '自然主键';
COMMENT ON COLUMN base_integrate_task."F_PROCESS_ID" IS '实例主键';
COMMENT ON COLUMN base_integrate_task."F_PARENT_TIME" IS '父节点时间';
COMMENT ON COLUMN base_integrate_task."F_PARENT_ID" IS '父节点id';
COMMENT ON COLUMN base_integrate_task."F_EXECUTION_TIME" IS '执行时间';
COMMENT ON COLUMN base_integrate_task."F_TEMPLATE_JSON" IS '集成模板';
COMMENT ON COLUMN base_integrate_task."F_DATA" IS '数据';
COMMENT ON COLUMN base_integrate_task."F_DATA_ID" IS '数据主键';
COMMENT ON COLUMN base_integrate_task."F_TYPE" IS '集成类型';
COMMENT ON COLUMN base_integrate_task."F_INTEGRATE_ID" IS '集成主键';
COMMENT ON COLUMN base_integrate_task."F_RESULT_TYPE" IS '结果';
COMMENT ON COLUMN base_integrate_task."F_DESCRIPTION" IS '描述或说明';
COMMENT ON COLUMN base_integrate_task."F_ENABLED_MARK" IS '有效标志(0-失败，1-成功)';
COMMENT ON COLUMN base_integrate_task."F_SORT_CODE" IS '排序';
COMMENT ON COLUMN base_integrate_task."F_CREATOR_TIME" IS '创建时间';
COMMENT ON COLUMN base_integrate_task."F_CREATOR_USER_ID" IS '创建用户';
COMMENT ON COLUMN base_integrate_task."F_LAST_MODIFY_TIME" IS '修改时间';
COMMENT ON COLUMN base_integrate_task."F_LAST_MODIFY_USER_ID" IS '修改用户';
COMMENT ON COLUMN base_integrate_task."F_DELETE_TIME" IS '删除时间';
COMMENT ON COLUMN base_integrate_task."F_DELETE_USER_ID" IS '删除用户';
COMMENT ON COLUMN base_integrate_task."F_DELETE_MARK" IS '删除标志';
COMMENT ON COLUMN base_integrate_task."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：base_language
-- ----------------------------
CREATE TABLE base_language (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_GROUP_ID" NVARCHAR2(50),
	"F_EN_CODE" NVARCHAR2(200),
	"F_FULL_NAME" NVARCHAR2(500),
	"F_LANGUAGE" NVARCHAR2(50),
	"F_TYPE" NUMBER,
	"F_DESCRIPTION" NVARCHAR2(500),
	"F_ENABLED_MARK" NUMBER,
	"F_SORT_CODE" NUMBER,
	"F_CREATOR_TIME" TIMESTAMP,
	"F_CREATOR_USER_ID" NVARCHAR2(50),
	"F_LAST_MODIFY_TIME" TIMESTAMP,
	"F_LAST_MODIFY_USER_ID" NVARCHAR2(50),
	"F_DELETE_TIME" TIMESTAMP,
	"F_DELETE_USER_ID" NVARCHAR2(50),
	"F_DELETE_MARK" NUMBER,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0'

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE base_language IS '字典数据';
COMMENT ON COLUMN base_language."F_ID" IS '自然主键';
COMMENT ON COLUMN base_language."F_GROUP_ID" IS '翻译标记id';
COMMENT ON COLUMN base_language."F_EN_CODE" IS '翻译标记';
COMMENT ON COLUMN base_language."F_FULL_NAME" IS '翻译内容';
COMMENT ON COLUMN base_language."F_LANGUAGE" IS '语种（数据字典添加）';
COMMENT ON COLUMN base_language."F_TYPE" IS '类型：0-客户端，1-java服务端，2-net服务端';
COMMENT ON COLUMN base_language."F_DESCRIPTION" IS '描述';
COMMENT ON COLUMN base_language."F_ENABLED_MARK" IS '有效标志';
COMMENT ON COLUMN base_language."F_SORT_CODE" IS '排序';
COMMENT ON COLUMN base_language."F_CREATOR_TIME" IS '创建时间';
COMMENT ON COLUMN base_language."F_CREATOR_USER_ID" IS '创建用户';
COMMENT ON COLUMN base_language."F_LAST_MODIFY_TIME" IS '修改时间';
COMMENT ON COLUMN base_language."F_LAST_MODIFY_USER_ID" IS '修改用户';
COMMENT ON COLUMN base_language."F_DELETE_TIME" IS '删除时间';
COMMENT ON COLUMN base_language."F_DELETE_USER_ID" IS '删除用户';
COMMENT ON COLUMN base_language."F_DELETE_MARK" IS '删除标志';
COMMENT ON COLUMN base_language."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：base_message
-- ----------------------------
CREATE TABLE base_message (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_TYPE" NUMBER,
	"F_TITLE" NVARCHAR2(200),
	"F_FLOW_TYPE" NUMBER,
	"F_USER_ID" NVARCHAR2(50),
	"F_IS_READ" NUMBER,
	"F_READ_TIME" TIMESTAMP,
	"F_READ_COUNT" NUMBER,
	"F_SORT_CODE" NUMBER,
	"F_CREATOR_TIME" TIMESTAMP,
	"F_CREATOR_USER_ID" NVARCHAR2(50),
	"F_LAST_MODIFY_TIME" TIMESTAMP,
	"F_LAST_MODIFY_USER_ID" NVARCHAR2(50),
	"F_DELETE_TIME" TIMESTAMP,
	"F_DELETE_USER_ID" NVARCHAR2(50),
	"F_DELETE_MARK" NUMBER,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0',
	"F_BODY_TEXT" CLOB

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE base_message IS '消息实例';
COMMENT ON COLUMN base_message."F_ID" IS '自然主键';
COMMENT ON COLUMN base_message."F_TYPE" IS '类型(1-公告 2-流程 3-系统 4-日程)';
COMMENT ON COLUMN base_message."F_TITLE" IS '标题';
COMMENT ON COLUMN base_message."F_FLOW_TYPE" IS '流程类型(1:审批 2:委托)';
COMMENT ON COLUMN base_message."F_USER_ID" IS '用户id';
COMMENT ON COLUMN base_message."F_IS_READ" IS '是否阅读';
COMMENT ON COLUMN base_message."F_READ_TIME" IS '阅读时间';
COMMENT ON COLUMN base_message."F_READ_COUNT" IS '阅读次数';
COMMENT ON COLUMN base_message."F_SORT_CODE" IS '排序';
COMMENT ON COLUMN base_message."F_CREATOR_TIME" IS '创建时间';
COMMENT ON COLUMN base_message."F_CREATOR_USER_ID" IS '创建用户';
COMMENT ON COLUMN base_message."F_LAST_MODIFY_TIME" IS '修改时间';
COMMENT ON COLUMN base_message."F_LAST_MODIFY_USER_ID" IS '修改用户';
COMMENT ON COLUMN base_message."F_DELETE_TIME" IS '删除时间';
COMMENT ON COLUMN base_message."F_DELETE_USER_ID" IS '删除用户';
COMMENT ON COLUMN base_message."F_DELETE_MARK" IS '删除标志';
COMMENT ON COLUMN base_message."F_TENANT_ID" IS '租户id';
COMMENT ON COLUMN base_message."F_BODY_TEXT" IS '内容';
-- ----------------------------
-- 表名：base_module
-- ----------------------------
CREATE TABLE base_module (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_PARENT_ID" NVARCHAR2(50),
	"F_TYPE" NUMBER,
	"F_FULL_NAME" NVARCHAR2(200),
	"F_EN_CODE" NVARCHAR2(200),
	"F_CATEGORY" NVARCHAR2(50),
	"F_URL_ADDRESS" NVARCHAR2(500),
	"F_ICON" NVARCHAR2(500),
	"F_LINK_TARGET" NVARCHAR2(50),
	"F_IS_BUTTON_AUTHORIZE" NUMBER,
	"F_IS_COLUMN_AUTHORIZE" NUMBER,
	"F_IS_DATA_AUTHORIZE" NUMBER,
	"F_IS_FORM_AUTHORIZE" NUMBER,
	"F_MODULE_ID" NVARCHAR2(50),
	"F_SYSTEM_ID" NVARCHAR2(50),
	"F_PROPERTY_JSON" CLOB,
	"F_DESCRIPTION" NVARCHAR2(500),
	"F_ENABLED_MARK" NUMBER,
	"F_SORT_CODE" NUMBER,
	"F_CREATOR_TIME" TIMESTAMP,
	"F_CREATOR_USER_ID" NVARCHAR2(50),
	"F_LAST_MODIFY_TIME" TIMESTAMP,
	"F_LAST_MODIFY_USER_ID" NVARCHAR2(50),
	"F_DELETE_TIME" TIMESTAMP,
	"F_DELETE_USER_ID" NVARCHAR2(50),
	"F_DELETE_MARK" NUMBER,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0'

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE base_module IS '系统菜单';
COMMENT ON COLUMN base_module."F_ID" IS '自然主键';
COMMENT ON COLUMN base_module."F_PARENT_ID" IS '上级id';
COMMENT ON COLUMN base_module."F_TYPE" IS '类型(1-目录 2-页面 3-功能 4-字典 5-报表 6-大屏 7-外链 8-门户)';
COMMENT ON COLUMN base_module."F_FULL_NAME" IS '名称';
COMMENT ON COLUMN base_module."F_EN_CODE" IS '编码';
COMMENT ON COLUMN base_module."F_CATEGORY" IS '分类';
COMMENT ON COLUMN base_module."F_URL_ADDRESS" IS '功能地址';
COMMENT ON COLUMN base_module."F_ICON" IS '菜单图标';
COMMENT ON COLUMN base_module."F_LINK_TARGET" IS '链接目标';
COMMENT ON COLUMN base_module."F_IS_BUTTON_AUTHORIZE" IS '按钮权限';
COMMENT ON COLUMN base_module."F_IS_COLUMN_AUTHORIZE" IS '列表权限';
COMMENT ON COLUMN base_module."F_IS_DATA_AUTHORIZE" IS '数据权限';
COMMENT ON COLUMN base_module."F_IS_FORM_AUTHORIZE" IS '表单权限';
COMMENT ON COLUMN base_module."F_MODULE_ID" IS '关联功能id';
COMMENT ON COLUMN base_module."F_SYSTEM_ID" IS '系统id';
COMMENT ON COLUMN base_module."F_PROPERTY_JSON" IS '扩展属性';
COMMENT ON COLUMN base_module."F_DESCRIPTION" IS '描述或说明';
COMMENT ON COLUMN base_module."F_ENABLED_MARK" IS '有效标志(0-禁用，1-启用)';
COMMENT ON COLUMN base_module."F_SORT_CODE" IS '排序';
COMMENT ON COLUMN base_module."F_CREATOR_TIME" IS '创建时间';
COMMENT ON COLUMN base_module."F_CREATOR_USER_ID" IS '创建用户';
COMMENT ON COLUMN base_module."F_LAST_MODIFY_TIME" IS '修改时间';
COMMENT ON COLUMN base_module."F_LAST_MODIFY_USER_ID" IS '修改用户';
COMMENT ON COLUMN base_module."F_DELETE_TIME" IS '删除时间';
COMMENT ON COLUMN base_module."F_DELETE_USER_ID" IS '删除用户';
COMMENT ON COLUMN base_module."F_DELETE_MARK" IS '删除标志';
COMMENT ON COLUMN base_module."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：base_module_authorize
-- ----------------------------
CREATE TABLE base_module_authorize (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_FULL_NAME" NVARCHAR2(200),
	"F_EN_CODE" NVARCHAR2(200),
	"F_TYPE" NVARCHAR2(50),
	"F_CONDITION_SYMBOL" NVARCHAR2(500),
	"F_CONDITION_TEXT" NVARCHAR2(500),
	"F_PROPERTY_JSON" CLOB,
	"F_MODULE_ID" NVARCHAR2(50),
	"F_FIELD_RULE" NUMBER,
	"F_CHILD_TABLE_KEY" NVARCHAR2(50),
	"F_BIND_TABLE" NVARCHAR2(50),
	"F_FORMAT" NVARCHAR2(20),
	"F_DESCRIPTION" NVARCHAR2(500),
	"F_ENABLED_MARK" NUMBER,
	"F_SORT_CODE" NUMBER,
	"F_CREATOR_TIME" TIMESTAMP,
	"F_CREATOR_USER_ID" NVARCHAR2(50),
	"F_LAST_MODIFY_TIME" TIMESTAMP,
	"F_LAST_MODIFY_USER_ID" NVARCHAR2(50),
	"F_DELETE_TIME" TIMESTAMP,
	"F_DELETE_USER_ID" NVARCHAR2(50),
	"F_DELETE_MARK" NUMBER,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0'

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE base_module_authorize IS '数据权限配置';
COMMENT ON COLUMN base_module_authorize."F_ID" IS '自然主键';
COMMENT ON COLUMN base_module_authorize."F_FULL_NAME" IS '字段名称';
COMMENT ON COLUMN base_module_authorize."F_EN_CODE" IS '字段编号';
COMMENT ON COLUMN base_module_authorize."F_TYPE" IS '字段类型';
COMMENT ON COLUMN base_module_authorize."F_CONDITION_SYMBOL" IS '条件符号';
COMMENT ON COLUMN base_module_authorize."F_CONDITION_TEXT" IS '条件内容';
COMMENT ON COLUMN base_module_authorize."F_PROPERTY_JSON" IS '扩展属性';
COMMENT ON COLUMN base_module_authorize."F_MODULE_ID" IS '功能主键';
COMMENT ON COLUMN base_module_authorize."F_FIELD_RULE" IS '字段规则(0-主表 1-副表 2-子表)';
COMMENT ON COLUMN base_module_authorize."F_CHILD_TABLE_KEY" IS '子表规则key';
COMMENT ON COLUMN base_module_authorize."F_BIND_TABLE" IS '绑定表格Id';
COMMENT ON COLUMN base_module_authorize."F_FORMAT" IS '时间格式';
COMMENT ON COLUMN base_module_authorize."F_DESCRIPTION" IS '描述或说明';
COMMENT ON COLUMN base_module_authorize."F_ENABLED_MARK" IS '有效标志(0-禁用，1-启用)';
COMMENT ON COLUMN base_module_authorize."F_SORT_CODE" IS '排序';
COMMENT ON COLUMN base_module_authorize."F_CREATOR_TIME" IS '创建时间';
COMMENT ON COLUMN base_module_authorize."F_CREATOR_USER_ID" IS '创建用户';
COMMENT ON COLUMN base_module_authorize."F_LAST_MODIFY_TIME" IS '修改时间';
COMMENT ON COLUMN base_module_authorize."F_LAST_MODIFY_USER_ID" IS '修改用户';
COMMENT ON COLUMN base_module_authorize."F_DELETE_TIME" IS '删除时间';
COMMENT ON COLUMN base_module_authorize."F_DELETE_USER_ID" IS '删除用户';
COMMENT ON COLUMN base_module_authorize."F_DELETE_MARK" IS '删除标志';
COMMENT ON COLUMN base_module_authorize."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：base_module_button
-- ----------------------------
CREATE TABLE base_module_button (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_PARENT_ID" NVARCHAR2(50),
	"F_FULL_NAME" NVARCHAR2(200),
	"F_EN_CODE" NVARCHAR2(200),
	"F_ICON" NVARCHAR2(500),
	"F_URL_ADDRESS" NVARCHAR2(500),
	"F_PROPERTY_JSON" CLOB,
	"F_MODULE_ID" NVARCHAR2(50),
	"F_DESCRIPTION" NVARCHAR2(500),
	"F_ENABLED_MARK" NUMBER,
	"F_SORT_CODE" NUMBER,
	"F_CREATOR_TIME" TIMESTAMP,
	"F_CREATOR_USER_ID" NVARCHAR2(50),
	"F_LAST_MODIFY_TIME" TIMESTAMP,
	"F_LAST_MODIFY_USER_ID" NVARCHAR2(50),
	"F_DELETE_TIME" TIMESTAMP,
	"F_DELETE_USER_ID" NVARCHAR2(50),
	"F_DELETE_MARK" NUMBER,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0'

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE base_module_button IS '按钮权限';
COMMENT ON COLUMN base_module_button."F_ID" IS '自然主键';
COMMENT ON COLUMN base_module_button."F_PARENT_ID" IS '按钮上级';
COMMENT ON COLUMN base_module_button."F_FULL_NAME" IS '按钮名称';
COMMENT ON COLUMN base_module_button."F_EN_CODE" IS '按钮编号';
COMMENT ON COLUMN base_module_button."F_ICON" IS '按钮图标';
COMMENT ON COLUMN base_module_button."F_URL_ADDRESS" IS '请求地址';
COMMENT ON COLUMN base_module_button."F_PROPERTY_JSON" IS '扩展属性';
COMMENT ON COLUMN base_module_button."F_MODULE_ID" IS '功能主键';
COMMENT ON COLUMN base_module_button."F_DESCRIPTION" IS '描述或说明';
COMMENT ON COLUMN base_module_button."F_ENABLED_MARK" IS '有效标志(0-禁用，1-启用)';
COMMENT ON COLUMN base_module_button."F_SORT_CODE" IS '排序';
COMMENT ON COLUMN base_module_button."F_CREATOR_TIME" IS '创建时间';
COMMENT ON COLUMN base_module_button."F_CREATOR_USER_ID" IS '创建用户';
COMMENT ON COLUMN base_module_button."F_LAST_MODIFY_TIME" IS '修改时间';
COMMENT ON COLUMN base_module_button."F_LAST_MODIFY_USER_ID" IS '修改用户';
COMMENT ON COLUMN base_module_button."F_DELETE_TIME" IS '删除时间';
COMMENT ON COLUMN base_module_button."F_DELETE_USER_ID" IS '删除用户';
COMMENT ON COLUMN base_module_button."F_DELETE_MARK" IS '删除标志';
COMMENT ON COLUMN base_module_button."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：base_module_column
-- ----------------------------
CREATE TABLE base_module_column (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_PARENT_ID" NVARCHAR2(50),
	"F_FULL_NAME" NVARCHAR2(200),
	"F_EN_CODE" NVARCHAR2(200),
	"F_BIND_TABLE" NVARCHAR2(50),
	"F_BIND_TABLE_NAME" NVARCHAR2(50),
	"F_PROPERTY_JSON" CLOB,
	"F_MODULE_ID" NVARCHAR2(50),
	"F_FIELD_RULE" NUMBER,
	"F_CHILD_TABLE_KEY" NVARCHAR2(50),
	"F_DESCRIPTION" NVARCHAR2(500),
	"F_ENABLED_MARK" NUMBER,
	"F_SORT_CODE" NUMBER,
	"F_CREATOR_TIME" TIMESTAMP,
	"F_CREATOR_USER_ID" NVARCHAR2(50),
	"F_LAST_MODIFY_TIME" TIMESTAMP,
	"F_LAST_MODIFY_USER_ID" NVARCHAR2(50),
	"F_DELETE_TIME" TIMESTAMP,
	"F_DELETE_USER_ID" NVARCHAR2(50),
	"F_DELETE_MARK" NUMBER,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0'

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE base_module_column IS '列表权限';
COMMENT ON COLUMN base_module_column."F_ID" IS '自然主键';
COMMENT ON COLUMN base_module_column."F_PARENT_ID" IS '上级id';
COMMENT ON COLUMN base_module_column."F_FULL_NAME" IS '';
COMMENT ON COLUMN base_module_column."F_EN_CODE" IS '';
COMMENT ON COLUMN base_module_column."F_BIND_TABLE" IS '绑定表格Id';
COMMENT ON COLUMN base_module_column."F_BIND_TABLE_NAME" IS '绑定表格描述';
COMMENT ON COLUMN base_module_column."F_PROPERTY_JSON" IS '扩展属性';
COMMENT ON COLUMN base_module_column."F_MODULE_ID" IS '功能主键';
COMMENT ON COLUMN base_module_column."F_FIELD_RULE" IS '字段规则(0-主表 1-副表 2-子表)';
COMMENT ON COLUMN base_module_column."F_CHILD_TABLE_KEY" IS '子表规则key';
COMMENT ON COLUMN base_module_column."F_DESCRIPTION" IS '描述或说明';
COMMENT ON COLUMN base_module_column."F_ENABLED_MARK" IS '有效标志(0-禁用，1-启用)';
COMMENT ON COLUMN base_module_column."F_SORT_CODE" IS '排序';
COMMENT ON COLUMN base_module_column."F_CREATOR_TIME" IS '创建时间';
COMMENT ON COLUMN base_module_column."F_CREATOR_USER_ID" IS '创建用户';
COMMENT ON COLUMN base_module_column."F_LAST_MODIFY_TIME" IS '修改时间';
COMMENT ON COLUMN base_module_column."F_LAST_MODIFY_USER_ID" IS '修改用户';
COMMENT ON COLUMN base_module_column."F_DELETE_TIME" IS '删除时间';
COMMENT ON COLUMN base_module_column."F_DELETE_USER_ID" IS '删除用户';
COMMENT ON COLUMN base_module_column."F_DELETE_MARK" IS '删除标志';
COMMENT ON COLUMN base_module_column."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：base_module_data
-- ----------------------------
CREATE TABLE base_module_data (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_MODULE_TYPE" NVARCHAR2(50),
	"F_MODULE_ID" NVARCHAR2(50),
	"F_DESCRIPTION" NVARCHAR2(500),
	"F_ENABLED_MARK" NUMBER,
	"F_SYSTEM_ID" NVARCHAR2(50),
	"F_CREATOR_TIME" TIMESTAMP,
	"F_CREATOR_USER_ID" NVARCHAR2(50),
	"F_LAST_MODIFY_TIME" TIMESTAMP,
	"F_LAST_MODIFY_USER_ID" NVARCHAR2(50),
	"F_DELETE_TIME" TIMESTAMP,
	"F_DELETE_USER_ID" NVARCHAR2(50),
	"F_DELETE_MARK" NUMBER,
	"F_SORT_CODE" NUMBER,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0'

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE base_module_data IS '常用菜单';
COMMENT ON COLUMN base_module_data."F_ID" IS '自然主键';
COMMENT ON COLUMN base_module_data."F_MODULE_TYPE" IS '对象类型';
COMMENT ON COLUMN base_module_data."F_MODULE_ID" IS '对象主键';
COMMENT ON COLUMN base_module_data."F_DESCRIPTION" IS '描述或说明';
COMMENT ON COLUMN base_module_data."F_ENABLED_MARK" IS '有效标志(0-禁用，1-启用)';
COMMENT ON COLUMN base_module_data."F_SYSTEM_ID" IS '系统id';
COMMENT ON COLUMN base_module_data."F_CREATOR_TIME" IS '创建时间';
COMMENT ON COLUMN base_module_data."F_CREATOR_USER_ID" IS '创建用户';
COMMENT ON COLUMN base_module_data."F_LAST_MODIFY_TIME" IS '修改时间';
COMMENT ON COLUMN base_module_data."F_LAST_MODIFY_USER_ID" IS '修改用户';
COMMENT ON COLUMN base_module_data."F_DELETE_TIME" IS '删除时间';
COMMENT ON COLUMN base_module_data."F_DELETE_USER_ID" IS '删除用户';
COMMENT ON COLUMN base_module_data."F_DELETE_MARK" IS '删除标志';
COMMENT ON COLUMN base_module_data."F_SORT_CODE" IS '排序';
COMMENT ON COLUMN base_module_data."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：base_module_form
-- ----------------------------
CREATE TABLE base_module_form (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_PARENT_ID" NVARCHAR2(50),
	"F_FULL_NAME" NVARCHAR2(200),
	"F_EN_CODE" NVARCHAR2(200),
	"F_PROPERTY_JSON" CLOB,
	"F_MODULE_ID" NVARCHAR2(50),
	"F_FIELD_RULE" NUMBER,
	"F_CHILD_TABLE_KEY" NVARCHAR2(50),
	"F_BIND_TABLE" NVARCHAR2(50),
	"F_DESCRIPTION" NVARCHAR2(500),
	"F_ENABLED_MARK" NUMBER,
	"F_SORT_CODE" NUMBER,
	"F_CREATOR_TIME" TIMESTAMP,
	"F_CREATOR_USER_ID" NVARCHAR2(50),
	"F_LAST_MODIFY_TIME" TIMESTAMP,
	"F_LAST_MODIFY_USER_ID" NVARCHAR2(50),
	"F_DELETE_TIME" TIMESTAMP,
	"F_DELETE_USER_ID" NVARCHAR2(50),
	"F_DELETE_MARK" NUMBER,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0'

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE base_module_form IS '表单权限';
COMMENT ON COLUMN base_module_form."F_ID" IS '自然主键';
COMMENT ON COLUMN base_module_form."F_PARENT_ID" IS '表单上级';
COMMENT ON COLUMN base_module_form."F_FULL_NAME" IS '';
COMMENT ON COLUMN base_module_form."F_EN_CODE" IS '';
COMMENT ON COLUMN base_module_form."F_PROPERTY_JSON" IS '扩展属性';
COMMENT ON COLUMN base_module_form."F_MODULE_ID" IS '功能主键';
COMMENT ON COLUMN base_module_form."F_FIELD_RULE" IS '字段规则(0-主表 1-副表 2-子表)';
COMMENT ON COLUMN base_module_form."F_CHILD_TABLE_KEY" IS '子表规则key';
COMMENT ON COLUMN base_module_form."F_BIND_TABLE" IS '绑定表格Id';
COMMENT ON COLUMN base_module_form."F_DESCRIPTION" IS '描述或说明';
COMMENT ON COLUMN base_module_form."F_ENABLED_MARK" IS '有效标志(0-禁用，1-启用)';
COMMENT ON COLUMN base_module_form."F_SORT_CODE" IS '排序';
COMMENT ON COLUMN base_module_form."F_CREATOR_TIME" IS '创建时间';
COMMENT ON COLUMN base_module_form."F_CREATOR_USER_ID" IS '创建用户';
COMMENT ON COLUMN base_module_form."F_LAST_MODIFY_TIME" IS '修改时间';
COMMENT ON COLUMN base_module_form."F_LAST_MODIFY_USER_ID" IS '修改用户';
COMMENT ON COLUMN base_module_form."F_DELETE_TIME" IS '删除时间';
COMMENT ON COLUMN base_module_form."F_DELETE_USER_ID" IS '删除用户';
COMMENT ON COLUMN base_module_form."F_DELETE_MARK" IS '删除标志';
COMMENT ON COLUMN base_module_form."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：base_module_link
-- ----------------------------
CREATE TABLE base_module_link (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_LINK_ID" NVARCHAR2(50),
	"F_LINK_TABLES" NVARCHAR2(200),
	"F_MODULE_ID" NVARCHAR2(50),
	"F_TYPE" NUMBER,
	"F_SORT_CODE" NUMBER,
	"F_CREATOR_TIME" TIMESTAMP,
	"F_CREATOR_USER_ID" NVARCHAR2(50),
	"F_LAST_MODIFY_TIME" TIMESTAMP,
	"F_LAST_MODIFY_USER_ID" NVARCHAR2(50),
	"F_DELETE_TIME" TIMESTAMP,
	"F_DELETE_USER_ID" NVARCHAR2(50),
	"F_DELETE_MARK" NUMBER,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0'

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE base_module_link IS '数据权限连接管理';
COMMENT ON COLUMN base_module_link."F_ID" IS '自然主键';
COMMENT ON COLUMN base_module_link."F_LINK_ID" IS '数据源连接';
COMMENT ON COLUMN base_module_link."F_LINK_TABLES" IS '连接表名';
COMMENT ON COLUMN base_module_link."F_MODULE_ID" IS '菜单主键';
COMMENT ON COLUMN base_module_link."F_TYPE" IS '权限类型(1:列表权限，2：数据权限，3：表单权限)';
COMMENT ON COLUMN base_module_link."F_SORT_CODE" IS '排序';
COMMENT ON COLUMN base_module_link."F_CREATOR_TIME" IS '创建时间';
COMMENT ON COLUMN base_module_link."F_CREATOR_USER_ID" IS '创建用户';
COMMENT ON COLUMN base_module_link."F_LAST_MODIFY_TIME" IS '修改时间';
COMMENT ON COLUMN base_module_link."F_LAST_MODIFY_USER_ID" IS '修改用户';
COMMENT ON COLUMN base_module_link."F_DELETE_TIME" IS '删除时间';
COMMENT ON COLUMN base_module_link."F_DELETE_USER_ID" IS '删除用户';
COMMENT ON COLUMN base_module_link."F_DELETE_MARK" IS '删除标志';
COMMENT ON COLUMN base_module_link."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：base_module_scheme
-- ----------------------------
CREATE TABLE base_module_scheme (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_EN_CODE" NVARCHAR2(200),
	"F_FULL_NAME" NVARCHAR2(100),
	"F_CONDITION_JSON" CLOB,
	"F_CONDITION_TEXT" NVARCHAR2(500),
	"F_DESCRIPTION" NVARCHAR2(500),
	"F_MODULE_ID" NVARCHAR2(50),
	"F_ALL_DATA" NUMBER,
	"F_ENABLED_MARK" NUMBER,
	"F_SORT_CODE" NUMBER,
	"F_MATCH_LOGIC" NVARCHAR2(50),
	"F_CREATOR_TIME" TIMESTAMP,
	"F_CREATOR_USER_ID" NVARCHAR2(50),
	"F_LAST_MODIFY_TIME" TIMESTAMP,
	"F_LAST_MODIFY_USER_ID" NVARCHAR2(50),
	"F_DELETE_TIME" TIMESTAMP,
	"F_DELETE_USER_ID" NVARCHAR2(50),
	"F_DELETE_MARK" NUMBER,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0'

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE base_module_scheme IS '数据权限方案';
COMMENT ON COLUMN base_module_scheme."F_ID" IS '自然主键';
COMMENT ON COLUMN base_module_scheme."F_EN_CODE" IS '方案编号';
COMMENT ON COLUMN base_module_scheme."F_FULL_NAME" IS '方案名称';
COMMENT ON COLUMN base_module_scheme."F_CONDITION_JSON" IS '条件规则Json';
COMMENT ON COLUMN base_module_scheme."F_CONDITION_TEXT" IS '条件规则描述';
COMMENT ON COLUMN base_module_scheme."F_DESCRIPTION" IS '描述或说明';
COMMENT ON COLUMN base_module_scheme."F_MODULE_ID" IS '功能主键';
COMMENT ON COLUMN base_module_scheme."F_ALL_DATA" IS '全部数据标识';
COMMENT ON COLUMN base_module_scheme."F_ENABLED_MARK" IS '有效标志(0-禁用，1-启用)';
COMMENT ON COLUMN base_module_scheme."F_SORT_CODE" IS '排序';
COMMENT ON COLUMN base_module_scheme."F_MATCH_LOGIC" IS '分组匹配逻辑';
COMMENT ON COLUMN base_module_scheme."F_CREATOR_TIME" IS '创建时间';
COMMENT ON COLUMN base_module_scheme."F_CREATOR_USER_ID" IS '创建用户';
COMMENT ON COLUMN base_module_scheme."F_LAST_MODIFY_TIME" IS '修改时间';
COMMENT ON COLUMN base_module_scheme."F_LAST_MODIFY_USER_ID" IS '修改用户';
COMMENT ON COLUMN base_module_scheme."F_DELETE_TIME" IS '删除时间';
COMMENT ON COLUMN base_module_scheme."F_DELETE_USER_ID" IS '删除用户';
COMMENT ON COLUMN base_module_scheme."F_DELETE_MARK" IS '删除标志';
COMMENT ON COLUMN base_module_scheme."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：base_msg_account
-- ----------------------------
CREATE TABLE base_msg_account (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_CATEGORY" NVARCHAR2(50),
	"F_FULL_NAME" NVARCHAR2(200),
	"F_EN_CODE" NVARCHAR2(200),
	"F_ADDRESSOR_NAME" NVARCHAR2(50),
	"F_SMTP_SERVER" NVARCHAR2(50),
	"F_SMTP_PORT" NUMBER,
	"F_SSL_LINK" NUMBER,
	"F_SMTP_USER" NVARCHAR2(50),
	"F_SMTP_PASSWORD" NVARCHAR2(50),
	"F_CHANNEL" NUMBER,
	"F_SMS_SIGNATURE" NVARCHAR2(50),
	"F_APP_ID" NVARCHAR2(50),
	"F_APP_SECRET" NVARCHAR2(500),
	"F_END_POINT" NVARCHAR2(50),
	"F_SDK_APP_ID" NVARCHAR2(50),
	"F_APP_KEY" NVARCHAR2(50),
	"F_ZONE_NAME" NVARCHAR2(50),
	"F_ZONE_PARAM" NVARCHAR2(50),
	"F_ENTERPRISE_ID" NVARCHAR2(50),
	"F_AGENT_ID" NVARCHAR2(50),
	"F_WEBHOOK_TYPE" NUMBER,
	"F_WEBHOOK_ADDRESS" NVARCHAR2(500),
	"F_APPROVE_TYPE" NUMBER,
	"F_BEARER" NVARCHAR2(500),
	"F_USER_NAME" NVARCHAR2(50),
	"F_PASSWORD" NVARCHAR2(50),
	"F_SORT_CODE" NUMBER,
	"F_DESCRIPTION" NVARCHAR2(500),
	"F_ENABLED_MARK" NUMBER,
	"F_CREATOR_TIME" TIMESTAMP,
	"F_CREATOR_USER_ID" NVARCHAR2(50),
	"F_LAST_MODIFY_TIME" TIMESTAMP,
	"F_LAST_MODIFY_USER_ID" NVARCHAR2(50),
	"F_DELETE_TIME" TIMESTAMP,
	"F_DELETE_USER_ID" NVARCHAR2(50),
	"F_DELETE_MARK" NUMBER,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0'

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE base_msg_account IS '账号配置表';
COMMENT ON COLUMN base_msg_account."F_ID" IS '主键id';
COMMENT ON COLUMN base_msg_account."F_CATEGORY" IS '分类';
COMMENT ON COLUMN base_msg_account."F_FULL_NAME" IS '名称';
COMMENT ON COLUMN base_msg_account."F_EN_CODE" IS '编码';
COMMENT ON COLUMN base_msg_account."F_ADDRESSOR_NAME" IS '发件人昵称';
COMMENT ON COLUMN base_msg_account."F_SMTP_SERVER" IS 'SMTP服务器';
COMMENT ON COLUMN base_msg_account."F_SMTP_PORT" IS 'SMTP端口';
COMMENT ON COLUMN base_msg_account."F_SSL_LINK" IS 'SSL安全链接';
COMMENT ON COLUMN base_msg_account."F_SMTP_USER" IS 'SMTP用户';
COMMENT ON COLUMN base_msg_account."F_SMTP_PASSWORD" IS 'SMTP密码';
COMMENT ON COLUMN base_msg_account."F_CHANNEL" IS '渠道';
COMMENT ON COLUMN base_msg_account."F_SMS_SIGNATURE" IS '短信签名';
COMMENT ON COLUMN base_msg_account."F_APP_ID" IS '应用ID';
COMMENT ON COLUMN base_msg_account."F_APP_SECRET" IS '应用Secret';
COMMENT ON COLUMN base_msg_account."F_END_POINT" IS 'EndPoint（阿里云）';
COMMENT ON COLUMN base_msg_account."F_SDK_APP_ID" IS 'SDK AppID（腾讯云）';
COMMENT ON COLUMN base_msg_account."F_APP_KEY" IS 'AppKey（腾讯云）';
COMMENT ON COLUMN base_msg_account."F_ZONE_NAME" IS '地域域名（腾讯云）';
COMMENT ON COLUMN base_msg_account."F_ZONE_PARAM" IS '地域参数（腾讯云）';
COMMENT ON COLUMN base_msg_account."F_ENTERPRISE_ID" IS '企业id';
COMMENT ON COLUMN base_msg_account."F_AGENT_ID" IS 'AgentID';
COMMENT ON COLUMN base_msg_account."F_WEBHOOK_TYPE" IS 'WebHook类型';
COMMENT ON COLUMN base_msg_account."F_WEBHOOK_ADDRESS" IS 'WebHook地址';
COMMENT ON COLUMN base_msg_account."F_APPROVE_TYPE" IS '认证类型';
COMMENT ON COLUMN base_msg_account."F_BEARER" IS 'Bearer令牌';
COMMENT ON COLUMN base_msg_account."F_USER_NAME" IS '用户名（基本认证）';
COMMENT ON COLUMN base_msg_account."F_PASSWORD" IS '密码（基本认证）';
COMMENT ON COLUMN base_msg_account."F_SORT_CODE" IS '排序';
COMMENT ON COLUMN base_msg_account."F_DESCRIPTION" IS '描述或说明';
COMMENT ON COLUMN base_msg_account."F_ENABLED_MARK" IS '有效标志(0-禁用，1-启用)';
COMMENT ON COLUMN base_msg_account."F_CREATOR_TIME" IS '创建时间';
COMMENT ON COLUMN base_msg_account."F_CREATOR_USER_ID" IS '创建用户';
COMMENT ON COLUMN base_msg_account."F_LAST_MODIFY_TIME" IS '修改时间';
COMMENT ON COLUMN base_msg_account."F_LAST_MODIFY_USER_ID" IS '修改用户';
COMMENT ON COLUMN base_msg_account."F_DELETE_TIME" IS '删除时间';
COMMENT ON COLUMN base_msg_account."F_DELETE_USER_ID" IS '删除用户';
COMMENT ON COLUMN base_msg_account."F_DELETE_MARK" IS '删除标志';
COMMENT ON COLUMN base_msg_account."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：base_msg_monitor
-- ----------------------------
CREATE TABLE base_msg_monitor (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_ACCOUNT_ID" NVARCHAR2(50),
	"F_ACCOUNT_NAME" NVARCHAR2(50),
	"F_ACCOUNT_CODE" NVARCHAR2(50),
	"F_MESSAGE_TYPE" NVARCHAR2(50),
	"F_MESSAGE_SOURCE" NVARCHAR2(50),
	"F_SEND_TIME" TIMESTAMP,
	"F_MESSAGE_TEMPLATE_ID" NVARCHAR2(50),
	"F_TITLE" NVARCHAR2(200),
	"F_RECEIVE_USER" CLOB,
	"F_CONTENT" CLOB,
	"F_SORT_CODE" NUMBER,
	"F_CREATOR_TIME" TIMESTAMP,
	"F_CREATOR_USER_ID" NVARCHAR2(50),
	"F_LAST_MODIFY_TIME" TIMESTAMP,
	"F_LAST_MODIFY_USER_ID" NVARCHAR2(50),
	"F_DELETE_TIME" TIMESTAMP,
	"F_DELETE_USER_ID" NVARCHAR2(50),
	"F_DELETE_MARK" NUMBER,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0'

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE base_msg_monitor IS '消息监控表';
COMMENT ON COLUMN base_msg_monitor."F_ID" IS '主键id';
COMMENT ON COLUMN base_msg_monitor."F_ACCOUNT_ID" IS '账号id';
COMMENT ON COLUMN base_msg_monitor."F_ACCOUNT_NAME" IS '账号名称';
COMMENT ON COLUMN base_msg_monitor."F_ACCOUNT_CODE" IS '账号编码';
COMMENT ON COLUMN base_msg_monitor."F_MESSAGE_TYPE" IS '消息类型';
COMMENT ON COLUMN base_msg_monitor."F_MESSAGE_SOURCE" IS '消息来源';
COMMENT ON COLUMN base_msg_monitor."F_SEND_TIME" IS '发送时间';
COMMENT ON COLUMN base_msg_monitor."F_MESSAGE_TEMPLATE_ID" IS '消息模板id';
COMMENT ON COLUMN base_msg_monitor."F_TITLE" IS '标题';
COMMENT ON COLUMN base_msg_monitor."F_RECEIVE_USER" IS '接收人';
COMMENT ON COLUMN base_msg_monitor."F_CONTENT" IS '内容';
COMMENT ON COLUMN base_msg_monitor."F_SORT_CODE" IS '排序';
COMMENT ON COLUMN base_msg_monitor."F_CREATOR_TIME" IS '创建时间';
COMMENT ON COLUMN base_msg_monitor."F_CREATOR_USER_ID" IS '创建用户';
COMMENT ON COLUMN base_msg_monitor."F_LAST_MODIFY_TIME" IS '修改时间';
COMMENT ON COLUMN base_msg_monitor."F_LAST_MODIFY_USER_ID" IS '修改用户';
COMMENT ON COLUMN base_msg_monitor."F_DELETE_TIME" IS '删除时间';
COMMENT ON COLUMN base_msg_monitor."F_DELETE_USER_ID" IS '删除用户';
COMMENT ON COLUMN base_msg_monitor."F_DELETE_MARK" IS '删除标志';
COMMENT ON COLUMN base_msg_monitor."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：base_msg_send
-- ----------------------------
CREATE TABLE base_msg_send (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_FULL_NAME" NVARCHAR2(200),
	"F_EN_CODE" NVARCHAR2(200),
	"F_TEMPLATE_TYPE" NVARCHAR2(50),
	"F_MESSAGE_SOURCE" NVARCHAR2(50),
	"F_DESCRIPTION" NVARCHAR2(500),
	"F_ENABLED_MARK" NUMBER,
	"F_SORT_CODE" NUMBER,
	"F_CREATOR_TIME" TIMESTAMP,
	"F_CREATOR_USER_ID" NVARCHAR2(50),
	"F_LAST_MODIFY_TIME" TIMESTAMP,
	"F_LAST_MODIFY_USER_ID" NVARCHAR2(50),
	"F_DELETE_TIME" TIMESTAMP,
	"F_DELETE_USER_ID" NVARCHAR2(50),
	"F_DELETE_MARK" NUMBER,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0'

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE base_msg_send IS '消息发送配置表';
COMMENT ON COLUMN base_msg_send."F_ID" IS '主键id';
COMMENT ON COLUMN base_msg_send."F_FULL_NAME" IS '名称';
COMMENT ON COLUMN base_msg_send."F_EN_CODE" IS '编码';
COMMENT ON COLUMN base_msg_send."F_TEMPLATE_TYPE" IS '模板类型';
COMMENT ON COLUMN base_msg_send."F_MESSAGE_SOURCE" IS '消息来源';
COMMENT ON COLUMN base_msg_send."F_DESCRIPTION" IS '描述或说明';
COMMENT ON COLUMN base_msg_send."F_ENABLED_MARK" IS '有效标志(0-禁用，1-启用)';
COMMENT ON COLUMN base_msg_send."F_SORT_CODE" IS '排序';
COMMENT ON COLUMN base_msg_send."F_CREATOR_TIME" IS '创建时间';
COMMENT ON COLUMN base_msg_send."F_CREATOR_USER_ID" IS '创建用户';
COMMENT ON COLUMN base_msg_send."F_LAST_MODIFY_TIME" IS '修改时间';
COMMENT ON COLUMN base_msg_send."F_LAST_MODIFY_USER_ID" IS '修改用户';
COMMENT ON COLUMN base_msg_send."F_DELETE_TIME" IS '删除时间';
COMMENT ON COLUMN base_msg_send."F_DELETE_USER_ID" IS '删除用户';
COMMENT ON COLUMN base_msg_send."F_DELETE_MARK" IS '删除标志';
COMMENT ON COLUMN base_msg_send."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：base_msg_send_template
-- ----------------------------
CREATE TABLE base_msg_send_template (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_SEND_CONFIG_ID" NVARCHAR2(50),
	"F_MESSAGE_TYPE" NVARCHAR2(50),
	"F_TEMPLATE_ID" NVARCHAR2(50),
	"F_ACCOUNT_CONFIG_ID" NVARCHAR2(50),
	"F_DESCRIPTION" NVARCHAR2(500),
	"F_ENABLED_MARK" NUMBER,
	"F_SORT_CODE" NUMBER,
	"F_CREATOR_TIME" TIMESTAMP,
	"F_CREATOR_USER_ID" NVARCHAR2(50),
	"F_LAST_MODIFY_TIME" TIMESTAMP,
	"F_LAST_MODIFY_USER_ID" NVARCHAR2(50),
	"F_DELETE_TIME" TIMESTAMP,
	"F_DELETE_USER_ID" NVARCHAR2(50),
	"F_DELETE_MARK" NUMBER,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0'

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE base_msg_send_template IS '发送配置模板表';
COMMENT ON COLUMN base_msg_send_template."F_ID" IS '主键id';
COMMENT ON COLUMN base_msg_send_template."F_SEND_CONFIG_ID" IS '消息发送配置id';
COMMENT ON COLUMN base_msg_send_template."F_MESSAGE_TYPE" IS '消息类型';
COMMENT ON COLUMN base_msg_send_template."F_TEMPLATE_ID" IS '消息模板id';
COMMENT ON COLUMN base_msg_send_template."F_ACCOUNT_CONFIG_ID" IS '账号配置id';
COMMENT ON COLUMN base_msg_send_template."F_DESCRIPTION" IS '描述或说明';
COMMENT ON COLUMN base_msg_send_template."F_ENABLED_MARK" IS '有效标志(0-禁用，1-启用)';
COMMENT ON COLUMN base_msg_send_template."F_SORT_CODE" IS '排序';
COMMENT ON COLUMN base_msg_send_template."F_CREATOR_TIME" IS '创建时间';
COMMENT ON COLUMN base_msg_send_template."F_CREATOR_USER_ID" IS '创建用户';
COMMENT ON COLUMN base_msg_send_template."F_LAST_MODIFY_TIME" IS '修改时间';
COMMENT ON COLUMN base_msg_send_template."F_LAST_MODIFY_USER_ID" IS '修改用户';
COMMENT ON COLUMN base_msg_send_template."F_DELETE_TIME" IS '删除时间';
COMMENT ON COLUMN base_msg_send_template."F_DELETE_USER_ID" IS '删除用户';
COMMENT ON COLUMN base_msg_send_template."F_DELETE_MARK" IS '删除标志';
COMMENT ON COLUMN base_msg_send_template."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：base_msg_short_link
-- ----------------------------
CREATE TABLE base_msg_short_link (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_SHORT_LINK" NVARCHAR2(200),
	"F_REAL_PC_LINK" NVARCHAR2(500),
	"F_REAL_APP_LINK" NVARCHAR2(500),
	"F_BODY_TEXT" CLOB,
	"F_IS_USED" NUMBER,
	"F_CLICK_NUM" NUMBER,
	"F_UNABLE_NUM" NUMBER,
	"F_UNABLE_TIME" TIMESTAMP,
	"F_USER_ID" NVARCHAR2(50),
	"F_ENABLED_MARK" NUMBER,
	"F_CREATOR_TIME" TIMESTAMP,
	"F_CREATOR_USER_ID" NVARCHAR2(50),
	"F_LAST_MODIFY_TIME" TIMESTAMP,
	"F_LAST_MODIFY_USER_ID" NVARCHAR2(50),
	"F_DELETE_TIME" TIMESTAMP,
	"F_DELETE_USER_ID" NVARCHAR2(50),
	"F_DELETE_MARK" NUMBER,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0',
	"F_SORT_CODE" NUMBER

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE base_msg_short_link IS '消息链接表';
COMMENT ON COLUMN base_msg_short_link."F_ID" IS '自然主键';
COMMENT ON COLUMN base_msg_short_link."F_SHORT_LINK" IS '短链接';
COMMENT ON COLUMN base_msg_short_link."F_REAL_PC_LINK" IS 'PC端链接';
COMMENT ON COLUMN base_msg_short_link."F_REAL_APP_LINK" IS 'App端链接';
COMMENT ON COLUMN base_msg_short_link."F_BODY_TEXT" IS '流程内容';
COMMENT ON COLUMN base_msg_short_link."F_IS_USED" IS '是否点击后失效';
COMMENT ON COLUMN base_msg_short_link."F_CLICK_NUM" IS '点击次数';
COMMENT ON COLUMN base_msg_short_link."F_UNABLE_NUM" IS '失效次数';
COMMENT ON COLUMN base_msg_short_link."F_UNABLE_TIME" IS '失效时间';
COMMENT ON COLUMN base_msg_short_link."F_USER_ID" IS '用户id';
COMMENT ON COLUMN base_msg_short_link."F_ENABLED_MARK" IS '有效标志(0-禁用，1-启用)';
COMMENT ON COLUMN base_msg_short_link."F_CREATOR_TIME" IS '创建时间';
COMMENT ON COLUMN base_msg_short_link."F_CREATOR_USER_ID" IS '创建用户';
COMMENT ON COLUMN base_msg_short_link."F_LAST_MODIFY_TIME" IS '修改时间';
COMMENT ON COLUMN base_msg_short_link."F_LAST_MODIFY_USER_ID" IS '修改用户';
COMMENT ON COLUMN base_msg_short_link."F_DELETE_TIME" IS '删除时间';
COMMENT ON COLUMN base_msg_short_link."F_DELETE_USER_ID" IS '删除用户';
COMMENT ON COLUMN base_msg_short_link."F_DELETE_MARK" IS '删除标志';
COMMENT ON COLUMN base_msg_short_link."F_TENANT_ID" IS '租户id';
COMMENT ON COLUMN base_msg_short_link."F_SORT_CODE" IS '排序';
-- ----------------------------
-- 表名：base_msg_sms_field
-- ----------------------------
CREATE TABLE base_msg_sms_field (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_TEMPLATE_ID" NVARCHAR2(50),
	"F_FIELD_ID" NVARCHAR2(50),
	"F_SMS_FIELD" NVARCHAR2(50),
	"F_FIELD" NVARCHAR2(50),
	"F_IS_TITLE" NUMBER,
	"F_ENABLED_MARK" NUMBER,
	"F_CREATOR_TIME" TIMESTAMP,
	"F_CREATOR_USER_ID" NVARCHAR2(50),
	"F_LAST_MODIFY_TIME" TIMESTAMP,
	"F_LAST_MODIFY_USER_ID" NVARCHAR2(50),
	"F_DELETE_TIME" TIMESTAMP,
	"F_DELETE_USER_ID" NVARCHAR2(50),
	"F_DELETE_MARK" NUMBER,
	"F_SORT_CODE" NUMBER,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0'

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE base_msg_sms_field IS '短信变量表';
COMMENT ON COLUMN base_msg_sms_field."F_ID" IS '主键id';
COMMENT ON COLUMN base_msg_sms_field."F_TEMPLATE_ID" IS '消息模板id';
COMMENT ON COLUMN base_msg_sms_field."F_FIELD_ID" IS '参数id';
COMMENT ON COLUMN base_msg_sms_field."F_SMS_FIELD" IS '短信变量';
COMMENT ON COLUMN base_msg_sms_field."F_FIELD" IS '参数';
COMMENT ON COLUMN base_msg_sms_field."F_IS_TITLE" IS '是否标题';
COMMENT ON COLUMN base_msg_sms_field."F_ENABLED_MARK" IS '有效标志(0-禁用，1-启用)';
COMMENT ON COLUMN base_msg_sms_field."F_CREATOR_TIME" IS '创建时间';
COMMENT ON COLUMN base_msg_sms_field."F_CREATOR_USER_ID" IS '创建用户';
COMMENT ON COLUMN base_msg_sms_field."F_LAST_MODIFY_TIME" IS '修改时间';
COMMENT ON COLUMN base_msg_sms_field."F_LAST_MODIFY_USER_ID" IS '修改用户';
COMMENT ON COLUMN base_msg_sms_field."F_DELETE_TIME" IS '删除时间';
COMMENT ON COLUMN base_msg_sms_field."F_DELETE_USER_ID" IS '删除用户';
COMMENT ON COLUMN base_msg_sms_field."F_DELETE_MARK" IS '删除标志';
COMMENT ON COLUMN base_msg_sms_field."F_SORT_CODE" IS '排序';
COMMENT ON COLUMN base_msg_sms_field."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：base_msg_template
-- ----------------------------
CREATE TABLE base_msg_template (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_FULL_NAME" NVARCHAR2(200),
	"F_EN_CODE" NVARCHAR2(200),
	"F_TEMPLATE_TYPE" NVARCHAR2(50),
	"F_MESSAGE_SOURCE" NVARCHAR2(50),
	"F_MESSAGE_TYPE" NVARCHAR2(50),
	"F_WX_SKIP" NVARCHAR2(50),
	"F_XCX_APP_ID" NVARCHAR2(50),
	"F_TITLE" NVARCHAR2(200),
	"F_CONTENT" CLOB,
	"F_TEMPLATE_CODE" NVARCHAR2(50),
	"F_DESCRIPTION" NVARCHAR2(500),
	"F_ENABLED_MARK" NUMBER,
	"F_SORT_CODE" NUMBER,
	"F_CREATOR_TIME" TIMESTAMP,
	"F_CREATOR_USER_ID" NVARCHAR2(50),
	"F_LAST_MODIFY_TIME" TIMESTAMP,
	"F_LAST_MODIFY_USER_ID" NVARCHAR2(50),
	"F_DELETE_TIME" TIMESTAMP,
	"F_DELETE_USER_ID" NVARCHAR2(50),
	"F_DELETE_MARK" NUMBER,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0'

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE base_msg_template IS '消息模板表';
COMMENT ON COLUMN base_msg_template."F_ID" IS '主键id';
COMMENT ON COLUMN base_msg_template."F_FULL_NAME" IS '名称';
COMMENT ON COLUMN base_msg_template."F_EN_CODE" IS '编码';
COMMENT ON COLUMN base_msg_template."F_TEMPLATE_TYPE" IS '模板类型';
COMMENT ON COLUMN base_msg_template."F_MESSAGE_SOURCE" IS '消息来源';
COMMENT ON COLUMN base_msg_template."F_MESSAGE_TYPE" IS '消息类型';
COMMENT ON COLUMN base_msg_template."F_WX_SKIP" IS '跳转方式';
COMMENT ON COLUMN base_msg_template."F_XCX_APP_ID" IS '小程序id';
COMMENT ON COLUMN base_msg_template."F_TITLE" IS '消息标题';
COMMENT ON COLUMN base_msg_template."F_CONTENT" IS '消息内容';
COMMENT ON COLUMN base_msg_template."F_TEMPLATE_CODE" IS '模板编号';
COMMENT ON COLUMN base_msg_template."F_DESCRIPTION" IS '描述或说明';
COMMENT ON COLUMN base_msg_template."F_ENABLED_MARK" IS '有效标志(0-禁用，1-启用)';
COMMENT ON COLUMN base_msg_template."F_SORT_CODE" IS '排序';
COMMENT ON COLUMN base_msg_template."F_CREATOR_TIME" IS '创建时间';
COMMENT ON COLUMN base_msg_template."F_CREATOR_USER_ID" IS '创建用户';
COMMENT ON COLUMN base_msg_template."F_LAST_MODIFY_TIME" IS '修改时间';
COMMENT ON COLUMN base_msg_template."F_LAST_MODIFY_USER_ID" IS '修改用户';
COMMENT ON COLUMN base_msg_template."F_DELETE_TIME" IS '删除时间';
COMMENT ON COLUMN base_msg_template."F_DELETE_USER_ID" IS '删除用户';
COMMENT ON COLUMN base_msg_template."F_DELETE_MARK" IS '删除标志';
COMMENT ON COLUMN base_msg_template."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：base_msg_template_param
-- ----------------------------
CREATE TABLE base_msg_template_param (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_TEMPLATE_ID" NVARCHAR2(50),
	"F_FIELD" NVARCHAR2(50),
	"F_FIELD_NAME" NVARCHAR2(50),
	"F_ENABLED_MARK" NUMBER,
	"F_CREATOR_TIME" TIMESTAMP,
	"F_CREATOR_USER_ID" NVARCHAR2(50),
	"F_LAST_MODIFY_TIME" TIMESTAMP,
	"F_LAST_MODIFY_USER_ID" NVARCHAR2(50),
	"F_DELETE_TIME" TIMESTAMP,
	"F_DELETE_USER_ID" NVARCHAR2(50),
	"F_DELETE_MARK" NUMBER,
	"F_SORT_CODE" NUMBER,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0'

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE base_msg_template_param IS '消息模板参数表';
COMMENT ON COLUMN base_msg_template_param."F_ID" IS '主键id';
COMMENT ON COLUMN base_msg_template_param."F_TEMPLATE_ID" IS '消息模板id';
COMMENT ON COLUMN base_msg_template_param."F_FIELD" IS '参数名称';
COMMENT ON COLUMN base_msg_template_param."F_FIELD_NAME" IS '参数说明';
COMMENT ON COLUMN base_msg_template_param."F_ENABLED_MARK" IS '有效标志(0-禁用，1-启用)';
COMMENT ON COLUMN base_msg_template_param."F_CREATOR_TIME" IS '创建时间';
COMMENT ON COLUMN base_msg_template_param."F_CREATOR_USER_ID" IS '创建用户';
COMMENT ON COLUMN base_msg_template_param."F_LAST_MODIFY_TIME" IS '修改时间';
COMMENT ON COLUMN base_msg_template_param."F_LAST_MODIFY_USER_ID" IS '修改用户';
COMMENT ON COLUMN base_msg_template_param."F_DELETE_TIME" IS '删除时间';
COMMENT ON COLUMN base_msg_template_param."F_DELETE_USER_ID" IS '删除用户';
COMMENT ON COLUMN base_msg_template_param."F_DELETE_MARK" IS '删除标志';
COMMENT ON COLUMN base_msg_template_param."F_SORT_CODE" IS '排序';
COMMENT ON COLUMN base_msg_template_param."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：base_msg_wechat_user
-- ----------------------------
CREATE TABLE base_msg_wechat_user (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_GZH_ID" NVARCHAR2(50),
	"F_USER_ID" NVARCHAR2(50),
	"F_OPEN_ID" NVARCHAR2(50),
	"F_CLOSE_MARK" NUMBER,
	"F_ENABLED_MARK" NUMBER,
	"F_CREATOR_TIME" TIMESTAMP,
	"F_CREATOR_USER_ID" NVARCHAR2(50),
	"F_LAST_MODIFY_TIME" TIMESTAMP,
	"F_LAST_MODIFY_USER_ID" NVARCHAR2(50),
	"F_DELETE_TIME" TIMESTAMP,
	"F_DELETE_USER_ID" NVARCHAR2(50),
	"F_DELETE_MARK" NUMBER,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0',
	"F_SORT_CODE" NUMBER

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE base_msg_wechat_user IS '微信公众号用户关联表';
COMMENT ON COLUMN base_msg_wechat_user."F_ID" IS '主键id';
COMMENT ON COLUMN base_msg_wechat_user."F_GZH_ID" IS '微信公众号id';
COMMENT ON COLUMN base_msg_wechat_user."F_USER_ID" IS '用户id';
COMMENT ON COLUMN base_msg_wechat_user."F_OPEN_ID" IS '微信公众号用户id';
COMMENT ON COLUMN base_msg_wechat_user."F_CLOSE_MARK" IS '是否关注';
COMMENT ON COLUMN base_msg_wechat_user."F_ENABLED_MARK" IS '有效标志(0-禁用，1-启用)';
COMMENT ON COLUMN base_msg_wechat_user."F_CREATOR_TIME" IS '创建时间';
COMMENT ON COLUMN base_msg_wechat_user."F_CREATOR_USER_ID" IS '创建用户';
COMMENT ON COLUMN base_msg_wechat_user."F_LAST_MODIFY_TIME" IS '修改时间';
COMMENT ON COLUMN base_msg_wechat_user."F_LAST_MODIFY_USER_ID" IS '修改用户';
COMMENT ON COLUMN base_msg_wechat_user."F_DELETE_TIME" IS '删除时间';
COMMENT ON COLUMN base_msg_wechat_user."F_DELETE_USER_ID" IS '删除用户';
COMMENT ON COLUMN base_msg_wechat_user."F_DELETE_MARK" IS '删除标志';
COMMENT ON COLUMN base_msg_wechat_user."F_TENANT_ID" IS '租户id';
COMMENT ON COLUMN base_msg_wechat_user."F_SORT_CODE" IS '排序';
-- ----------------------------
-- 表名：base_notice
-- ----------------------------
CREATE TABLE base_notice (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_TITLE" NVARCHAR2(200),
	"F_BODY_TEXT" CLOB,
	"F_TO_USER_IDS" CLOB,
	"F_COVER_IMAGE" CLOB,
	"F_FILES" CLOB,
	"F_EXPIRATION_TIME" TIMESTAMP,
	"F_CATEGORY" NVARCHAR2(50),
	"F_TYPE" NUMBER,
	"F_SEND_CONFIG_ID" NVARCHAR2(50),
	"F_DESCRIPTION" NVARCHAR2(500),
	"F_ENABLED_MARK" NUMBER,
	"F_SORT_CODE" NUMBER,
	"F_CREATOR_TIME" TIMESTAMP,
	"F_CREATOR_USER_ID" NVARCHAR2(50),
	"F_LAST_MODIFY_TIME" TIMESTAMP,
	"F_LAST_MODIFY_USER_ID" NVARCHAR2(50),
	"F_DELETE_TIME" TIMESTAMP,
	"F_DELETE_USER_ID" NVARCHAR2(50),
	"F_DELETE_MARK" NUMBER,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0'

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE base_notice IS '消息实例';
COMMENT ON COLUMN base_notice."F_ID" IS '自然主键';
COMMENT ON COLUMN base_notice."F_TITLE" IS '标题';
COMMENT ON COLUMN base_notice."F_BODY_TEXT" IS '正文';
COMMENT ON COLUMN base_notice."F_TO_USER_IDS" IS '收件用户';
COMMENT ON COLUMN base_notice."F_COVER_IMAGE" IS '封面图片';
COMMENT ON COLUMN base_notice."F_FILES" IS '附件';
COMMENT ON COLUMN base_notice."F_EXPIRATION_TIME" IS '过期时间';
COMMENT ON COLUMN base_notice."F_CATEGORY" IS '分类';
COMMENT ON COLUMN base_notice."F_TYPE" IS '提醒类型 1-站内信 2-自定义 3-不通知';
COMMENT ON COLUMN base_notice."F_SEND_CONFIG_ID" IS '发送配置';
COMMENT ON COLUMN base_notice."F_DESCRIPTION" IS '描述或说明';
COMMENT ON COLUMN base_notice."F_ENABLED_MARK" IS '有效标志(0-禁用，1-启用)';
COMMENT ON COLUMN base_notice."F_SORT_CODE" IS '排序';
COMMENT ON COLUMN base_notice."F_CREATOR_TIME" IS '创建时间';
COMMENT ON COLUMN base_notice."F_CREATOR_USER_ID" IS '创建用户';
COMMENT ON COLUMN base_notice."F_LAST_MODIFY_TIME" IS '修改时间';
COMMENT ON COLUMN base_notice."F_LAST_MODIFY_USER_ID" IS '修改用户';
COMMENT ON COLUMN base_notice."F_DELETE_TIME" IS '删除时间';
COMMENT ON COLUMN base_notice."F_DELETE_USER_ID" IS '删除用户';
COMMENT ON COLUMN base_notice."F_DELETE_MARK" IS '删除标志';
COMMENT ON COLUMN base_notice."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：base_organize
-- ----------------------------
CREATE TABLE base_organize (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_PARENT_ID" NVARCHAR2(50),
	"F_CATEGORY" NVARCHAR2(50),
	"F_EN_CODE" NVARCHAR2(200),
	"F_FULL_NAME" NVARCHAR2(200),
	"F_MANAGER_ID" NVARCHAR2(50),
	"F_PROPERTY_JSON" CLOB,
	"F_ORGANIZE_ID_TREE" CLOB,
	"F_DESCRIPTION" NVARCHAR2(500),
	"F_ENABLED_MARK" NUMBER,
	"F_SORT_CODE" NUMBER,
	"F_CREATOR_TIME" TIMESTAMP,
	"F_CREATOR_USER_ID" NVARCHAR2(50),
	"F_LAST_MODIFY_TIME" TIMESTAMP,
	"F_LAST_MODIFY_USER_ID" NVARCHAR2(50),
	"F_DELETE_TIME" TIMESTAMP,
	"F_DELETE_USER_ID" NVARCHAR2(50),
	"F_DELETE_MARK" NUMBER,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0'

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE base_organize IS '组织机构';
COMMENT ON COLUMN base_organize."F_ID" IS '自然主键';
COMMENT ON COLUMN base_organize."F_PARENT_ID" IS '机构上级';
COMMENT ON COLUMN base_organize."F_CATEGORY" IS '机构分类';
COMMENT ON COLUMN base_organize."F_EN_CODE" IS '机构编号';
COMMENT ON COLUMN base_organize."F_FULL_NAME" IS '机构名称';
COMMENT ON COLUMN base_organize."F_MANAGER_ID" IS '机构主管';
COMMENT ON COLUMN base_organize."F_PROPERTY_JSON" IS '扩展属性';
COMMENT ON COLUMN base_organize."F_ORGANIZE_ID_TREE" IS '父级组织';
COMMENT ON COLUMN base_organize."F_DESCRIPTION" IS '描述或说明';
COMMENT ON COLUMN base_organize."F_ENABLED_MARK" IS '有效标志(0-禁用，1-启用)';
COMMENT ON COLUMN base_organize."F_SORT_CODE" IS '排序';
COMMENT ON COLUMN base_organize."F_CREATOR_TIME" IS '创建时间';
COMMENT ON COLUMN base_organize."F_CREATOR_USER_ID" IS '创建用户';
COMMENT ON COLUMN base_organize."F_LAST_MODIFY_TIME" IS '修改时间';
COMMENT ON COLUMN base_organize."F_LAST_MODIFY_USER_ID" IS '修改用户';
COMMENT ON COLUMN base_organize."F_DELETE_TIME" IS '删除时间';
COMMENT ON COLUMN base_organize."F_DELETE_USER_ID" IS '删除用户';
COMMENT ON COLUMN base_organize."F_DELETE_MARK" IS '删除标志';
COMMENT ON COLUMN base_organize."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：base_organize_administrator
-- ----------------------------
CREATE TABLE base_organize_administrator (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_USER_ID" NVARCHAR2(50),
	"F_ORGANIZE_ID" NVARCHAR2(50),
	"F_ORGANIZE_TYPE" NVARCHAR2(50),
	"F_THIS_LAYER_ADD" NUMBER,
	"F_THIS_LAYER_EDIT" NUMBER,
	"F_THIS_LAYER_DELETE" NUMBER,
	"F_SUB_LAYER_ADD" NUMBER,
	"F_SUB_LAYER_EDIT" NUMBER,
	"F_SUB_LAYER_DELETE" NUMBER,
	"F_THIS_LAYER_SELECT" NUMBER,
	"F_SUB_LAYER_SELECT" NUMBER,
	"F_DESCRIPTION" NVARCHAR2(500),
	"F_ENABLED_MARK" NUMBER,
	"F_SORT_CODE" NUMBER,
	"F_CREATOR_TIME" TIMESTAMP,
	"F_CREATOR_USER_ID" NVARCHAR2(50),
	"F_LAST_MODIFY_TIME" TIMESTAMP,
	"F_LAST_MODIFY_USER_ID" NVARCHAR2(50),
	"F_DELETE_TIME" TIMESTAMP,
	"F_DELETE_USER_ID" NVARCHAR2(50),
	"F_DELETE_MARK" NUMBER,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0',
	"F_MANAGER_GROUP" NVARCHAR2(500)

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE base_organize_administrator IS '机构分级管理员';
COMMENT ON COLUMN base_organize_administrator."F_ID" IS '自然主键';
COMMENT ON COLUMN base_organize_administrator."F_USER_ID" IS '用户主键';
COMMENT ON COLUMN base_organize_administrator."F_ORGANIZE_ID" IS '机构主键';
COMMENT ON COLUMN base_organize_administrator."F_ORGANIZE_TYPE" IS '机构类型';
COMMENT ON COLUMN base_organize_administrator."F_THIS_LAYER_ADD" IS '本层添加';
COMMENT ON COLUMN base_organize_administrator."F_THIS_LAYER_EDIT" IS '本层编辑';
COMMENT ON COLUMN base_organize_administrator."F_THIS_LAYER_DELETE" IS '本层删除';
COMMENT ON COLUMN base_organize_administrator."F_SUB_LAYER_ADD" IS '子层添加';
COMMENT ON COLUMN base_organize_administrator."F_SUB_LAYER_EDIT" IS '子层编辑';
COMMENT ON COLUMN base_organize_administrator."F_SUB_LAYER_DELETE" IS '子层删除';
COMMENT ON COLUMN base_organize_administrator."F_THIS_LAYER_SELECT" IS '本层查看';
COMMENT ON COLUMN base_organize_administrator."F_SUB_LAYER_SELECT" IS '子层查看';
COMMENT ON COLUMN base_organize_administrator."F_DESCRIPTION" IS '描述或说明';
COMMENT ON COLUMN base_organize_administrator."F_ENABLED_MARK" IS '有效标志(0-禁用，1-启用)';
COMMENT ON COLUMN base_organize_administrator."F_SORT_CODE" IS '排序';
COMMENT ON COLUMN base_organize_administrator."F_CREATOR_TIME" IS '创建时间';
COMMENT ON COLUMN base_organize_administrator."F_CREATOR_USER_ID" IS '创建用户';
COMMENT ON COLUMN base_organize_administrator."F_LAST_MODIFY_TIME" IS '修改时间';
COMMENT ON COLUMN base_organize_administrator."F_LAST_MODIFY_USER_ID" IS '修改用户';
COMMENT ON COLUMN base_organize_administrator."F_DELETE_TIME" IS '删除时间';
COMMENT ON COLUMN base_organize_administrator."F_DELETE_USER_ID" IS '删除用户';
COMMENT ON COLUMN base_organize_administrator."F_DELETE_MARK" IS '删除标志';
COMMENT ON COLUMN base_organize_administrator."F_TENANT_ID" IS '租户id';
COMMENT ON COLUMN base_organize_administrator."F_MANAGER_GROUP" IS '管理组';
-- ----------------------------
-- 表名：base_organize_relation
-- ----------------------------
CREATE TABLE base_organize_relation (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_ORGANIZE_ID" NVARCHAR2(50),
	"F_OBJECT_TYPE" NVARCHAR2(50),
	"F_OBJECT_ID" NVARCHAR2(50),
	"F_SORT_CODE" NUMBER,
	"F_CREATOR_TIME" TIMESTAMP,
	"F_CREATOR_USER_ID" NVARCHAR2(50),
	"F_LAST_MODIFY_TIME" TIMESTAMP,
	"F_LAST_MODIFY_USER_ID" NVARCHAR2(50),
	"F_DELETE_TIME" TIMESTAMP,
	"F_DELETE_USER_ID" NVARCHAR2(50),
	"F_DELETE_MARK" NUMBER,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0'

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE base_organize_relation IS '组织关系';
COMMENT ON COLUMN base_organize_relation."F_ID" IS '自然主键';
COMMENT ON COLUMN base_organize_relation."F_ORGANIZE_ID" IS '组织主键';
COMMENT ON COLUMN base_organize_relation."F_OBJECT_TYPE" IS '对象类型（角色：role）';
COMMENT ON COLUMN base_organize_relation."F_OBJECT_ID" IS '对象主键';
COMMENT ON COLUMN base_organize_relation."F_SORT_CODE" IS '排序';
COMMENT ON COLUMN base_organize_relation."F_CREATOR_TIME" IS '创建时间';
COMMENT ON COLUMN base_organize_relation."F_CREATOR_USER_ID" IS '创建用户';
COMMENT ON COLUMN base_organize_relation."F_LAST_MODIFY_TIME" IS '修改时间';
COMMENT ON COLUMN base_organize_relation."F_LAST_MODIFY_USER_ID" IS '修改用户';
COMMENT ON COLUMN base_organize_relation."F_DELETE_TIME" IS '删除时间';
COMMENT ON COLUMN base_organize_relation."F_DELETE_USER_ID" IS '删除用户';
COMMENT ON COLUMN base_organize_relation."F_DELETE_MARK" IS '删除标志';
COMMENT ON COLUMN base_organize_relation."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：base_permission_group
-- ----------------------------
CREATE TABLE base_permission_group (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_FULL_NAME" NVARCHAR2(200),
	"F_EN_CODE" NVARCHAR2(200),
	"F_PERMISSION_MEMBER" NVARCHAR2(2000),
	"F_SORT_CODE" NUMBER,
	"F_DESCRIPTION" NVARCHAR2(500),
	"F_ENABLED_MARK" NUMBER,
	"F_CREATOR_TIME" TIMESTAMP,
	"F_CREATOR_USER_ID" NVARCHAR2(50),
	"F_LAST_MODIFY_TIME" TIMESTAMP,
	"F_LAST_MODIFY_USER_ID" NVARCHAR2(50),
	"F_DELETE_MARK" NUMBER,
	"F_DELETE_TIME" TIMESTAMP,
	"F_DELETE_USER_ID" NVARCHAR2(50),
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0',
	"F_TYPE" NUMBER

, PRIMARY KEY (F_Id,f_tenant_id)
);
COMMENT ON TABLE base_permission_group IS '权限组表';
COMMENT ON COLUMN base_permission_group."F_ID" IS '自然主键';
COMMENT ON COLUMN base_permission_group."F_FULL_NAME" IS '名称';
COMMENT ON COLUMN base_permission_group."F_EN_CODE" IS '编码';
COMMENT ON COLUMN base_permission_group."F_PERMISSION_MEMBER" IS '成员';
COMMENT ON COLUMN base_permission_group."F_SORT_CODE" IS '排序';
COMMENT ON COLUMN base_permission_group."F_DESCRIPTION" IS '说明';
COMMENT ON COLUMN base_permission_group."F_ENABLED_MARK" IS '有效标志';
COMMENT ON COLUMN base_permission_group."F_CREATOR_TIME" IS '创建时间';
COMMENT ON COLUMN base_permission_group."F_CREATOR_USER_ID" IS '创建用户';
COMMENT ON COLUMN base_permission_group."F_LAST_MODIFY_TIME" IS '修改时间';
COMMENT ON COLUMN base_permission_group."F_LAST_MODIFY_USER_ID" IS '修改用户';
COMMENT ON COLUMN base_permission_group."F_DELETE_MARK" IS '删除标志';
COMMENT ON COLUMN base_permission_group."F_DELETE_TIME" IS '删除时间';
COMMENT ON COLUMN base_permission_group."F_DELETE_USER_ID" IS '删除用户';
COMMENT ON COLUMN base_permission_group."F_TENANT_ID" IS '租户id';
COMMENT ON COLUMN base_permission_group."F_TYPE" IS '类型';
-- ----------------------------
-- 表名：base_portal
-- ----------------------------
CREATE TABLE base_portal (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_FULL_NAME" NVARCHAR2(200),
	"F_EN_CODE" NVARCHAR2(200),
	"F_CATEGORY" NVARCHAR2(50),
	"F_TYPE" NUMBER DEFAULT '0',
	"F_STATE" NUMBER,
	"F_CUSTOM_URL" NVARCHAR2(500),
	"F_LINK_TYPE" NUMBER DEFAULT '0',
	"F_ENABLED_LOCK" NUMBER,
	"F_PLATFORM" NVARCHAR2(50),
	"F_DESCRIPTION" NVARCHAR2(500),
	"F_ENABLED_MARK" NUMBER,
	"F_SORT_CODE" NUMBER,
	"F_CREATOR_TIME" TIMESTAMP,
	"F_CREATOR_USER_ID" NVARCHAR2(50),
	"F_LAST_MODIFY_TIME" TIMESTAMP,
	"F_LAST_MODIFY_USER_ID" NVARCHAR2(50),
	"F_DELETE_TIME" TIMESTAMP,
	"F_DELETE_USER_ID" NVARCHAR2(50),
	"F_DELETE_MARK" NUMBER,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0',
	"F_PLATFORM_RELEASE" NVARCHAR2(100)

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE base_portal IS '门户表';
COMMENT ON COLUMN base_portal."F_ID" IS '主键';
COMMENT ON COLUMN base_portal."F_FULL_NAME" IS '名称';
COMMENT ON COLUMN base_portal."F_EN_CODE" IS '编码';
COMMENT ON COLUMN base_portal."F_CATEGORY" IS '分类（数据字典）';
COMMENT ON COLUMN base_portal."F_TYPE" IS '类型(0-页面设计,1-自定义路径)';
COMMENT ON COLUMN base_portal."F_STATE" IS '状态';
COMMENT ON COLUMN base_portal."F_CUSTOM_URL" IS '静态页面路径';
COMMENT ON COLUMN base_portal."F_LINK_TYPE" IS '链接类型(0-页面,1-外链)';
COMMENT ON COLUMN base_portal."F_ENABLED_LOCK" IS '锁定（0-锁定，1-自定义）';
COMMENT ON COLUMN base_portal."F_PLATFORM" IS 'PC:网页端 APP:手机端 MOD:模板';
COMMENT ON COLUMN base_portal."F_DESCRIPTION" IS '描述或说明';
COMMENT ON COLUMN base_portal."F_ENABLED_MARK" IS '有效标志(0-禁用，1-启用)';
COMMENT ON COLUMN base_portal."F_SORT_CODE" IS '排序';
COMMENT ON COLUMN base_portal."F_CREATOR_TIME" IS '创建时间';
COMMENT ON COLUMN base_portal."F_CREATOR_USER_ID" IS '创建用户';
COMMENT ON COLUMN base_portal."F_LAST_MODIFY_TIME" IS '修改时间';
COMMENT ON COLUMN base_portal."F_LAST_MODIFY_USER_ID" IS '修改用户';
COMMENT ON COLUMN base_portal."F_DELETE_TIME" IS '删除时间';
COMMENT ON COLUMN base_portal."F_DELETE_USER_ID" IS '删除用户';
COMMENT ON COLUMN base_portal."F_DELETE_MARK" IS '删除标志';
COMMENT ON COLUMN base_portal."F_TENANT_ID" IS '租户id';
COMMENT ON COLUMN base_portal."F_PLATFORM_RELEASE" IS '发布选中平台';
-- ----------------------------
-- 表名：base_portal_data
-- ----------------------------
CREATE TABLE base_portal_data (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_PORTAL_ID" NVARCHAR2(50),
	"F_PLATFORM" NVARCHAR2(50),
	"F_FORM_DATA" CLOB,
	"F_SYSTEM_ID" NVARCHAR2(50),
	"F_TYPE" NVARCHAR2(50),
	"F_SORT_CODE" NUMBER,
	"F_CREATOR_TIME" TIMESTAMP,
	"F_CREATOR_USER_ID" NVARCHAR2(50),
	"F_LAST_MODIFY_TIME" TIMESTAMP,
	"F_LAST_MODIFY_USER_ID" NVARCHAR2(50),
	"F_DELETE_TIME" TIMESTAMP,
	"F_DELETE_USER_ID" NVARCHAR2(50),
	"F_DELETE_MARK" NUMBER,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0'

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE base_portal_data IS '门户数据';
COMMENT ON COLUMN base_portal_data."F_ID" IS '主键id';
COMMENT ON COLUMN base_portal_data."F_PORTAL_ID" IS '门户ID';
COMMENT ON COLUMN base_portal_data."F_PLATFORM" IS 'PC:网页端 APP:手机端 ';
COMMENT ON COLUMN base_portal_data."F_FORM_DATA" IS '表单配置JSON';
COMMENT ON COLUMN base_portal_data."F_SYSTEM_ID" IS '系统ID';
COMMENT ON COLUMN base_portal_data."F_TYPE" IS '类型（mod：模型、custom：自定义）';
COMMENT ON COLUMN base_portal_data."F_SORT_CODE" IS '排序';
COMMENT ON COLUMN base_portal_data."F_CREATOR_TIME" IS '创建时间';
COMMENT ON COLUMN base_portal_data."F_CREATOR_USER_ID" IS '创建用户';
COMMENT ON COLUMN base_portal_data."F_LAST_MODIFY_TIME" IS '修改时间';
COMMENT ON COLUMN base_portal_data."F_LAST_MODIFY_USER_ID" IS '修改用户';
COMMENT ON COLUMN base_portal_data."F_DELETE_TIME" IS '删除时间';
COMMENT ON COLUMN base_portal_data."F_DELETE_USER_ID" IS '删除用户';
COMMENT ON COLUMN base_portal_data."F_DELETE_MARK" IS '删除标志';
COMMENT ON COLUMN base_portal_data."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：base_portal_manage
-- ----------------------------
CREATE TABLE base_portal_manage (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_PORTAL_ID" NVARCHAR2(50) NOT NULL,
	"F_SYSTEM_ID" NVARCHAR2(50) NOT NULL,
	"F_PLATFORM" NVARCHAR2(50),
	"F_DESCRIPTION" NVARCHAR2(500),
	"F_ENABLED_MARK" NUMBER,
	"F_SORT_CODE" NUMBER,
	"F_CREATOR_TIME" TIMESTAMP,
	"F_CREATOR_USER_ID" NVARCHAR2(50),
	"F_LAST_MODIFY_TIME" TIMESTAMP,
	"F_LAST_MODIFY_USER_ID" NVARCHAR2(50),
	"F_DELETE_TIME" TIMESTAMP,
	"F_DELETE_USER_ID" NVARCHAR2(50),
	"F_DELETE_MARK" NUMBER,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0'

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE base_portal_manage IS '门户管理';
COMMENT ON COLUMN base_portal_manage."F_ID" IS '主键_id';
COMMENT ON COLUMN base_portal_manage."F_PORTAL_ID" IS '门户id';
COMMENT ON COLUMN base_portal_manage."F_SYSTEM_ID" IS '系统id';
COMMENT ON COLUMN base_portal_manage."F_PLATFORM" IS '平台';
COMMENT ON COLUMN base_portal_manage."F_DESCRIPTION" IS '说明';
COMMENT ON COLUMN base_portal_manage."F_ENABLED_MARK" IS '有效标志(0-禁用，1-启用)';
COMMENT ON COLUMN base_portal_manage."F_SORT_CODE" IS '排序';
COMMENT ON COLUMN base_portal_manage."F_CREATOR_TIME" IS '创建时间';
COMMENT ON COLUMN base_portal_manage."F_CREATOR_USER_ID" IS '创建用户';
COMMENT ON COLUMN base_portal_manage."F_LAST_MODIFY_TIME" IS '修改时间';
COMMENT ON COLUMN base_portal_manage."F_LAST_MODIFY_USER_ID" IS '修改用户';
COMMENT ON COLUMN base_portal_manage."F_DELETE_TIME" IS '删除时间';
COMMENT ON COLUMN base_portal_manage."F_DELETE_USER_ID" IS '删除用户';
COMMENT ON COLUMN base_portal_manage."F_DELETE_MARK" IS '删除标志';
COMMENT ON COLUMN base_portal_manage."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：base_position
-- ----------------------------
CREATE TABLE base_position (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_FULL_NAME" NVARCHAR2(200),
	"F_EN_CODE" NVARCHAR2(200),
	"F_TYPE" NVARCHAR2(50),
	"F_PROPERTY_JSON" CLOB,
	"F_DESCRIPTION" NVARCHAR2(500),
	"F_ENABLED_MARK" NUMBER,
	"F_SORT_CODE" NUMBER,
	"F_CREATOR_TIME" TIMESTAMP,
	"F_CREATOR_USER_ID" NVARCHAR2(50),
	"F_LAST_MODIFY_TIME" TIMESTAMP,
	"F_LAST_MODIFY_USER_ID" NVARCHAR2(50),
	"F_DELETE_TIME" TIMESTAMP,
	"F_DELETE_USER_ID" NVARCHAR2(50),
	"F_DELETE_MARK" NUMBER,
	"F_ORGANIZE_ID" NVARCHAR2(50),
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0'

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE base_position IS '岗位信息';
COMMENT ON COLUMN base_position."F_ID" IS '自然主键';
COMMENT ON COLUMN base_position."F_FULL_NAME" IS '岗位名称';
COMMENT ON COLUMN base_position."F_EN_CODE" IS '岗位编号';
COMMENT ON COLUMN base_position."F_TYPE" IS '岗位类型';
COMMENT ON COLUMN base_position."F_PROPERTY_JSON" IS '扩展属性';
COMMENT ON COLUMN base_position."F_DESCRIPTION" IS '描述或说明';
COMMENT ON COLUMN base_position."F_ENABLED_MARK" IS '有效标志(0-禁用，1-启用)';
COMMENT ON COLUMN base_position."F_SORT_CODE" IS '排序';
COMMENT ON COLUMN base_position."F_CREATOR_TIME" IS '创建时间';
COMMENT ON COLUMN base_position."F_CREATOR_USER_ID" IS '创建用户';
COMMENT ON COLUMN base_position."F_LAST_MODIFY_TIME" IS '修改时间';
COMMENT ON COLUMN base_position."F_LAST_MODIFY_USER_ID" IS '修改用户';
COMMENT ON COLUMN base_position."F_DELETE_TIME" IS '删除时间';
COMMENT ON COLUMN base_position."F_DELETE_USER_ID" IS '删除用户';
COMMENT ON COLUMN base_position."F_DELETE_MARK" IS '删除标志';
COMMENT ON COLUMN base_position."F_ORGANIZE_ID" IS '机构主键';
COMMENT ON COLUMN base_position."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：base_print_log
-- ----------------------------
CREATE TABLE base_print_log (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_PRINT_NUM" NUMBER,
	"F_PRINT_TITLE" NVARCHAR2(255),
	"F_PRINT_ID" NVARCHAR2(50),
	"F_SORT_CODE" NUMBER,
	"F_CREATOR_TIME" TIMESTAMP,
	"F_CREATOR_USER_ID" NVARCHAR2(50),
	"F_LAST_MODIFY_TIME" TIMESTAMP,
	"F_LAST_MODIFY_USER_ID" NVARCHAR2(50),
	"F_DELETE_TIME" TIMESTAMP,
	"F_DELETE_USER_ID" NVARCHAR2(50),
	"F_DELETE_MARK" NUMBER,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0'

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE base_print_log IS '打印模板日志';
COMMENT ON COLUMN base_print_log."F_ID" IS '';
COMMENT ON COLUMN base_print_log."F_PRINT_NUM" IS '打印条数';
COMMENT ON COLUMN base_print_log."F_PRINT_TITLE" IS '打印功能名称';
COMMENT ON COLUMN base_print_log."F_PRINT_ID" IS '模板id';
COMMENT ON COLUMN base_print_log."F_SORT_CODE" IS '排序';
COMMENT ON COLUMN base_print_log."F_CREATOR_TIME" IS '创建时间';
COMMENT ON COLUMN base_print_log."F_CREATOR_USER_ID" IS '创建用户';
COMMENT ON COLUMN base_print_log."F_LAST_MODIFY_TIME" IS '修改时间';
COMMENT ON COLUMN base_print_log."F_LAST_MODIFY_USER_ID" IS '修改用户';
COMMENT ON COLUMN base_print_log."F_DELETE_TIME" IS '删除时间';
COMMENT ON COLUMN base_print_log."F_DELETE_USER_ID" IS '删除用户';
COMMENT ON COLUMN base_print_log."F_DELETE_MARK" IS '删除标志';
COMMENT ON COLUMN base_print_log."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：base_print_template
-- ----------------------------
CREATE TABLE base_print_template (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_FULL_NAME" NVARCHAR2(200) NOT NULL,
	"F_EN_CODE" NVARCHAR2(50) NOT NULL,
	"F_CATEGORY" NVARCHAR2(50) NOT NULL,
	"F_DESCRIPTION" NVARCHAR2(500),
	"F_SORT_CODE" NUMBER,
	"F_CREATOR_TIME" TIMESTAMP,
	"F_CREATOR_USER_ID" NVARCHAR2(50),
	"F_LAST_MODIFY_TIME" TIMESTAMP,
	"F_LAST_MODIFY_USER_ID" NVARCHAR2(50),
	"F_DELETE_TIME" TIMESTAMP,
	"F_DELETE_USER_ID" NVARCHAR2(50),
	"F_DELETE_MARK" NUMBER,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0',
	"F_STATE" NUMBER,
	"F_COMMON_USE" NUMBER DEFAULT '0',
	"F_VISIBLE_TYPE" NUMBER,
	"F_ICON" NVARCHAR2(255),
	"F_ICON_BACKGROUND" NVARCHAR2(255)

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE base_print_template IS '打印模板';
COMMENT ON COLUMN base_print_template."F_ID" IS '主键_id';
COMMENT ON COLUMN base_print_template."F_FULL_NAME" IS '名称';
COMMENT ON COLUMN base_print_template."F_EN_CODE" IS '编码';
COMMENT ON COLUMN base_print_template."F_CATEGORY" IS '分类';
COMMENT ON COLUMN base_print_template."F_DESCRIPTION" IS '描述或说明';
COMMENT ON COLUMN base_print_template."F_SORT_CODE" IS '排序';
COMMENT ON COLUMN base_print_template."F_CREATOR_TIME" IS '创建时间';
COMMENT ON COLUMN base_print_template."F_CREATOR_USER_ID" IS '创建用户';
COMMENT ON COLUMN base_print_template."F_LAST_MODIFY_TIME" IS '修改时间';
COMMENT ON COLUMN base_print_template."F_LAST_MODIFY_USER_ID" IS '修改用户';
COMMENT ON COLUMN base_print_template."F_DELETE_TIME" IS '删除时间';
COMMENT ON COLUMN base_print_template."F_DELETE_USER_ID" IS '删除用户';
COMMENT ON COLUMN base_print_template."F_DELETE_MARK" IS '删除标志';
COMMENT ON COLUMN base_print_template."F_TENANT_ID" IS '租户id';
COMMENT ON COLUMN base_print_template."F_STATE" IS '状态：0-未发布，1-已发布，2-已修改';
COMMENT ON COLUMN base_print_template."F_COMMON_USE" IS '通用-将该模板设为通用(0-表单用，1-业务打印模板用)';
COMMENT ON COLUMN base_print_template."F_VISIBLE_TYPE" IS '发布范围：1-公开，2-权限设置';
COMMENT ON COLUMN base_print_template."F_ICON" IS '图标';
COMMENT ON COLUMN base_print_template."F_ICON_BACKGROUND" IS '图标颜色';
-- ----------------------------
-- 表名：base_print_version
-- ----------------------------
CREATE TABLE base_print_version (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_TEMPLATE_ID" NVARCHAR2(50) NOT NULL,
	"F_STATE" NUMBER,
	"F_VERSION" NUMBER,
	"F_PRINT_TEMPLATE" CLOB,
	"F_SORT_CODE" NUMBER,
	"F_DESCRIPTION" NVARCHAR2(500),
	"F_CREATOR_TIME" TIMESTAMP,
	"F_CREATOR_USER_ID" NVARCHAR2(50),
	"F_LAST_MODIFY_TIME" TIMESTAMP,
	"F_LAST_MODIFY_USER_ID" NVARCHAR2(50),
	"F_DELETE_TIME" TIMESTAMP,
	"F_DELETE_USER_ID" NVARCHAR2(50),
	"F_DELETE_MARK" NUMBER,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0',
	"F_CONVERT_CONFIG" CLOB

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE base_print_version IS '打印模板版本';
COMMENT ON COLUMN base_print_version."F_ID" IS '主键_id';
COMMENT ON COLUMN base_print_version."F_TEMPLATE_ID" IS '打印模板id';
COMMENT ON COLUMN base_print_version."F_STATE" IS '状态：0-设计中，1-启用中，2-已归档';
COMMENT ON COLUMN base_print_version."F_VERSION" IS '版本';
COMMENT ON COLUMN base_print_version."F_PRINT_TEMPLATE" IS '打印模板json';
COMMENT ON COLUMN base_print_version."F_SORT_CODE" IS '排序';
COMMENT ON COLUMN base_print_version."F_DESCRIPTION" IS '描述或说明';
COMMENT ON COLUMN base_print_version."F_CREATOR_TIME" IS '创建时间';
COMMENT ON COLUMN base_print_version."F_CREATOR_USER_ID" IS '创建用户';
COMMENT ON COLUMN base_print_version."F_LAST_MODIFY_TIME" IS '修改时间';
COMMENT ON COLUMN base_print_version."F_LAST_MODIFY_USER_ID" IS '修改用户';
COMMENT ON COLUMN base_print_version."F_DELETE_TIME" IS '删除时间';
COMMENT ON COLUMN base_print_version."F_DELETE_USER_ID" IS '删除用户';
COMMENT ON COLUMN base_print_version."F_DELETE_MARK" IS '删除标志';
COMMENT ON COLUMN base_print_version."F_TENANT_ID" IS '租户id';
COMMENT ON COLUMN base_print_version."F_CONVERT_CONFIG" IS '打印模板json';
-- ----------------------------
-- 表名：base_province
-- ----------------------------
CREATE TABLE base_province (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_PARENT_ID" NVARCHAR2(50),
	"F_EN_CODE" NVARCHAR2(200),
	"F_FULL_NAME" NVARCHAR2(200),
	"F_QUICK_QUERY" NVARCHAR2(100),
	"F_TYPE" NVARCHAR2(50),
	"F_DESCRIPTION" NVARCHAR2(500),
	"F_ENABLED_MARK" NUMBER,
	"F_SORT_CODE" NUMBER,
	"F_CREATOR_TIME" TIMESTAMP,
	"F_CREATOR_USER_ID" NVARCHAR2(50),
	"F_LAST_MODIFY_TIME" TIMESTAMP,
	"F_LAST_MODIFY_USER_ID" NVARCHAR2(50),
	"F_DELETE_TIME" TIMESTAMP,
	"F_DELETE_USER_ID" NVARCHAR2(50),
	"F_DELETE_MARK" NUMBER,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0'

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE base_province IS '行政区划';
COMMENT ON COLUMN base_province."F_ID" IS '自然主键';
COMMENT ON COLUMN base_province."F_PARENT_ID" IS '区域上级';
COMMENT ON COLUMN base_province."F_EN_CODE" IS '区域编号';
COMMENT ON COLUMN base_province."F_FULL_NAME" IS '区域名称';
COMMENT ON COLUMN base_province."F_QUICK_QUERY" IS '快速查询';
COMMENT ON COLUMN base_province."F_TYPE" IS '区域类型';
COMMENT ON COLUMN base_province."F_DESCRIPTION" IS '描述或说明';
COMMENT ON COLUMN base_province."F_ENABLED_MARK" IS '有效标志(0-禁用，1-启用)';
COMMENT ON COLUMN base_province."F_SORT_CODE" IS '排序';
COMMENT ON COLUMN base_province."F_CREATOR_TIME" IS '创建时间';
COMMENT ON COLUMN base_province."F_CREATOR_USER_ID" IS '创建用户';
COMMENT ON COLUMN base_province."F_LAST_MODIFY_TIME" IS '修改时间';
COMMENT ON COLUMN base_province."F_LAST_MODIFY_USER_ID" IS '修改用户';
COMMENT ON COLUMN base_province."F_DELETE_TIME" IS '删除时间';
COMMENT ON COLUMN base_province."F_DELETE_USER_ID" IS '删除用户';
COMMENT ON COLUMN base_province."F_DELETE_MARK" IS '删除标志';
COMMENT ON COLUMN base_province."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：base_province_atlas
-- ----------------------------
CREATE TABLE base_province_atlas (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_PARENT_ID" NVARCHAR2(50),
	"F_EN_CODE" NVARCHAR2(200),
	"F_FULL_NAME" NVARCHAR2(200),
	"F_QUICK_QUERY" NVARCHAR2(50),
	"F_TYPE" NVARCHAR2(50),
	"F_DIVISION_CODE" NVARCHAR2(50),
	"F_ATLAS_CENTER" NVARCHAR2(128),
	"F_DESCRIPTION" NVARCHAR2(500),
	"F_ENABLED_MARK" NUMBER,
	"F_SORT_CODE" NUMBER,
	"F_CREATOR_TIME" TIMESTAMP,
	"F_CREATOR_USER_ID" NVARCHAR2(50),
	"F_LAST_MODIFY_TIME" TIMESTAMP,
	"F_LAST_MODIFY_USER_ID" NVARCHAR2(50),
	"F_DELETE_TIME" TIMESTAMP,
	"F_DELETE_USER_ID" NVARCHAR2(50),
	"F_DELETE_MARK" NUMBER,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0'

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE base_province_atlas IS '行政区划_门户地图';
COMMENT ON COLUMN base_province_atlas."F_ID" IS '自然主键';
COMMENT ON COLUMN base_province_atlas."F_PARENT_ID" IS '区域上级';
COMMENT ON COLUMN base_province_atlas."F_EN_CODE" IS '区域编号';
COMMENT ON COLUMN base_province_atlas."F_FULL_NAME" IS '区域名称';
COMMENT ON COLUMN base_province_atlas."F_QUICK_QUERY" IS '快速查询';
COMMENT ON COLUMN base_province_atlas."F_TYPE" IS '区域类型';
COMMENT ON COLUMN base_province_atlas."F_DIVISION_CODE" IS '行政区划编码';
COMMENT ON COLUMN base_province_atlas."F_ATLAS_CENTER" IS '中心经纬度';
COMMENT ON COLUMN base_province_atlas."F_DESCRIPTION" IS '描述或说明';
COMMENT ON COLUMN base_province_atlas."F_ENABLED_MARK" IS '有效标志(0-禁用，1-启用)';
COMMENT ON COLUMN base_province_atlas."F_SORT_CODE" IS '排序';
COMMENT ON COLUMN base_province_atlas."F_CREATOR_TIME" IS '创建时间';
COMMENT ON COLUMN base_province_atlas."F_CREATOR_USER_ID" IS '创建用户';
COMMENT ON COLUMN base_province_atlas."F_LAST_MODIFY_TIME" IS '修改时间';
COMMENT ON COLUMN base_province_atlas."F_LAST_MODIFY_USER_ID" IS '修改用户';
COMMENT ON COLUMN base_province_atlas."F_DELETE_TIME" IS '删除时间';
COMMENT ON COLUMN base_province_atlas."F_DELETE_USER_ID" IS '删除用户';
COMMENT ON COLUMN base_province_atlas."F_DELETE_MARK" IS '删除标志';
COMMENT ON COLUMN base_province_atlas."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：base_role
-- ----------------------------
CREATE TABLE base_role (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_FULL_NAME" NVARCHAR2(200),
	"F_EN_CODE" NVARCHAR2(200),
	"F_TYPE" NVARCHAR2(50),
	"F_PROPERTY_JSON" CLOB,
	"F_GLOBAL_MARK" NUMBER,
	"F_DESCRIPTION" NVARCHAR2(500),
	"F_ENABLED_MARK" NUMBER,
	"F_SORT_CODE" NUMBER,
	"F_CREATOR_TIME" TIMESTAMP,
	"F_CREATOR_USER_ID" NVARCHAR2(50),
	"F_LAST_MODIFY_TIME" TIMESTAMP,
	"F_LAST_MODIFY_USER_ID" NVARCHAR2(50),
	"F_DELETE_TIME" TIMESTAMP,
	"F_DELETE_USER_ID" NVARCHAR2(50),
	"F_DELETE_MARK" NUMBER,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0'

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE base_role IS '系统角色';
COMMENT ON COLUMN base_role."F_ID" IS '自然主键';
COMMENT ON COLUMN base_role."F_FULL_NAME" IS '角色名称';
COMMENT ON COLUMN base_role."F_EN_CODE" IS '角色编号';
COMMENT ON COLUMN base_role."F_TYPE" IS '角色类型';
COMMENT ON COLUMN base_role."F_PROPERTY_JSON" IS '扩展属性';
COMMENT ON COLUMN base_role."F_GLOBAL_MARK" IS '全局标识';
COMMENT ON COLUMN base_role."F_DESCRIPTION" IS '描述或说明';
COMMENT ON COLUMN base_role."F_ENABLED_MARK" IS '有效标志(0-禁用，1-启用)';
COMMENT ON COLUMN base_role."F_SORT_CODE" IS '排序';
COMMENT ON COLUMN base_role."F_CREATOR_TIME" IS '创建时间';
COMMENT ON COLUMN base_role."F_CREATOR_USER_ID" IS '创建用户';
COMMENT ON COLUMN base_role."F_LAST_MODIFY_TIME" IS '修改时间';
COMMENT ON COLUMN base_role."F_LAST_MODIFY_USER_ID" IS '修改用户';
COMMENT ON COLUMN base_role."F_DELETE_TIME" IS '删除时间';
COMMENT ON COLUMN base_role."F_DELETE_USER_ID" IS '删除用户';
COMMENT ON COLUMN base_role."F_DELETE_MARK" IS '删除标志';
COMMENT ON COLUMN base_role."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：base_schedule
-- ----------------------------
CREATE TABLE base_schedule (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_CATEGORY" NVARCHAR2(50),
	"F_URGENT" NUMBER,
	"F_TITLE" NVARCHAR2(500),
	"F_CONTENT" CLOB,
	"F_ALL_DAY" NUMBER,
	"F_START_DAY" TIMESTAMP,
	"F_START_TIME" NVARCHAR2(50),
	"F_END_DAY" TIMESTAMP,
	"F_END_TIME" NVARCHAR2(50),
	"F_DURATION" NUMBER,
	"F_COLOR" NVARCHAR2(50),
	"F_REMINDER_TIME" NUMBER,
	"F_REMINDER_TYPE" NUMBER,
	"F_SEND_CONFIG_ID" NVARCHAR2(50),
	"F_SEND_CONFIG_NAME" NVARCHAR2(200),
	"F_REPETITION" NUMBER,
	"F_REPEAT_TIME" TIMESTAMP,
	"F_PUSH_TIME" TIMESTAMP,
	"F_GROUP_ID" NVARCHAR2(50),
	"F_DESCRIPTION" NVARCHAR2(500),
	"F_ENABLED_MARK" NUMBER,
	"F_SORT_CODE" NUMBER,
	"F_CREATOR_TIME" TIMESTAMP,
	"F_CREATOR_USER_ID" NVARCHAR2(50),
	"F_LAST_MODIFY_TIME" TIMESTAMP,
	"F_LAST_MODIFY_USER_ID" NVARCHAR2(50),
	"F_DELETE_TIME" TIMESTAMP,
	"F_DELETE_USER_ID" NVARCHAR2(50),
	"F_DELETE_MARK" NUMBER,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0',
	"F_FILES" CLOB

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE base_schedule IS '日程';
COMMENT ON COLUMN base_schedule."F_ID" IS '主键';
COMMENT ON COLUMN base_schedule."F_CATEGORY" IS '分类';
COMMENT ON COLUMN base_schedule."F_URGENT" IS '紧急程度';
COMMENT ON COLUMN base_schedule."F_TITLE" IS '标题';
COMMENT ON COLUMN base_schedule."F_CONTENT" IS '内容';
COMMENT ON COLUMN base_schedule."F_ALL_DAY" IS '全天';
COMMENT ON COLUMN base_schedule."F_START_DAY" IS '开始时间';
COMMENT ON COLUMN base_schedule."F_START_TIME" IS '开始日期';
COMMENT ON COLUMN base_schedule."F_END_DAY" IS '结束时间';
COMMENT ON COLUMN base_schedule."F_END_TIME" IS '结束日期';
COMMENT ON COLUMN base_schedule."F_DURATION" IS '时长';
COMMENT ON COLUMN base_schedule."F_COLOR" IS '颜色';
COMMENT ON COLUMN base_schedule."F_REMINDER_TIME" IS '提醒时长';
COMMENT ON COLUMN base_schedule."F_REMINDER_TYPE" IS '提醒方式(1-默认 2-自定义)';
COMMENT ON COLUMN base_schedule."F_SEND_CONFIG_ID" IS '发送配置id';
COMMENT ON COLUMN base_schedule."F_SEND_CONFIG_NAME" IS '发送配置名称';
COMMENT ON COLUMN base_schedule."F_REPETITION" IS '重复提醒';
COMMENT ON COLUMN base_schedule."F_REPEAT_TIME" IS '结束重复';
COMMENT ON COLUMN base_schedule."F_PUSH_TIME" IS '推送时间';
COMMENT ON COLUMN base_schedule."F_GROUP_ID" IS '分组id';
COMMENT ON COLUMN base_schedule."F_DESCRIPTION" IS '描述或说明';
COMMENT ON COLUMN base_schedule."F_ENABLED_MARK" IS '有效标志(0-禁用，1-启用)';
COMMENT ON COLUMN base_schedule."F_SORT_CODE" IS '排序';
COMMENT ON COLUMN base_schedule."F_CREATOR_TIME" IS '创建时间';
COMMENT ON COLUMN base_schedule."F_CREATOR_USER_ID" IS '创建用户';
COMMENT ON COLUMN base_schedule."F_LAST_MODIFY_TIME" IS '修改时间';
COMMENT ON COLUMN base_schedule."F_LAST_MODIFY_USER_ID" IS '修改用户';
COMMENT ON COLUMN base_schedule."F_DELETE_TIME" IS '删除时间';
COMMENT ON COLUMN base_schedule."F_DELETE_USER_ID" IS '删除用户';
COMMENT ON COLUMN base_schedule."F_DELETE_MARK" IS '删除标志';
COMMENT ON COLUMN base_schedule."F_TENANT_ID" IS '租户id';
COMMENT ON COLUMN base_schedule."F_FILES" IS '附件';
-- ----------------------------
-- 表名：base_schedule_log
-- ----------------------------
CREATE TABLE base_schedule_log (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_CATEGORY" NVARCHAR2(50),
	"F_URGENT" NUMBER,
	"F_TITLE" NVARCHAR2(500),
	"F_CONTENT" CLOB,
	"F_ALL_DAY" NUMBER,
	"F_START_DAY" TIMESTAMP,
	"F_START_TIME" NVARCHAR2(50),
	"F_END_DAY" TIMESTAMP,
	"F_END_TIME" NVARCHAR2(50),
	"F_DURATION" NUMBER,
	"F_COLOR" NVARCHAR2(50),
	"F_REMINDER_TIME" NUMBER,
	"F_REMINDER_TYPE" NUMBER,
	"F_SEND_CONFIG_ID" NVARCHAR2(50),
	"F_SEND_CONFIG_NAME" NVARCHAR2(200),
	"F_REPETITION" NUMBER,
	"F_REPEAT_TIME" TIMESTAMP,
	"F_PUSH_TIME" TIMESTAMP,
	"F_GROUP_ID" NVARCHAR2(50),
	"F_USER_ID" CLOB,
	"F_SCHEDULE_ID" NVARCHAR2(50),
	"F_OPERATION_TYPE" NVARCHAR2(1),
	"F_DESCRIPTION" NVARCHAR2(500),
	"F_ENABLED_MARK" NUMBER,
	"F_SORT_CODE" NUMBER,
	"F_CREATOR_TIME" TIMESTAMP,
	"F_CREATOR_USER_ID" NVARCHAR2(50),
	"F_LAST_MODIFY_TIME" TIMESTAMP,
	"F_LAST_MODIFY_USER_ID" NVARCHAR2(50),
	"F_DELETE_TIME" TIMESTAMP,
	"F_DELETE_USER_ID" NVARCHAR2(50),
	"F_DELETE_MARK" NUMBER,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0'

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE base_schedule_log IS '日程日志';
COMMENT ON COLUMN base_schedule_log."F_ID" IS '主键';
COMMENT ON COLUMN base_schedule_log."F_CATEGORY" IS '分类';
COMMENT ON COLUMN base_schedule_log."F_URGENT" IS '紧急程度';
COMMENT ON COLUMN base_schedule_log."F_TITLE" IS '标题';
COMMENT ON COLUMN base_schedule_log."F_CONTENT" IS '内容';
COMMENT ON COLUMN base_schedule_log."F_ALL_DAY" IS '全天';
COMMENT ON COLUMN base_schedule_log."F_START_DAY" IS '开始时间';
COMMENT ON COLUMN base_schedule_log."F_START_TIME" IS '开始日期';
COMMENT ON COLUMN base_schedule_log."F_END_DAY" IS '结束时间';
COMMENT ON COLUMN base_schedule_log."F_END_TIME" IS '结束日期';
COMMENT ON COLUMN base_schedule_log."F_DURATION" IS '时长';
COMMENT ON COLUMN base_schedule_log."F_COLOR" IS '颜色';
COMMENT ON COLUMN base_schedule_log."F_REMINDER_TIME" IS '提醒时长';
COMMENT ON COLUMN base_schedule_log."F_REMINDER_TYPE" IS '提醒方式(1-默认 2-自定义)';
COMMENT ON COLUMN base_schedule_log."F_SEND_CONFIG_ID" IS '发送配置id';
COMMENT ON COLUMN base_schedule_log."F_SEND_CONFIG_NAME" IS '发送配置名称';
COMMENT ON COLUMN base_schedule_log."F_REPETITION" IS '重复提醒';
COMMENT ON COLUMN base_schedule_log."F_REPEAT_TIME" IS '结束重复';
COMMENT ON COLUMN base_schedule_log."F_PUSH_TIME" IS '推送时间';
COMMENT ON COLUMN base_schedule_log."F_GROUP_ID" IS '分组id';
COMMENT ON COLUMN base_schedule_log."F_USER_ID" IS '参与用户';
COMMENT ON COLUMN base_schedule_log."F_SCHEDULE_ID" IS '日程id';
COMMENT ON COLUMN base_schedule_log."F_OPERATION_TYPE" IS '操作类型';
COMMENT ON COLUMN base_schedule_log."F_DESCRIPTION" IS '描述或说明';
COMMENT ON COLUMN base_schedule_log."F_ENABLED_MARK" IS '有效标志(0-禁用，1-启用)';
COMMENT ON COLUMN base_schedule_log."F_SORT_CODE" IS '排序';
COMMENT ON COLUMN base_schedule_log."F_CREATOR_TIME" IS '创建时间';
COMMENT ON COLUMN base_schedule_log."F_CREATOR_USER_ID" IS '创建用户';
COMMENT ON COLUMN base_schedule_log."F_LAST_MODIFY_TIME" IS '修改时间';
COMMENT ON COLUMN base_schedule_log."F_LAST_MODIFY_USER_ID" IS '修改用户';
COMMENT ON COLUMN base_schedule_log."F_DELETE_TIME" IS '删除时间';
COMMENT ON COLUMN base_schedule_log."F_DELETE_USER_ID" IS '删除用户';
COMMENT ON COLUMN base_schedule_log."F_DELETE_MARK" IS '删除标志';
COMMENT ON COLUMN base_schedule_log."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：base_schedule_user
-- ----------------------------
CREATE TABLE base_schedule_user (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_SCHEDULE_ID" NVARCHAR2(50),
	"F_TO_USER_ID" NVARCHAR2(50),
	"F_TYPE" NUMBER,
	"F_DESCRIPTION" NVARCHAR2(500),
	"F_ENABLED_MARK" NUMBER,
	"F_SORT_CODE" NUMBER,
	"F_CREATOR_TIME" TIMESTAMP,
	"F_CREATOR_USER_ID" NVARCHAR2(50),
	"F_LAST_MODIFY_TIME" TIMESTAMP,
	"F_LAST_MODIFY_USER_ID" NVARCHAR2(50),
	"F_DELETE_TIME" TIMESTAMP,
	"F_DELETE_USER_ID" NVARCHAR2(50),
	"F_DELETE_MARK" NUMBER,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0'

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE base_schedule_user IS '日程用户';
COMMENT ON COLUMN base_schedule_user."F_ID" IS '主键';
COMMENT ON COLUMN base_schedule_user."F_SCHEDULE_ID" IS '日程id';
COMMENT ON COLUMN base_schedule_user."F_TO_USER_ID" IS '用户id';
COMMENT ON COLUMN base_schedule_user."F_TYPE" IS '类型(1-系统添加 2-用户添加)';
COMMENT ON COLUMN base_schedule_user."F_DESCRIPTION" IS '描述或说明';
COMMENT ON COLUMN base_schedule_user."F_ENABLED_MARK" IS '有效标志(0-禁用，1-启用)';
COMMENT ON COLUMN base_schedule_user."F_SORT_CODE" IS '排序';
COMMENT ON COLUMN base_schedule_user."F_CREATOR_TIME" IS '创建时间';
COMMENT ON COLUMN base_schedule_user."F_CREATOR_USER_ID" IS '创建用户';
COMMENT ON COLUMN base_schedule_user."F_LAST_MODIFY_TIME" IS '修改时间';
COMMENT ON COLUMN base_schedule_user."F_LAST_MODIFY_USER_ID" IS '修改用户';
COMMENT ON COLUMN base_schedule_user."F_DELETE_TIME" IS '删除时间';
COMMENT ON COLUMN base_schedule_user."F_DELETE_USER_ID" IS '删除用户';
COMMENT ON COLUMN base_schedule_user."F_DELETE_MARK" IS '删除标志';
COMMENT ON COLUMN base_schedule_user."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：base_sign_img
-- ----------------------------
CREATE TABLE base_sign_img (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_SIGN_IMG" CLOB,
	"F_IS_DEFAULT" NUMBER,
	"F_DESCRIPTION" NVARCHAR2(500),
	"F_ENABLED_MARK" NUMBER,
	"F_SORT_CODE" NUMBER,
	"F_CREATOR_TIME" TIMESTAMP,
	"F_CREATOR_USER_ID" NVARCHAR2(50),
	"F_LAST_MODIFY_TIME" TIMESTAMP,
	"F_LAST_MODIFY_USER_ID" NVARCHAR2(50),
	"F_DELETE_TIME" TIMESTAMP,
	"F_DELETE_USER_ID" NVARCHAR2(50),
	"F_DELETE_MARK" NUMBER,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0'

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE base_sign_img IS '个性签名';
COMMENT ON COLUMN base_sign_img."F_ID" IS '自然主键';
COMMENT ON COLUMN base_sign_img."F_SIGN_IMG" IS '签名图片';
COMMENT ON COLUMN base_sign_img."F_IS_DEFAULT" IS '是否默认';
COMMENT ON COLUMN base_sign_img."F_DESCRIPTION" IS '描述或说明';
COMMENT ON COLUMN base_sign_img."F_ENABLED_MARK" IS '有效标志(0-禁用，1-启用)';
COMMENT ON COLUMN base_sign_img."F_SORT_CODE" IS '排序';
COMMENT ON COLUMN base_sign_img."F_CREATOR_TIME" IS '创建时间';
COMMENT ON COLUMN base_sign_img."F_CREATOR_USER_ID" IS '创建用户';
COMMENT ON COLUMN base_sign_img."F_LAST_MODIFY_TIME" IS '修改时间';
COMMENT ON COLUMN base_sign_img."F_LAST_MODIFY_USER_ID" IS '修改用户';
COMMENT ON COLUMN base_sign_img."F_DELETE_TIME" IS '删除时间';
COMMENT ON COLUMN base_sign_img."F_DELETE_USER_ID" IS '删除用户';
COMMENT ON COLUMN base_sign_img."F_DELETE_MARK" IS '删除标志';
COMMENT ON COLUMN base_sign_img."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：base_signature
-- ----------------------------
CREATE TABLE base_signature (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_FULL_NAME" NVARCHAR2(200),
	"F_EN_CODE" NVARCHAR2(200),
	"F_ICON" CLOB,
	"F_ENABLED_MARK" NUMBER,
	"F_SORT_CODE" NUMBER,
	"F_DESCRIPTION" NVARCHAR2(500),
	"F_CREATOR_TIME" TIMESTAMP,
	"F_CREATOR_USER_ID" NVARCHAR2(50),
	"F_LAST_MODIFY_TIME" TIMESTAMP,
	"F_LAST_MODIFY_USER_ID" NVARCHAR2(50),
	"F_DELETE_TIME" TIMESTAMP,
	"F_DELETE_USER_ID" NVARCHAR2(50),
	"F_DELETE_MARK" NUMBER,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0'

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE base_signature IS '电子签章';
COMMENT ON COLUMN base_signature."F_ID" IS '自然主键';
COMMENT ON COLUMN base_signature."F_FULL_NAME" IS '名称';
COMMENT ON COLUMN base_signature."F_EN_CODE" IS '编号';
COMMENT ON COLUMN base_signature."F_ICON" IS '签章';
COMMENT ON COLUMN base_signature."F_ENABLED_MARK" IS '有效标志';
COMMENT ON COLUMN base_signature."F_SORT_CODE" IS '排序';
COMMENT ON COLUMN base_signature."F_DESCRIPTION" IS '描述或说明';
COMMENT ON COLUMN base_signature."F_CREATOR_TIME" IS '创建时间';
COMMENT ON COLUMN base_signature."F_CREATOR_USER_ID" IS '创建用户';
COMMENT ON COLUMN base_signature."F_LAST_MODIFY_TIME" IS '修改时间';
COMMENT ON COLUMN base_signature."F_LAST_MODIFY_USER_ID" IS '修改用户';
COMMENT ON COLUMN base_signature."F_DELETE_TIME" IS '删除时间';
COMMENT ON COLUMN base_signature."F_DELETE_USER_ID" IS '删除用户';
COMMENT ON COLUMN base_signature."F_DELETE_MARK" IS '删除标志';
COMMENT ON COLUMN base_signature."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：base_signature_user
-- ----------------------------
CREATE TABLE base_signature_user (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_SIGNATURE_ID" NVARCHAR2(50),
	"F_USER_ID" NVARCHAR2(50),
	"F_ENABLED_MARK" NUMBER,
	"F_SORT_CODE" NUMBER,
	"F_DESCRIPTION" NVARCHAR2(500),
	"F_CREATOR_TIME" TIMESTAMP,
	"F_CREATOR_USER_ID" NVARCHAR2(50),
	"F_LAST_MODIFY_TIME" TIMESTAMP,
	"F_LAST_MODIFY_USER_ID" NVARCHAR2(50),
	"F_DELETE_TIME" TIMESTAMP,
	"F_DELETE_USER_ID" NVARCHAR2(50),
	"F_DELETE_MARK" NUMBER,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0'

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE base_signature_user IS '电子签章授权人';
COMMENT ON COLUMN base_signature_user."F_ID" IS '自然主键';
COMMENT ON COLUMN base_signature_user."F_SIGNATURE_ID" IS '签章主键';
COMMENT ON COLUMN base_signature_user."F_USER_ID" IS '用户主键';
COMMENT ON COLUMN base_signature_user."F_ENABLED_MARK" IS '有效标志';
COMMENT ON COLUMN base_signature_user."F_SORT_CODE" IS '排序';
COMMENT ON COLUMN base_signature_user."F_DESCRIPTION" IS '描述或说明';
COMMENT ON COLUMN base_signature_user."F_CREATOR_TIME" IS '创建时间';
COMMENT ON COLUMN base_signature_user."F_CREATOR_USER_ID" IS '创建用户';
COMMENT ON COLUMN base_signature_user."F_LAST_MODIFY_TIME" IS '修改时间';
COMMENT ON COLUMN base_signature_user."F_LAST_MODIFY_USER_ID" IS '修改用户';
COMMENT ON COLUMN base_signature_user."F_DELETE_TIME" IS '删除时间';
COMMENT ON COLUMN base_signature_user."F_DELETE_USER_ID" IS '删除用户';
COMMENT ON COLUMN base_signature_user."F_DELETE_MARK" IS '删除标志';
COMMENT ON COLUMN base_signature_user."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：base_socials_users
-- ----------------------------
CREATE TABLE base_socials_users (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_USER_ID" NVARCHAR2(50),
	"F_SOCIAL_TYPE" NVARCHAR2(50),
	"F_SOCIAL_ID" NVARCHAR2(100),
	"F_SOCIAL_NAME" NVARCHAR2(100),
	"F_SORT_CODE" NUMBER,
	"F_CREATOR_TIME" TIMESTAMP,
	"F_CREATOR_USER_ID" NVARCHAR2(50),
	"F_LAST_MODIFY_TIME" TIMESTAMP,
	"F_LAST_MODIFY_USER_ID" NVARCHAR2(50),
	"F_DELETE_TIME" TIMESTAMP,
	"F_DELETE_USER_ID" NVARCHAR2(50),
	"F_DELETE_MARK" NUMBER,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0'

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE base_socials_users IS '第三方绑定用户表';
COMMENT ON COLUMN base_socials_users."F_ID" IS '自然主键';
COMMENT ON COLUMN base_socials_users."F_USER_ID" IS '用户id';
COMMENT ON COLUMN base_socials_users."F_SOCIAL_TYPE" IS '第三方类型';
COMMENT ON COLUMN base_socials_users."F_SOCIAL_ID" IS '第三方账号id';
COMMENT ON COLUMN base_socials_users."F_SOCIAL_NAME" IS '第三方账号';
COMMENT ON COLUMN base_socials_users."F_SORT_CODE" IS '排序';
COMMENT ON COLUMN base_socials_users."F_CREATOR_TIME" IS '创建时间';
COMMENT ON COLUMN base_socials_users."F_CREATOR_USER_ID" IS '创建用户';
COMMENT ON COLUMN base_socials_users."F_LAST_MODIFY_TIME" IS '修改时间';
COMMENT ON COLUMN base_socials_users."F_LAST_MODIFY_USER_ID" IS '修改用户';
COMMENT ON COLUMN base_socials_users."F_DELETE_TIME" IS '删除时间';
COMMENT ON COLUMN base_socials_users."F_DELETE_USER_ID" IS '删除用户';
COMMENT ON COLUMN base_socials_users."F_DELETE_MARK" IS '删除标志';
COMMENT ON COLUMN base_socials_users."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：base_syn_third_info
-- ----------------------------
CREATE TABLE base_syn_third_info (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_THIRD_TYPE" NUMBER,
	"F_DATA_TYPE" NUMBER,
	"F_SYS_OBJ_ID" NVARCHAR2(50),
	"F_THIRD_OBJ_ID" NVARCHAR2(50),
	"F_DESCRIPTION" NVARCHAR2(500),
	"F_ENABLED_MARK" NUMBER,
	"F_SORT_CODE" NUMBER,
	"F_CREATOR_TIME" TIMESTAMP,
	"F_CREATOR_USER_ID" NVARCHAR2(50),
	"F_LAST_MODIFY_TIME" TIMESTAMP,
	"F_LAST_MODIFY_USER_ID" NVARCHAR2(50),
	"F_DELETE_TIME" TIMESTAMP,
	"F_DELETE_USER_ID" NVARCHAR2(50),
	"F_DELETE_MARK" NUMBER,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0'

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE base_syn_third_info IS '第三方同步信息';
COMMENT ON COLUMN base_syn_third_info."F_ID" IS '自然主键';
COMMENT ON COLUMN base_syn_third_info."F_THIRD_TYPE" IS '第三方类型(1:企业微信，2:钉钉)';
COMMENT ON COLUMN base_syn_third_info."F_DATA_TYPE" IS '数据类型(1:组织(公司与部门)，2:用户)';
COMMENT ON COLUMN base_syn_third_info."F_SYS_OBJ_ID" IS '系统对象ID';
COMMENT ON COLUMN base_syn_third_info."F_THIRD_OBJ_ID" IS '第三对象ID';
COMMENT ON COLUMN base_syn_third_info."F_DESCRIPTION" IS '描述或说明';
COMMENT ON COLUMN base_syn_third_info."F_ENABLED_MARK" IS '有效标志(0:未同步，1:同步成功，2:同步失败)';
COMMENT ON COLUMN base_syn_third_info."F_SORT_CODE" IS '排序';
COMMENT ON COLUMN base_syn_third_info."F_CREATOR_TIME" IS '创建时间';
COMMENT ON COLUMN base_syn_third_info."F_CREATOR_USER_ID" IS '创建用户';
COMMENT ON COLUMN base_syn_third_info."F_LAST_MODIFY_TIME" IS '修改时间';
COMMENT ON COLUMN base_syn_third_info."F_LAST_MODIFY_USER_ID" IS '修改用户';
COMMENT ON COLUMN base_syn_third_info."F_DELETE_TIME" IS '删除时间';
COMMENT ON COLUMN base_syn_third_info."F_DELETE_USER_ID" IS '删除用户';
COMMENT ON COLUMN base_syn_third_info."F_DELETE_MARK" IS '删除标志';
COMMENT ON COLUMN base_syn_third_info."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：base_sys_config
-- ----------------------------
CREATE TABLE base_sys_config (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_FULL_NAME" NVARCHAR2(50),
	"F_KEY" NVARCHAR2(50),
	"F_VALUE" CLOB,
	"F_CATEGORY" NVARCHAR2(50),
	"F_SORT_CODE" NUMBER,
	"F_CREATOR_TIME" TIMESTAMP,
	"F_CREATOR_USER_ID" NVARCHAR2(50),
	"F_LAST_MODIFY_TIME" TIMESTAMP,
	"F_LAST_MODIFY_USER_ID" NVARCHAR2(50),
	"F_DELETE_TIME" TIMESTAMP,
	"F_DELETE_USER_ID" NVARCHAR2(50),
	"F_DELETE_MARK" NUMBER,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0'

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE base_sys_config IS '系统配置';
COMMENT ON COLUMN base_sys_config."F_ID" IS '自然主键';
COMMENT ON COLUMN base_sys_config."F_FULL_NAME" IS '名称';
COMMENT ON COLUMN base_sys_config."F_KEY" IS '键';
COMMENT ON COLUMN base_sys_config."F_VALUE" IS '值';
COMMENT ON COLUMN base_sys_config."F_CATEGORY" IS '分类';
COMMENT ON COLUMN base_sys_config."F_SORT_CODE" IS '排序';
COMMENT ON COLUMN base_sys_config."F_CREATOR_TIME" IS '创建时间';
COMMENT ON COLUMN base_sys_config."F_CREATOR_USER_ID" IS '创建用户';
COMMENT ON COLUMN base_sys_config."F_LAST_MODIFY_TIME" IS '修改时间';
COMMENT ON COLUMN base_sys_config."F_LAST_MODIFY_USER_ID" IS '修改用户';
COMMENT ON COLUMN base_sys_config."F_DELETE_TIME" IS '删除时间';
COMMENT ON COLUMN base_sys_config."F_DELETE_USER_ID" IS '删除用户';
COMMENT ON COLUMN base_sys_config."F_DELETE_MARK" IS '删除标志';
COMMENT ON COLUMN base_sys_config."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：base_sys_log
-- ----------------------------
CREATE TABLE base_sys_log (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_USER_ID" NVARCHAR2(50),
	"F_USER_NAME" NVARCHAR2(100),
	"F_TYPE" NUMBER,
	"F_LEVEL" NUMBER,
	"F_IP_ADDRESS" NVARCHAR2(50),
	"F_IP_ADDRESS_NAME" NVARCHAR2(50),
	"F_REQUEST_URL" NVARCHAR2(500),
	"F_REQUEST_METHOD" NVARCHAR2(50),
	"F_REQUEST_DURATION" NUMBER,
	"F_JSON" CLOB,
	"F_PLAT_FORM" NVARCHAR2(500),
	"F_CREATOR_USER_ID" NVARCHAR2(50),
	"F_LAST_MODIFY_TIME" TIMESTAMP,
	"F_LAST_MODIFY_USER_ID" NVARCHAR2(50),
	"F_DELETE_TIME" TIMESTAMP,
	"F_DELETE_USER_ID" NVARCHAR2(50),
	"F_DELETE_MARK" NUMBER,
	"F_MODULE_ID" NVARCHAR2(50),
	"F_MODULE_NAME" NVARCHAR2(50),
	"F_OBJECT_ID" NVARCHAR2(50),
	"F_DESCRIPTION" NVARCHAR2(500),
	"F_SORT_CODE" NUMBER,
	"F_CREATOR_TIME" TIMESTAMP,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0',
	"F_BROWSER" NVARCHAR2(50),
	"F_REQUEST_PARAM" CLOB,
	"F_REQUEST_TARGET" CLOB,
	"F_LOGIN_MARK" NUMBER,
	"F_LOGIN_TYPE" NUMBER

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE base_sys_log IS '系统日志';
COMMENT ON COLUMN base_sys_log."F_ID" IS '自然主键';
COMMENT ON COLUMN base_sys_log."F_USER_ID" IS '用户主键';
COMMENT ON COLUMN base_sys_log."F_USER_NAME" IS '用户主键';
COMMENT ON COLUMN base_sys_log."F_TYPE" IS '日志类型';
COMMENT ON COLUMN base_sys_log."F_LEVEL" IS '日志级别';
COMMENT ON COLUMN base_sys_log."F_IP_ADDRESS" IS 'IP地址';
COMMENT ON COLUMN base_sys_log."F_IP_ADDRESS_NAME" IS 'IP所在城市';
COMMENT ON COLUMN base_sys_log."F_REQUEST_URL" IS '请求地址';
COMMENT ON COLUMN base_sys_log."F_REQUEST_METHOD" IS '请求方法';
COMMENT ON COLUMN base_sys_log."F_REQUEST_DURATION" IS '请求耗时';
COMMENT ON COLUMN base_sys_log."F_JSON" IS '日志内容';
COMMENT ON COLUMN base_sys_log."F_PLAT_FORM" IS '平台设备';
COMMENT ON COLUMN base_sys_log."F_CREATOR_USER_ID" IS '创建用户';
COMMENT ON COLUMN base_sys_log."F_LAST_MODIFY_TIME" IS '修改时间';
COMMENT ON COLUMN base_sys_log."F_LAST_MODIFY_USER_ID" IS '修改用户';
COMMENT ON COLUMN base_sys_log."F_DELETE_TIME" IS '删除时间';
COMMENT ON COLUMN base_sys_log."F_DELETE_USER_ID" IS '删除用户';
COMMENT ON COLUMN base_sys_log."F_DELETE_MARK" IS '删除标志';
COMMENT ON COLUMN base_sys_log."F_MODULE_ID" IS '功能主键';
COMMENT ON COLUMN base_sys_log."F_MODULE_NAME" IS '功能名称';
COMMENT ON COLUMN base_sys_log."F_OBJECT_ID" IS '对象Id';
COMMENT ON COLUMN base_sys_log."F_DESCRIPTION" IS '描述或说明';
COMMENT ON COLUMN base_sys_log."F_SORT_CODE" IS '排序';
COMMENT ON COLUMN base_sys_log."F_CREATOR_TIME" IS '创建时间';
COMMENT ON COLUMN base_sys_log."F_TENANT_ID" IS '租户id';
COMMENT ON COLUMN base_sys_log."F_BROWSER" IS '浏览器';
COMMENT ON COLUMN base_sys_log."F_REQUEST_PARAM" IS '请求参数';
COMMENT ON COLUMN base_sys_log."F_REQUEST_TARGET" IS '请求方法';
COMMENT ON COLUMN base_sys_log."F_LOGIN_MARK" IS '是否登录成功标志';
COMMENT ON COLUMN base_sys_log."F_LOGIN_TYPE" IS '登录类型';
-- ----------------------------
-- 表名：base_system
-- ----------------------------
CREATE TABLE base_system (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_FULL_NAME" NVARCHAR2(200),
	"F_EN_CODE" NVARCHAR2(200),
	"F_ICON" NVARCHAR2(200),
	"F_IS_MAIN" NUMBER,
	"F_PROPERTY_JSON" CLOB,
	"F_DESCRIPTION" NVARCHAR2(500),
	"F_ENABLED_MARK" NUMBER,
	"F_SORT_CODE" NUMBER,
	"F_CREATOR_TIME" TIMESTAMP,
	"F_CREATOR_USER_ID" NVARCHAR2(50),
	"F_LAST_MODIFY_TIME" TIMESTAMP,
	"F_LAST_MODIFY_USER_ID" NVARCHAR2(50),
	"F_DELETE_TIME" TIMESTAMP,
	"F_DELETE_USER_ID" NVARCHAR2(50),
	"F_DELETE_MARK" NUMBER,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0',
	"F_NAVIGATION_ICON" NVARCHAR2(500),
	"F_WORK_LOGO_ICON" NVARCHAR2(500),
	"F_WORKFLOW_ENABLED" NUMBER

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE base_system IS '系统应用';
COMMENT ON COLUMN base_system."F_ID" IS '自然主键';
COMMENT ON COLUMN base_system."F_FULL_NAME" IS '系统名称';
COMMENT ON COLUMN base_system."F_EN_CODE" IS '系统编号';
COMMENT ON COLUMN base_system."F_ICON" IS '系统图标';
COMMENT ON COLUMN base_system."F_IS_MAIN" IS '是否是主系统（0-不是，1-是）';
COMMENT ON COLUMN base_system."F_PROPERTY_JSON" IS '扩展属性';
COMMENT ON COLUMN base_system."F_DESCRIPTION" IS '描述或说明';
COMMENT ON COLUMN base_system."F_ENABLED_MARK" IS '有效标志(0-禁用，1-启用)';
COMMENT ON COLUMN base_system."F_SORT_CODE" IS '排序';
COMMENT ON COLUMN base_system."F_CREATOR_TIME" IS '创建时间';
COMMENT ON COLUMN base_system."F_CREATOR_USER_ID" IS '创建用户';
COMMENT ON COLUMN base_system."F_LAST_MODIFY_TIME" IS '修改时间';
COMMENT ON COLUMN base_system."F_LAST_MODIFY_USER_ID" IS '修改用户';
COMMENT ON COLUMN base_system."F_DELETE_TIME" IS '删除时间';
COMMENT ON COLUMN base_system."F_DELETE_USER_ID" IS '删除用户';
COMMENT ON COLUMN base_system."F_DELETE_MARK" IS '删除标志';
COMMENT ON COLUMN base_system."F_TENANT_ID" IS '租户id';
COMMENT ON COLUMN base_system."F_NAVIGATION_ICON" IS '';
COMMENT ON COLUMN base_system."F_WORK_LOGO_ICON" IS 'logo图标';
COMMENT ON COLUMN base_system."F_WORKFLOW_ENABLED" IS '已启用工作流';
-- ----------------------------
-- 表名：base_time_task
-- ----------------------------
CREATE TABLE base_time_task (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_EN_CODE" NVARCHAR2(200),
	"F_FULL_NAME" NVARCHAR2(200),
	"F_EXECUTE_TYPE" NUMBER,
	"F_EXECUTE_CONTENT" CLOB,
	"F_EXECUTE_CYCLE_JSON" CLOB,
	"F_LAST_RUN_TIME" TIMESTAMP,
	"F_NEXT_RUN_TIME" TIMESTAMP,
	"F_RUN_COUNT" NUMBER,
	"F_DESCRIPTION" NVARCHAR2(500),
	"F_ENABLED_MARK" NUMBER,
	"F_SORT_CODE" NUMBER,
	"F_CREATOR_TIME" TIMESTAMP,
	"F_CREATOR_USER_ID" NVARCHAR2(50),
	"F_LAST_MODIFY_TIME" TIMESTAMP,
	"F_LAST_MODIFY_USER_ID" NVARCHAR2(50),
	"F_DELETE_TIME" TIMESTAMP,
	"F_DELETE_USER_ID" NVARCHAR2(50),
	"F_DELETE_MARK" NUMBER,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0'

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE base_time_task IS '定时任务';
COMMENT ON COLUMN base_time_task."F_ID" IS '自然主键';
COMMENT ON COLUMN base_time_task."F_EN_CODE" IS '任务编码';
COMMENT ON COLUMN base_time_task."F_FULL_NAME" IS '任务名称';
COMMENT ON COLUMN base_time_task."F_EXECUTE_TYPE" IS '执行类型';
COMMENT ON COLUMN base_time_task."F_EXECUTE_CONTENT" IS '执行内容';
COMMENT ON COLUMN base_time_task."F_EXECUTE_CYCLE_JSON" IS '执行周期';
COMMENT ON COLUMN base_time_task."F_LAST_RUN_TIME" IS '最后运行时间';
COMMENT ON COLUMN base_time_task."F_NEXT_RUN_TIME" IS '下次运行时间';
COMMENT ON COLUMN base_time_task."F_RUN_COUNT" IS '运行次数';
COMMENT ON COLUMN base_time_task."F_DESCRIPTION" IS '描述或说明';
COMMENT ON COLUMN base_time_task."F_ENABLED_MARK" IS '有效标志(0-禁用，1-启用)';
COMMENT ON COLUMN base_time_task."F_SORT_CODE" IS '排序';
COMMENT ON COLUMN base_time_task."F_CREATOR_TIME" IS '创建时间';
COMMENT ON COLUMN base_time_task."F_CREATOR_USER_ID" IS '创建用户';
COMMENT ON COLUMN base_time_task."F_LAST_MODIFY_TIME" IS '修改时间';
COMMENT ON COLUMN base_time_task."F_LAST_MODIFY_USER_ID" IS '修改用户';
COMMENT ON COLUMN base_time_task."F_DELETE_TIME" IS '删除时间';
COMMENT ON COLUMN base_time_task."F_DELETE_USER_ID" IS '删除用户';
COMMENT ON COLUMN base_time_task."F_DELETE_MARK" IS '删除标志';
COMMENT ON COLUMN base_time_task."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：base_time_task_log
-- ----------------------------
CREATE TABLE base_time_task_log (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_TASK_ID" NVARCHAR2(50),
	"F_RUN_TIME" TIMESTAMP,
	"F_RUN_RESULT" NUMBER,
	"F_DESCRIPTION" NVARCHAR2(500),
	"F_ENABLED_MARK" NUMBER,
	"F_SORT_CODE" NUMBER,
	"F_CREATOR_TIME" TIMESTAMP,
	"F_CREATOR_USER_ID" NVARCHAR2(50),
	"F_LAST_MODIFY_TIME" TIMESTAMP,
	"F_LAST_MODIFY_USER_ID" NVARCHAR2(50),
	"F_DELETE_TIME" TIMESTAMP,
	"F_DELETE_USER_ID" NVARCHAR2(50),
	"F_DELETE_MARK" NUMBER,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0'

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE base_time_task_log IS '定时任务记录';
COMMENT ON COLUMN base_time_task_log."F_ID" IS '自然主键';
COMMENT ON COLUMN base_time_task_log."F_TASK_ID" IS '定时任务主键';
COMMENT ON COLUMN base_time_task_log."F_RUN_TIME" IS '执行时间';
COMMENT ON COLUMN base_time_task_log."F_RUN_RESULT" IS '执行结果(0-成功，1-失败)';
COMMENT ON COLUMN base_time_task_log."F_DESCRIPTION" IS '描述或说明';
COMMENT ON COLUMN base_time_task_log."F_ENABLED_MARK" IS '有效标志(0-禁用，1-启用)';
COMMENT ON COLUMN base_time_task_log."F_SORT_CODE" IS '排序';
COMMENT ON COLUMN base_time_task_log."F_CREATOR_TIME" IS '创建时间';
COMMENT ON COLUMN base_time_task_log."F_CREATOR_USER_ID" IS '创建用户';
COMMENT ON COLUMN base_time_task_log."F_LAST_MODIFY_TIME" IS '修改时间';
COMMENT ON COLUMN base_time_task_log."F_LAST_MODIFY_USER_ID" IS '修改用户';
COMMENT ON COLUMN base_time_task_log."F_DELETE_TIME" IS '删除时间';
COMMENT ON COLUMN base_time_task_log."F_DELETE_USER_ID" IS '删除用户';
COMMENT ON COLUMN base_time_task_log."F_DELETE_MARK" IS '删除标志';
COMMENT ON COLUMN base_time_task_log."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：base_user
-- ----------------------------
CREATE TABLE base_user (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_ACCOUNT" NVARCHAR2(50),
	"F_REAL_NAME" NVARCHAR2(50),
	"F_QUICK_QUERY" NVARCHAR2(100),
	"F_NICK_NAME" NVARCHAR2(50),
	"F_HEAD_ICON" CLOB,
	"F_GENDER" NVARCHAR2(50),
	"F_BIRTHDAY" TIMESTAMP,
	"F_MOBILE_PHONE" NVARCHAR2(20),
	"F_TELE_PHONE" NVARCHAR2(20),
	"F_LANDLINE" NVARCHAR2(50),
	"F_EMAIL" NVARCHAR2(50),
	"F_NATION" NVARCHAR2(50),
	"F_NATIVE_PLACE" NVARCHAR2(50),
	"F_ENTRY_DATE" TIMESTAMP,
	"F_CERTIFICATES_TYPE" NVARCHAR2(50),
	"F_CERTIFICATES_NUMBER" NVARCHAR2(50),
	"F_EDUCATION" NVARCHAR2(50),
	"F_URGENT_CONTACTS" NVARCHAR2(50),
	"F_URGENT_TELE_PHONE" NVARCHAR2(50),
	"F_POSTAL_ADDRESS" NVARCHAR2(500),
	"F_SIGNATURE" NVARCHAR2(500),
	"F_PASSWORD" NVARCHAR2(50),
	"F_SECRETKEY" NVARCHAR2(50),
	"F_FIRST_LOG_TIME" TIMESTAMP,
	"F_FIRST_LOG_IP" NVARCHAR2(50),
	"F_PREV_LOG_TIME" TIMESTAMP,
	"F_PREV_LOG_IP" NVARCHAR2(50),
	"F_LAST_LOG_TIME" TIMESTAMP,
	"F_LAST_LOG_IP" NVARCHAR2(50),
	"F_LOG_SUCCESS_COUNT" NUMBER,
	"F_LOG_ERROR_COUNT" NUMBER,
	"F_CHANGE_PASSWORD_DATE" TIMESTAMP,
	"F_LANGUAGE" NVARCHAR2(50),
	"F_THEME" NVARCHAR2(50),
	"F_COMMON_MENU" CLOB,
	"F_IS_ADMINISTRATOR" NUMBER,
	"F_PROPERTY_JSON" CLOB,
	"F_MANAGER_ID" NVARCHAR2(50),
	"F_ORGANIZE_ID" NVARCHAR2(50),
	"F_POSITION_ID" NVARCHAR2(50),
	"F_ROLE_ID" CLOB,
	"F_PORTAL_ID" CLOB,
	"F_LOCK_MARK" NUMBER,
	"F_UNLOCK_TIME" TIMESTAMP,
	"F_GROUP_ID" NVARCHAR2(50),
	"F_SYSTEM_ID" NVARCHAR2(50),
	"F_HANDOVER_MARK" NUMBER,
	"F_APP_SYSTEM_ID" NVARCHAR2(50),
	"F_DING_JOB_NUMBER" NVARCHAR2(50),
	"F_DESCRIPTION" NVARCHAR2(500),
	"F_ENABLED_MARK" NUMBER,
	"F_SORT_CODE" NUMBER,
	"F_CREATOR_TIME" TIMESTAMP,
	"F_CREATOR_USER_ID" NVARCHAR2(50),
	"F_LAST_MODIFY_TIME" TIMESTAMP,
	"F_LAST_MODIFY_USER_ID" NVARCHAR2(50),
	"F_DELETE_TIME" TIMESTAMP,
	"F_DELETE_USER_ID" NVARCHAR2(50),
	"F_DELETE_MARK" NUMBER,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0',
	"F_HANDOVER_USERID" NVARCHAR2(100),
	"F_RANK" NVARCHAR2(50),
	"F_STANDING" NUMBER,
	"F_APP_STANDING" NUMBER

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE base_user IS '用户信息';
COMMENT ON COLUMN base_user."F_ID" IS '自然主键';
COMMENT ON COLUMN base_user."F_ACCOUNT" IS '账户';
COMMENT ON COLUMN base_user."F_REAL_NAME" IS '姓名';
COMMENT ON COLUMN base_user."F_QUICK_QUERY" IS '快速查询';
COMMENT ON COLUMN base_user."F_NICK_NAME" IS '呢称';
COMMENT ON COLUMN base_user."F_HEAD_ICON" IS '头像';
COMMENT ON COLUMN base_user."F_GENDER" IS '性别';
COMMENT ON COLUMN base_user."F_BIRTHDAY" IS '生日';
COMMENT ON COLUMN base_user."F_MOBILE_PHONE" IS '手机';
COMMENT ON COLUMN base_user."F_TELE_PHONE" IS '电话';
COMMENT ON COLUMN base_user."F_LANDLINE" IS 'F_Landline';
COMMENT ON COLUMN base_user."F_EMAIL" IS '邮箱';
COMMENT ON COLUMN base_user."F_NATION" IS '民族';
COMMENT ON COLUMN base_user."F_NATIVE_PLACE" IS '籍贯';
COMMENT ON COLUMN base_user."F_ENTRY_DATE" IS '入职日期';
COMMENT ON COLUMN base_user."F_CERTIFICATES_TYPE" IS '证件类型';
COMMENT ON COLUMN base_user."F_CERTIFICATES_NUMBER" IS '证件号码';
COMMENT ON COLUMN base_user."F_EDUCATION" IS '文化程度';
COMMENT ON COLUMN base_user."F_URGENT_CONTACTS" IS 'F_UrgentContacts';
COMMENT ON COLUMN base_user."F_URGENT_TELE_PHONE" IS '紧急电话';
COMMENT ON COLUMN base_user."F_POSTAL_ADDRESS" IS '通讯地址';
COMMENT ON COLUMN base_user."F_SIGNATURE" IS '自我介绍';
COMMENT ON COLUMN base_user."F_PASSWORD" IS '密码';
COMMENT ON COLUMN base_user."F_SECRETKEY" IS '秘钥';
COMMENT ON COLUMN base_user."F_FIRST_LOG_TIME" IS '首次登录时间';
COMMENT ON COLUMN base_user."F_FIRST_LOG_IP" IS '首次登录IP';
COMMENT ON COLUMN base_user."F_PREV_LOG_TIME" IS '前次登录时间';
COMMENT ON COLUMN base_user."F_PREV_LOG_IP" IS '前次登录IP';
COMMENT ON COLUMN base_user."F_LAST_LOG_TIME" IS '最后登录时间';
COMMENT ON COLUMN base_user."F_LAST_LOG_IP" IS '最后登录IP';
COMMENT ON COLUMN base_user."F_LOG_SUCCESS_COUNT" IS '登录成功次数';
COMMENT ON COLUMN base_user."F_LOG_ERROR_COUNT" IS '登录错误次数';
COMMENT ON COLUMN base_user."F_CHANGE_PASSWORD_DATE" IS '最后修改密码时间';
COMMENT ON COLUMN base_user."F_LANGUAGE" IS '系统语言';
COMMENT ON COLUMN base_user."F_THEME" IS '系统样式';
COMMENT ON COLUMN base_user."F_COMMON_MENU" IS '常用菜单';
COMMENT ON COLUMN base_user."F_IS_ADMINISTRATOR" IS '是否管理员';
COMMENT ON COLUMN base_user."F_PROPERTY_JSON" IS '扩展属性';
COMMENT ON COLUMN base_user."F_MANAGER_ID" IS '主管主键';
COMMENT ON COLUMN base_user."F_ORGANIZE_ID" IS '组织主键';
COMMENT ON COLUMN base_user."F_POSITION_ID" IS '岗位主键';
COMMENT ON COLUMN base_user."F_ROLE_ID" IS '角色主键';
COMMENT ON COLUMN base_user."F_PORTAL_ID" IS '门户主键';
COMMENT ON COLUMN base_user."F_LOCK_MARK" IS '是否锁定';
COMMENT ON COLUMN base_user."F_UNLOCK_TIME" IS '解锁时间';
COMMENT ON COLUMN base_user."F_GROUP_ID" IS '分组id';
COMMENT ON COLUMN base_user."F_SYSTEM_ID" IS '系统id';
COMMENT ON COLUMN base_user."F_HANDOVER_MARK" IS '交接状态';
COMMENT ON COLUMN base_user."F_APP_SYSTEM_ID" IS 'App系统id';
COMMENT ON COLUMN base_user."F_DING_JOB_NUMBER" IS '钉钉工号';
COMMENT ON COLUMN base_user."F_DESCRIPTION" IS '描述或说明';
COMMENT ON COLUMN base_user."F_ENABLED_MARK" IS '有效标志(0-禁用，1-启用)';
COMMENT ON COLUMN base_user."F_SORT_CODE" IS '排序';
COMMENT ON COLUMN base_user."F_CREATOR_TIME" IS '创建时间';
COMMENT ON COLUMN base_user."F_CREATOR_USER_ID" IS '创建用户';
COMMENT ON COLUMN base_user."F_LAST_MODIFY_TIME" IS '修改时间';
COMMENT ON COLUMN base_user."F_LAST_MODIFY_USER_ID" IS '修改用户';
COMMENT ON COLUMN base_user."F_DELETE_TIME" IS '删除时间';
COMMENT ON COLUMN base_user."F_DELETE_USER_ID" IS '删除用户';
COMMENT ON COLUMN base_user."F_DELETE_MARK" IS '删除标志';
COMMENT ON COLUMN base_user."F_TENANT_ID" IS '租户id';
COMMENT ON COLUMN base_user."F_HANDOVER_USERID" IS '离职工作被交接的UserId';
COMMENT ON COLUMN base_user."F_RANK" IS '职级';
COMMENT ON COLUMN base_user."F_STANDING" IS '身份(1.管理员 2.超管 3.普通用户)';
COMMENT ON COLUMN base_user."F_APP_STANDING" IS 'app身份(1.管理员 2.超管 3.普通用户)';
-- ----------------------------
-- 表名：base_user_device
-- ----------------------------
CREATE TABLE base_user_device (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_CLIENT_ID" NVARCHAR2(50),
	"F_USER_ID" NVARCHAR2(50),
	"F_ENABLED_MARK" NUMBER,
	"F_SORT_CODE" NUMBER,
	"F_CREATOR_TIME" TIMESTAMP,
	"F_CREATOR_USER_ID" NVARCHAR2(50),
	"F_LAST_MODIFY_TIME" TIMESTAMP,
	"F_LAST_MODIFY_USER_ID" NVARCHAR2(50),
	"F_DELETE_TIME" TIMESTAMP,
	"F_DELETE_USER_ID" NVARCHAR2(50),
	"F_DELETE_MARK" NUMBER,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0'

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE base_user_device IS '用户登录设备id表';
COMMENT ON COLUMN base_user_device."F_ID" IS '主键id';
COMMENT ON COLUMN base_user_device."F_CLIENT_ID" IS '设备id';
COMMENT ON COLUMN base_user_device."F_USER_ID" IS '用户id';
COMMENT ON COLUMN base_user_device."F_ENABLED_MARK" IS '有效标志(0-禁用，1-启用)';
COMMENT ON COLUMN base_user_device."F_SORT_CODE" IS '排序';
COMMENT ON COLUMN base_user_device."F_CREATOR_TIME" IS '创建时间';
COMMENT ON COLUMN base_user_device."F_CREATOR_USER_ID" IS '创建用户';
COMMENT ON COLUMN base_user_device."F_LAST_MODIFY_TIME" IS '修改时间';
COMMENT ON COLUMN base_user_device."F_LAST_MODIFY_USER_ID" IS '修改用户';
COMMENT ON COLUMN base_user_device."F_DELETE_TIME" IS '删除时间';
COMMENT ON COLUMN base_user_device."F_DELETE_USER_ID" IS '删除用户';
COMMENT ON COLUMN base_user_device."F_DELETE_MARK" IS '删除标志';
COMMENT ON COLUMN base_user_device."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：base_user_old_password
-- ----------------------------
CREATE TABLE base_user_old_password (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_USER_ID" NVARCHAR2(50),
	"F_ACCOUNT" NVARCHAR2(50),
	"F_OLD_PASSWORD" NVARCHAR2(50),
	"F_SECRETKEY" NVARCHAR2(50),
	"F_SORT_CODE" NUMBER,
	"F_CREATOR_TIME" TIMESTAMP,
	"F_CREATOR_USER_ID" NVARCHAR2(50),
	"F_LAST_MODIFY_TIME" TIMESTAMP,
	"F_LAST_MODIFY_USER_ID" NVARCHAR2(50),
	"F_DELETE_TIME" TIMESTAMP,
	"F_DELETE_USER_ID" NVARCHAR2(50),
	"F_DELETE_MARK" NUMBER,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0'

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE base_user_old_password IS '用户旧密码记录表';
COMMENT ON COLUMN base_user_old_password."F_ID" IS '自然主键';
COMMENT ON COLUMN base_user_old_password."F_USER_ID" IS 'userid';
COMMENT ON COLUMN base_user_old_password."F_ACCOUNT" IS '账户';
COMMENT ON COLUMN base_user_old_password."F_OLD_PASSWORD" IS '旧密码';
COMMENT ON COLUMN base_user_old_password."F_SECRETKEY" IS '秘钥';
COMMENT ON COLUMN base_user_old_password."F_SORT_CODE" IS '排序';
COMMENT ON COLUMN base_user_old_password."F_CREATOR_TIME" IS '创建时间';
COMMENT ON COLUMN base_user_old_password."F_CREATOR_USER_ID" IS '创建用户';
COMMENT ON COLUMN base_user_old_password."F_LAST_MODIFY_TIME" IS '修改时间';
COMMENT ON COLUMN base_user_old_password."F_LAST_MODIFY_USER_ID" IS '修改用户';
COMMENT ON COLUMN base_user_old_password."F_DELETE_TIME" IS '删除时间';
COMMENT ON COLUMN base_user_old_password."F_DELETE_USER_ID" IS '删除用户';
COMMENT ON COLUMN base_user_old_password."F_DELETE_MARK" IS '删除标志';
COMMENT ON COLUMN base_user_old_password."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：base_user_relation
-- ----------------------------
CREATE TABLE base_user_relation (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_USER_ID" NVARCHAR2(50),
	"F_OBJECT_TYPE" NVARCHAR2(50),
	"F_OBJECT_ID" NVARCHAR2(50),
	"F_SORT_CODE" NUMBER,
	"F_CREATOR_TIME" TIMESTAMP,
	"F_CREATOR_USER_ID" NVARCHAR2(50),
	"F_LAST_MODIFY_TIME" TIMESTAMP,
	"F_LAST_MODIFY_USER_ID" NVARCHAR2(50),
	"F_DELETE_TIME" TIMESTAMP,
	"F_DELETE_USER_ID" NVARCHAR2(50),
	"F_DELETE_MARK" NUMBER,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0'

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE base_user_relation IS '用户关系';
COMMENT ON COLUMN base_user_relation."F_ID" IS '自然主键';
COMMENT ON COLUMN base_user_relation."F_USER_ID" IS '用户主键';
COMMENT ON COLUMN base_user_relation."F_OBJECT_TYPE" IS '对象类型';
COMMENT ON COLUMN base_user_relation."F_OBJECT_ID" IS '对象主键';
COMMENT ON COLUMN base_user_relation."F_SORT_CODE" IS '排序';
COMMENT ON COLUMN base_user_relation."F_CREATOR_TIME" IS '创建时间';
COMMENT ON COLUMN base_user_relation."F_CREATOR_USER_ID" IS '创建用户';
COMMENT ON COLUMN base_user_relation."F_LAST_MODIFY_TIME" IS '修改时间';
COMMENT ON COLUMN base_user_relation."F_LAST_MODIFY_USER_ID" IS '修改用户';
COMMENT ON COLUMN base_user_relation."F_DELETE_TIME" IS '删除时间';
COMMENT ON COLUMN base_user_relation."F_DELETE_USER_ID" IS '删除用户';
COMMENT ON COLUMN base_user_relation."F_DELETE_MARK" IS '删除标志';
COMMENT ON COLUMN base_user_relation."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：base_visual_alias
-- ----------------------------
CREATE TABLE base_visual_alias (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_VISUAL_ID" NVARCHAR2(50),
	"F_ALIAS_NAME" NVARCHAR2(255),
	"F_TABLE_NAME" NVARCHAR2(255),
	"F_FIELD_NAME" NVARCHAR2(255),
	"F_CREATOR_TIME" TIMESTAMP,
	"F_CREATOR_USER_ID" NVARCHAR2(50),
	"F_LAST_MODIFY_TIME" TIMESTAMP,
	"F_LAST_MODIFY_USER_ID" NVARCHAR2(50),
	"F_DELETE_TIME" TIMESTAMP,
	"F_DELETE_USER_ID" NVARCHAR2(50),
	"F_DELETE_MARK" NUMBER,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0'

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE base_visual_alias IS '代码生成命名规范';
COMMENT ON COLUMN base_visual_alias."F_ID" IS '自然主键';
COMMENT ON COLUMN base_visual_alias."F_VISUAL_ID" IS '表单主键';
COMMENT ON COLUMN base_visual_alias."F_ALIAS_NAME" IS '规范名称';
COMMENT ON COLUMN base_visual_alias."F_TABLE_NAME" IS '表名';
COMMENT ON COLUMN base_visual_alias."F_FIELD_NAME" IS '字段名';
COMMENT ON COLUMN base_visual_alias."F_CREATOR_TIME" IS '创建时间';
COMMENT ON COLUMN base_visual_alias."F_CREATOR_USER_ID" IS '创建用户';
COMMENT ON COLUMN base_visual_alias."F_LAST_MODIFY_TIME" IS '修改时间';
COMMENT ON COLUMN base_visual_alias."F_LAST_MODIFY_USER_ID" IS '修改用户';
COMMENT ON COLUMN base_visual_alias."F_DELETE_TIME" IS '删除时间';
COMMENT ON COLUMN base_visual_alias."F_DELETE_USER_ID" IS '删除用户';
COMMENT ON COLUMN base_visual_alias."F_DELETE_MARK" IS '删除标志';
COMMENT ON COLUMN base_visual_alias."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：base_visual_dev
-- ----------------------------
CREATE TABLE base_visual_dev (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_FULL_NAME" NVARCHAR2(200),
	"F_EN_CODE" NVARCHAR2(200),
	"F_STATE" NUMBER,
	"F_TYPE" NUMBER,
	"F_TABLES_DATA" CLOB,
	"F_CATEGORY" NVARCHAR2(50),
	"F_FORM_DATA" CLOB,
	"F_COLUMN_DATA" CLOB,
	"F_DB_LINK_ID" NVARCHAR2(50),
	"F_WEB_TYPE" NUMBER,
	"F_APP_COLUMN_DATA" CLOB,
	"F_ENABLE_FLOW" NUMBER,
	"F_INTERFACE_ID" NVARCHAR2(50),
	"F_INTERFACE_PARAM" CLOB,
	"F_DESCRIPTION" NVARCHAR2(500),
	"F_ENABLED_MARK" NUMBER,
	"F_SORT_CODE" NUMBER,
	"F_CREATOR_TIME" TIMESTAMP,
	"F_CREATOR_USER_ID" NVARCHAR2(50),
	"F_LAST_MODIFY_TIME" TIMESTAMP,
	"F_LAST_MODIFY_USER_ID" NVARCHAR2(50),
	"F_DELETE_TIME" TIMESTAMP,
	"F_DELETE_USER_ID" NVARCHAR2(50),
	"F_DELETE_MARK" NUMBER,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0',
	"F_PLATFORM_RELEASE" NVARCHAR2(100),
	"F_URL_ADDRESS" NVARCHAR2(500),
	"F_APP_URL_ADDRESS" NVARCHAR2(500),
	"F_INTERFACE_URL" NVARCHAR2(500)

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE base_visual_dev IS '可视化开发功能表';
COMMENT ON COLUMN base_visual_dev."F_ID" IS '主键';
COMMENT ON COLUMN base_visual_dev."F_FULL_NAME" IS '名称';
COMMENT ON COLUMN base_visual_dev."F_EN_CODE" IS '编码';
COMMENT ON COLUMN base_visual_dev."F_STATE" IS '状态(0-暂存（默认），1-发布)';
COMMENT ON COLUMN base_visual_dev."F_TYPE" IS '状态(0-暂存(默认),1-发布,2-已修改)';
COMMENT ON COLUMN base_visual_dev."F_TABLES_DATA" IS '关联的表';
COMMENT ON COLUMN base_visual_dev."F_CATEGORY" IS '分类（数据字典）';
COMMENT ON COLUMN base_visual_dev."F_FORM_DATA" IS '表单配置JSON';
COMMENT ON COLUMN base_visual_dev."F_COLUMN_DATA" IS '列表配置JSON';
COMMENT ON COLUMN base_visual_dev."F_DB_LINK_ID" IS '关联数据连接id';
COMMENT ON COLUMN base_visual_dev."F_WEB_TYPE" IS '页面类型（1、纯表单，2、表单加列表，4、数据视图）';
COMMENT ON COLUMN base_visual_dev."F_APP_COLUMN_DATA" IS 'app列表配置JSON';
COMMENT ON COLUMN base_visual_dev."F_ENABLE_FLOW" IS '启用流程';
COMMENT ON COLUMN base_visual_dev."F_INTERFACE_ID" IS '接口id';
COMMENT ON COLUMN base_visual_dev."F_INTERFACE_PARAM" IS '接口参数';
COMMENT ON COLUMN base_visual_dev."F_DESCRIPTION" IS '描述或说明';
COMMENT ON COLUMN base_visual_dev."F_ENABLED_MARK" IS '有效标志(0-禁用，1-启用)';
COMMENT ON COLUMN base_visual_dev."F_SORT_CODE" IS '排序';
COMMENT ON COLUMN base_visual_dev."F_CREATOR_TIME" IS '创建时间';
COMMENT ON COLUMN base_visual_dev."F_CREATOR_USER_ID" IS '创建用户';
COMMENT ON COLUMN base_visual_dev."F_LAST_MODIFY_TIME" IS '修改时间';
COMMENT ON COLUMN base_visual_dev."F_LAST_MODIFY_USER_ID" IS '修改用户';
COMMENT ON COLUMN base_visual_dev."F_DELETE_TIME" IS '删除时间';
COMMENT ON COLUMN base_visual_dev."F_DELETE_USER_ID" IS '删除用户';
COMMENT ON COLUMN base_visual_dev."F_DELETE_MARK" IS '删除标志';
COMMENT ON COLUMN base_visual_dev."F_TENANT_ID" IS '租户id';
COMMENT ON COLUMN base_visual_dev."F_PLATFORM_RELEASE" IS '发布选中平台';
COMMENT ON COLUMN base_visual_dev."F_URL_ADDRESS" IS 'Web地址';
COMMENT ON COLUMN base_visual_dev."F_APP_URL_ADDRESS" IS 'APP地址';
COMMENT ON COLUMN base_visual_dev."F_INTERFACE_URL" IS '接口路径';
-- ----------------------------
-- 表名：base_visual_filter
-- ----------------------------
CREATE TABLE base_visual_filter (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_MODULE_ID" NVARCHAR2(50),
	"F_CONFIG" CLOB,
	"F_CONFIG_APP" CLOB,
	"F_SORT_CODE" NUMBER,
	"F_CREATOR_TIME" TIMESTAMP,
	"F_CREATOR_USER_ID" NVARCHAR2(50),
	"F_LAST_MODIFY_TIME" TIMESTAMP,
	"F_LAST_MODIFY_USER_ID" NVARCHAR2(50),
	"F_DELETE_TIME" TIMESTAMP,
	"F_DELETE_USER_ID" NVARCHAR2(50),
	"F_DELETE_MARK" NUMBER,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0'

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE base_visual_filter IS '过滤配置表';
COMMENT ON COLUMN base_visual_filter."F_ID" IS '';
COMMENT ON COLUMN base_visual_filter."F_MODULE_ID" IS '在线和代码生成记录主键';
COMMENT ON COLUMN base_visual_filter."F_CONFIG" IS '过滤配置';
COMMENT ON COLUMN base_visual_filter."F_CONFIG_APP" IS '过滤配置app';
COMMENT ON COLUMN base_visual_filter."F_SORT_CODE" IS '排序';
COMMENT ON COLUMN base_visual_filter."F_CREATOR_TIME" IS '创建时间';
COMMENT ON COLUMN base_visual_filter."F_CREATOR_USER_ID" IS '创建用户';
COMMENT ON COLUMN base_visual_filter."F_LAST_MODIFY_TIME" IS '修改时间';
COMMENT ON COLUMN base_visual_filter."F_LAST_MODIFY_USER_ID" IS '修改用户';
COMMENT ON COLUMN base_visual_filter."F_DELETE_TIME" IS '删除时间';
COMMENT ON COLUMN base_visual_filter."F_DELETE_USER_ID" IS '删除用户';
COMMENT ON COLUMN base_visual_filter."F_DELETE_MARK" IS '删除标志';
COMMENT ON COLUMN base_visual_filter."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：base_visual_kit
-- ----------------------------
CREATE TABLE base_visual_kit (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_FULL_NAME" NVARCHAR2(200),
	"F_EN_CODE" NVARCHAR2(200),
	"F_CATEGORY" NVARCHAR2(50),
	"F_FORM_DATA" CLOB,
	"F_ICON" NVARCHAR2(255),
	"F_DESCRIPTION" NVARCHAR2(500),
	"F_ENABLED_MARK" NUMBER,
	"F_SORT_CODE" NUMBER,
	"F_CREATOR_TIME" TIMESTAMP,
	"F_CREATOR_USER_ID" NVARCHAR2(50),
	"F_LAST_MODIFY_TIME" TIMESTAMP,
	"F_LAST_MODIFY_USER_ID" NVARCHAR2(50),
	"F_DELETE_TIME" TIMESTAMP,
	"F_DELETE_USER_ID" NVARCHAR2(50),
	"F_DELETE_MARK" NUMBER,
	"F_TENANT_ID" NVARCHAR2(50) NOT NULL

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE base_visual_kit IS '表单套件表';
COMMENT ON COLUMN base_visual_kit."F_ID" IS '主键';
COMMENT ON COLUMN base_visual_kit."F_FULL_NAME" IS '名称';
COMMENT ON COLUMN base_visual_kit."F_EN_CODE" IS '编码';
COMMENT ON COLUMN base_visual_kit."F_CATEGORY" IS '分类（数据字典）';
COMMENT ON COLUMN base_visual_kit."F_FORM_DATA" IS '表单套件JSON';
COMMENT ON COLUMN base_visual_kit."F_ICON" IS '图标';
COMMENT ON COLUMN base_visual_kit."F_DESCRIPTION" IS '描述或说明';
COMMENT ON COLUMN base_visual_kit."F_ENABLED_MARK" IS '有效标志(0-禁用，1-启用)';
COMMENT ON COLUMN base_visual_kit."F_SORT_CODE" IS '排序';
COMMENT ON COLUMN base_visual_kit."F_CREATOR_TIME" IS '创建时间';
COMMENT ON COLUMN base_visual_kit."F_CREATOR_USER_ID" IS '创建用户';
COMMENT ON COLUMN base_visual_kit."F_LAST_MODIFY_TIME" IS '修改时间';
COMMENT ON COLUMN base_visual_kit."F_LAST_MODIFY_USER_ID" IS '修改用户';
COMMENT ON COLUMN base_visual_kit."F_DELETE_TIME" IS '删除时间';
COMMENT ON COLUMN base_visual_kit."F_DELETE_USER_ID" IS '删除用户';
COMMENT ON COLUMN base_visual_kit."F_DELETE_MARK" IS '删除标志';
COMMENT ON COLUMN base_visual_kit."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：base_visual_link
-- ----------------------------
CREATE TABLE base_visual_link (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_SHORT_LINK" NVARCHAR2(500),
	"F_FORM_USE" NUMBER,
	"F_FORM_LINK" NVARCHAR2(500),
	"F_FORM_PASS_USE" NUMBER,
	"F_FORM_PASSWORD" NVARCHAR2(500),
	"F_COLUMN_USE" NUMBER,
	"F_COLUMN_LINK" NVARCHAR2(500),
	"F_COLUMN_PASS_USE" NUMBER,
	"F_COLUMN_PASSWORD" NVARCHAR2(500),
	"F_COLUMN_CONDITION" CLOB,
	"F_COLUMN_TEXT" CLOB,
	"F_REAL_PC_LINK" NVARCHAR2(500),
	"F_REAL_APP_LINK" NVARCHAR2(500),
	"F_USER_ID" NVARCHAR2(50),
	"F_ENABLED_MARK" NUMBER,
	"F_CREATOR_TIME" TIMESTAMP,
	"F_CREATOR_USER_ID" NVARCHAR2(50),
	"F_LAST_MODIFY_TIME" TIMESTAMP,
	"F_LAST_MODIFY_USER_ID" NVARCHAR2(50),
	"F_DELETE_TIME" TIMESTAMP,
	"F_DELETE_USER_ID" NVARCHAR2(50),
	"F_DELETE_MARK" NUMBER,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0',
	"F_SORT_CODE" NUMBER

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE base_visual_link IS '表单外链配置表';
COMMENT ON COLUMN base_visual_link."F_ID" IS '自然主键';
COMMENT ON COLUMN base_visual_link."F_SHORT_LINK" IS '短链接';
COMMENT ON COLUMN base_visual_link."F_FORM_USE" IS '外链填单开关';
COMMENT ON COLUMN base_visual_link."F_FORM_LINK" IS '外链填单';
COMMENT ON COLUMN base_visual_link."F_FORM_PASS_USE" IS '外链密码开关';
COMMENT ON COLUMN base_visual_link."F_FORM_PASSWORD" IS '外链填单密码';
COMMENT ON COLUMN base_visual_link."F_COLUMN_USE" IS '公开查询开关';
COMMENT ON COLUMN base_visual_link."F_COLUMN_LINK" IS '公开查询';
COMMENT ON COLUMN base_visual_link."F_COLUMN_PASS_USE" IS '查询密码开关';
COMMENT ON COLUMN base_visual_link."F_COLUMN_PASSWORD" IS '公开查询密码';
COMMENT ON COLUMN base_visual_link."F_COLUMN_CONDITION" IS '查询条件';
COMMENT ON COLUMN base_visual_link."F_COLUMN_TEXT" IS '显示内容';
COMMENT ON COLUMN base_visual_link."F_REAL_PC_LINK" IS 'PC端链接';
COMMENT ON COLUMN base_visual_link."F_REAL_APP_LINK" IS 'App端链接';
COMMENT ON COLUMN base_visual_link."F_USER_ID" IS '用户id';
COMMENT ON COLUMN base_visual_link."F_ENABLED_MARK" IS '有效标志(0-禁用，1-启用)';
COMMENT ON COLUMN base_visual_link."F_CREATOR_TIME" IS '创建时间';
COMMENT ON COLUMN base_visual_link."F_CREATOR_USER_ID" IS '创建用户';
COMMENT ON COLUMN base_visual_link."F_LAST_MODIFY_TIME" IS '修改时间';
COMMENT ON COLUMN base_visual_link."F_LAST_MODIFY_USER_ID" IS '修改用户';
COMMENT ON COLUMN base_visual_link."F_DELETE_TIME" IS '删除时间';
COMMENT ON COLUMN base_visual_link."F_DELETE_USER_ID" IS '删除用户';
COMMENT ON COLUMN base_visual_link."F_DELETE_MARK" IS '删除标志';
COMMENT ON COLUMN base_visual_link."F_TENANT_ID" IS '租户id';
COMMENT ON COLUMN base_visual_link."F_SORT_CODE" IS '排序';
-- ----------------------------
-- 表名：base_visual_log
-- ----------------------------
CREATE TABLE base_visual_log (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_MODEL_ID" NVARCHAR2(50),
	"F_TYPE" NUMBER,
	"F_DATA_ID" NVARCHAR2(50),
	"F_DATA_LOG" CLOB,
	"F_CREATOR_TIME" TIMESTAMP,
	"F_CREATOR_USER_ID" NVARCHAR2(50),
	"F_LAST_MODIFY_TIME" TIMESTAMP,
	"F_LAST_MODIFY_USER_ID" NVARCHAR2(50),
	"F_DELETE_TIME" TIMESTAMP,
	"F_DELETE_USER_ID" NVARCHAR2(50),
	"F_DELETE_MARK" NUMBER,
	"F_TENANT_ID" NVARCHAR2(50) NOT NULL

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE base_visual_log IS '在线开发数据日志表';
COMMENT ON COLUMN base_visual_log."F_ID" IS '主键';
COMMENT ON COLUMN base_visual_log."F_MODEL_ID" IS '模板id';
COMMENT ON COLUMN base_visual_log."F_TYPE" IS '日志类型：0-新建，1-编辑';
COMMENT ON COLUMN base_visual_log."F_DATA_ID" IS '数据id';
COMMENT ON COLUMN base_visual_log."F_DATA_LOG" IS '日志内容';
COMMENT ON COLUMN base_visual_log."F_CREATOR_TIME" IS '创建时间';
COMMENT ON COLUMN base_visual_log."F_CREATOR_USER_ID" IS '创建用户';
COMMENT ON COLUMN base_visual_log."F_LAST_MODIFY_TIME" IS '修改时间';
COMMENT ON COLUMN base_visual_log."F_LAST_MODIFY_USER_ID" IS '修改用户';
COMMENT ON COLUMN base_visual_log."F_DELETE_TIME" IS '删除时间';
COMMENT ON COLUMN base_visual_log."F_DELETE_USER_ID" IS '删除用户';
COMMENT ON COLUMN base_visual_log."F_DELETE_MARK" IS '删除标志';
COMMENT ON COLUMN base_visual_log."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：base_visual_personal
-- ----------------------------
CREATE TABLE base_visual_personal (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_MENU_ID" NVARCHAR2(50),
	"F_FULL_NAME" NVARCHAR2(255),
	"F_TYPE" NUMBER,
	"F_STATUS" NUMBER,
	"F_SEARCH_LIST" CLOB,
	"F_COLUMN_LIST" CLOB,
	"F_CREATOR_TIME" TIMESTAMP,
	"F_CREATOR_USER_ID" NVARCHAR2(50),
	"F_LAST_MODIFY_TIME" TIMESTAMP,
	"F_LAST_MODIFY_USER_ID" NVARCHAR2(50),
	"F_DELETE_TIME" TIMESTAMP,
	"F_DELETE_USER_ID" NVARCHAR2(50),
	"F_DELETE_MARK" NUMBER,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0'

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE base_visual_personal IS '列表个性视图';
COMMENT ON COLUMN base_visual_personal."F_ID" IS '主键';
COMMENT ON COLUMN base_visual_personal."F_MENU_ID" IS '菜单id';
COMMENT ON COLUMN base_visual_personal."F_FULL_NAME" IS '视图名称';
COMMENT ON COLUMN base_visual_personal."F_TYPE" IS '类型：0-系统，1-其他';
COMMENT ON COLUMN base_visual_personal."F_STATUS" IS '状态：0-其他，1-默认';
COMMENT ON COLUMN base_visual_personal."F_SEARCH_LIST" IS '查询字段';
COMMENT ON COLUMN base_visual_personal."F_COLUMN_LIST" IS '列表字段';
COMMENT ON COLUMN base_visual_personal."F_CREATOR_TIME" IS '创建时间';
COMMENT ON COLUMN base_visual_personal."F_CREATOR_USER_ID" IS '创建用户';
COMMENT ON COLUMN base_visual_personal."F_LAST_MODIFY_TIME" IS '修改时间';
COMMENT ON COLUMN base_visual_personal."F_LAST_MODIFY_USER_ID" IS '修改用户';
COMMENT ON COLUMN base_visual_personal."F_DELETE_TIME" IS '删除时间';
COMMENT ON COLUMN base_visual_personal."F_DELETE_USER_ID" IS '删除用户';
COMMENT ON COLUMN base_visual_personal."F_DELETE_MARK" IS '删除标志';
COMMENT ON COLUMN base_visual_personal."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：base_visual_release
-- ----------------------------
CREATE TABLE base_visual_release (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_FULL_NAME" NVARCHAR2(200),
	"F_EN_CODE" NVARCHAR2(200),
	"F_STATE" NUMBER,
	"F_TYPE" NUMBER,
	"F_TABLES_DATA" CLOB,
	"F_CATEGORY" NVARCHAR2(50),
	"F_FORM_DATA" CLOB,
	"F_COLUMN_DATA" CLOB,
	"F_DB_LINK_ID" NVARCHAR2(50),
	"F_WEB_TYPE" NUMBER,
	"F_APP_COLUMN_DATA" CLOB,
	"F_ENABLE_FLOW" NUMBER DEFAULT '0',
	"F_INTERFACE_ID" NVARCHAR2(50),
	"F_INTERFACE_PARAM" CLOB,
	"F_DESCRIPTION" NVARCHAR2(500),
	"F_ENABLED_MARK" NUMBER,
	"F_SORT_CODE" NUMBER,
	"F_CREATOR_TIME" TIMESTAMP,
	"F_CREATOR_USER_ID" NVARCHAR2(50),
	"F_LAST_MODIFY_TIME" TIMESTAMP,
	"F_LAST_MODIFY_USER_ID" NVARCHAR2(50),
	"F_DELETE_TIME" TIMESTAMP,
	"F_DELETE_USER_ID" NVARCHAR2(50),
	"F_DELETE_MARK" NUMBER,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0',
	"F_URL_ADDRESS" NVARCHAR2(500),
	"F_APP_URL_ADDRESS" NVARCHAR2(500),
	"F_INTERFACE_URL" NVARCHAR2(500),
	"F_OLD_CONTENT" CLOB

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE base_visual_release IS '可视化开发功能已发布表';
COMMENT ON COLUMN base_visual_release."F_ID" IS '主键';
COMMENT ON COLUMN base_visual_release."F_FULL_NAME" IS '名称';
COMMENT ON COLUMN base_visual_release."F_EN_CODE" IS '编码';
COMMENT ON COLUMN base_visual_release."F_STATE" IS '状态(0-暂存（默认），1-发布)';
COMMENT ON COLUMN base_visual_release."F_TYPE" IS '状态(0-暂存(默认),1-发布,2-已修改)';
COMMENT ON COLUMN base_visual_release."F_TABLES_DATA" IS '关联的表';
COMMENT ON COLUMN base_visual_release."F_CATEGORY" IS '分类（数据字典）';
COMMENT ON COLUMN base_visual_release."F_FORM_DATA" IS '表单配置JSON';
COMMENT ON COLUMN base_visual_release."F_COLUMN_DATA" IS '列表配置JSON';
COMMENT ON COLUMN base_visual_release."F_DB_LINK_ID" IS '关联数据连接id';
COMMENT ON COLUMN base_visual_release."F_WEB_TYPE" IS '页面类型（1、纯表单，2、表单加列表，4、数据视图）';
COMMENT ON COLUMN base_visual_release."F_APP_COLUMN_DATA" IS 'app列表配置JSON';
COMMENT ON COLUMN base_visual_release."F_ENABLE_FLOW" IS '启用流程';
COMMENT ON COLUMN base_visual_release."F_INTERFACE_ID" IS '接口id';
COMMENT ON COLUMN base_visual_release."F_INTERFACE_PARAM" IS '接口参数';
COMMENT ON COLUMN base_visual_release."F_DESCRIPTION" IS '描述或说明';
COMMENT ON COLUMN base_visual_release."F_ENABLED_MARK" IS '有效标志(0-禁用，1-启用)';
COMMENT ON COLUMN base_visual_release."F_SORT_CODE" IS '排序';
COMMENT ON COLUMN base_visual_release."F_CREATOR_TIME" IS '创建时间';
COMMENT ON COLUMN base_visual_release."F_CREATOR_USER_ID" IS '创建用户';
COMMENT ON COLUMN base_visual_release."F_LAST_MODIFY_TIME" IS '修改时间';
COMMENT ON COLUMN base_visual_release."F_LAST_MODIFY_USER_ID" IS '修改用户';
COMMENT ON COLUMN base_visual_release."F_DELETE_TIME" IS '删除时间';
COMMENT ON COLUMN base_visual_release."F_DELETE_USER_ID" IS '删除用户';
COMMENT ON COLUMN base_visual_release."F_DELETE_MARK" IS '删除标志';
COMMENT ON COLUMN base_visual_release."F_TENANT_ID" IS '租户id';
COMMENT ON COLUMN base_visual_release."F_URL_ADDRESS" IS 'Web地址';
COMMENT ON COLUMN base_visual_release."F_APP_URL_ADDRESS" IS 'APP地址';
COMMENT ON COLUMN base_visual_release."F_INTERFACE_URL" IS '接口路径';
COMMENT ON COLUMN base_visual_release."F_OLD_CONTENT" IS '旧版数据json';
-- ----------------------------
-- 表名：blade_visual
-- ----------------------------
CREATE TABLE blade_visual (
	"ID" NVARCHAR2(64) NOT NULL,
	"TITLE" NVARCHAR2(255),
	"BACKGROUND_URL" CLOB,
	"CATEGORY" NUMBER,
	"PASSWORD" NVARCHAR2(255),
	"CREATE_USER" NVARCHAR2(64),
	"CREATE_DEPT" NVARCHAR2(64),
	"CREATE_TIME" TIMESTAMP,
	"UPDATE_USER" NVARCHAR2(64),
	"UPDATE_TIME" TIMESTAMP,
	"STATUS" NUMBER NOT NULL,
	"IS_DELETED" NUMBER NOT NULL,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0'

, PRIMARY KEY (id,f_tenant_id)
);
COMMENT ON TABLE blade_visual IS '大屏信息';
COMMENT ON COLUMN blade_visual."ID" IS '主键';
COMMENT ON COLUMN blade_visual."TITLE" IS '大屏标题';
COMMENT ON COLUMN blade_visual."BACKGROUND_URL" IS '大屏背景';
COMMENT ON COLUMN blade_visual."CATEGORY" IS '大屏类型';
COMMENT ON COLUMN blade_visual."PASSWORD" IS '发布密码';
COMMENT ON COLUMN blade_visual."CREATE_USER" IS '创建人';
COMMENT ON COLUMN blade_visual."CREATE_DEPT" IS '创建部门';
COMMENT ON COLUMN blade_visual."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN blade_visual."UPDATE_USER" IS '修改人';
COMMENT ON COLUMN blade_visual."UPDATE_TIME" IS '修改时间';
COMMENT ON COLUMN blade_visual."STATUS" IS '状态';
COMMENT ON COLUMN blade_visual."IS_DELETED" IS '是否已删除';
COMMENT ON COLUMN blade_visual."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：blade_visual_assets
-- ----------------------------
CREATE TABLE blade_visual_assets (
	"ID" NVARCHAR2(64) NOT NULL,
	"ASSETSNAME" NVARCHAR2(100),
	"ASSETSSIZE" NVARCHAR2(50),
	"ASSETSTIME" TIMESTAMP,
	"ASSETSTYPE" NVARCHAR2(50),
	"ASSETSURL" NVARCHAR2(255),
	"F_TENANT_ID" NVARCHAR2(50) NOT NULL

, PRIMARY KEY (id,f_tenant_id)
);
COMMENT ON TABLE blade_visual_assets IS '大屏静态资源';
COMMENT ON COLUMN blade_visual_assets."ID" IS '主键';
COMMENT ON COLUMN blade_visual_assets."ASSETSNAME" IS '资源名称';
COMMENT ON COLUMN blade_visual_assets."ASSETSSIZE" IS '资源大小 1M';
COMMENT ON COLUMN blade_visual_assets."ASSETSTIME" IS '资源上传时间';
COMMENT ON COLUMN blade_visual_assets."ASSETSTYPE" IS '资源后缀名';
COMMENT ON COLUMN blade_visual_assets."ASSETSURL" IS '资源地址';
COMMENT ON COLUMN blade_visual_assets."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：blade_visual_category
-- ----------------------------
CREATE TABLE blade_visual_category (
	"ID" NVARCHAR2(64) NOT NULL,
	"CATEGORY_KEY" NVARCHAR2(12),
	"CATEGORY_VALUE" NVARCHAR2(64),
	"IS_DELETED" NUMBER DEFAULT '0',
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0'

, PRIMARY KEY (id,f_tenant_id)
);
COMMENT ON TABLE blade_visual_category IS '大屏分类';
COMMENT ON COLUMN blade_visual_category."ID" IS '主键';
COMMENT ON COLUMN blade_visual_category."CATEGORY_KEY" IS '分类键值';
COMMENT ON COLUMN blade_visual_category."CATEGORY_VALUE" IS '分类名称';
COMMENT ON COLUMN blade_visual_category."IS_DELETED" IS '是否已删除';
COMMENT ON COLUMN blade_visual_category."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：blade_visual_component
-- ----------------------------
CREATE TABLE blade_visual_component (
	"ID" NVARCHAR2(64) NOT NULL,
	"NAME" NVARCHAR2(50),
	"CONTENT" CLOB,
	"TYPE" NUMBER,
	"IMG" NVARCHAR2(255),
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0'

, PRIMARY KEY (id,f_tenant_id)
);
COMMENT ON TABLE blade_visual_component IS '大屏自定义组件';
COMMENT ON COLUMN blade_visual_component."ID" IS '主键';
COMMENT ON COLUMN blade_visual_component."NAME" IS '组件名称';
COMMENT ON COLUMN blade_visual_component."CONTENT" IS '组件内容';
COMMENT ON COLUMN blade_visual_component."TYPE" IS '';
COMMENT ON COLUMN blade_visual_component."IMG" IS '';
COMMENT ON COLUMN blade_visual_component."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：blade_visual_config
-- ----------------------------
CREATE TABLE blade_visual_config (
	"ID" NVARCHAR2(64) NOT NULL,
	"VISUAL_ID" NVARCHAR2(64),
	"DETAIL" CLOB,
	"COMPONENT" CLOB,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0'

, PRIMARY KEY (id,f_tenant_id)
);
COMMENT ON TABLE blade_visual_config IS '大屏信息配置';
COMMENT ON COLUMN blade_visual_config."ID" IS '主键';
COMMENT ON COLUMN blade_visual_config."VISUAL_ID" IS '可视化表主键';
COMMENT ON COLUMN blade_visual_config."DETAIL" IS '配置json';
COMMENT ON COLUMN blade_visual_config."COMPONENT" IS '组件json';
COMMENT ON COLUMN blade_visual_config."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：blade_visual_db
-- ----------------------------
CREATE TABLE blade_visual_db (
	"ID" NVARCHAR2(64) NOT NULL,
	"NAME" NVARCHAR2(100),
	"DRIVER_CLASS" NVARCHAR2(100),
	"URL" NVARCHAR2(500),
	"USERNAME" NVARCHAR2(50),
	"PASSWORD" NVARCHAR2(100),
	"REMARK" NVARCHAR2(255),
	"CREATE_USER" NVARCHAR2(64),
	"CREATE_DEPT" NVARCHAR2(64),
	"CREATE_TIME" TIMESTAMP,
	"UPDATE_USER" NVARCHAR2(64),
	"UPDATE_TIME" TIMESTAMP,
	"STATUS" NUMBER,
	"IS_DELETED" NUMBER,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0'

, PRIMARY KEY (id,f_tenant_id)
);
COMMENT ON TABLE blade_visual_db IS '大屏数据源';
COMMENT ON COLUMN blade_visual_db."ID" IS '主键';
COMMENT ON COLUMN blade_visual_db."NAME" IS '名称';
COMMENT ON COLUMN blade_visual_db."DRIVER_CLASS" IS '驱动类';
COMMENT ON COLUMN blade_visual_db."URL" IS '连接地址';
COMMENT ON COLUMN blade_visual_db."USERNAME" IS '用户名';
COMMENT ON COLUMN blade_visual_db."PASSWORD" IS '密码';
COMMENT ON COLUMN blade_visual_db."REMARK" IS '备注';
COMMENT ON COLUMN blade_visual_db."CREATE_USER" IS '创建人';
COMMENT ON COLUMN blade_visual_db."CREATE_DEPT" IS '创建部门';
COMMENT ON COLUMN blade_visual_db."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN blade_visual_db."UPDATE_USER" IS '修改人';
COMMENT ON COLUMN blade_visual_db."UPDATE_TIME" IS '修改时间';
COMMENT ON COLUMN blade_visual_db."STATUS" IS '状态';
COMMENT ON COLUMN blade_visual_db."IS_DELETED" IS '是否已删除';
COMMENT ON COLUMN blade_visual_db."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：blade_visual_glob
-- ----------------------------
CREATE TABLE blade_visual_glob (
	"ID" NVARCHAR2(64) NOT NULL,
	"GLOBALNAME" NVARCHAR2(255),
	"GLOBALKEY" NVARCHAR2(255),
	"GLOBALVALUE" NVARCHAR2(2000),
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0'

, PRIMARY KEY (id,f_tenant_id)
);
COMMENT ON TABLE blade_visual_glob IS '大屏全局变量';
COMMENT ON COLUMN blade_visual_glob."ID" IS '主键';
COMMENT ON COLUMN blade_visual_glob."GLOBALNAME" IS '变量名称';
COMMENT ON COLUMN blade_visual_glob."GLOBALKEY" IS '变量Key';
COMMENT ON COLUMN blade_visual_glob."GLOBALVALUE" IS '变量值';
COMMENT ON COLUMN blade_visual_glob."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：blade_visual_map
-- ----------------------------
CREATE TABLE blade_visual_map (
	"ID" NVARCHAR2(64) NOT NULL,
	"NAME" NVARCHAR2(255),
	"DATA" CLOB,
	"CODE" NVARCHAR2(20),
	"MAP_LEVEL" NUMBER,
	"PARENT_ID" NVARCHAR2(64),
	"PARENT_CODE" NVARCHAR2(20),
	"ANCESTORS" NVARCHAR2(255),
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0'

, PRIMARY KEY (id,f_tenant_id)
);
COMMENT ON TABLE blade_visual_map IS '大屏地图';
COMMENT ON COLUMN blade_visual_map."ID" IS '主键';
COMMENT ON COLUMN blade_visual_map."NAME" IS '地图名称';
COMMENT ON COLUMN blade_visual_map."DATA" IS '地图数据';
COMMENT ON COLUMN blade_visual_map."CODE" IS '地图编码';
COMMENT ON COLUMN blade_visual_map."MAP_LEVEL" IS '地图级别 0:国家 1:省份 2:城市 3:区县';
COMMENT ON COLUMN blade_visual_map."PARENT_ID" IS '上级ID';
COMMENT ON COLUMN blade_visual_map."PARENT_CODE" IS '上级编码';
COMMENT ON COLUMN blade_visual_map."ANCESTORS" IS '祖编码';
COMMENT ON COLUMN blade_visual_map."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：blade_visual_record
-- ----------------------------
CREATE TABLE blade_visual_record (
	"ID" NVARCHAR2(64) NOT NULL,
	"NAME" NVARCHAR2(255),
	"URL" NVARCHAR2(255),
	"DATATYPE" NUMBER,
	"DATAMETHOD" NVARCHAR2(255),
	"DATAHEADER" NVARCHAR2(2000),
	"DATA" NVARCHAR2(2000),
	"DATAQUERY" NVARCHAR2(2000),
	"DATAQUERYTYPE" NVARCHAR2(255),
	"DATAFORMATTER" CLOB,
	"PROXY" NUMBER,
	"WSURL" NVARCHAR2(255),
	"DBSQL" NVARCHAR2(255),
	"FSQL" CLOB,
	"RESULT" NVARCHAR2(255),
	"MQTTURL" NVARCHAR2(255),
	"MQTTCONFIG" CLOB,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0'

, PRIMARY KEY (id,f_tenant_id)
);
COMMENT ON TABLE blade_visual_record IS '大屏数据集';
COMMENT ON COLUMN blade_visual_record."ID" IS '主键';
COMMENT ON COLUMN blade_visual_record."NAME" IS '名称';
COMMENT ON COLUMN blade_visual_record."URL" IS '请求地址';
COMMENT ON COLUMN blade_visual_record."DATATYPE" IS '数据集类型';
COMMENT ON COLUMN blade_visual_record."DATAMETHOD" IS '请求方法';
COMMENT ON COLUMN blade_visual_record."DATAHEADER" IS '请求头部';
COMMENT ON COLUMN blade_visual_record."DATA" IS '请求数据';
COMMENT ON COLUMN blade_visual_record."DATAQUERY" IS '请求参数';
COMMENT ON COLUMN blade_visual_record."DATAQUERYTYPE" IS '请求参数类型';
COMMENT ON COLUMN blade_visual_record."DATAFORMATTER" IS '过滤器';
COMMENT ON COLUMN blade_visual_record."PROXY" IS '开启跨域';
COMMENT ON COLUMN blade_visual_record."WSURL" IS 'WebSocket地址';
COMMENT ON COLUMN blade_visual_record."DBSQL" IS '';
COMMENT ON COLUMN blade_visual_record."FSQL" IS '';
COMMENT ON COLUMN blade_visual_record."RESULT" IS '';
COMMENT ON COLUMN blade_visual_record."MQTTURL" IS 'MQTT地址';
COMMENT ON COLUMN blade_visual_record."MQTTCONFIG" IS 'MQTT配置';
COMMENT ON COLUMN blade_visual_record."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：ct293714178055641925
-- ----------------------------
CREATE TABLE ct293714178055641925 (
	"SELECTFIELD107" NVARCHAR2(255),
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_FOREIGNID" NVARCHAR2(50),
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0'

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE ct293714178055641925 IS '子表';
COMMENT ON COLUMN ct293714178055641925."SELECTFIELD107" IS '乐器';
COMMENT ON COLUMN ct293714178055641925."F_ID" IS '主键';
COMMENT ON COLUMN ct293714178055641925."F_FOREIGNID" IS '外键';
COMMENT ON COLUMN ct293714178055641925."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：ct294012196562705414
-- ----------------------------
CREATE TABLE ct294012196562705414 (
	"DATEFIELD117" TIMESTAMP,
	"DATEFIELD118" TIMESTAMP,
	"COMINPUTFIELD119" NVARCHAR2(255),
	"COMINPUTFIELD120" NVARCHAR2(255),
	"TEXTAREAFIELD121" NVARCHAR2(255),
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_FOREIGNID" NVARCHAR2(50),
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0'

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE ct294012196562705414 IS '子表';
COMMENT ON COLUMN ct294012196562705414."DATEFIELD117" IS '开始日期';
COMMENT ON COLUMN ct294012196562705414."DATEFIELD118" IS '结束日期';
COMMENT ON COLUMN ct294012196562705414."COMINPUTFIELD119" IS '公司名称';
COMMENT ON COLUMN ct294012196562705414."COMINPUTFIELD120" IS '担任职务';
COMMENT ON COLUMN ct294012196562705414."TEXTAREAFIELD121" IS '主要工作内容';
COMMENT ON COLUMN ct294012196562705414."F_ID" IS '主键';
COMMENT ON COLUMN ct294012196562705414."F_FOREIGNID" IS '外键';
COMMENT ON COLUMN ct294012196562705414."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：ct294022926200511493
-- ----------------------------
CREATE TABLE ct294022926200511493 (
	"COMINPUTFIELD145" NVARCHAR2(255),
	"COMINPUTFIELD146" NVARCHAR2(255),
	"COMINPUTFIELD147" NVARCHAR2(255),
	"COMINPUTFIELD148" NVARCHAR2(255),
	"COMINPUTFIELD149" NVARCHAR2(255),
	"COMINPUTFIELD150" NVARCHAR2(255),
	"COMINPUTFIELD151" NVARCHAR2(255),
	"COMINPUTFIELD152" NVARCHAR2(255),
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_FOREIGNID" NVARCHAR2(50),
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0'

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE ct294022926200511493 IS '子表';
COMMENT ON COLUMN ct294022926200511493."COMINPUTFIELD145" IS '包保人社区工作者姓名';
COMMENT ON COLUMN ct294022926200511493."COMINPUTFIELD146" IS '包保人社区工作者联系方式';
COMMENT ON COLUMN ct294022926200511493."COMINPUTFIELD147" IS '包保人医务工作者姓名';
COMMENT ON COLUMN ct294022926200511493."COMINPUTFIELD148" IS '包保人医务工作者联系方式';
COMMENT ON COLUMN ct294022926200511493."COMINPUTFIELD149" IS '包保人公安民警姓名';
COMMENT ON COLUMN ct294022926200511493."COMINPUTFIELD150" IS '包保人公安民警联系方式';
COMMENT ON COLUMN ct294022926200511493."COMINPUTFIELD151" IS '包保人志愿者姓名';
COMMENT ON COLUMN ct294022926200511493."COMINPUTFIELD152" IS '包保人志愿者联系方式';
COMMENT ON COLUMN ct294022926200511493."F_ID" IS '主键';
COMMENT ON COLUMN ct294022926200511493."F_FOREIGNID" IS '外键';
COMMENT ON COLUMN ct294022926200511493."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：ct294031961024928774
-- ----------------------------
CREATE TABLE ct294031961024928774 (
	"SELECTFIELD108" NVARCHAR2(255),
	"SELECTFIELD109" NVARCHAR2(255),
	"NUMINPUTFIELD112" NUMBER(10,0),
	"COMINPUTFIELD111" NVARCHAR2(255),
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_FOREIGNID" NVARCHAR2(50),
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0'

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE ct294031961024928774 IS '子表';
COMMENT ON COLUMN ct294031961024928774."SELECTFIELD108" IS '关联目标';
COMMENT ON COLUMN ct294031961024928774."SELECTFIELD109" IS '目标达成度';
COMMENT ON COLUMN ct294031961024928774."NUMINPUTFIELD112" IS '评分';
COMMENT ON COLUMN ct294031961024928774."COMINPUTFIELD111" IS '情况描述';
COMMENT ON COLUMN ct294031961024928774."F_ID" IS '主键';
COMMENT ON COLUMN ct294031961024928774."F_FOREIGNID" IS '外键';
COMMENT ON COLUMN ct294031961024928774."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：ct294031961024928775
-- ----------------------------
CREATE TABLE ct294031961024928775 (
	"SELECTFIELD114" NVARCHAR2(255),
	"SELECTFIELD115" NVARCHAR2(255),
	"NUMINPUTFIELD116" NUMBER(10,0),
	"COMINPUTFIELD117" NVARCHAR2(255),
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_FOREIGNID" NVARCHAR2(50),
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0'

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE ct294031961024928775 IS '子表';
COMMENT ON COLUMN ct294031961024928775."SELECTFIELD114" IS '关联结果';
COMMENT ON COLUMN ct294031961024928775."SELECTFIELD115" IS '关键结果达成度';
COMMENT ON COLUMN ct294031961024928775."NUMINPUTFIELD116" IS '评分';
COMMENT ON COLUMN ct294031961024928775."COMINPUTFIELD117" IS '情况描述';
COMMENT ON COLUMN ct294031961024928775."F_ID" IS '主键';
COMMENT ON COLUMN ct294031961024928775."F_FOREIGNID" IS '外键';
COMMENT ON COLUMN ct294031961024928775."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：ct294037561750363142
-- ----------------------------
CREATE TABLE ct294037561750363142 (
	"COMINPUTFIELD108" NVARCHAR2(255),
	"DATEFIELD109" TIMESTAMP,
	"COMINPUTFIELD110" NVARCHAR2(255),
	"USERSELECTFIELD111" NVARCHAR2(255),
	"COMINPUTFIELD124" NVARCHAR2(255),
	"SELECTFIELD112" NVARCHAR2(255),
	"NUMINPUTFIELD113" NUMBER(10,0),
	"UPLOADFZFIELD114" CLOB,
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_FOREIGNID" NVARCHAR2(50),
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0'

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE ct294037561750363142 IS '子表';
COMMENT ON COLUMN ct294037561750363142."COMINPUTFIELD108" IS '巡检结果';
COMMENT ON COLUMN ct294037561750363142."DATEFIELD109" IS '巡检日期';
COMMENT ON COLUMN ct294037561750363142."COMINPUTFIELD110" IS '情况说明';
COMMENT ON COLUMN ct294037561750363142."USERSELECTFIELD111" IS '巡检人';
COMMENT ON COLUMN ct294037561750363142."COMINPUTFIELD124" IS '巡检人手机';
COMMENT ON COLUMN ct294037561750363142."SELECTFIELD112" IS '巡检分类';
COMMENT ON COLUMN ct294037561750363142."NUMINPUTFIELD113" IS '设备完好率';
COMMENT ON COLUMN ct294037561750363142."UPLOADFZFIELD114" IS '现场照片';
COMMENT ON COLUMN ct294037561750363142."F_ID" IS '主键';
COMMENT ON COLUMN ct294037561750363142."F_FOREIGNID" IS '外键';
COMMENT ON COLUMN ct294037561750363142."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：ct294037561750363143
-- ----------------------------
CREATE TABLE ct294037561750363143 (
	"COMINPUTFIELD116" NVARCHAR2(255),
	"DATEFIELD117" TIMESTAMP,
	"COMINPUTFIELD118" NVARCHAR2(255),
	"USERSELECTFIELD119" NVARCHAR2(255),
	"COMINPUTFIELD125" NVARCHAR2(255),
	"UPLOADFZFIELD122" CLOB,
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_FOREIGNID" NVARCHAR2(50),
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0'

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE ct294037561750363143 IS '子表';
COMMENT ON COLUMN ct294037561750363143."COMINPUTFIELD116" IS '维修结果';
COMMENT ON COLUMN ct294037561750363143."DATEFIELD117" IS '维修日期';
COMMENT ON COLUMN ct294037561750363143."COMINPUTFIELD118" IS '维修内容';
COMMENT ON COLUMN ct294037561750363143."USERSELECTFIELD119" IS '维修人';
COMMENT ON COLUMN ct294037561750363143."COMINPUTFIELD125" IS '维修人手机';
COMMENT ON COLUMN ct294037561750363143."UPLOADFZFIELD122" IS '现场照片';
COMMENT ON COLUMN ct294037561750363143."F_ID" IS '主键';
COMMENT ON COLUMN ct294037561750363143."F_FOREIGNID" IS '外键';
COMMENT ON COLUMN ct294037561750363143."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：ct294099893327272966
-- ----------------------------
CREATE TABLE ct294099893327272966 (
	"COMINPUTFIELD108" NVARCHAR2(255),
	"DATEFIELD109" TIMESTAMP,
	"DATEFIELD110" TIMESTAMP,
	"COMINPUTFIELD111" NVARCHAR2(255),
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_FOREIGNID" NVARCHAR2(50),
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0'

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE ct294099893327272966 IS '子表';
COMMENT ON COLUMN ct294099893327272966."COMINPUTFIELD108" IS '出差地点';
COMMENT ON COLUMN ct294099893327272966."DATEFIELD109" IS '开始日期';
COMMENT ON COLUMN ct294099893327272966."DATEFIELD110" IS '结束日期';
COMMENT ON COLUMN ct294099893327272966."COMINPUTFIELD111" IS '出差事由';
COMMENT ON COLUMN ct294099893327272966."F_ID" IS '主键';
COMMENT ON COLUMN ct294099893327272966."F_FOREIGNID" IS '外键';
COMMENT ON COLUMN ct294099893327272966."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：ct294376098702073542
-- ----------------------------
CREATE TABLE ct294376098702073542 (
	"COMINPUTFIELD106" NVARCHAR2(255),
	"COMINPUTFIELD107" NVARCHAR2(255),
	"NUMINPUTFIELD108" NUMBER(10,0),
	"NUMINPUTFIELD109" NUMBER(10,0),
	"NUMINPUTFIELD110" NUMBER(10,0),
	"NUMINPUTFIELD111" NUMBER(10,0),
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_FOREIGNID" NVARCHAR2(50),
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0'

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE ct294376098702073542 IS '子表';
COMMENT ON COLUMN ct294376098702073542."COMINPUTFIELD106" IS '商品名';
COMMENT ON COLUMN ct294376098702073542."COMINPUTFIELD107" IS '编号';
COMMENT ON COLUMN ct294376098702073542."NUMINPUTFIELD108" IS '销售价';
COMMENT ON COLUMN ct294376098702073542."NUMINPUTFIELD109" IS '当前库存';
COMMENT ON COLUMN ct294376098702073542."NUMINPUTFIELD110" IS '数量';
COMMENT ON COLUMN ct294376098702073542."NUMINPUTFIELD111" IS '单品总价';
COMMENT ON COLUMN ct294376098702073542."F_ID" IS '主键';
COMMENT ON COLUMN ct294376098702073542."F_FOREIGNID" IS '外键';
COMMENT ON COLUMN ct294376098702073542."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：ct294382866144468678
-- ----------------------------
CREATE TABLE ct294382866144468678 (
	"COMINPUTFIELD111" NVARCHAR2(255),
	"COMINPUTFIELD112" NVARCHAR2(255),
	"NUMINPUTFIELD113" NUMBER(10,0),
	"NUMINPUTFIELD114" NUMBER(10,0),
	"CALCULATEFIELD118" NVARCHAR2(255),
	"NUMINPUTFIELD116" NUMBER(10,0),
	"NUMINPUTFIELD117" NUMBER(10,0),
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_FOREIGNID" NVARCHAR2(50),
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0'

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE ct294382866144468678 IS '子表';
COMMENT ON COLUMN ct294382866144468678."COMINPUTFIELD111" IS '商品名称';
COMMENT ON COLUMN ct294382866144468678."COMINPUTFIELD112" IS '编号';
COMMENT ON COLUMN ct294382866144468678."NUMINPUTFIELD113" IS '采购价';
COMMENT ON COLUMN ct294382866144468678."NUMINPUTFIELD114" IS '数量';
COMMENT ON COLUMN ct294382866144468678."CALCULATEFIELD118" IS '单品总价';
COMMENT ON COLUMN ct294382866144468678."NUMINPUTFIELD116" IS '当前库存';
COMMENT ON COLUMN ct294382866144468678."NUMINPUTFIELD117" IS '入库后库存';
COMMENT ON COLUMN ct294382866144468678."F_ID" IS '主键';
COMMENT ON COLUMN ct294382866144468678."F_FOREIGNID" IS '外键';
COMMENT ON COLUMN ct294382866144468678."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：ct395899726056134917
-- ----------------------------
CREATE TABLE ct395899726056134917 (
	"COMSELECTFIELD111" NVARCHAR2(255),
	"DEPSELECTFIELD112" NVARCHAR2(255),
	"USERSELECTFIELD113" NVARCHAR2(255),
	"DATEFIELD114" TIMESTAMP,
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_FOREIGNID" NVARCHAR2(50),
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0'

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE ct395899726056134917 IS '3.4.6新增功能汇总示例-子表';
COMMENT ON COLUMN ct395899726056134917."COMSELECTFIELD111" IS '默认当前组织';
COMMENT ON COLUMN ct395899726056134917."DEPSELECTFIELD112" IS '默认当前部门';
COMMENT ON COLUMN ct395899726056134917."USERSELECTFIELD113" IS '默认当前用户';
COMMENT ON COLUMN ct395899726056134917."DATEFIELD114" IS '默认当前系统时间';
COMMENT ON COLUMN ct395899726056134917."F_ID" IS '主键';
COMMENT ON COLUMN ct395899726056134917."F_FOREIGNID" IS '外键';
COMMENT ON COLUMN ct395899726056134917."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：ct469496947162544645
-- ----------------------------
CREATE TABLE ct469496947162544645 (
	"INPUTFIELD110" NVARCHAR2(255),
	"SELECTFIELD112" NVARCHAR2(255),
	"CASCADERFIELD114" NVARCHAR2(255),
	"TEXTAREAFIELD113" NVARCHAR2(255),
	"INPUTNUMBERFIELD115" NUMBER(38,15),
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_FOREIGN_ID" NVARCHAR2(50),
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0'

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE ct469496947162544645 IS '复杂表头示例-子表';
COMMENT ON COLUMN ct469496947162544645."INPUTFIELD110" IS '摘要';
COMMENT ON COLUMN ct469496947162544645."SELECTFIELD112" IS '下拉选择';
COMMENT ON COLUMN ct469496947162544645."CASCADERFIELD114" IS '级联选择';
COMMENT ON COLUMN ct469496947162544645."TEXTAREAFIELD113" IS '说明';
COMMENT ON COLUMN ct469496947162544645."INPUTNUMBERFIELD115" IS '金额';
COMMENT ON COLUMN ct469496947162544645."F_ID" IS '主键';
COMMENT ON COLUMN ct469496947162544645."F_FOREIGN_ID" IS '外键';
COMMENT ON COLUMN ct469496947162544645."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：ct469499339585157637
-- ----------------------------
CREATE TABLE ct469499339585157637 (
	"ORGANIZESELECTFIELD114" NVARCHAR2(255),
	"DEPSELECTFIELD115" NVARCHAR2(255),
	"POSSELECTFIELD116" NVARCHAR2(255),
	"USERSELECTFIELD117" NVARCHAR2(255),
	"USERSSELECTFIELD118" NVARCHAR2(255),
	"GROUPSELECTFIELD119" NVARCHAR2(255),
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_FOREIGN_ID" NVARCHAR2(50),
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0'

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE ct469499339585157637 IS '高级控件和默认查询-子表';
COMMENT ON COLUMN ct469499339585157637."ORGANIZESELECTFIELD114" IS '组织选择';
COMMENT ON COLUMN ct469499339585157637."DEPSELECTFIELD115" IS '部门选择';
COMMENT ON COLUMN ct469499339585157637."POSSELECTFIELD116" IS '岗位选择';
COMMENT ON COLUMN ct469499339585157637."USERSELECTFIELD117" IS '用户选择';
COMMENT ON COLUMN ct469499339585157637."USERSSELECTFIELD118" IS '用户组件';
COMMENT ON COLUMN ct469499339585157637."GROUPSELECTFIELD119" IS '分组选择';
COMMENT ON COLUMN ct469499339585157637."F_ID" IS '主键';
COMMENT ON COLUMN ct469499339585157637."F_FOREIGN_ID" IS '外键';
COMMENT ON COLUMN ct469499339585157637."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：ct585077626071155013
-- ----------------------------
CREATE TABLE ct585077626071155013 (
	"INPUTFIELD108" NVARCHAR2(255),
	"INPUTFIELD109" NVARCHAR2(255),
	"INPUTFIELD110" NVARCHAR2(255),
	"INPUTFIELD112" NVARCHAR2(255),
	"INPUTNUMBERFIELD113" NUMBER(38,15),
	"INPUTNUMBERFIELD114" NUMBER(38,15),
	"CALCULATEFIELD115" NUMBER(38,2),
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_FOREIGN_ID" NVARCHAR2(50),
	"F_TENANT_ID" NVARCHAR2(50) NOT NULL

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE ct585077626071155013 IS '采购合同-子表';
COMMENT ON COLUMN ct585077626071155013."INPUTFIELD108" IS '产品编号';
COMMENT ON COLUMN ct585077626071155013."INPUTFIELD109" IS '产品名称';
COMMENT ON COLUMN ct585077626071155013."INPUTFIELD110" IS '规格型号';
COMMENT ON COLUMN ct585077626071155013."INPUTFIELD112" IS '单位';
COMMENT ON COLUMN ct585077626071155013."INPUTNUMBERFIELD113" IS '单价';
COMMENT ON COLUMN ct585077626071155013."INPUTNUMBERFIELD114" IS '数量';
COMMENT ON COLUMN ct585077626071155013."CALCULATEFIELD115" IS '小计';
COMMENT ON COLUMN ct585077626071155013."F_ID" IS '主键';
COMMENT ON COLUMN ct585077626071155013."F_FOREIGN_ID" IS '外键';
COMMENT ON COLUMN ct585077626071155013."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：ct585113061728190981
-- ----------------------------
CREATE TABLE ct585113061728190981 (
	"DATEPICKERFIELD101" TIMESTAMP,
	"INPUTNUMBERFIELD103" NUMBER(38,15),
	"INPUTNUMBERFIELD104" NUMBER(38,15),
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_FOREIGN_ID" NVARCHAR2(50),
	"F_TENANT_ID" NVARCHAR2(50) NOT NULL,
	"INPUTNUMBERFIELD105" NUMBER(38,3)

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE ct585113061728190981 IS '水电费用-子表';
COMMENT ON COLUMN ct585113061728190981."DATEPICKERFIELD101" IS '费用月份';
COMMENT ON COLUMN ct585113061728190981."INPUTNUMBERFIELD103" IS '用水量';
COMMENT ON COLUMN ct585113061728190981."INPUTNUMBERFIELD104" IS '单价';
COMMENT ON COLUMN ct585113061728190981."F_ID" IS '主键';
COMMENT ON COLUMN ct585113061728190981."F_FOREIGN_ID" IS '外键';
COMMENT ON COLUMN ct585113061728190981."F_TENANT_ID" IS '租户id';
COMMENT ON COLUMN ct585113061728190981."INPUTNUMBERFIELD105" IS '合计';
-- ----------------------------
-- 表名：ct585113061732385285
-- ----------------------------
CREATE TABLE ct585113061732385285 (
	"DATEPICKERFIELD113" TIMESTAMP,
	"INPUTNUMBERFIELD114" NUMBER(38,15),
	"INPUTNUMBERFIELD115" NUMBER(38,15),
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_FOREIGN_ID" NVARCHAR2(50),
	"F_TENANT_ID" NVARCHAR2(50) NOT NULL,
	"INPUTNUMBERFIELD116" NUMBER(38,3)

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE ct585113061732385285 IS '水电费用-子表';
COMMENT ON COLUMN ct585113061732385285."DATEPICKERFIELD113" IS '费用月份';
COMMENT ON COLUMN ct585113061732385285."INPUTNUMBERFIELD114" IS '用电量';
COMMENT ON COLUMN ct585113061732385285."INPUTNUMBERFIELD115" IS '单价';
COMMENT ON COLUMN ct585113061732385285."F_ID" IS '主键';
COMMENT ON COLUMN ct585113061732385285."F_FOREIGN_ID" IS '外键';
COMMENT ON COLUMN ct585113061732385285."F_TENANT_ID" IS '租户id';
COMMENT ON COLUMN ct585113061732385285."INPUTNUMBERFIELD116" IS '合计';
-- ----------------------------
-- 表名：ct585115948990595589
-- ----------------------------
CREATE TABLE ct585115948990595589 (
	"INPUTFIELD111" NVARCHAR2(255),
	"INPUTFIELD112" NVARCHAR2(255),
	"INPUTFIELD113" NVARCHAR2(255),
	"INPUTNUMBERFIELD114" NUMBER(38,15),
	"INPUTNUMBERFIELD115" NUMBER(38,15),
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_FOREIGN_ID" NVARCHAR2(50),
	"F_TENANT_ID" NVARCHAR2(50) NOT NULL,
	"INPUTNUMBERFIELD116" NUMBER(18,3)

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE ct585115948990595589 IS '报价信息-子表';
COMMENT ON COLUMN ct585115948990595589."INPUTFIELD111" IS '品名';
COMMENT ON COLUMN ct585115948990595589."INPUTFIELD112" IS '规格';
COMMENT ON COLUMN ct585115948990595589."INPUTFIELD113" IS '单位';
COMMENT ON COLUMN ct585115948990595589."INPUTNUMBERFIELD114" IS '单价';
COMMENT ON COLUMN ct585115948990595589."INPUTNUMBERFIELD115" IS '数量';
COMMENT ON COLUMN ct585115948990595589."F_ID" IS '主键';
COMMENT ON COLUMN ct585115948990595589."F_FOREIGN_ID" IS '外键';
COMMENT ON COLUMN ct585115948990595589."F_TENANT_ID" IS '租户id';
COMMENT ON COLUMN ct585115948990595589."INPUTNUMBERFIELD116" IS '小计';
-- ----------------------------
-- 表名：ct585115958725575173
-- ----------------------------
CREATE TABLE ct585115958725575173 (
	"DATEPICKERFIELD115" TIMESTAMP,
	"DATEPICKERFIELD116" TIMESTAMP,
	"INPUTFIELD117" NVARCHAR2(255),
	"INPUTFIELD118" NVARCHAR2(255),
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_FOREIGN_ID" NVARCHAR2(50),
	"F_TENANT_ID" NVARCHAR2(50) NOT NULL

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE ct585115958725575173 IS '入职申请-子表';
COMMENT ON COLUMN ct585115958725575173."DATEPICKERFIELD115" IS '开始年月';
COMMENT ON COLUMN ct585115958725575173."DATEPICKERFIELD116" IS '日期选择';
COMMENT ON COLUMN ct585115958725575173."INPUTFIELD117" IS '院校名称';
COMMENT ON COLUMN ct585115958725575173."INPUTFIELD118" IS '专业';
COMMENT ON COLUMN ct585115958725575173."F_ID" IS '主键';
COMMENT ON COLUMN ct585115958725575173."F_FOREIGN_ID" IS '外键';
COMMENT ON COLUMN ct585115958725575173."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：ct585115958725575174
-- ----------------------------
CREATE TABLE ct585115958725575174 (
	"DATEPICKERFIELD120" TIMESTAMP,
	"DATEPICKERFIELD121" TIMESTAMP,
	"INPUTFIELD122" NVARCHAR2(255),
	"INPUTFIELD123" NVARCHAR2(255),
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_FOREIGN_ID" NVARCHAR2(50),
	"F_TENANT_ID" NVARCHAR2(50) NOT NULL

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE ct585115958725575174 IS '入职申请-子表';
COMMENT ON COLUMN ct585115958725575174."DATEPICKERFIELD120" IS '开始年月';
COMMENT ON COLUMN ct585115958725575174."DATEPICKERFIELD121" IS '日期选择';
COMMENT ON COLUMN ct585115958725575174."INPUTFIELD122" IS '工作单位';
COMMENT ON COLUMN ct585115958725575174."INPUTFIELD123" IS '职位';
COMMENT ON COLUMN ct585115958725575174."F_ID" IS '主键';
COMMENT ON COLUMN ct585115958725575174."F_FOREIGN_ID" IS '外键';
COMMENT ON COLUMN ct585115958725575174."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：data_report
-- ----------------------------
CREATE TABLE data_report (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_CATEGORYID" NVARCHAR2(50),
	"F_FULLNAME" NVARCHAR2(50),
	"F_CONTENT" CLOB,
	"F_ENCODE" NVARCHAR2(50),
	"F_SORTCODE" NVARCHAR2(50),
	"F_ENABLEDMARK" NUMBER,
	"F_DESCRIPTION" NVARCHAR2(500),
	"F_CREATORTIME" TIMESTAMP,
	"F_CREATORUSERID" NVARCHAR2(50),
	"F_LASTMODIFYTIME" TIMESTAMP,
	"F_LASTMODIFYUSERID" NVARCHAR2(50),
	"F_DELETEMARK" NUMBER,
	"F_DELETETIME" TIMESTAMP,
	"F_DELETEUSERID" NVARCHAR2(50),
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0'

, PRIMARY KEY (F_Id,f_tenant_id)
);
COMMENT ON TABLE data_report IS '数据报表';
COMMENT ON COLUMN data_report."F_ID" IS '主键ID';
COMMENT ON COLUMN data_report."F_CATEGORYID" IS '分组ID';
COMMENT ON COLUMN data_report."F_FULLNAME" IS '报表名称';
COMMENT ON COLUMN data_report."F_CONTENT" IS '报表内容';
COMMENT ON COLUMN data_report."F_ENCODE" IS '编码';
COMMENT ON COLUMN data_report."F_SORTCODE" IS '排序码(默认0)';
COMMENT ON COLUMN data_report."F_ENABLEDMARK" IS '状态(0-默认，禁用，1-启用)';
COMMENT ON COLUMN data_report."F_DESCRIPTION" IS '描述或说明';
COMMENT ON COLUMN data_report."F_CREATORTIME" IS '创建时间';
COMMENT ON COLUMN data_report."F_CREATORUSERID" IS '创建用户';
COMMENT ON COLUMN data_report."F_LASTMODIFYTIME" IS '修改时间';
COMMENT ON COLUMN data_report."F_LASTMODIFYUSERID" IS '修改用户';
COMMENT ON COLUMN data_report."F_DELETEMARK" IS '删除标志(默认0)';
COMMENT ON COLUMN data_report."F_DELETETIME" IS '删除时间';
COMMENT ON COLUMN data_report."F_DELETEUSERID" IS '删除用户id';
COMMENT ON COLUMN data_report."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：ext_big_data
-- ----------------------------
CREATE TABLE ext_big_data (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_EN_CODE" NVARCHAR2(200),
	"F_FULL_NAME" NVARCHAR2(200),
	"F_SORT_CODE" NUMBER,
	"F_CREATOR_TIME" TIMESTAMP,
	"F_CREATOR_USER_ID" NVARCHAR2(50),
	"F_LAST_MODIFY_TIME" TIMESTAMP,
	"F_LAST_MODIFY_USER_ID" NVARCHAR2(50),
	"F_DELETE_TIME" TIMESTAMP,
	"F_DELETE_USER_ID" NVARCHAR2(50),
	"F_DELETE_MARK" NUMBER,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0'

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE ext_big_data IS '大数据测试';
COMMENT ON COLUMN ext_big_data."F_ID" IS '自然主键';
COMMENT ON COLUMN ext_big_data."F_EN_CODE" IS '编号';
COMMENT ON COLUMN ext_big_data."F_FULL_NAME" IS '名称';
COMMENT ON COLUMN ext_big_data."F_SORT_CODE" IS '排序';
COMMENT ON COLUMN ext_big_data."F_CREATOR_TIME" IS '创建时间';
COMMENT ON COLUMN ext_big_data."F_CREATOR_USER_ID" IS '创建用户';
COMMENT ON COLUMN ext_big_data."F_LAST_MODIFY_TIME" IS '修改时间';
COMMENT ON COLUMN ext_big_data."F_LAST_MODIFY_USER_ID" IS '修改用户';
COMMENT ON COLUMN ext_big_data."F_DELETE_TIME" IS '删除时间';
COMMENT ON COLUMN ext_big_data."F_DELETE_USER_ID" IS '删除用户';
COMMENT ON COLUMN ext_big_data."F_DELETE_MARK" IS '删除标志';
COMMENT ON COLUMN ext_big_data."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：ext_customer
-- ----------------------------
CREATE TABLE ext_customer (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_EN_CODE" NVARCHAR2(50),
	"F_CUSTOMER_NAME" NVARCHAR2(50),
	"F_ADDRESS" NVARCHAR2(255),
	"F_FULL_NAME" NVARCHAR2(50),
	"F_CONTACT_TEL" NVARCHAR2(50),
	"F_SORT_CODE" NUMBER,
	"F_CREATOR_TIME" TIMESTAMP,
	"F_CREATOR_USER_ID" NVARCHAR2(50),
	"F_LAST_MODIFY_TIME" TIMESTAMP,
	"F_LAST_MODIFY_USER_ID" NVARCHAR2(50),
	"F_DELETE_MARK" NUMBER,
	"F_DELETE_TIME" TIMESTAMP,
	"F_DELETE_USER_ID" NVARCHAR2(50),
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0'

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE ext_customer IS '客户信息';
COMMENT ON COLUMN ext_customer."F_ID" IS '主键';
COMMENT ON COLUMN ext_customer."F_EN_CODE" IS '编码';
COMMENT ON COLUMN ext_customer."F_CUSTOMER_NAME" IS '客户名称';
COMMENT ON COLUMN ext_customer."F_ADDRESS" IS '地址';
COMMENT ON COLUMN ext_customer."F_FULL_NAME" IS '名称';
COMMENT ON COLUMN ext_customer."F_CONTACT_TEL" IS '联系方式';
COMMENT ON COLUMN ext_customer."F_SORT_CODE" IS '排序';
COMMENT ON COLUMN ext_customer."F_CREATOR_TIME" IS '创建时间';
COMMENT ON COLUMN ext_customer."F_CREATOR_USER_ID" IS '创建用户';
COMMENT ON COLUMN ext_customer."F_LAST_MODIFY_TIME" IS '修改时间';
COMMENT ON COLUMN ext_customer."F_LAST_MODIFY_USER_ID" IS '修改用户';
COMMENT ON COLUMN ext_customer."F_DELETE_MARK" IS '删除标志';
COMMENT ON COLUMN ext_customer."F_DELETE_TIME" IS '删除时间';
COMMENT ON COLUMN ext_customer."F_DELETE_USER_ID" IS '删除用户';
COMMENT ON COLUMN ext_customer."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：ext_document
-- ----------------------------
CREATE TABLE ext_document (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_PARENT_ID" NVARCHAR2(50),
	"F_TYPE" NUMBER,
	"F_FULL_NAME" NVARCHAR2(200),
	"F_FILE_PATH" NVARCHAR2(2000),
	"F_FILE_SIZE" NVARCHAR2(50),
	"F_FILE_EXTENSION" NVARCHAR2(50),
	"F_READ_COUNT" NUMBER,
	"F_IS_SHARE" NUMBER,
	"F_SHARE_TIME" TIMESTAMP,
	"F_UPLOAD_URL" NVARCHAR2(255),
	"F_DESCRIPTION" NVARCHAR2(500),
	"F_ENABLED_MARK" NUMBER,
	"F_SORT_CODE" NUMBER,
	"F_CREATOR_TIME" TIMESTAMP,
	"F_CREATOR_USER_ID" NVARCHAR2(50),
	"F_LAST_MODIFY_TIME" TIMESTAMP,
	"F_LAST_MODIFY_USER_ID" NVARCHAR2(50),
	"F_DELETE_TIME" TIMESTAMP,
	"F_DELETE_USER_ID" NVARCHAR2(50),
	"F_DELETE_MARK" NUMBER,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0'

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE ext_document IS '知识文档';
COMMENT ON COLUMN ext_document."F_ID" IS '自然主键';
COMMENT ON COLUMN ext_document."F_PARENT_ID" IS '文档父级';
COMMENT ON COLUMN ext_document."F_TYPE" IS '文档分类';
COMMENT ON COLUMN ext_document."F_FULL_NAME" IS '文件名称';
COMMENT ON COLUMN ext_document."F_FILE_PATH" IS '文件路径';
COMMENT ON COLUMN ext_document."F_FILE_SIZE" IS '文件大小';
COMMENT ON COLUMN ext_document."F_FILE_EXTENSION" IS '文件后缀';
COMMENT ON COLUMN ext_document."F_READ_COUNT" IS '阅读数量';
COMMENT ON COLUMN ext_document."F_IS_SHARE" IS '是否共享';
COMMENT ON COLUMN ext_document."F_SHARE_TIME" IS '共享时间';
COMMENT ON COLUMN ext_document."F_UPLOAD_URL" IS '下载地址';
COMMENT ON COLUMN ext_document."F_DESCRIPTION" IS '描述或说明';
COMMENT ON COLUMN ext_document."F_ENABLED_MARK" IS '有效标志(0-禁用，1-启用)';
COMMENT ON COLUMN ext_document."F_SORT_CODE" IS '排序';
COMMENT ON COLUMN ext_document."F_CREATOR_TIME" IS '创建时间';
COMMENT ON COLUMN ext_document."F_CREATOR_USER_ID" IS '创建用户';
COMMENT ON COLUMN ext_document."F_LAST_MODIFY_TIME" IS '修改时间';
COMMENT ON COLUMN ext_document."F_LAST_MODIFY_USER_ID" IS '修改用户';
COMMENT ON COLUMN ext_document."F_DELETE_TIME" IS '删除时间';
COMMENT ON COLUMN ext_document."F_DELETE_USER_ID" IS '删除用户';
COMMENT ON COLUMN ext_document."F_DELETE_MARK" IS '删除标志';
COMMENT ON COLUMN ext_document."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：ext_document_log
-- ----------------------------
CREATE TABLE ext_document_log (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_DOCUMENT_ID" NVARCHAR2(50),
	"F_CHILD_DOCUMENT" NVARCHAR2(500),
	"F_CREATOR_TIME" TIMESTAMP,
	"F_CREATOR_USER_ID" NVARCHAR2(50),
	"F_LAST_MODIFY_TIME" TIMESTAMP,
	"F_LAST_MODIFY_USER_ID" NVARCHAR2(50),
	"F_DELETE_TIME" TIMESTAMP,
	"F_DELETE_USER_ID" NVARCHAR2(50),
	"F_DELETE_MARK" NUMBER,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0'

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE ext_document_log IS '文档中心记录表';
COMMENT ON COLUMN ext_document_log."F_ID" IS '自然主键';
COMMENT ON COLUMN ext_document_log."F_DOCUMENT_ID" IS '文档主键';
COMMENT ON COLUMN ext_document_log."F_CHILD_DOCUMENT" IS '子文件id';
COMMENT ON COLUMN ext_document_log."F_CREATOR_TIME" IS '创建时间';
COMMENT ON COLUMN ext_document_log."F_CREATOR_USER_ID" IS '创建用户';
COMMENT ON COLUMN ext_document_log."F_LAST_MODIFY_TIME" IS '修改时间';
COMMENT ON COLUMN ext_document_log."F_LAST_MODIFY_USER_ID" IS '修改用户';
COMMENT ON COLUMN ext_document_log."F_DELETE_TIME" IS '删除时间';
COMMENT ON COLUMN ext_document_log."F_DELETE_USER_ID" IS '删除用户';
COMMENT ON COLUMN ext_document_log."F_DELETE_MARK" IS '删除标志';
COMMENT ON COLUMN ext_document_log."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：ext_document_share
-- ----------------------------
CREATE TABLE ext_document_share (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_DOCUMENT_ID" NVARCHAR2(50),
	"F_SHARE_USER_ID" NVARCHAR2(50),
	"F_SHARE_TIME" TIMESTAMP,
	"F_SORT_CODE" NUMBER,
	"F_CREATOR_TIME" TIMESTAMP,
	"F_CREATOR_USER_ID" NVARCHAR2(50),
	"F_LAST_MODIFY_TIME" TIMESTAMP,
	"F_LAST_MODIFY_USER_ID" NVARCHAR2(50),
	"F_DELETE_TIME" TIMESTAMP,
	"F_DELETE_USER_ID" NVARCHAR2(50),
	"F_DELETE_MARK" NUMBER,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0'

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE ext_document_share IS '知识文档共享';
COMMENT ON COLUMN ext_document_share."F_ID" IS '自然主键';
COMMENT ON COLUMN ext_document_share."F_DOCUMENT_ID" IS '文档主键';
COMMENT ON COLUMN ext_document_share."F_SHARE_USER_ID" IS '共享人员';
COMMENT ON COLUMN ext_document_share."F_SHARE_TIME" IS '共享时间';
COMMENT ON COLUMN ext_document_share."F_SORT_CODE" IS '排序';
COMMENT ON COLUMN ext_document_share."F_CREATOR_TIME" IS '创建时间';
COMMENT ON COLUMN ext_document_share."F_CREATOR_USER_ID" IS '创建用户';
COMMENT ON COLUMN ext_document_share."F_LAST_MODIFY_TIME" IS '修改时间';
COMMENT ON COLUMN ext_document_share."F_LAST_MODIFY_USER_ID" IS '修改用户';
COMMENT ON COLUMN ext_document_share."F_DELETE_TIME" IS '删除时间';
COMMENT ON COLUMN ext_document_share."F_DELETE_USER_ID" IS '删除用户';
COMMENT ON COLUMN ext_document_share."F_DELETE_MARK" IS '删除标志';
COMMENT ON COLUMN ext_document_share."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：ext_email_config
-- ----------------------------
CREATE TABLE ext_email_config (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_POP3_HOST" NVARCHAR2(50),
	"F_POP3_PORT" NUMBER,
	"F_SMTP_HOST" NVARCHAR2(50),
	"F_SMTP_PORT" NUMBER,
	"F_ACCOUNT" NVARCHAR2(50),
	"F_PASSWORD" NVARCHAR2(50),
	"F_SSL" NUMBER,
	"F_SENDER_NAME" NVARCHAR2(50),
	"F_FOLDER_JSON" CLOB,
	"F_DESCRIPTION" NVARCHAR2(500),
	"F_ENABLED_MARK" NUMBER,
	"F_SORT_CODE" NUMBER,
	"F_CREATOR_TIME" TIMESTAMP,
	"F_CREATOR_USER_ID" NVARCHAR2(50),
	"F_LAST_MODIFY_TIME" TIMESTAMP,
	"F_LAST_MODIFY_USER_ID" NVARCHAR2(50),
	"F_DELETE_TIME" TIMESTAMP,
	"F_DELETE_USER_ID" NVARCHAR2(50),
	"F_DELETE_MARK" NUMBER,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0'

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE ext_email_config IS '邮件配置';
COMMENT ON COLUMN ext_email_config."F_ID" IS '自然主键';
COMMENT ON COLUMN ext_email_config."F_POP3_HOST" IS 'POP3服务';
COMMENT ON COLUMN ext_email_config."F_POP3_PORT" IS 'POP3端口';
COMMENT ON COLUMN ext_email_config."F_SMTP_HOST" IS 'SMTP服务';
COMMENT ON COLUMN ext_email_config."F_SMTP_PORT" IS 'SMTP端口';
COMMENT ON COLUMN ext_email_config."F_ACCOUNT" IS '账户';
COMMENT ON COLUMN ext_email_config."F_PASSWORD" IS '密码';
COMMENT ON COLUMN ext_email_config."F_SSL" IS 'SSL登录';
COMMENT ON COLUMN ext_email_config."F_SENDER_NAME" IS '发件人名称';
COMMENT ON COLUMN ext_email_config."F_FOLDER_JSON" IS '我的文件夹';
COMMENT ON COLUMN ext_email_config."F_DESCRIPTION" IS '描述或说明';
COMMENT ON COLUMN ext_email_config."F_ENABLED_MARK" IS '有效标志(0-禁用，1-启用)';
COMMENT ON COLUMN ext_email_config."F_SORT_CODE" IS '排序';
COMMENT ON COLUMN ext_email_config."F_CREATOR_TIME" IS '创建时间';
COMMENT ON COLUMN ext_email_config."F_CREATOR_USER_ID" IS '创建用户';
COMMENT ON COLUMN ext_email_config."F_LAST_MODIFY_TIME" IS '修改时间';
COMMENT ON COLUMN ext_email_config."F_LAST_MODIFY_USER_ID" IS '修改用户';
COMMENT ON COLUMN ext_email_config."F_DELETE_TIME" IS '删除时间';
COMMENT ON COLUMN ext_email_config."F_DELETE_USER_ID" IS '删除用户';
COMMENT ON COLUMN ext_email_config."F_DELETE_MARK" IS '删除标志';
COMMENT ON COLUMN ext_email_config."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：ext_email_receive
-- ----------------------------
CREATE TABLE ext_email_receive (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_TYPE" NUMBER,
	"F_MACCOUNT" NVARCHAR2(50),
	"F_MID" NVARCHAR2(200),
	"F_SENDER" NVARCHAR2(50),
	"F_SENDER_NAME" NVARCHAR2(50),
	"F_SUBJECT" NVARCHAR2(200),
	"F_BODY_TEXT" CLOB,
	"F_ATTACHMENT" CLOB,
	"F_READ" NUMBER,
	"F_DATE" TIMESTAMP,
	"F_STARRED" NUMBER,
	"F_DESCRIPTION" NVARCHAR2(500),
	"F_ENABLED_MARK" NUMBER,
	"F_SORT_CODE" NUMBER,
	"F_CREATOR_TIME" TIMESTAMP,
	"F_CREATOR_USER_ID" NVARCHAR2(50),
	"F_LAST_MODIFY_TIME" TIMESTAMP,
	"F_LAST_MODIFY_USER_ID" NVARCHAR2(50),
	"F_DELETE_TIME" TIMESTAMP,
	"F_DELETE_USER_ID" NVARCHAR2(50),
	"F_DELETE_MARK" NUMBER,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0'

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE ext_email_receive IS '邮件接收';
COMMENT ON COLUMN ext_email_receive."F_ID" IS '自然主键';
COMMENT ON COLUMN ext_email_receive."F_TYPE" IS '类型';
COMMENT ON COLUMN ext_email_receive."F_MACCOUNT" IS '邮箱账户';
COMMENT ON COLUMN ext_email_receive."F_MID" IS 'F_MID';
COMMENT ON COLUMN ext_email_receive."F_SENDER" IS '发件人';
COMMENT ON COLUMN ext_email_receive."F_SENDER_NAME" IS '发件人名称';
COMMENT ON COLUMN ext_email_receive."F_SUBJECT" IS '主题';
COMMENT ON COLUMN ext_email_receive."F_BODY_TEXT" IS '正文';
COMMENT ON COLUMN ext_email_receive."F_ATTACHMENT" IS '附件';
COMMENT ON COLUMN ext_email_receive."F_READ" IS '阅读';
COMMENT ON COLUMN ext_email_receive."F_DATE" IS '';
COMMENT ON COLUMN ext_email_receive."F_STARRED" IS '星标';
COMMENT ON COLUMN ext_email_receive."F_DESCRIPTION" IS '描述或说明';
COMMENT ON COLUMN ext_email_receive."F_ENABLED_MARK" IS '有效标志(0-禁用，1-启用)';
COMMENT ON COLUMN ext_email_receive."F_SORT_CODE" IS '排序';
COMMENT ON COLUMN ext_email_receive."F_CREATOR_TIME" IS '创建时间';
COMMENT ON COLUMN ext_email_receive."F_CREATOR_USER_ID" IS '创建用户';
COMMENT ON COLUMN ext_email_receive."F_LAST_MODIFY_TIME" IS '修改时间';
COMMENT ON COLUMN ext_email_receive."F_LAST_MODIFY_USER_ID" IS '修改用户';
COMMENT ON COLUMN ext_email_receive."F_DELETE_TIME" IS '删除时间';
COMMENT ON COLUMN ext_email_receive."F_DELETE_USER_ID" IS '删除用户';
COMMENT ON COLUMN ext_email_receive."F_DELETE_MARK" IS '删除标志';
COMMENT ON COLUMN ext_email_receive."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：ext_email_send
-- ----------------------------
CREATE TABLE ext_email_send (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_TYPE" NUMBER,
	"F_SENDER" CLOB,
	"F_TO" CLOB,
	"F_CC" CLOB,
	"F_BCC" CLOB,
	"F_COLOUR" NVARCHAR2(50),
	"F_SUBJECT" NVARCHAR2(200),
	"F_BODY_TEXT" CLOB,
	"F_ATTACHMENT" CLOB,
	"F_STATE" NUMBER,
	"F_DESCRIPTION" NVARCHAR2(500),
	"F_ENABLED_MARK" NUMBER,
	"F_SORT_CODE" NUMBER,
	"F_CREATOR_TIME" TIMESTAMP,
	"F_CREATOR_USER_ID" NVARCHAR2(50),
	"F_LAST_MODIFY_TIME" TIMESTAMP,
	"F_LAST_MODIFY_USER_ID" NVARCHAR2(50),
	"F_DELETE_TIME" TIMESTAMP,
	"F_DELETE_USER_ID" NVARCHAR2(50),
	"F_DELETE_MARK" NUMBER,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0'

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE ext_email_send IS '邮件发送';
COMMENT ON COLUMN ext_email_send."F_ID" IS '自然主键';
COMMENT ON COLUMN ext_email_send."F_TYPE" IS '类型';
COMMENT ON COLUMN ext_email_send."F_SENDER" IS '发件人';
COMMENT ON COLUMN ext_email_send."F_TO" IS '收件人';
COMMENT ON COLUMN ext_email_send."F_CC" IS '抄送人';
COMMENT ON COLUMN ext_email_send."F_BCC" IS '密送人';
COMMENT ON COLUMN ext_email_send."F_COLOUR" IS '颜色';
COMMENT ON COLUMN ext_email_send."F_SUBJECT" IS '主题';
COMMENT ON COLUMN ext_email_send."F_BODY_TEXT" IS '正文';
COMMENT ON COLUMN ext_email_send."F_ATTACHMENT" IS '附件';
COMMENT ON COLUMN ext_email_send."F_STATE" IS '状态';
COMMENT ON COLUMN ext_email_send."F_DESCRIPTION" IS '描述或说明';
COMMENT ON COLUMN ext_email_send."F_ENABLED_MARK" IS '有效标志(0-禁用，1-启用)';
COMMENT ON COLUMN ext_email_send."F_SORT_CODE" IS '排序';
COMMENT ON COLUMN ext_email_send."F_CREATOR_TIME" IS '创建时间';
COMMENT ON COLUMN ext_email_send."F_CREATOR_USER_ID" IS '创建用户';
COMMENT ON COLUMN ext_email_send."F_LAST_MODIFY_TIME" IS '修改时间';
COMMENT ON COLUMN ext_email_send."F_LAST_MODIFY_USER_ID" IS '修改用户';
COMMENT ON COLUMN ext_email_send."F_DELETE_TIME" IS '删除时间';
COMMENT ON COLUMN ext_email_send."F_DELETE_USER_ID" IS '删除用户';
COMMENT ON COLUMN ext_email_send."F_DELETE_MARK" IS '删除标志';
COMMENT ON COLUMN ext_email_send."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：ext_employee
-- ----------------------------
CREATE TABLE ext_employee (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_EN_CODE" NVARCHAR2(50),
	"F_FULL_NAME" NVARCHAR2(50),
	"F_GENDER" NVARCHAR2(50),
	"F_DEPARTMENT_NAME" NVARCHAR2(255),
	"F_POSITION_NAME" NVARCHAR2(50),
	"F_WORKING_NATURE" NVARCHAR2(50),
	"F_ID_NUMBER" NVARCHAR2(50),
	"F_TELEPHONE" NVARCHAR2(50),
	"F_ATTEND_WORK_TIME" TIMESTAMP,
	"F_BIRTHDAY" TIMESTAMP,
	"F_EDUCATION" NVARCHAR2(50),
	"F_MAJOR" NVARCHAR2(50),
	"F_GRADUATION_ACADEMY" NVARCHAR2(50),
	"F_GRADUATION_TIME" TIMESTAMP,
	"F_DESCRIPTION" NVARCHAR2(500),
	"F_ENABLED_MARK" NUMBER,
	"F_SORT_CODE" NUMBER,
	"F_CREATOR_TIME" TIMESTAMP,
	"F_CREATOR_USER_ID" NVARCHAR2(50),
	"F_LAST_MODIFY_TIME" TIMESTAMP,
	"F_LAST_MODIFY_USER_ID" NVARCHAR2(50),
	"F_DELETE_TIME" TIMESTAMP,
	"F_DELETE_USER_ID" NVARCHAR2(50),
	"F_DELETE_MARK" NUMBER,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0'

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE ext_employee IS '职员信息';
COMMENT ON COLUMN ext_employee."F_ID" IS '自然主键';
COMMENT ON COLUMN ext_employee."F_EN_CODE" IS '工号';
COMMENT ON COLUMN ext_employee."F_FULL_NAME" IS '姓名';
COMMENT ON COLUMN ext_employee."F_GENDER" IS '性别';
COMMENT ON COLUMN ext_employee."F_DEPARTMENT_NAME" IS '部门';
COMMENT ON COLUMN ext_employee."F_POSITION_NAME" IS '职位';
COMMENT ON COLUMN ext_employee."F_WORKING_NATURE" IS '用工性质';
COMMENT ON COLUMN ext_employee."F_ID_NUMBER" IS '身份证号';
COMMENT ON COLUMN ext_employee."F_TELEPHONE" IS '联系电话';
COMMENT ON COLUMN ext_employee."F_ATTEND_WORK_TIME" IS '参加工作';
COMMENT ON COLUMN ext_employee."F_BIRTHDAY" IS '出生年月';
COMMENT ON COLUMN ext_employee."F_EDUCATION" IS '最高学历';
COMMENT ON COLUMN ext_employee."F_MAJOR" IS '所学专业';
COMMENT ON COLUMN ext_employee."F_GRADUATION_ACADEMY" IS '毕业院校';
COMMENT ON COLUMN ext_employee."F_GRADUATION_TIME" IS '毕业时间';
COMMENT ON COLUMN ext_employee."F_DESCRIPTION" IS '描述或说明';
COMMENT ON COLUMN ext_employee."F_ENABLED_MARK" IS '有效标志(0-禁用，1-启用)';
COMMENT ON COLUMN ext_employee."F_SORT_CODE" IS '排序';
COMMENT ON COLUMN ext_employee."F_CREATOR_TIME" IS '创建时间';
COMMENT ON COLUMN ext_employee."F_CREATOR_USER_ID" IS '创建用户';
COMMENT ON COLUMN ext_employee."F_LAST_MODIFY_TIME" IS '修改时间';
COMMENT ON COLUMN ext_employee."F_LAST_MODIFY_USER_ID" IS '修改用户';
COMMENT ON COLUMN ext_employee."F_DELETE_TIME" IS '删除时间';
COMMENT ON COLUMN ext_employee."F_DELETE_USER_ID" IS '删除用户';
COMMENT ON COLUMN ext_employee."F_DELETE_MARK" IS '删除标志';
COMMENT ON COLUMN ext_employee."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：ext_order
-- ----------------------------
CREATE TABLE ext_order (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_CUSTOMER_ID" NVARCHAR2(50),
	"F_CUSTOMER_NAME" NVARCHAR2(50),
	"F_SALESMAN_ID" NVARCHAR2(50),
	"F_SALESMAN_NAME" NVARCHAR2(50),
	"F_ORDER_DATE" TIMESTAMP,
	"F_ORDER_CODE" NVARCHAR2(50),
	"F_TRANSPORT_MODE" NVARCHAR2(50),
	"F_DELIVERY_DATE" TIMESTAMP,
	"F_DELIVERY_ADDRESS" CLOB,
	"F_PAYMENT_MODE" NVARCHAR2(50),
	"F_RECEIVABLE_MONEY" NUMBER(18,2),
	"F_EARNEST_RATE" NUMBER(18,2),
	"F_PREPAY_EARNEST" NUMBER(18,2),
	"F_CURRENT_STATE" NUMBER,
	"F_FILE_JSON" CLOB,
	"F_FLOW_ID" NVARCHAR2(50),
	"F_DESCRIPTION" NVARCHAR2(500),
	"F_ENABLED_MARK" NUMBER,
	"F_SORT_CODE" NUMBER,
	"F_CREATOR_TIME" TIMESTAMP,
	"F_CREATOR_USER_ID" NVARCHAR2(50),
	"F_LAST_MODIFY_TIME" TIMESTAMP,
	"F_LAST_MODIFY_USER_ID" NVARCHAR2(50),
	"F_DELETE_TIME" TIMESTAMP,
	"F_DELETE_USER_ID" NVARCHAR2(50),
	"F_DELETE_MARK" NUMBER,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0'

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE ext_order IS '订单信息';
COMMENT ON COLUMN ext_order."F_ID" IS '自然主键';
COMMENT ON COLUMN ext_order."F_CUSTOMER_ID" IS '客户Id';
COMMENT ON COLUMN ext_order."F_CUSTOMER_NAME" IS '客户名称';
COMMENT ON COLUMN ext_order."F_SALESMAN_ID" IS '业务员Id';
COMMENT ON COLUMN ext_order."F_SALESMAN_NAME" IS '业务员';
COMMENT ON COLUMN ext_order."F_ORDER_DATE" IS '订单日期';
COMMENT ON COLUMN ext_order."F_ORDER_CODE" IS '订单编号';
COMMENT ON COLUMN ext_order."F_TRANSPORT_MODE" IS '运输方式';
COMMENT ON COLUMN ext_order."F_DELIVERY_DATE" IS '发货日期';
COMMENT ON COLUMN ext_order."F_DELIVERY_ADDRESS" IS '发货地址';
COMMENT ON COLUMN ext_order."F_PAYMENT_MODE" IS '付款方式';
COMMENT ON COLUMN ext_order."F_RECEIVABLE_MONEY" IS '应收金额';
COMMENT ON COLUMN ext_order."F_EARNEST_RATE" IS '定金比率';
COMMENT ON COLUMN ext_order."F_PREPAY_EARNEST" IS '预付定金';
COMMENT ON COLUMN ext_order."F_CURRENT_STATE" IS '当前状态';
COMMENT ON COLUMN ext_order."F_FILE_JSON" IS '附件信息';
COMMENT ON COLUMN ext_order."F_FLOW_ID" IS '引擎id';
COMMENT ON COLUMN ext_order."F_DESCRIPTION" IS '描述或说明';
COMMENT ON COLUMN ext_order."F_ENABLED_MARK" IS '有效标志(0-禁用，1-启用)';
COMMENT ON COLUMN ext_order."F_SORT_CODE" IS '排序';
COMMENT ON COLUMN ext_order."F_CREATOR_TIME" IS '创建时间';
COMMENT ON COLUMN ext_order."F_CREATOR_USER_ID" IS '创建用户';
COMMENT ON COLUMN ext_order."F_LAST_MODIFY_TIME" IS '修改时间';
COMMENT ON COLUMN ext_order."F_LAST_MODIFY_USER_ID" IS '修改用户';
COMMENT ON COLUMN ext_order."F_DELETE_TIME" IS '删除时间';
COMMENT ON COLUMN ext_order."F_DELETE_USER_ID" IS '删除用户';
COMMENT ON COLUMN ext_order."F_DELETE_MARK" IS '删除标志';
COMMENT ON COLUMN ext_order."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：ext_order_2
-- ----------------------------
CREATE TABLE ext_order_2 (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_CUSTOMER_ID" NVARCHAR2(50),
	"F_CUSTOMER_NAME" NVARCHAR2(50),
	"F_SALESMAN_ID" NVARCHAR2(50),
	"F_SALESMAN_NAME" NVARCHAR2(50),
	"F_ORDER_DATE" TIMESTAMP,
	"F_ORDER_CODE" NVARCHAR2(50),
	"F_TRANSPORT_MODE" NVARCHAR2(50),
	"F_DELIVERY_DATE" TIMESTAMP,
	"F_DELIVERY_ADDRESS" CLOB,
	"F_PAYMENT_MODE" NVARCHAR2(50),
	"F_RECEIVABLE_MONEY" NUMBER(18,2),
	"F_EARNEST_RATE" NUMBER(18,2),
	"F_PREPAY_EARNEST" NUMBER(18,2),
	"F_CURRENT_STATE" NUMBER,
	"F_FILE_JSON" CLOB,
	"F_FLOW_ID" NVARCHAR2(50),
	"F_DESCRIPTION" NVARCHAR2(500),
	"F_ENABLED_MARK" NUMBER,
	"F_SORT_CODE" NUMBER,
	"F_CREATOR_TIME" TIMESTAMP,
	"F_CREATOR_USER_ID" NVARCHAR2(50),
	"F_LAST_MODIFY_TIME" TIMESTAMP,
	"F_LAST_MODIFY_USER_ID" NVARCHAR2(50),
	"F_DELETE_TIME" TIMESTAMP,
	"F_DELETE_USER_ID" NVARCHAR2(50),
	"F_DELETE_MARK" NUMBER,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0',
	"F_FLOW_TASK_ID" NVARCHAR2(50),
	"F_INTE_ASSISTANT" NUMBER

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE ext_order_2 IS '订单信息-在线';
COMMENT ON COLUMN ext_order_2."F_ID" IS '自然主键';
COMMENT ON COLUMN ext_order_2."F_CUSTOMER_ID" IS '客户Id';
COMMENT ON COLUMN ext_order_2."F_CUSTOMER_NAME" IS '客户名称';
COMMENT ON COLUMN ext_order_2."F_SALESMAN_ID" IS '业务员Id';
COMMENT ON COLUMN ext_order_2."F_SALESMAN_NAME" IS '业务员';
COMMENT ON COLUMN ext_order_2."F_ORDER_DATE" IS '订单日期';
COMMENT ON COLUMN ext_order_2."F_ORDER_CODE" IS '订单编号';
COMMENT ON COLUMN ext_order_2."F_TRANSPORT_MODE" IS '运输方式';
COMMENT ON COLUMN ext_order_2."F_DELIVERY_DATE" IS '发货日期';
COMMENT ON COLUMN ext_order_2."F_DELIVERY_ADDRESS" IS '发货地址';
COMMENT ON COLUMN ext_order_2."F_PAYMENT_MODE" IS '付款方式';
COMMENT ON COLUMN ext_order_2."F_RECEIVABLE_MONEY" IS '应收金额';
COMMENT ON COLUMN ext_order_2."F_EARNEST_RATE" IS '定金比率';
COMMENT ON COLUMN ext_order_2."F_PREPAY_EARNEST" IS '预付定金';
COMMENT ON COLUMN ext_order_2."F_CURRENT_STATE" IS '当前状态';
COMMENT ON COLUMN ext_order_2."F_FILE_JSON" IS '附件信息';
COMMENT ON COLUMN ext_order_2."F_FLOW_ID" IS '引擎id';
COMMENT ON COLUMN ext_order_2."F_DESCRIPTION" IS '描述或说明';
COMMENT ON COLUMN ext_order_2."F_ENABLED_MARK" IS '有效标志(0-禁用，1-启用)';
COMMENT ON COLUMN ext_order_2."F_SORT_CODE" IS '排序';
COMMENT ON COLUMN ext_order_2."F_CREATOR_TIME" IS '创建时间';
COMMENT ON COLUMN ext_order_2."F_CREATOR_USER_ID" IS '创建用户';
COMMENT ON COLUMN ext_order_2."F_LAST_MODIFY_TIME" IS '修改时间';
COMMENT ON COLUMN ext_order_2."F_LAST_MODIFY_USER_ID" IS '修改用户';
COMMENT ON COLUMN ext_order_2."F_DELETE_TIME" IS '删除时间';
COMMENT ON COLUMN ext_order_2."F_DELETE_USER_ID" IS '删除用户';
COMMENT ON COLUMN ext_order_2."F_DELETE_MARK" IS '删除标志';
COMMENT ON COLUMN ext_order_2."F_TENANT_ID" IS '租户id';
COMMENT ON COLUMN ext_order_2."F_FLOW_TASK_ID" IS '流程任务主键';
COMMENT ON COLUMN ext_order_2."F_INTE_ASSISTANT" IS '集成助手数据标识';
-- ----------------------------
-- 表名：ext_order_entry
-- ----------------------------
CREATE TABLE ext_order_entry (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_ORDER_ID" NVARCHAR2(50),
	"F_GOODS_ID" NVARCHAR2(50),
	"F_GOODS_CODE" NVARCHAR2(50),
	"F_GOODS_NAME" NVARCHAR2(50),
	"F_SPECIFICATIONS" NVARCHAR2(50),
	"F_UNIT" NVARCHAR2(50),
	"F_QTY" NUMBER(18,2),
	"F_PRICE" NUMBER(18,2),
	"F_AMOUNT" NUMBER(18,2),
	"F_DISCOUNT" NUMBER(18,2),
	"F_CESS" NUMBER(18,2),
	"F_ACTUAL_PRICE" NUMBER(18,2),
	"F_ACTUAL_AMOUNT" NUMBER(18,2),
	"F_DESCRIPTION" NVARCHAR2(500),
	"F_SORT_CODE" NUMBER,
	"F_CREATOR_TIME" TIMESTAMP,
	"F_CREATOR_USER_ID" NVARCHAR2(50),
	"F_LAST_MODIFY_TIME" TIMESTAMP,
	"F_LAST_MODIFY_USER_ID" NVARCHAR2(50),
	"F_DELETE_TIME" TIMESTAMP,
	"F_DELETE_USER_ID" NVARCHAR2(50),
	"F_DELETE_MARK" NUMBER,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0'

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE ext_order_entry IS '订单明细';
COMMENT ON COLUMN ext_order_entry."F_ID" IS '自然主键';
COMMENT ON COLUMN ext_order_entry."F_ORDER_ID" IS '订单主键';
COMMENT ON COLUMN ext_order_entry."F_GOODS_ID" IS '商品Id';
COMMENT ON COLUMN ext_order_entry."F_GOODS_CODE" IS '商品编码';
COMMENT ON COLUMN ext_order_entry."F_GOODS_NAME" IS '商品名称';
COMMENT ON COLUMN ext_order_entry."F_SPECIFICATIONS" IS '规格型号';
COMMENT ON COLUMN ext_order_entry."F_UNIT" IS '单位';
COMMENT ON COLUMN ext_order_entry."F_QTY" IS '数量';
COMMENT ON COLUMN ext_order_entry."F_PRICE" IS '单价';
COMMENT ON COLUMN ext_order_entry."F_AMOUNT" IS '金额';
COMMENT ON COLUMN ext_order_entry."F_DISCOUNT" IS '折扣%';
COMMENT ON COLUMN ext_order_entry."F_CESS" IS '税率%';
COMMENT ON COLUMN ext_order_entry."F_ACTUAL_PRICE" IS '实际单价';
COMMENT ON COLUMN ext_order_entry."F_ACTUAL_AMOUNT" IS '实际金额';
COMMENT ON COLUMN ext_order_entry."F_DESCRIPTION" IS '描述或说明';
COMMENT ON COLUMN ext_order_entry."F_SORT_CODE" IS '排序';
COMMENT ON COLUMN ext_order_entry."F_CREATOR_TIME" IS '创建时间';
COMMENT ON COLUMN ext_order_entry."F_CREATOR_USER_ID" IS '创建用户';
COMMENT ON COLUMN ext_order_entry."F_LAST_MODIFY_TIME" IS '修改时间';
COMMENT ON COLUMN ext_order_entry."F_LAST_MODIFY_USER_ID" IS '修改用户';
COMMENT ON COLUMN ext_order_entry."F_DELETE_TIME" IS '删除时间';
COMMENT ON COLUMN ext_order_entry."F_DELETE_USER_ID" IS '删除用户';
COMMENT ON COLUMN ext_order_entry."F_DELETE_MARK" IS '删除标志';
COMMENT ON COLUMN ext_order_entry."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：ext_order_entry_2
-- ----------------------------
CREATE TABLE ext_order_entry_2 (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_ORDER_ID" NVARCHAR2(50),
	"F_GOODS_ID" NVARCHAR2(50),
	"F_GOODS_CODE" NVARCHAR2(50),
	"F_GOODS_NAME" NVARCHAR2(50),
	"F_SPECIFICATIONS" NVARCHAR2(50),
	"F_UNIT" NVARCHAR2(50),
	"F_QTY" NUMBER(18,2),
	"F_PRICE" NUMBER(18,2),
	"F_AMOUNT" NUMBER(18,2),
	"F_DISCOUNT" NUMBER(18,2),
	"F_CESS" NUMBER(18,2),
	"F_ACTUAL_PRICE" NUMBER(18,2),
	"F_ACTUAL_AMOUNT" NUMBER(18,2),
	"F_DESCRIPTION" NVARCHAR2(500),
	"F_SORT_CODE" NUMBER,
	"F_CREATOR_TIME" TIMESTAMP,
	"F_CREATOR_USER_ID" NVARCHAR2(50),
	"F_LAST_MODIFY_TIME" TIMESTAMP,
	"F_LAST_MODIFY_USER_ID" NVARCHAR2(50),
	"F_DELETE_TIME" TIMESTAMP,
	"F_DELETE_USER_ID" NVARCHAR2(50),
	"F_DELETE_MARK" NUMBER,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0'

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE ext_order_entry_2 IS '订单明细-在线';
COMMENT ON COLUMN ext_order_entry_2."F_ID" IS '自然主键';
COMMENT ON COLUMN ext_order_entry_2."F_ORDER_ID" IS '订单主键';
COMMENT ON COLUMN ext_order_entry_2."F_GOODS_ID" IS '商品Id';
COMMENT ON COLUMN ext_order_entry_2."F_GOODS_CODE" IS '商品编码';
COMMENT ON COLUMN ext_order_entry_2."F_GOODS_NAME" IS '商品名称';
COMMENT ON COLUMN ext_order_entry_2."F_SPECIFICATIONS" IS '规格型号';
COMMENT ON COLUMN ext_order_entry_2."F_UNIT" IS '单位';
COMMENT ON COLUMN ext_order_entry_2."F_QTY" IS '数量';
COMMENT ON COLUMN ext_order_entry_2."F_PRICE" IS '单价';
COMMENT ON COLUMN ext_order_entry_2."F_AMOUNT" IS '金额';
COMMENT ON COLUMN ext_order_entry_2."F_DISCOUNT" IS '折扣%';
COMMENT ON COLUMN ext_order_entry_2."F_CESS" IS '税率%';
COMMENT ON COLUMN ext_order_entry_2."F_ACTUAL_PRICE" IS '实际单价';
COMMENT ON COLUMN ext_order_entry_2."F_ACTUAL_AMOUNT" IS '实际金额';
COMMENT ON COLUMN ext_order_entry_2."F_DESCRIPTION" IS '描述或说明';
COMMENT ON COLUMN ext_order_entry_2."F_SORT_CODE" IS '排序';
COMMENT ON COLUMN ext_order_entry_2."F_CREATOR_TIME" IS '创建时间';
COMMENT ON COLUMN ext_order_entry_2."F_CREATOR_USER_ID" IS '创建用户';
COMMENT ON COLUMN ext_order_entry_2."F_LAST_MODIFY_TIME" IS '修改时间';
COMMENT ON COLUMN ext_order_entry_2."F_LAST_MODIFY_USER_ID" IS '修改用户';
COMMENT ON COLUMN ext_order_entry_2."F_DELETE_TIME" IS '删除时间';
COMMENT ON COLUMN ext_order_entry_2."F_DELETE_USER_ID" IS '删除用户';
COMMENT ON COLUMN ext_order_entry_2."F_DELETE_MARK" IS '删除标志';
COMMENT ON COLUMN ext_order_entry_2."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：ext_order_receivable
-- ----------------------------
CREATE TABLE ext_order_receivable (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_ORDER_ID" NVARCHAR2(50),
	"F_ABSTRACT" NVARCHAR2(500),
	"F_RECEIVABLE_DATE" TIMESTAMP,
	"F_RECEIVABLE_RATE" NUMBER(18,2),
	"F_RECEIVABLE_MONEY" NUMBER(18,2),
	"F_RECEIVABLE_MODE" NVARCHAR2(50),
	"F_RECEIVABLE_STATE" NUMBER,
	"F_DESCRIPTION" NVARCHAR2(500),
	"F_SORT_CODE" NUMBER,
	"F_CREATOR_TIME" TIMESTAMP,
	"F_CREATOR_USER_ID" NVARCHAR2(50),
	"F_LAST_MODIFY_TIME" TIMESTAMP,
	"F_LAST_MODIFY_USER_ID" NVARCHAR2(50),
	"F_DELETE_TIME" TIMESTAMP,
	"F_DELETE_USER_ID" NVARCHAR2(50),
	"F_DELETE_MARK" NUMBER,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0'

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE ext_order_receivable IS '订单收款';
COMMENT ON COLUMN ext_order_receivable."F_ID" IS '自然主键';
COMMENT ON COLUMN ext_order_receivable."F_ORDER_ID" IS '订单主键';
COMMENT ON COLUMN ext_order_receivable."F_ABSTRACT" IS '收款摘要';
COMMENT ON COLUMN ext_order_receivable."F_RECEIVABLE_DATE" IS '收款日期';
COMMENT ON COLUMN ext_order_receivable."F_RECEIVABLE_RATE" IS '收款比率';
COMMENT ON COLUMN ext_order_receivable."F_RECEIVABLE_MONEY" IS '收款金额';
COMMENT ON COLUMN ext_order_receivable."F_RECEIVABLE_MODE" IS '收款方式';
COMMENT ON COLUMN ext_order_receivable."F_RECEIVABLE_STATE" IS '收款状态';
COMMENT ON COLUMN ext_order_receivable."F_DESCRIPTION" IS '描述或说明';
COMMENT ON COLUMN ext_order_receivable."F_SORT_CODE" IS '排序';
COMMENT ON COLUMN ext_order_receivable."F_CREATOR_TIME" IS '创建时间';
COMMENT ON COLUMN ext_order_receivable."F_CREATOR_USER_ID" IS '创建用户';
COMMENT ON COLUMN ext_order_receivable."F_LAST_MODIFY_TIME" IS '修改时间';
COMMENT ON COLUMN ext_order_receivable."F_LAST_MODIFY_USER_ID" IS '修改用户';
COMMENT ON COLUMN ext_order_receivable."F_DELETE_TIME" IS '删除时间';
COMMENT ON COLUMN ext_order_receivable."F_DELETE_USER_ID" IS '删除用户';
COMMENT ON COLUMN ext_order_receivable."F_DELETE_MARK" IS '删除标志';
COMMENT ON COLUMN ext_order_receivable."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：ext_order_receivable_2
-- ----------------------------
CREATE TABLE ext_order_receivable_2 (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_ORDER_ID" NVARCHAR2(50),
	"F_ABSTRACT" NVARCHAR2(500),
	"F_RECEIVABLE_DATE" TIMESTAMP,
	"F_RECEIVABLE_RATE" NUMBER(18,2),
	"F_RECEIVABLE_MONEY" NUMBER(18,2),
	"F_RECEIVABLE_MODE" NVARCHAR2(50),
	"F_RECEIVABLE_STATE" NUMBER,
	"F_DESCRIPTION" NVARCHAR2(500),
	"F_SORT_CODE" NUMBER,
	"F_CREATOR_TIME" TIMESTAMP,
	"F_CREATOR_USER_ID" NVARCHAR2(50),
	"F_LAST_MODIFY_TIME" TIMESTAMP,
	"F_LAST_MODIFY_USER_ID" NVARCHAR2(50),
	"F_DELETE_TIME" TIMESTAMP,
	"F_DELETE_USER_ID" NVARCHAR2(50),
	"F_DELETE_MARK" NUMBER,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0'

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE ext_order_receivable_2 IS '订单收款-在线';
COMMENT ON COLUMN ext_order_receivable_2."F_ID" IS '自然主键';
COMMENT ON COLUMN ext_order_receivable_2."F_ORDER_ID" IS '订单主键';
COMMENT ON COLUMN ext_order_receivable_2."F_ABSTRACT" IS '收款摘要';
COMMENT ON COLUMN ext_order_receivable_2."F_RECEIVABLE_DATE" IS '收款日期';
COMMENT ON COLUMN ext_order_receivable_2."F_RECEIVABLE_RATE" IS '收款比率';
COMMENT ON COLUMN ext_order_receivable_2."F_RECEIVABLE_MONEY" IS '收款金额';
COMMENT ON COLUMN ext_order_receivable_2."F_RECEIVABLE_MODE" IS '收款方式';
COMMENT ON COLUMN ext_order_receivable_2."F_RECEIVABLE_STATE" IS '收款状态';
COMMENT ON COLUMN ext_order_receivable_2."F_DESCRIPTION" IS '描述或说明';
COMMENT ON COLUMN ext_order_receivable_2."F_SORT_CODE" IS '排序';
COMMENT ON COLUMN ext_order_receivable_2."F_CREATOR_TIME" IS '创建时间';
COMMENT ON COLUMN ext_order_receivable_2."F_CREATOR_USER_ID" IS '创建用户';
COMMENT ON COLUMN ext_order_receivable_2."F_LAST_MODIFY_TIME" IS '修改时间';
COMMENT ON COLUMN ext_order_receivable_2."F_LAST_MODIFY_USER_ID" IS '修改用户';
COMMENT ON COLUMN ext_order_receivable_2."F_DELETE_TIME" IS '删除时间';
COMMENT ON COLUMN ext_order_receivable_2."F_DELETE_USER_ID" IS '删除用户';
COMMENT ON COLUMN ext_order_receivable_2."F_DELETE_MARK" IS '删除标志';
COMMENT ON COLUMN ext_order_receivable_2."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：ext_product
-- ----------------------------
CREATE TABLE ext_product (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_EN_CODE" NVARCHAR2(50),
	"F_TYPE" NVARCHAR2(50),
	"F_CUSTOMER_ID" NVARCHAR2(50),
	"F_CUSTOMER_NAME" NVARCHAR2(50),
	"F_SALESMAN_ID" NVARCHAR2(50),
	"F_SALESMAN_NAME" NVARCHAR2(50),
	"F_SALESMAN_DATE" TIMESTAMP,
	"F_AUDIT_NAME" NVARCHAR2(50),
	"F_AUDIT_DATE" TIMESTAMP,
	"F_AUDIT_STATE" NUMBER,
	"F_GOODS_WAREHOUSE" NVARCHAR2(50),
	"F_GOODS_DATE" TIMESTAMP,
	"F_CONSIGNOR" NVARCHAR2(50),
	"F_GOODS_STATE" NUMBER,
	"F_CLOSE_STATE" NUMBER,
	"F_CLOSE_DATE" TIMESTAMP,
	"F_GATHERING_TYPE" NVARCHAR2(50),
	"F_BUSINESS" NVARCHAR2(50),
	"F_ADDRESS" NVARCHAR2(50),
	"F_CONTACT_TEL" NVARCHAR2(50),
	"F_CONTACT_NAME" NVARCHAR2(50),
	"F_HARVEST_MSG" NUMBER,
	"F_HARVEST_WAREHOUSE" NVARCHAR2(50),
	"F_ISSUING_NAME" NVARCHAR2(50),
	"F_PART_PRICE" NUMBER(18,2),
	"F_REDUCED_PRICE" NUMBER(18,2),
	"F_DISCOUNT_PRICE" NUMBER(18,2),
	"F_DESCRIPTION" NVARCHAR2(500),
	"F_SORT_CODE" NUMBER,
	"F_CREATOR_TIME" TIMESTAMP,
	"F_CREATOR_USER_ID" NVARCHAR2(50),
	"F_LAST_MODIFY_TIME" TIMESTAMP,
	"F_LAST_MODIFY_USER_ID" NVARCHAR2(50),
	"F_DELETE_TIME" TIMESTAMP,
	"F_DELETE_USER_ID" NVARCHAR2(50),
	"F_DELETE_MARK" NUMBER,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0'

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE ext_product IS '销售订单';
COMMENT ON COLUMN ext_product."F_ID" IS '';
COMMENT ON COLUMN ext_product."F_EN_CODE" IS '订单编号';
COMMENT ON COLUMN ext_product."F_TYPE" IS '客户类别';
COMMENT ON COLUMN ext_product."F_CUSTOMER_ID" IS '客户id';
COMMENT ON COLUMN ext_product."F_CUSTOMER_NAME" IS '客户名称';
COMMENT ON COLUMN ext_product."F_SALESMAN_ID" IS '制单人id';
COMMENT ON COLUMN ext_product."F_SALESMAN_NAME" IS '制单人名称';
COMMENT ON COLUMN ext_product."F_SALESMAN_DATE" IS '制单日期';
COMMENT ON COLUMN ext_product."F_AUDIT_NAME" IS '审核人';
COMMENT ON COLUMN ext_product."F_AUDIT_DATE" IS '审核日期';
COMMENT ON COLUMN ext_product."F_AUDIT_STATE" IS '审核状态';
COMMENT ON COLUMN ext_product."F_GOODS_WAREHOUSE" IS '发货仓库';
COMMENT ON COLUMN ext_product."F_GOODS_DATE" IS '发货通知时间';
COMMENT ON COLUMN ext_product."F_CONSIGNOR" IS '发货通知人';
COMMENT ON COLUMN ext_product."F_GOODS_STATE" IS '发货通知';
COMMENT ON COLUMN ext_product."F_CLOSE_STATE" IS '关闭状态';
COMMENT ON COLUMN ext_product."F_CLOSE_DATE" IS '关闭日期';
COMMENT ON COLUMN ext_product."F_GATHERING_TYPE" IS '收款方式';
COMMENT ON COLUMN ext_product."F_BUSINESS" IS '业务员';
COMMENT ON COLUMN ext_product."F_ADDRESS" IS '送货地址';
COMMENT ON COLUMN ext_product."F_CONTACT_TEL" IS '联系方式';
COMMENT ON COLUMN ext_product."F_CONTACT_NAME" IS '联系人';
COMMENT ON COLUMN ext_product."F_HARVEST_MSG" IS '收货消息';
COMMENT ON COLUMN ext_product."F_HARVEST_WAREHOUSE" IS '收货仓库';
COMMENT ON COLUMN ext_product."F_ISSUING_NAME" IS '代发客户';
COMMENT ON COLUMN ext_product."F_PART_PRICE" IS '让利金额';
COMMENT ON COLUMN ext_product."F_REDUCED_PRICE" IS '优惠金额';
COMMENT ON COLUMN ext_product."F_DISCOUNT_PRICE" IS '折后金额';
COMMENT ON COLUMN ext_product."F_DESCRIPTION" IS '描述或说明';
COMMENT ON COLUMN ext_product."F_SORT_CODE" IS '排序';
COMMENT ON COLUMN ext_product."F_CREATOR_TIME" IS '创建时间';
COMMENT ON COLUMN ext_product."F_CREATOR_USER_ID" IS '创建用户';
COMMENT ON COLUMN ext_product."F_LAST_MODIFY_TIME" IS '修改时间';
COMMENT ON COLUMN ext_product."F_LAST_MODIFY_USER_ID" IS '修改用户';
COMMENT ON COLUMN ext_product."F_DELETE_TIME" IS '删除时间';
COMMENT ON COLUMN ext_product."F_DELETE_USER_ID" IS '删除用户';
COMMENT ON COLUMN ext_product."F_DELETE_MARK" IS '删除标志';
COMMENT ON COLUMN ext_product."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：ext_product_classify
-- ----------------------------
CREATE TABLE ext_product_classify (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_PARENT_ID" NVARCHAR2(50),
	"F_FULL_NAME" NVARCHAR2(50),
	"F_SORT_CODE" NUMBER,
	"F_CREATOR_TIME" TIMESTAMP,
	"F_CREATOR_USER_ID" NVARCHAR2(50),
	"F_LAST_MODIFY_TIME" TIMESTAMP,
	"F_LAST_MODIFY_USER_ID" NVARCHAR2(50),
	"F_DELETE_TIME" TIMESTAMP,
	"F_DELETE_USER_ID" NVARCHAR2(50),
	"F_DELETE_MARK" NUMBER,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0'

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE ext_product_classify IS '产品分类';
COMMENT ON COLUMN ext_product_classify."F_ID" IS '主键';
COMMENT ON COLUMN ext_product_classify."F_PARENT_ID" IS '上级';
COMMENT ON COLUMN ext_product_classify."F_FULL_NAME" IS '名称';
COMMENT ON COLUMN ext_product_classify."F_SORT_CODE" IS '排序';
COMMENT ON COLUMN ext_product_classify."F_CREATOR_TIME" IS '创建时间';
COMMENT ON COLUMN ext_product_classify."F_CREATOR_USER_ID" IS '创建用户';
COMMENT ON COLUMN ext_product_classify."F_LAST_MODIFY_TIME" IS '修改时间';
COMMENT ON COLUMN ext_product_classify."F_LAST_MODIFY_USER_ID" IS '修改用户';
COMMENT ON COLUMN ext_product_classify."F_DELETE_TIME" IS '删除时间';
COMMENT ON COLUMN ext_product_classify."F_DELETE_USER_ID" IS '删除用户';
COMMENT ON COLUMN ext_product_classify."F_DELETE_MARK" IS '删除标志';
COMMENT ON COLUMN ext_product_classify."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：ext_product_entry
-- ----------------------------
CREATE TABLE ext_product_entry (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_PRODUCT_ID" NVARCHAR2(50),
	"F_PRODUCT_CODE" NVARCHAR2(50),
	"F_PRODUCT_NAME" NVARCHAR2(50),
	"F_PRODUCT_SPECIFICATION" NVARCHAR2(50),
	"F_QTY" NUMBER,
	"F_COMMAND_TYPE" NVARCHAR2(50),
	"F_TYPE" NVARCHAR2(50),
	"F_MONEY" NUMBER(18,2),
	"F_UTIL" NVARCHAR2(50),
	"F_PRICE" NUMBER(18,2),
	"F_AMOUNT" NUMBER(18,2),
	"F_ACTIVITY" NVARCHAR2(50),
	"F_DESCRIPTION" NVARCHAR2(500),
	"F_SORT_CODE" NUMBER,
	"F_CREATOR_TIME" TIMESTAMP,
	"F_CREATOR_USER_ID" NVARCHAR2(50),
	"F_LAST_MODIFY_TIME" TIMESTAMP,
	"F_LAST_MODIFY_USER_ID" NVARCHAR2(50),
	"F_DELETE_TIME" TIMESTAMP,
	"F_DELETE_USER_ID" NVARCHAR2(50),
	"F_DELETE_MARK" NUMBER,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0'

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE ext_product_entry IS '产品明细';
COMMENT ON COLUMN ext_product_entry."F_ID" IS '主键';
COMMENT ON COLUMN ext_product_entry."F_PRODUCT_ID" IS '订单主键';
COMMENT ON COLUMN ext_product_entry."F_PRODUCT_CODE" IS '产品编号';
COMMENT ON COLUMN ext_product_entry."F_PRODUCT_NAME" IS '产品名称';
COMMENT ON COLUMN ext_product_entry."F_PRODUCT_SPECIFICATION" IS '产品规格';
COMMENT ON COLUMN ext_product_entry."F_QTY" IS '数量';
COMMENT ON COLUMN ext_product_entry."F_COMMAND_TYPE" IS '控制方式';
COMMENT ON COLUMN ext_product_entry."F_TYPE" IS '订货类型';
COMMENT ON COLUMN ext_product_entry."F_MONEY" IS '单价';
COMMENT ON COLUMN ext_product_entry."F_UTIL" IS '单位';
COMMENT ON COLUMN ext_product_entry."F_PRICE" IS '折后单价';
COMMENT ON COLUMN ext_product_entry."F_AMOUNT" IS '金额';
COMMENT ON COLUMN ext_product_entry."F_ACTIVITY" IS '活动';
COMMENT ON COLUMN ext_product_entry."F_DESCRIPTION" IS '描述或说明';
COMMENT ON COLUMN ext_product_entry."F_SORT_CODE" IS '排序';
COMMENT ON COLUMN ext_product_entry."F_CREATOR_TIME" IS '创建时间';
COMMENT ON COLUMN ext_product_entry."F_CREATOR_USER_ID" IS '创建用户';
COMMENT ON COLUMN ext_product_entry."F_LAST_MODIFY_TIME" IS '修改时间';
COMMENT ON COLUMN ext_product_entry."F_LAST_MODIFY_USER_ID" IS '修改用户';
COMMENT ON COLUMN ext_product_entry."F_DELETE_TIME" IS '删除时间';
COMMENT ON COLUMN ext_product_entry."F_DELETE_USER_ID" IS '删除用户';
COMMENT ON COLUMN ext_product_entry."F_DELETE_MARK" IS '删除标志';
COMMENT ON COLUMN ext_product_entry."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：ext_product_goods
-- ----------------------------
CREATE TABLE ext_product_goods (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_CLASSIFY_ID" NVARCHAR2(50),
	"F_EN_CODE" NVARCHAR2(50),
	"F_FULL_NAME" NVARCHAR2(50),
	"F_TYPE" NVARCHAR2(50),
	"F_AMOUNT" NUMBER(18,2),
	"F_MONEY" NUMBER(18,2),
	"F_PRODUCT_SPECIFICATION" NVARCHAR2(50),
	"F_QTY" NUMBER,
	"F_SORT_CODE" NUMBER,
	"F_CREATOR_TIME" TIMESTAMP,
	"F_CREATOR_USER_ID" NVARCHAR2(50),
	"F_LAST_MODIFY_TIME" TIMESTAMP,
	"F_LAST_MODIFY_USER_ID" NVARCHAR2(50),
	"F_DELETE_TIME" TIMESTAMP,
	"F_DELETE_USER_ID" NVARCHAR2(50),
	"F_DELETE_MARK" NUMBER,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0'

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE ext_product_goods IS '产品商品';
COMMENT ON COLUMN ext_product_goods."F_ID" IS '主键';
COMMENT ON COLUMN ext_product_goods."F_CLASSIFY_ID" IS '分类主键';
COMMENT ON COLUMN ext_product_goods."F_EN_CODE" IS '产品编号';
COMMENT ON COLUMN ext_product_goods."F_FULL_NAME" IS '产品名称';
COMMENT ON COLUMN ext_product_goods."F_TYPE" IS '产品分类';
COMMENT ON COLUMN ext_product_goods."F_AMOUNT" IS '金额';
COMMENT ON COLUMN ext_product_goods."F_MONEY" IS '单价';
COMMENT ON COLUMN ext_product_goods."F_PRODUCT_SPECIFICATION" IS '产品规格';
COMMENT ON COLUMN ext_product_goods."F_QTY" IS '库存数';
COMMENT ON COLUMN ext_product_goods."F_SORT_CODE" IS '排序';
COMMENT ON COLUMN ext_product_goods."F_CREATOR_TIME" IS '创建时间';
COMMENT ON COLUMN ext_product_goods."F_CREATOR_USER_ID" IS '创建用户';
COMMENT ON COLUMN ext_product_goods."F_LAST_MODIFY_TIME" IS '修改时间';
COMMENT ON COLUMN ext_product_goods."F_LAST_MODIFY_USER_ID" IS '修改用户';
COMMENT ON COLUMN ext_product_goods."F_DELETE_TIME" IS '删除时间';
COMMENT ON COLUMN ext_product_goods."F_DELETE_USER_ID" IS '删除用户';
COMMENT ON COLUMN ext_product_goods."F_DELETE_MARK" IS '删除标志';
COMMENT ON COLUMN ext_product_goods."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：ext_project_gantt
-- ----------------------------
CREATE TABLE ext_project_gantt (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_PARENT_ID" NVARCHAR2(50),
	"F_PROJECT_ID" NVARCHAR2(50),
	"F_TYPE" NUMBER,
	"F_EN_CODE" NVARCHAR2(50),
	"F_FULL_NAME" NVARCHAR2(50),
	"F_TIME_LIMIT" NUMBER(18,0),
	"F_SIGN" NVARCHAR2(50),
	"F_SIGN_COLOR" NVARCHAR2(50),
	"F_START_TIME" TIMESTAMP,
	"F_END_TIME" TIMESTAMP,
	"F_SCHEDULE" NUMBER,
	"F_MANAGER_IDS" CLOB,
	"F_DESCRIPTION" NVARCHAR2(500),
	"F_ENABLED_MARK" NUMBER,
	"F_SORT_CODE" NUMBER,
	"F_CREATOR_TIME" TIMESTAMP,
	"F_CREATOR_USER_ID" NVARCHAR2(50),
	"F_LAST_MODIFY_TIME" TIMESTAMP,
	"F_LAST_MODIFY_USER_ID" NVARCHAR2(50),
	"F_DELETE_TIME" TIMESTAMP,
	"F_DELETE_USER_ID" NVARCHAR2(50),
	"F_DELETE_MARK" NUMBER,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0'

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE ext_project_gantt IS '项目计划';
COMMENT ON COLUMN ext_project_gantt."F_ID" IS '自然主键';
COMMENT ON COLUMN ext_project_gantt."F_PARENT_ID" IS '项目上级';
COMMENT ON COLUMN ext_project_gantt."F_PROJECT_ID" IS '项目主键';
COMMENT ON COLUMN ext_project_gantt."F_TYPE" IS '项目类型';
COMMENT ON COLUMN ext_project_gantt."F_EN_CODE" IS '项目编号';
COMMENT ON COLUMN ext_project_gantt."F_FULL_NAME" IS '项目名称';
COMMENT ON COLUMN ext_project_gantt."F_TIME_LIMIT" IS '项目工期';
COMMENT ON COLUMN ext_project_gantt."F_SIGN" IS '项目标记';
COMMENT ON COLUMN ext_project_gantt."F_SIGN_COLOR" IS '标记颜色';
COMMENT ON COLUMN ext_project_gantt."F_START_TIME" IS '开始时间';
COMMENT ON COLUMN ext_project_gantt."F_END_TIME" IS '结束时间';
COMMENT ON COLUMN ext_project_gantt."F_SCHEDULE" IS '当前进度';
COMMENT ON COLUMN ext_project_gantt."F_MANAGER_IDS" IS '负责人';
COMMENT ON COLUMN ext_project_gantt."F_DESCRIPTION" IS '描述或说明';
COMMENT ON COLUMN ext_project_gantt."F_ENABLED_MARK" IS '有效标志(0-禁用，1-启用)';
COMMENT ON COLUMN ext_project_gantt."F_SORT_CODE" IS '排序';
COMMENT ON COLUMN ext_project_gantt."F_CREATOR_TIME" IS '创建时间';
COMMENT ON COLUMN ext_project_gantt."F_CREATOR_USER_ID" IS '创建用户';
COMMENT ON COLUMN ext_project_gantt."F_LAST_MODIFY_TIME" IS '修改时间';
COMMENT ON COLUMN ext_project_gantt."F_LAST_MODIFY_USER_ID" IS '修改用户';
COMMENT ON COLUMN ext_project_gantt."F_DELETE_TIME" IS '删除时间';
COMMENT ON COLUMN ext_project_gantt."F_DELETE_USER_ID" IS '删除用户';
COMMENT ON COLUMN ext_project_gantt."F_DELETE_MARK" IS '删除标志';
COMMENT ON COLUMN ext_project_gantt."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：ext_table_example
-- ----------------------------
CREATE TABLE ext_table_example (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_INTERACTION_DATE" TIMESTAMP,
	"F_PROJECT_CODE" NVARCHAR2(50),
	"F_PROJECT_NAME" NVARCHAR2(50),
	"F_PRINCIPAL" NVARCHAR2(50),
	"F_JACK_STANDS" NVARCHAR2(50),
	"F_PROJECT_TYPE" NVARCHAR2(50),
	"F_PROJECT_PHASE" NVARCHAR2(200),
	"F_CUSTOMER_NAME" NVARCHAR2(50),
	"F_COST_AMOUNT" NUMBER(18,2),
	"F_TUNES_AMOUNT" NUMBER(18,2),
	"F_PROJECTED_INCOME" NUMBER(18,2),
	"F_REGISTRANT" NVARCHAR2(50),
	"F_REGISTER_DATE" TIMESTAMP,
	"F_SIGN" CLOB,
	"F_POSTIL_JSON" CLOB,
	"F_POSTIL_COUNT" NUMBER,
	"F_DESCRIPTION" NVARCHAR2(500),
	"F_ENABLED_MARK" NUMBER,
	"F_SORT_CODE" NUMBER,
	"F_CREATOR_TIME" TIMESTAMP,
	"F_CREATOR_USER_ID" NVARCHAR2(50),
	"F_LAST_MODIFY_TIME" TIMESTAMP,
	"F_LAST_MODIFY_USER_ID" NVARCHAR2(50),
	"F_DELETE_TIME" TIMESTAMP,
	"F_DELETE_USER_ID" NVARCHAR2(50),
	"F_DELETE_MARK" NUMBER,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0'

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE ext_table_example IS '表格示例数据';
COMMENT ON COLUMN ext_table_example."F_ID" IS '自然主键';
COMMENT ON COLUMN ext_table_example."F_INTERACTION_DATE" IS '交互日期';
COMMENT ON COLUMN ext_table_example."F_PROJECT_CODE" IS '项目编码';
COMMENT ON COLUMN ext_table_example."F_PROJECT_NAME" IS '项目名称';
COMMENT ON COLUMN ext_table_example."F_PRINCIPAL" IS '负责人';
COMMENT ON COLUMN ext_table_example."F_JACK_STANDS" IS '立顶人';
COMMENT ON COLUMN ext_table_example."F_PROJECT_TYPE" IS '项目类型';
COMMENT ON COLUMN ext_table_example."F_PROJECT_PHASE" IS '项目阶段';
COMMENT ON COLUMN ext_table_example."F_CUSTOMER_NAME" IS '客户名称';
COMMENT ON COLUMN ext_table_example."F_COST_AMOUNT" IS '费用金额';
COMMENT ON COLUMN ext_table_example."F_TUNES_AMOUNT" IS '已用金额';
COMMENT ON COLUMN ext_table_example."F_PROJECTED_INCOME" IS '预计收入';
COMMENT ON COLUMN ext_table_example."F_REGISTRANT" IS '登记人';
COMMENT ON COLUMN ext_table_example."F_REGISTER_DATE" IS '登记时间';
COMMENT ON COLUMN ext_table_example."F_SIGN" IS '标记';
COMMENT ON COLUMN ext_table_example."F_POSTIL_JSON" IS '批注列表Json';
COMMENT ON COLUMN ext_table_example."F_POSTIL_COUNT" IS '批注总数';
COMMENT ON COLUMN ext_table_example."F_DESCRIPTION" IS '描述或说明';
COMMENT ON COLUMN ext_table_example."F_ENABLED_MARK" IS '有效标志(0-禁用，1-启用)';
COMMENT ON COLUMN ext_table_example."F_SORT_CODE" IS '排序';
COMMENT ON COLUMN ext_table_example."F_CREATOR_TIME" IS '创建时间';
COMMENT ON COLUMN ext_table_example."F_CREATOR_USER_ID" IS '创建用户';
COMMENT ON COLUMN ext_table_example."F_LAST_MODIFY_TIME" IS '修改时间';
COMMENT ON COLUMN ext_table_example."F_LAST_MODIFY_USER_ID" IS '修改用户';
COMMENT ON COLUMN ext_table_example."F_DELETE_TIME" IS '删除时间';
COMMENT ON COLUMN ext_table_example."F_DELETE_USER_ID" IS '删除用户';
COMMENT ON COLUMN ext_table_example."F_DELETE_MARK" IS '删除标志';
COMMENT ON COLUMN ext_table_example."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：ext_work_log
-- ----------------------------
CREATE TABLE ext_work_log (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_TITLE" NVARCHAR2(50),
	"F_TODAY_CONTENT" NVARCHAR2(2000),
	"F_TOMORROW_CONTENT" NVARCHAR2(2000),
	"F_QUESTION" NVARCHAR2(2000),
	"F_TO_USER_ID" CLOB,
	"F_DESCRIPTION" NVARCHAR2(500),
	"F_SORT_CODE" NUMBER,
	"F_ENABLED_MARK" NUMBER,
	"F_CREATOR_TIME" TIMESTAMP,
	"F_CREATOR_USER_ID" NVARCHAR2(50),
	"F_LAST_MODIFY_TIME" TIMESTAMP,
	"F_LAST_MODIFY_USER_ID" NVARCHAR2(50),
	"F_DELETE_MARK" NUMBER,
	"F_DELETE_TIME" TIMESTAMP,
	"F_DELETE_USER_ID" NVARCHAR2(50),
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0'

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE ext_work_log IS '工作日志';
COMMENT ON COLUMN ext_work_log."F_ID" IS '';
COMMENT ON COLUMN ext_work_log."F_TITLE" IS '日志标题';
COMMENT ON COLUMN ext_work_log."F_TODAY_CONTENT" IS '今天内容';
COMMENT ON COLUMN ext_work_log."F_TOMORROW_CONTENT" IS '明天内容';
COMMENT ON COLUMN ext_work_log."F_QUESTION" IS '遇到问题';
COMMENT ON COLUMN ext_work_log."F_TO_USER_ID" IS '发送给谁';
COMMENT ON COLUMN ext_work_log."F_DESCRIPTION" IS '描述';
COMMENT ON COLUMN ext_work_log."F_SORT_CODE" IS '排序';
COMMENT ON COLUMN ext_work_log."F_ENABLED_MARK" IS '有效标志';
COMMENT ON COLUMN ext_work_log."F_CREATOR_TIME" IS '创建时间';
COMMENT ON COLUMN ext_work_log."F_CREATOR_USER_ID" IS '创建用户';
COMMENT ON COLUMN ext_work_log."F_LAST_MODIFY_TIME" IS '修改时间';
COMMENT ON COLUMN ext_work_log."F_LAST_MODIFY_USER_ID" IS '修改用户';
COMMENT ON COLUMN ext_work_log."F_DELETE_MARK" IS '删除标志';
COMMENT ON COLUMN ext_work_log."F_DELETE_TIME" IS '删除时间';
COMMENT ON COLUMN ext_work_log."F_DELETE_USER_ID" IS '删除用户';
COMMENT ON COLUMN ext_work_log."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：ext_work_log_share
-- ----------------------------
CREATE TABLE ext_work_log_share (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_WORK_LOG_ID" NVARCHAR2(50),
	"F_SHARE_USER_ID" NVARCHAR2(50),
	"F_SHARE_TIME" TIMESTAMP,
	"F_SORT_CODE" NUMBER,
	"F_CREATOR_TIME" TIMESTAMP,
	"F_CREATOR_USER_ID" NVARCHAR2(50),
	"F_LAST_MODIFY_TIME" TIMESTAMP,
	"F_LAST_MODIFY_USER_ID" NVARCHAR2(50),
	"F_DELETE_TIME" TIMESTAMP,
	"F_DELETE_USER_ID" NVARCHAR2(50),
	"F_DELETE_MARK" NUMBER,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0'

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE ext_work_log_share IS '工作日志分享';
COMMENT ON COLUMN ext_work_log_share."F_ID" IS '自然主键';
COMMENT ON COLUMN ext_work_log_share."F_WORK_LOG_ID" IS '日志主键';
COMMENT ON COLUMN ext_work_log_share."F_SHARE_USER_ID" IS '共享人员';
COMMENT ON COLUMN ext_work_log_share."F_SHARE_TIME" IS '共享时间';
COMMENT ON COLUMN ext_work_log_share."F_SORT_CODE" IS '排序';
COMMENT ON COLUMN ext_work_log_share."F_CREATOR_TIME" IS '创建时间';
COMMENT ON COLUMN ext_work_log_share."F_CREATOR_USER_ID" IS '创建用户';
COMMENT ON COLUMN ext_work_log_share."F_LAST_MODIFY_TIME" IS '修改时间';
COMMENT ON COLUMN ext_work_log_share."F_LAST_MODIFY_USER_ID" IS '修改用户';
COMMENT ON COLUMN ext_work_log_share."F_DELETE_TIME" IS '删除时间';
COMMENT ON COLUMN ext_work_log_share."F_DELETE_USER_ID" IS '删除用户';
COMMENT ON COLUMN ext_work_log_share."F_DELETE_MARK" IS '删除标志';
COMMENT ON COLUMN ext_work_log_share."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：mt293714178051447621
-- ----------------------------
CREATE TABLE mt293714178051447621 (
	"COMINPUTFIELD115" NVARCHAR2(255),
	"COMINPUTFIELD103" NVARCHAR2(255),
	"DATEFIELD102" TIMESTAMP,
	"SELECTFIELD111" NVARCHAR2(255),
	"COMINPUTFIELD110" NVARCHAR2(255),
	"COMINPUTFIELD104" NVARCHAR2(255),
	"COMINPUTFIELD112" NVARCHAR2(255),
	"COMINPUTFIELD113" NVARCHAR2(255),
	"NUMINPUTFIELD116" NUMBER(10,0),
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0',
	"F_FLOW_ID" NVARCHAR2(50),
	"F_FLOW_TASK_ID" NVARCHAR2(50),
	"F_INTE_ASSISTANT" NUMBER

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE mt293714178051447621 IS '主表';
COMMENT ON COLUMN mt293714178051447621."COMINPUTFIELD115" IS '编号';
COMMENT ON COLUMN mt293714178051447621."COMINPUTFIELD103" IS '姓名';
COMMENT ON COLUMN mt293714178051447621."DATEFIELD102" IS '报名时间';
COMMENT ON COLUMN mt293714178051447621."SELECTFIELD111" IS '性别';
COMMENT ON COLUMN mt293714178051447621."COMINPUTFIELD110" IS '年纪';
COMMENT ON COLUMN mt293714178051447621."COMINPUTFIELD104" IS '联系电话';
COMMENT ON COLUMN mt293714178051447621."COMINPUTFIELD112" IS '籍贯';
COMMENT ON COLUMN mt293714178051447621."COMINPUTFIELD113" IS '家庭地址';
COMMENT ON COLUMN mt293714178051447621."NUMINPUTFIELD116" IS '报名费用';
COMMENT ON COLUMN mt293714178051447621."F_ID" IS '主键';
COMMENT ON COLUMN mt293714178051447621."F_TENANT_ID" IS '租户id';
COMMENT ON COLUMN mt293714178051447621."F_FLOW_ID" IS '流程id';
COMMENT ON COLUMN mt293714178051447621."F_FLOW_TASK_ID" IS '流程任务主键';
COMMENT ON COLUMN mt293714178051447621."F_INTE_ASSISTANT" IS '集成助手数据标识';
-- ----------------------------
-- 表名：mt293732572561709893
-- ----------------------------
CREATE TABLE mt293732572561709893 (
	"BILLRULEFIELD119" NVARCHAR2(255),
	"COMINPUTFIELD102" NVARCHAR2(255),
	"COMINPUTFIELD103" NVARCHAR2(255),
	"COMINPUTFIELD104" NVARCHAR2(255),
	"COMINPUTFIELD105" NVARCHAR2(255),
	"COMINPUTFIELD106" NVARCHAR2(255),
	"COMINPUTFIELD107" NVARCHAR2(255),
	"RADIOFIELD108" NVARCHAR2(255),
	"RADIOFIELD109" NVARCHAR2(255),
	"COMINPUTFIELD110" NVARCHAR2(255),
	"COMINPUTFIELD111" NVARCHAR2(255),
	"COMINPUTFIELD112" NVARCHAR2(255),
	"COMINPUTFIELD113" NVARCHAR2(255),
	"DATEFIELD114" TIMESTAMP,
	"COMINPUTFIELD115" NVARCHAR2(255),
	"COMINPUTFIELD116" NVARCHAR2(255),
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0',
	"F_FLOW_ID" NVARCHAR2(50),
	"F_FLOW_TASK_ID" NVARCHAR2(50),
	"F_INTE_ASSISTANT" NUMBER

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE mt293732572561709893 IS '主表';
COMMENT ON COLUMN mt293732572561709893."BILLRULEFIELD119" IS '编号';
COMMENT ON COLUMN mt293732572561709893."COMINPUTFIELD102" IS '购药人';
COMMENT ON COLUMN mt293732572561709893."COMINPUTFIELD103" IS '药品名称';
COMMENT ON COLUMN mt293732572561709893."COMINPUTFIELD104" IS '身份证号';
COMMENT ON COLUMN mt293732572561709893."COMINPUTFIELD105" IS '现住址';
COMMENT ON COLUMN mt293732572561709893."COMINPUTFIELD106" IS '所属街道社区';
COMMENT ON COLUMN mt293732572561709893."COMINPUTFIELD107" IS '电话';
COMMENT ON COLUMN mt293732572561709893."RADIOFIELD108" IS '是否有重点地区旅居史';
COMMENT ON COLUMN mt293732572561709893."RADIOFIELD109" IS '症状描述（是否发热、咳嗽）';
COMMENT ON COLUMN mt293732572561709893."COMINPUTFIELD110" IS '工作单位';
COMMENT ON COLUMN mt293732572561709893."COMINPUTFIELD111" IS '症状';
COMMENT ON COLUMN mt293732572561709893."COMINPUTFIELD112" IS '营业员';
COMMENT ON COLUMN mt293732572561709893."COMINPUTFIELD113" IS '联系人电话';
COMMENT ON COLUMN mt293732572561709893."DATEFIELD114" IS '销售时间';
COMMENT ON COLUMN mt293732572561709893."COMINPUTFIELD115" IS '药房名称';
COMMENT ON COLUMN mt293732572561709893."COMINPUTFIELD116" IS '许可证';
COMMENT ON COLUMN mt293732572561709893."F_ID" IS '主键';
COMMENT ON COLUMN mt293732572561709893."F_TENANT_ID" IS '租户id';
COMMENT ON COLUMN mt293732572561709893."F_FLOW_ID" IS '流程id';
COMMENT ON COLUMN mt293732572561709893."F_FLOW_TASK_ID" IS '流程任务主键';
COMMENT ON COLUMN mt293732572561709893."F_INTE_ASSISTANT" IS '集成助手数据标识';
-- ----------------------------
-- 表名：mt293737725377420101
-- ----------------------------
CREATE TABLE mt293737725377420101 (
	"BILLRULEFIELD110" NVARCHAR2(255),
	"COMINPUTFIELD101" NVARCHAR2(255),
	"COMINPUTFIELD102" NVARCHAR2(255),
	"UPLOADFZFIELD109" CLOB,
	"DATEFIELD105" TIMESTAMP,
	"COMINPUTFIELD106" NVARCHAR2(255),
	"COMINPUTFIELD107" NVARCHAR2(255),
	"SELECTFIELD108" NVARCHAR2(255),
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0',
	"F_FLOW_ID" NVARCHAR2(50),
	"F_FLOW_TASK_ID" NVARCHAR2(50),
	"F_INTE_ASSISTANT" NUMBER

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE mt293737725377420101 IS '主表';
COMMENT ON COLUMN mt293737725377420101."BILLRULEFIELD110" IS '编号';
COMMENT ON COLUMN mt293737725377420101."COMINPUTFIELD101" IS '姓名';
COMMENT ON COLUMN mt293737725377420101."COMINPUTFIELD102" IS '身份证号/护照';
COMMENT ON COLUMN mt293737725377420101."UPLOADFZFIELD109" IS '身份证';
COMMENT ON COLUMN mt293737725377420101."DATEFIELD105" IS '核酸检测时间';
COMMENT ON COLUMN mt293737725377420101."COMINPUTFIELD106" IS '联系方式（手机或座机）';
COMMENT ON COLUMN mt293737725377420101."COMINPUTFIELD107" IS '家庭住址';
COMMENT ON COLUMN mt293737725377420101."SELECTFIELD108" IS '所在社区';
COMMENT ON COLUMN mt293737725377420101."F_ID" IS '主键';
COMMENT ON COLUMN mt293737725377420101."F_TENANT_ID" IS '租户id';
COMMENT ON COLUMN mt293737725377420101."F_FLOW_ID" IS '流程id';
COMMENT ON COLUMN mt293737725377420101."F_FLOW_TASK_ID" IS '流程任务主键';
COMMENT ON COLUMN mt293737725377420101."F_INTE_ASSISTANT" IS '集成助手数据标识';
-- ----------------------------
-- 表名：mt293740367726025541
-- ----------------------------
CREATE TABLE mt293740367726025541 (
	"BILLRULEFIELD101" NVARCHAR2(255),
	"SELECTFIELD102" NVARCHAR2(255),
	"COMINPUTFIELD116" NVARCHAR2(255),
	"SELECTFIELD115" NVARCHAR2(255),
	"NUMINPUTFIELD105" NUMBER(10,0),
	"NUMINPUTFIELD106" NUMBER(10,0),
	"UPLOADIMGFIELD107" CLOB,
	"TEXTAREAFIELD108" NVARCHAR2(255),
	"CREATEUSERFIELD110" NVARCHAR2(255),
	"CREATETIMEFIELD111" TIMESTAMP,
	"MODIFYTIMEFIELD113" TIMESTAMP,
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0',
	"F_FLOW_ID" NVARCHAR2(50),
	"F_FLOW_TASK_ID" NVARCHAR2(50),
	"F_INTE_ASSISTANT" NUMBER

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE mt293740367726025541 IS '主表';
COMMENT ON COLUMN mt293740367726025541."BILLRULEFIELD101" IS '产品编码';
COMMENT ON COLUMN mt293740367726025541."SELECTFIELD102" IS '产品分类';
COMMENT ON COLUMN mt293740367726025541."COMINPUTFIELD116" IS '产品名称';
COMMENT ON COLUMN mt293740367726025541."SELECTFIELD115" IS '产品型号';
COMMENT ON COLUMN mt293740367726025541."NUMINPUTFIELD105" IS '采购单价';
COMMENT ON COLUMN mt293740367726025541."NUMINPUTFIELD106" IS '销售单价';
COMMENT ON COLUMN mt293740367726025541."UPLOADIMGFIELD107" IS '产品图片';
COMMENT ON COLUMN mt293740367726025541."TEXTAREAFIELD108" IS '产品描述';
COMMENT ON COLUMN mt293740367726025541."CREATEUSERFIELD110" IS '提交人';
COMMENT ON COLUMN mt293740367726025541."CREATETIMEFIELD111" IS '创建时间';
COMMENT ON COLUMN mt293740367726025541."MODIFYTIMEFIELD113" IS '修改时间';
COMMENT ON COLUMN mt293740367726025541."F_ID" IS '主键';
COMMENT ON COLUMN mt293740367726025541."F_TENANT_ID" IS '租户id';
COMMENT ON COLUMN mt293740367726025541."F_FLOW_ID" IS '流程id';
COMMENT ON COLUMN mt293740367726025541."F_FLOW_TASK_ID" IS '流程任务主键';
COMMENT ON COLUMN mt293740367726025541."F_INTE_ASSISTANT" IS '集成助手数据标识';
-- ----------------------------
-- 表名：mt293756710756064069
-- ----------------------------
CREATE TABLE mt293756710756064069 (
	"BILLRULEFIELD102" NVARCHAR2(255),
	"USERSELECTFIELD103" NVARCHAR2(255),
	"DATEFIELD108" TIMESTAMP,
	"DATEFIELD104" TIMESTAMP,
	"DATEFIELD105" TIMESTAMP,
	"TEXTAREAFIELD107" NVARCHAR2(255),
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0',
	"F_FLOW_ID" NVARCHAR2(50),
	"F_FLOW_TASK_ID" NVARCHAR2(50),
	"F_INTE_ASSISTANT" NUMBER

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE mt293756710756064069 IS '主表';
COMMENT ON COLUMN mt293756710756064069."BILLRULEFIELD102" IS '编号';
COMMENT ON COLUMN mt293756710756064069."USERSELECTFIELD103" IS '申请人';
COMMENT ON COLUMN mt293756710756064069."DATEFIELD108" IS '申请时间';
COMMENT ON COLUMN mt293756710756064069."DATEFIELD104" IS '用车时间';
COMMENT ON COLUMN mt293756710756064069."DATEFIELD105" IS '归还时间';
COMMENT ON COLUMN mt293756710756064069."TEXTAREAFIELD107" IS '申请备注';
COMMENT ON COLUMN mt293756710756064069."F_ID" IS '主键';
COMMENT ON COLUMN mt293756710756064069."F_TENANT_ID" IS '租户id';
COMMENT ON COLUMN mt293756710756064069."F_FLOW_ID" IS '流程id';
COMMENT ON COLUMN mt293756710756064069."F_FLOW_TASK_ID" IS '流程任务主键';
COMMENT ON COLUMN mt293756710756064069."F_INTE_ASSISTANT" IS '集成助手数据标识';
-- ----------------------------
-- 表名：mt294012196562705413
-- ----------------------------
CREATE TABLE mt294012196562705413 (
	"COMINPUTFIELD102" NVARCHAR2(255),
	"RADIOFIELD103" NVARCHAR2(255),
	"NUMINPUTFIELD113" NUMBER(10,0),
	"COMINPUTFIELD104" NVARCHAR2(255),
	"COMINPUTFIELD105" NVARCHAR2(255),
	"UPLOADFZFIELD106" CLOB,
	"TEXTAREAFIELD115" NVARCHAR2(255),
	"COMINPUTFIELD107" NVARCHAR2(255),
	"COMINPUTFIELD108" NVARCHAR2(255),
	"COMINPUTFIELD109" NVARCHAR2(255),
	"COMINPUTFIELD110" NVARCHAR2(255),
	"SELECTFIELD112" NVARCHAR2(255),
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0',
	"F_FLOW_ID" NVARCHAR2(50),
	"F_INTE_ASSISTANT" NUMBER,
	"F_FLOW_TASK_ID" NVARCHAR2(50)

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE mt294012196562705413 IS '主表';
COMMENT ON COLUMN mt294012196562705413."COMINPUTFIELD102" IS '姓名';
COMMENT ON COLUMN mt294012196562705413."RADIOFIELD103" IS '性别';
COMMENT ON COLUMN mt294012196562705413."NUMINPUTFIELD113" IS '年纪';
COMMENT ON COLUMN mt294012196562705413."COMINPUTFIELD104" IS '联系电话';
COMMENT ON COLUMN mt294012196562705413."COMINPUTFIELD105" IS '邮箱';
COMMENT ON COLUMN mt294012196562705413."UPLOADFZFIELD106" IS '简历附件';
COMMENT ON COLUMN mt294012196562705413."TEXTAREAFIELD115" IS '家庭地址';
COMMENT ON COLUMN mt294012196562705413."COMINPUTFIELD107" IS '身份证号';
COMMENT ON COLUMN mt294012196562705413."COMINPUTFIELD108" IS '出生日期';
COMMENT ON COLUMN mt294012196562705413."COMINPUTFIELD109" IS '毕业院校';
COMMENT ON COLUMN mt294012196562705413."COMINPUTFIELD110" IS '专业名称';
COMMENT ON COLUMN mt294012196562705413."SELECTFIELD112" IS '最高学历';
COMMENT ON COLUMN mt294012196562705413."F_ID" IS '主键';
COMMENT ON COLUMN mt294012196562705413."F_TENANT_ID" IS '租户id';
COMMENT ON COLUMN mt294012196562705413."F_FLOW_ID" IS '流程id';
COMMENT ON COLUMN mt294012196562705413."F_INTE_ASSISTANT" IS '集成助手数据标识';
COMMENT ON COLUMN mt294012196562705413."F_FLOW_TASK_ID" IS '流程任务主键';
-- ----------------------------
-- 表名：mt294022926196317189
-- ----------------------------
CREATE TABLE mt294022926196317189 (
	"COMINPUTFIELD101" NVARCHAR2(255),
	"RADIOFIELD102" NVARCHAR2(255),
	"SELECTFIELD103" NVARCHAR2(255),
	"COMINPUTFIELD104" NVARCHAR2(255),
	"SELECTFIELD105" NVARCHAR2(255),
	"SELECTFIELD106" NVARCHAR2(255),
	"COMINPUTFIELD107" NVARCHAR2(255),
	"COMINPUTFIELD108" NVARCHAR2(255),
	"COMINPUTFIELD109" NVARCHAR2(255),
	"TEXTAREAFIELD110" NVARCHAR2(255),
	"ADDRESSFIELD111" CLOB,
	"COMINPUTFIELD153" NVARCHAR2(255),
	"COMINPUTFIELD114" NVARCHAR2(255),
	"COMINPUTFIELD117" NVARCHAR2(255),
	"SELECTFIELD119" NVARCHAR2(255),
	"SELECTFIELD120" NVARCHAR2(255),
	"SELECTFIELD121" NVARCHAR2(255),
	"SELECTFIELD122" NVARCHAR2(255),
	"COMINPUTFIELD123" NVARCHAR2(255),
	"DATEFIELD125" TIMESTAMP,
	"SELECTFIELD126" NVARCHAR2(255),
	"TEXTAREAFIELD127" NVARCHAR2(255),
	"COMINPUTFIELD128" NVARCHAR2(255),
	"COMINPUTFIELD129" NVARCHAR2(255),
	"COMINPUTFIELD130" NVARCHAR2(255),
	"DATEFIELD131" TIMESTAMP,
	"COMINPUTFIELD132" NVARCHAR2(255),
	"COMINPUTFIELD133" NVARCHAR2(255),
	"SELECTFIELD134" NVARCHAR2(255),
	"DATEFIELD135" TIMESTAMP,
	"ADDRESSFIELD138" CLOB,
	"COMINPUTFIELD139" NVARCHAR2(255),
	"COMINPUTFIELD140" NVARCHAR2(255),
	"COMINPUTFIELD141" NVARCHAR2(255),
	"SELECTFIELD142" NVARCHAR2(255),
	"DATEFIELD143" TIMESTAMP,
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0',
	"F_FLOW_ID" NVARCHAR2(50),
	"F_INTE_ASSISTANT" NUMBER,
	"F_FLOW_TASK_ID" NVARCHAR2(50)

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE mt294022926196317189 IS '主表';
COMMENT ON COLUMN mt294022926196317189."COMINPUTFIELD101" IS '姓名';
COMMENT ON COLUMN mt294022926196317189."RADIOFIELD102" IS '性别';
COMMENT ON COLUMN mt294022926196317189."SELECTFIELD103" IS '送诊';
COMMENT ON COLUMN mt294022926196317189."COMINPUTFIELD104" IS '送诊地址';
COMMENT ON COLUMN mt294022926196317189."SELECTFIELD105" IS '发热';
COMMENT ON COLUMN mt294022926196317189."SELECTFIELD106" IS '证件类型';
COMMENT ON COLUMN mt294022926196317189."COMINPUTFIELD107" IS '证件号';
COMMENT ON COLUMN mt294022926196317189."COMINPUTFIELD108" IS '联系方式';
COMMENT ON COLUMN mt294022926196317189."COMINPUTFIELD109" IS '人员状态';
COMMENT ON COLUMN mt294022926196317189."TEXTAREAFIELD110" IS '人员状态备注';
COMMENT ON COLUMN mt294022926196317189."ADDRESSFIELD111" IS '区县';
COMMENT ON COLUMN mt294022926196317189."COMINPUTFIELD153" IS '街道';
COMMENT ON COLUMN mt294022926196317189."COMINPUTFIELD114" IS '社区';
COMMENT ON COLUMN mt294022926196317189."COMINPUTFIELD117" IS '具体地址';
COMMENT ON COLUMN mt294022926196317189."SELECTFIELD119" IS '管控状态';
COMMENT ON COLUMN mt294022926196317189."SELECTFIELD120" IS '管控隔离类型';
COMMENT ON COLUMN mt294022926196317189."SELECTFIELD121" IS '人员类型（一级）';
COMMENT ON COLUMN mt294022926196317189."SELECTFIELD122" IS '人员类型（二级）';
COMMENT ON COLUMN mt294022926196317189."COMINPUTFIELD123" IS '密接相关人';
COMMENT ON COLUMN mt294022926196317189."DATEFIELD125" IS '返回时间';
COMMENT ON COLUMN mt294022926196317189."SELECTFIELD126" IS '交通方式';
COMMENT ON COLUMN mt294022926196317189."TEXTAREAFIELD127" IS '返回后活动路径';
COMMENT ON COLUMN mt294022926196317189."COMINPUTFIELD128" IS '返回经过地';
COMMENT ON COLUMN mt294022926196317189."COMINPUTFIELD129" IS '同行人员';
COMMENT ON COLUMN mt294022926196317189."COMINPUTFIELD130" IS '接触人员';
COMMENT ON COLUMN mt294022926196317189."DATEFIELD131" IS '填写时间';
COMMENT ON COLUMN mt294022926196317189."COMINPUTFIELD132" IS '机构名称';
COMMENT ON COLUMN mt294022926196317189."COMINPUTFIELD133" IS '机构编号';
COMMENT ON COLUMN mt294022926196317189."SELECTFIELD134" IS '社区/农村';
COMMENT ON COLUMN mt294022926196317189."DATEFIELD135" IS '离开日期';
COMMENT ON COLUMN mt294022926196317189."ADDRESSFIELD138" IS '返回前前出发地';
COMMENT ON COLUMN mt294022926196317189."COMINPUTFIELD139" IS '核酸检测';
COMMENT ON COLUMN mt294022926196317189."COMINPUTFIELD140" IS '第一次检测结果';
COMMENT ON COLUMN mt294022926196317189."COMINPUTFIELD141" IS '第二次检测结果';
COMMENT ON COLUMN mt294022926196317189."SELECTFIELD142" IS '是否才去信息化管控';
COMMENT ON COLUMN mt294022926196317189."DATEFIELD143" IS '本次管控日期';
COMMENT ON COLUMN mt294022926196317189."F_ID" IS '主键';
COMMENT ON COLUMN mt294022926196317189."F_TENANT_ID" IS '租户id';
COMMENT ON COLUMN mt294022926196317189."F_FLOW_ID" IS '流程id';
COMMENT ON COLUMN mt294022926196317189."F_INTE_ASSISTANT" IS '集成助手数据标识';
COMMENT ON COLUMN mt294022926196317189."F_FLOW_TASK_ID" IS '流程任务主键';
-- ----------------------------
-- 表名：mt294027801932110853
-- ----------------------------
CREATE TABLE mt294027801932110853 (
	"COMINPUTFIELD101" NVARCHAR2(255),
	"COMINPUTFIELD102" NVARCHAR2(255),
	"CURRORGANIZEFIELD103" NVARCHAR2(255),
	"NUMINPUTFIELD104" NUMBER(10,0),
	"NUMINPUTFIELD105" NUMBER(10,0),
	"NUMINPUTFIELD106" NUMBER(10,0),
	"NUMINPUTFIELD107" NUMBER(10,0),
	"NUMINPUTFIELD108" NUMBER(10,0),
	"NUMINPUTFIELD109" NUMBER(10,0),
	"NUMINPUTFIELD110" NUMBER(10,0),
	"NUMINPUTFIELD111" NUMBER(10,0),
	"NUMINPUTFIELD112" NUMBER(10,0),
	"NUMINPUTFIELD113" NUMBER(10,0),
	"NUMINPUTFIELD114" NUMBER(10,0),
	"NUMINPUTFIELD115" NUMBER(10,0),
	"NUMINPUTFIELD116" NUMBER(10,0),
	"NUMINPUTFIELD117" NUMBER(10,0),
	"NUMINPUTFIELD118" NUMBER(10,0),
	"NUMINPUTFIELD119" NUMBER(10,0),
	"NUMINPUTFIELD120" NUMBER(10,0),
	"NUMINPUTFIELD121" NUMBER(10,0),
	"TEXTAREAFIELD122" NVARCHAR2(255),
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0',
	"F_FLOW_ID" NVARCHAR2(50),
	"F_INTE_ASSISTANT" NUMBER,
	"F_FLOW_TASK_ID" NVARCHAR2(50)

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE mt294027801932110853 IS '主表';
COMMENT ON COLUMN mt294027801932110853."COMINPUTFIELD101" IS '姓名';
COMMENT ON COLUMN mt294027801932110853."COMINPUTFIELD102" IS '工号';
COMMENT ON COLUMN mt294027801932110853."CURRORGANIZEFIELD103" IS '部门';
COMMENT ON COLUMN mt294027801932110853."NUMINPUTFIELD104" IS '基本工资';
COMMENT ON COLUMN mt294027801932110853."NUMINPUTFIELD105" IS '岗位工资';
COMMENT ON COLUMN mt294027801932110853."NUMINPUTFIELD106" IS '补贴金额';
COMMENT ON COLUMN mt294027801932110853."NUMINPUTFIELD107" IS '绩效/每月';
COMMENT ON COLUMN mt294027801932110853."NUMINPUTFIELD108" IS '迟到早退扣款';
COMMENT ON COLUMN mt294027801932110853."NUMINPUTFIELD109" IS '病假扣款';
COMMENT ON COLUMN mt294027801932110853."NUMINPUTFIELD110" IS '事假扣款';
COMMENT ON COLUMN mt294027801932110853."NUMINPUTFIELD111" IS '旷工扣款';
COMMENT ON COLUMN mt294027801932110853."NUMINPUTFIELD112" IS '应发工资';
COMMENT ON COLUMN mt294027801932110853."NUMINPUTFIELD113" IS '个人养老保险';
COMMENT ON COLUMN mt294027801932110853."NUMINPUTFIELD114" IS '个人医疗保险';
COMMENT ON COLUMN mt294027801932110853."NUMINPUTFIELD115" IS '个人事业险';
COMMENT ON COLUMN mt294027801932110853."NUMINPUTFIELD116" IS '个人大病险';
COMMENT ON COLUMN mt294027801932110853."NUMINPUTFIELD117" IS '个人公积金';
COMMENT ON COLUMN mt294027801932110853."NUMINPUTFIELD118" IS '累计收入';
COMMENT ON COLUMN mt294027801932110853."NUMINPUTFIELD119" IS '累计扣减个税';
COMMENT ON COLUMN mt294027801932110853."NUMINPUTFIELD120" IS '累计应纳税所得额';
COMMENT ON COLUMN mt294027801932110853."NUMINPUTFIELD121" IS '本期个税';
COMMENT ON COLUMN mt294027801932110853."TEXTAREAFIELD122" IS '备注';
COMMENT ON COLUMN mt294027801932110853."F_ID" IS '主键';
COMMENT ON COLUMN mt294027801932110853."F_TENANT_ID" IS '租户id';
COMMENT ON COLUMN mt294027801932110853."F_FLOW_ID" IS '流程id';
COMMENT ON COLUMN mt294027801932110853."F_INTE_ASSISTANT" IS '集成助手数据标识';
COMMENT ON COLUMN mt294027801932110853."F_FLOW_TASK_ID" IS '流程任务主键';
-- ----------------------------
-- 表名：mt294031961024928773
-- ----------------------------
CREATE TABLE mt294031961024928773 (
	"SELECTFIELD101" NVARCHAR2(255),
	"USERSELECTFIELD102" NVARCHAR2(255),
	"COMINPUTFIELD118" NVARCHAR2(255),
	"DEPSELECTFIELD105" NVARCHAR2(255),
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0',
	"F_FLOW_ID" NVARCHAR2(50),
	"F_FLOW_TASK_ID" NVARCHAR2(50),
	"F_INTE_ASSISTANT" NUMBER

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE mt294031961024928773 IS '主表';
COMMENT ON COLUMN mt294031961024928773."SELECTFIELD101" IS '评估周期';
COMMENT ON COLUMN mt294031961024928773."USERSELECTFIELD102" IS '评估人';
COMMENT ON COLUMN mt294031961024928773."COMINPUTFIELD118" IS '工号';
COMMENT ON COLUMN mt294031961024928773."DEPSELECTFIELD105" IS '部门';
COMMENT ON COLUMN mt294031961024928773."F_ID" IS '主键';
COMMENT ON COLUMN mt294031961024928773."F_TENANT_ID" IS '租户id';
COMMENT ON COLUMN mt294031961024928773."F_FLOW_ID" IS '流程id';
COMMENT ON COLUMN mt294031961024928773."F_FLOW_TASK_ID" IS '流程任务主键';
COMMENT ON COLUMN mt294031961024928773."F_INTE_ASSISTANT" IS '集成助手数据标识';
-- ----------------------------
-- 表名：mt294037561750363141
-- ----------------------------
CREATE TABLE mt294037561750363141 (
	"COMINPUTFIELD101" NVARCHAR2(255),
	"COMINPUTFIELD102" NVARCHAR2(255),
	"COMINPUTFIELD103" NVARCHAR2(255),
	"USERSELECTFIELD104" NVARCHAR2(255),
	"COMINPUTFIELD105" NVARCHAR2(255),
	"CREATEUSERFIELD126" NVARCHAR2(255),
	"CREATETIMEFIELD123" TIMESTAMP,
	"MODIFYTIMEFIELD127" TIMESTAMP,
	"UPLOADIMGFIELD106" CLOB,
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_VERSION" NUMBER,
	"F_FLOWTASKID" NVARCHAR2(50),
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0',
	"F_FLOW_ID" NVARCHAR2(50),
	"F_FLOW_TASK_ID" NVARCHAR2(50),
	"F_INTE_ASSISTANT" NUMBER

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE mt294037561750363141 IS '主表';
COMMENT ON COLUMN mt294037561750363141."COMINPUTFIELD101" IS '设备名称';
COMMENT ON COLUMN mt294037561750363141."COMINPUTFIELD102" IS '设备编号';
COMMENT ON COLUMN mt294037561750363141."COMINPUTFIELD103" IS '所在位置';
COMMENT ON COLUMN mt294037561750363141."USERSELECTFIELD104" IS '责任人';
COMMENT ON COLUMN mt294037561750363141."COMINPUTFIELD105" IS '联系方式';
COMMENT ON COLUMN mt294037561750363141."CREATEUSERFIELD126" IS '提交人';
COMMENT ON COLUMN mt294037561750363141."CREATETIMEFIELD123" IS '创建时间';
COMMENT ON COLUMN mt294037561750363141."MODIFYTIMEFIELD127" IS '修改时间';
COMMENT ON COLUMN mt294037561750363141."UPLOADIMGFIELD106" IS '设备图片';
COMMENT ON COLUMN mt294037561750363141."F_ID" IS '主键';
COMMENT ON COLUMN mt294037561750363141."F_VERSION" IS '乐观锁';
COMMENT ON COLUMN mt294037561750363141."F_FLOWTASKID" IS '流程任务主键';
COMMENT ON COLUMN mt294037561750363141."F_TENANT_ID" IS '租户id';
COMMENT ON COLUMN mt294037561750363141."F_FLOW_ID" IS '流程id';
COMMENT ON COLUMN mt294037561750363141."F_FLOW_TASK_ID" IS '流程任务主键';
COMMENT ON COLUMN mt294037561750363141."F_INTE_ASSISTANT" IS '集成助手数据标识';
-- ----------------------------
-- 表名：mt294090217118276613
-- ----------------------------
CREATE TABLE mt294090217118276613 (
	"SELECTFIELD102" NVARCHAR2(255),
	"SELECTFIELD103" NVARCHAR2(255),
	"DATEFIELD104" TIMESTAMP,
	"DATEFIELD105" TIMESTAMP,
	"COMINPUTFIELD106" NVARCHAR2(255),
	"COMINPUTFIELD107" NVARCHAR2(255),
	"SELECTFIELD108" NVARCHAR2(255),
	"COMINPUTFIELD109" NVARCHAR2(255),
	"COMINPUTFIELD110" NVARCHAR2(255),
	"COMINPUTFIELD111" NVARCHAR2(255),
	"COMINPUTFIELD112" NVARCHAR2(255),
	"DATEFIELD129" TIMESTAMP,
	"COMINPUTFIELD113" NVARCHAR2(255),
	"USERSELECTFIELD125" NVARCHAR2(255),
	"SELECTFIELD124" NVARCHAR2(255),
	"TEXTAREAFIELD114" NVARCHAR2(255),
	"TEXTAREAFIELD115" NVARCHAR2(255),
	"TEXTAREAFIELD126" NVARCHAR2(255),
	"COMINPUTFIELD130" NVARCHAR2(255),
	"DATEFIELD131" TIMESTAMP,
	"SELECTFIELD127" NVARCHAR2(255),
	"SELECTFIELD128" NVARCHAR2(255),
	"SELECTFIELD121" NVARCHAR2(255),
	"SELECTFIELD122" NVARCHAR2(255),
	"UPLOADFZFIELD123" CLOB,
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0',
	"F_FLOWID" NVARCHAR2(50),
	"F_FLOW_TASK_ID" NVARCHAR2(50),
	"F_FLOW_ID" NVARCHAR2(50),
	"F_INTE_ASSISTANT" NUMBER

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE mt294090217118276613 IS '主表';
COMMENT ON COLUMN mt294090217118276613."SELECTFIELD102" IS '上报部门';
COMMENT ON COLUMN mt294090217118276613."SELECTFIELD103" IS '药剂科分部门';
COMMENT ON COLUMN mt294090217118276613."DATEFIELD104" IS '上报时间';
COMMENT ON COLUMN mt294090217118276613."DATEFIELD105" IS '差错时间';
COMMENT ON COLUMN mt294090217118276613."COMINPUTFIELD106" IS '病历/门诊号';
COMMENT ON COLUMN mt294090217118276613."COMINPUTFIELD107" IS '患者姓名';
COMMENT ON COLUMN mt294090217118276613."SELECTFIELD108" IS '性别';
COMMENT ON COLUMN mt294090217118276613."COMINPUTFIELD109" IS '年龄';
COMMENT ON COLUMN mt294090217118276613."COMINPUTFIELD110" IS '诊断';
COMMENT ON COLUMN mt294090217118276613."COMINPUTFIELD111" IS '发现人员';
COMMENT ON COLUMN mt294090217118276613."COMINPUTFIELD112" IS '差错人员';
COMMENT ON COLUMN mt294090217118276613."DATEFIELD129" IS '发生日期';
COMMENT ON COLUMN mt294090217118276613."COMINPUTFIELD113" IS '药品名称';
COMMENT ON COLUMN mt294090217118276613."USERSELECTFIELD125" IS '当前处理人';
COMMENT ON COLUMN mt294090217118276613."SELECTFIELD124" IS '流程状态';
COMMENT ON COLUMN mt294090217118276613."TEXTAREAFIELD114" IS '差错详情';
COMMENT ON COLUMN mt294090217118276613."TEXTAREAFIELD115" IS '建议改进措施';
COMMENT ON COLUMN mt294090217118276613."TEXTAREAFIELD126" IS '处理结果';
COMMENT ON COLUMN mt294090217118276613."COMINPUTFIELD130" IS '来文号';
COMMENT ON COLUMN mt294090217118276613."DATEFIELD131" IS '来文日期';
COMMENT ON COLUMN mt294090217118276613."SELECTFIELD127" IS '环节';
COMMENT ON COLUMN mt294090217118276613."SELECTFIELD128" IS '原因';
COMMENT ON COLUMN mt294090217118276613."SELECTFIELD121" IS '事件等级';
COMMENT ON COLUMN mt294090217118276613."SELECTFIELD122" IS '事件级别';
COMMENT ON COLUMN mt294090217118276613."UPLOADFZFIELD123" IS '附件';
COMMENT ON COLUMN mt294090217118276613."F_ID" IS '主键';
COMMENT ON COLUMN mt294090217118276613."F_TENANT_ID" IS '租户id';
COMMENT ON COLUMN mt294090217118276613."F_FLOWID" IS '流程id';
COMMENT ON COLUMN mt294090217118276613."F_FLOW_TASK_ID" IS '流程任务主键';
COMMENT ON COLUMN mt294090217118276613."F_FLOW_ID" IS '流程id';
COMMENT ON COLUMN mt294090217118276613."F_INTE_ASSISTANT" IS '集成助手数据标识';
-- ----------------------------
-- 表名：mt294099237023526085
-- ----------------------------
CREATE TABLE mt294099237023526085 (
	"USERSELECTFIELD101" NVARCHAR2(255),
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0'

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE mt294099237023526085 IS '主表';
COMMENT ON COLUMN mt294099237023526085."USERSELECTFIELD101" IS '用户选择';
COMMENT ON COLUMN mt294099237023526085."F_ID" IS '主键';
COMMENT ON COLUMN mt294099237023526085."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：mt294099893327272965
-- ----------------------------
CREATE TABLE mt294099893327272965 (
	"USERSELECTFIELD102" NVARCHAR2(255),
	"CURRORGANIZEFIELD103" NVARCHAR2(255),
	"DATEFIELD104" TIMESTAMP,
	"DATEFIELD105" TIMESTAMP,
	"DATEFIELD106" TIMESTAMP,
	"CREATEUSERFIELD112" NVARCHAR2(255),
	"CREATETIMEFIELD113" TIMESTAMP,
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0',
	"F_FLOWID" NVARCHAR2(50),
	"F_FLOW_TASK_ID" NVARCHAR2(50),
	"F_FLOW_ID" NVARCHAR2(50),
	"F_INTE_ASSISTANT" NUMBER

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE mt294099893327272965 IS '主表';
COMMENT ON COLUMN mt294099893327272965."USERSELECTFIELD102" IS '出差申请人';
COMMENT ON COLUMN mt294099893327272965."CURRORGANIZEFIELD103" IS '所属部门';
COMMENT ON COLUMN mt294099893327272965."DATEFIELD104" IS '申请日期';
COMMENT ON COLUMN mt294099893327272965."DATEFIELD105" IS '出差日期';
COMMENT ON COLUMN mt294099893327272965."DATEFIELD106" IS '归来日期';
COMMENT ON COLUMN mt294099893327272965."CREATEUSERFIELD112" IS '申请人';
COMMENT ON COLUMN mt294099893327272965."CREATETIMEFIELD113" IS '申请时间';
COMMENT ON COLUMN mt294099893327272965."F_ID" IS '主键';
COMMENT ON COLUMN mt294099893327272965."F_TENANT_ID" IS '租户id';
COMMENT ON COLUMN mt294099893327272965."F_FLOWID" IS '流程id';
COMMENT ON COLUMN mt294099893327272965."F_FLOW_TASK_ID" IS '流程任务主键';
COMMENT ON COLUMN mt294099893327272965."F_FLOW_ID" IS '流程id';
COMMENT ON COLUMN mt294099893327272965."F_INTE_ASSISTANT" IS '集成助手数据标识';
-- ----------------------------
-- 表名：mt294104577349819397
-- ----------------------------
CREATE TABLE mt294104577349819397 (
	"DEPSELECTFIELD102" NVARCHAR2(255),
	"DATEFIELD103" TIMESTAMP,
	"DATEFIELD104" TIMESTAMP,
	"DATEFIELD105" TIMESTAMP,
	"NUMINPUTFIELD107" NUMBER(10,0),
	"COMINPUTFIELD108" NVARCHAR2(255),
	"TEXTAREAFIELD109" NVARCHAR2(255),
	"CREATEUSERFIELD110" NVARCHAR2(255),
	"CREATETIMEFIELD111" TIMESTAMP,
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0'

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE mt294104577349819397 IS '主表';
COMMENT ON COLUMN mt294104577349819397."DEPSELECTFIELD102" IS '部门';
COMMENT ON COLUMN mt294104577349819397."DATEFIELD103" IS '当前时间';
COMMENT ON COLUMN mt294104577349819397."DATEFIELD104" IS '预算年份';
COMMENT ON COLUMN mt294104577349819397."DATEFIELD105" IS '预算月份';
COMMENT ON COLUMN mt294104577349819397."NUMINPUTFIELD107" IS '预算金额';
COMMENT ON COLUMN mt294104577349819397."COMINPUTFIELD108" IS '金额大写';
COMMENT ON COLUMN mt294104577349819397."TEXTAREAFIELD109" IS '备注';
COMMENT ON COLUMN mt294104577349819397."CREATEUSERFIELD110" IS '申请人';
COMMENT ON COLUMN mt294104577349819397."CREATETIMEFIELD111" IS '申请时间';
COMMENT ON COLUMN mt294104577349819397."F_ID" IS '主键';
COMMENT ON COLUMN mt294104577349819397."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：mt294376098702073541
-- ----------------------------
CREATE TABLE mt294376098702073541 (
	"BILLRULEFIELD101" NVARCHAR2(255),
	"COMINPUTFIELD102" NVARCHAR2(255),
	"COMINPUTFIELD103" NVARCHAR2(255),
	"TEXTAREAFIELD104" NVARCHAR2(255),
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0',
	"F_FLOW_ID" NVARCHAR2(50),
	"F_FLOW_TASK_ID" NVARCHAR2(50),
	"F_INTE_ASSISTANT" NUMBER

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE mt294376098702073541 IS '主表';
COMMENT ON COLUMN mt294376098702073541."BILLRULEFIELD101" IS '内部订单号';
COMMENT ON COLUMN mt294376098702073541."COMINPUTFIELD102" IS '客户名称';
COMMENT ON COLUMN mt294376098702073541."COMINPUTFIELD103" IS '联系电话';
COMMENT ON COLUMN mt294376098702073541."TEXTAREAFIELD104" IS '详细地址';
COMMENT ON COLUMN mt294376098702073541."F_ID" IS '主键';
COMMENT ON COLUMN mt294376098702073541."F_TENANT_ID" IS '租户id';
COMMENT ON COLUMN mt294376098702073541."F_FLOW_ID" IS '流程id';
COMMENT ON COLUMN mt294376098702073541."F_FLOW_TASK_ID" IS '流程任务主键';
COMMENT ON COLUMN mt294376098702073541."F_INTE_ASSISTANT" IS '集成助手数据标识';
-- ----------------------------
-- 表名：mt294382866144468677
-- ----------------------------
CREATE TABLE mt294382866144468677 (
	"BILLRULEFIELD102" NVARCHAR2(255),
	"COMINPUTFIELD104" NVARCHAR2(255),
	"SELECTFIELD105" NVARCHAR2(255),
	"DEPSELECTFIELD106" NVARCHAR2(255),
	"COMINPUTFIELD108" NVARCHAR2(255),
	"USERSELECTFIELD109" NVARCHAR2(255),
	"UPLOADFZFIELD119" CLOB,
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0',
	"F_FLOWID" NVARCHAR2(50),
	"F_FLOW_ID" NVARCHAR2(50),
	"F_INTE_ASSISTANT" NUMBER,
	"F_FLOW_TASK_ID" NVARCHAR2(50)

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE mt294382866144468677 IS '主表';
COMMENT ON COLUMN mt294382866144468677."BILLRULEFIELD102" IS '订单号';
COMMENT ON COLUMN mt294382866144468677."COMINPUTFIELD104" IS '供应商';
COMMENT ON COLUMN mt294382866144468677."SELECTFIELD105" IS '仓库';
COMMENT ON COLUMN mt294382866144468677."DEPSELECTFIELD106" IS '采购部门';
COMMENT ON COLUMN mt294382866144468677."COMINPUTFIELD108" IS '部门代号';
COMMENT ON COLUMN mt294382866144468677."USERSELECTFIELD109" IS '业务负责人';
COMMENT ON COLUMN mt294382866144468677."UPLOADFZFIELD119" IS '发票上传';
COMMENT ON COLUMN mt294382866144468677."F_ID" IS '主键';
COMMENT ON COLUMN mt294382866144468677."F_TENANT_ID" IS '租户id';
COMMENT ON COLUMN mt294382866144468677."F_FLOWID" IS '流程id';
COMMENT ON COLUMN mt294382866144468677."F_FLOW_ID" IS '流程id';
COMMENT ON COLUMN mt294382866144468677."F_INTE_ASSISTANT" IS '集成助手数据标识';
COMMENT ON COLUMN mt294382866144468677."F_FLOW_TASK_ID" IS '流程任务主键';
-- ----------------------------
-- 表名：mt382811547782648325
-- ----------------------------
CREATE TABLE mt382811547782648325 (
	"COMINPUTFIELD101" NVARCHAR2(255),
	"TEXTAREAFIELD102" NVARCHAR2(255),
	"NUMINPUTFIELD103" NUMBER(38,0),
	"F_FLOWID" NVARCHAR2(255),
	"F_VERSION" NUMBER,
	"F_FLOWTASKID" NVARCHAR2(255),
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_FLOW_ID" NVARCHAR2(50),
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0',
	"F_INTE_ASSISTANT" NUMBER,
	"F_FLOW_TASK_ID" NVARCHAR2(50)

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE mt382811547782648325 IS '0111流程表单-主表';
COMMENT ON COLUMN mt382811547782648325."COMINPUTFIELD101" IS '单行输入';
COMMENT ON COLUMN mt382811547782648325."TEXTAREAFIELD102" IS '多行输入';
COMMENT ON COLUMN mt382811547782648325."NUMINPUTFIELD103" IS '数字输入';
COMMENT ON COLUMN mt382811547782648325."F_FLOWID" IS '流程引擎id';
COMMENT ON COLUMN mt382811547782648325."F_VERSION" IS '乐观锁';
COMMENT ON COLUMN mt382811547782648325."F_FLOWTASKID" IS '流程任务主键';
COMMENT ON COLUMN mt382811547782648325."F_ID" IS '主键';
COMMENT ON COLUMN mt382811547782648325."F_FLOW_ID" IS '流程id';
COMMENT ON COLUMN mt382811547782648325."F_TENANT_ID" IS '租户id';
COMMENT ON COLUMN mt382811547782648325."F_INTE_ASSISTANT" IS '集成助手数据标识';
COMMENT ON COLUMN mt382811547782648325."F_FLOW_TASK_ID" IS '流程任务主键';
-- ----------------------------
-- 表名：mt385453315686752389
-- ----------------------------
CREATE TABLE mt385453315686752389 (
	"DEPSELECTFIELD102" NVARCHAR2(255),
	"DATEFIELD103" TIMESTAMP,
	"DATEFIELD104" TIMESTAMP,
	"DATEFIELD105" TIMESTAMP,
	"NUMINPUTFIELD107" NUMBER(38,0),
	"COMINPUTFIELD108" NVARCHAR2(255),
	"TEXTAREAFIELD109" NVARCHAR2(255),
	"CREATEUSERFIELD110" NVARCHAR2(255),
	"CREATETIMEFIELD111" TIMESTAMP,
	"F_FLOWID" NVARCHAR2(50),
	"F_VERSION" NUMBER,
	"F_FLOWTASKID" NVARCHAR2(50),
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_FLOW_ID" NVARCHAR2(50),
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0',
	"F_FLOW_TASK_ID" NVARCHAR2(50),
	"F_INTE_ASSISTANT" NUMBER

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE mt385453315686752389 IS '预算管理-主表';
COMMENT ON COLUMN mt385453315686752389."DEPSELECTFIELD102" IS '部门';
COMMENT ON COLUMN mt385453315686752389."DATEFIELD103" IS '当前时间';
COMMENT ON COLUMN mt385453315686752389."DATEFIELD104" IS '预算年份';
COMMENT ON COLUMN mt385453315686752389."DATEFIELD105" IS '预算月份';
COMMENT ON COLUMN mt385453315686752389."NUMINPUTFIELD107" IS '预算金额';
COMMENT ON COLUMN mt385453315686752389."COMINPUTFIELD108" IS '金额大写';
COMMENT ON COLUMN mt385453315686752389."TEXTAREAFIELD109" IS '备注';
COMMENT ON COLUMN mt385453315686752389."CREATEUSERFIELD110" IS '申请人';
COMMENT ON COLUMN mt385453315686752389."CREATETIMEFIELD111" IS '申请时间';
COMMENT ON COLUMN mt385453315686752389."F_FLOWID" IS '流程id';
COMMENT ON COLUMN mt385453315686752389."F_VERSION" IS '乐观锁';
COMMENT ON COLUMN mt385453315686752389."F_FLOWTASKID" IS '流程任务主键';
COMMENT ON COLUMN mt385453315686752389."F_ID" IS '主键';
COMMENT ON COLUMN mt385453315686752389."F_FLOW_ID" IS '流程id';
COMMENT ON COLUMN mt385453315686752389."F_TENANT_ID" IS '租户id';
COMMENT ON COLUMN mt385453315686752389."F_FLOW_TASK_ID" IS '流程任务Id';
COMMENT ON COLUMN mt385453315686752389."F_INTE_ASSISTANT" IS '集成助手数据标识';
-- ----------------------------
-- 表名：mt395179351563312389
-- ----------------------------
CREATE TABLE mt395179351563312389 (
	"PID" NVARCHAR2(255),
	"NAME" NVARCHAR2(255),
	"ENCODE" NVARCHAR2(255),
	"F_FLOWID" NVARCHAR2(50),
	"F_VERSION" NUMBER,
	"F_FLOWTASKID" NVARCHAR2(50),
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_FLOW_ID" NVARCHAR2(50),
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0',
	"F_FLOW_TASK_ID" NVARCHAR2(50),
	"F_INTE_ASSISTANT" NUMBER

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE mt395179351563312389 IS '列表树形表格-主表';
COMMENT ON COLUMN mt395179351563312389."PID" IS '上级';
COMMENT ON COLUMN mt395179351563312389."NAME" IS '名称';
COMMENT ON COLUMN mt395179351563312389."ENCODE" IS '编号';
COMMENT ON COLUMN mt395179351563312389."F_FLOWID" IS '流程id';
COMMENT ON COLUMN mt395179351563312389."F_VERSION" IS '乐观锁';
COMMENT ON COLUMN mt395179351563312389."F_FLOWTASKID" IS '流程任务主键';
COMMENT ON COLUMN mt395179351563312389."F_ID" IS '主键';
COMMENT ON COLUMN mt395179351563312389."F_FLOW_ID" IS '流程id';
COMMENT ON COLUMN mt395179351563312389."F_TENANT_ID" IS '租户id';
COMMENT ON COLUMN mt395179351563312389."F_FLOW_TASK_ID" IS '流程任务主键';
COMMENT ON COLUMN mt395179351563312389."F_INTE_ASSISTANT" IS '集成助手数据标识';
-- ----------------------------
-- 表名：mt395899725691230469
-- ----------------------------
CREATE TABLE mt395899725691230469 (
	"COMINPUTFIELD102" NVARCHAR2(255),
	"COMINPUTFIELD103" NVARCHAR2(255),
	"COMINPUTFIELD106" NVARCHAR2(255),
	"SELECTFIELD121" NVARCHAR2(255),
	"UPLOADFZFIELD107" CLOB,
	"UPLOADFZFIELD108" CLOB,
	"COMINPUTFIELD118" NVARCHAR2(255),
	"COMINPUTFIELD117" NVARCHAR2(255),
	"COMINPUTFIELD119" NVARCHAR2(255),
	"COMINPUTFIELD120" NVARCHAR2(255),
	"COMINPUTFIELD122" NVARCHAR2(255),
	"COMINPUTFIELD123" NVARCHAR2(255),
	"TREESELECTFIELD126" NVARCHAR2(255),
	"F_FLOWID" NVARCHAR2(50),
	"F_VERSION" NUMBER,
	"F_FLOWTASKID" NVARCHAR2(50),
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0'

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE mt395899725691230469 IS '3.4.6新增功能汇总示例-主表';
COMMENT ON COLUMN mt395899725691230469."COMINPUTFIELD102" IS '设计表单名称显示';
COMMENT ON COLUMN mt395899725691230469."COMINPUTFIELD103" IS '控件类型中文名';
COMMENT ON COLUMN mt395899725691230469."COMINPUTFIELD106" IS 'css示例添加';
COMMENT ON COLUMN mt395899725691230469."SELECTFIELD121" IS '添加多个快捷入口';
COMMENT ON COLUMN mt395899725691230469."UPLOADFZFIELD107" IS '支持自定义路径和分用户存储';
COMMENT ON COLUMN mt395899725691230469."UPLOADFZFIELD108" IS '支持文件类型多选';
COMMENT ON COLUMN mt395899725691230469."COMINPUTFIELD118" IS '打印模板多选';
COMMENT ON COLUMN mt395899725691230469."COMINPUTFIELD117" IS '数据条件过滤';
COMMENT ON COLUMN mt395899725691230469."COMINPUTFIELD119" IS '批量打印/下载';
COMMENT ON COLUMN mt395899725691230469."COMINPUTFIELD120" IS '自定义按钮调整';
COMMENT ON COLUMN mt395899725691230469."COMINPUTFIELD122" IS '保存并新增';
COMMENT ON COLUMN mt395899725691230469."COMINPUTFIELD123" IS '支持控件多选查询';
COMMENT ON COLUMN mt395899725691230469."TREESELECTFIELD126" IS '列表树形表格';
COMMENT ON COLUMN mt395899725691230469."F_FLOWID" IS '流程id';
COMMENT ON COLUMN mt395899725691230469."F_VERSION" IS '乐观锁';
COMMENT ON COLUMN mt395899725691230469."F_FLOWTASKID" IS '流程任务主键';
COMMENT ON COLUMN mt395899725691230469."F_ID" IS '主键';
COMMENT ON COLUMN mt395899725691230469."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：mt395964134161651973
-- ----------------------------
CREATE TABLE mt395964134161651973 (
	"RELATIONFORMFIELD101" NVARCHAR2(255),
	"POPUPSELECTFIELD104" NVARCHAR2(255),
	"F_FLOWID" NVARCHAR2(50),
	"F_VERSION" NUMBER,
	"F_FLOWTASKID" NVARCHAR2(50),
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0'

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE mt395964134161651973 IS '列表数据链接查看详情页-主表';
COMMENT ON COLUMN mt395964134161651973."RELATIONFORMFIELD101" IS '产品名称';
COMMENT ON COLUMN mt395964134161651973."POPUPSELECTFIELD104" IS '人员名称';
COMMENT ON COLUMN mt395964134161651973."F_FLOWID" IS '流程id';
COMMENT ON COLUMN mt395964134161651973."F_VERSION" IS '乐观锁';
COMMENT ON COLUMN mt395964134161651973."F_FLOWTASKID" IS '流程任务主键';
COMMENT ON COLUMN mt395964134161651973."F_ID" IS '主键';
COMMENT ON COLUMN mt395964134161651973."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：mt400655094485373381
-- ----------------------------
CREATE TABLE mt400655094485373381 (
	"COMINPUTFIELD101" NVARCHAR2(255),
	"F_FLOWID" NVARCHAR2(50),
	"F_VERSION" NUMBER,
	"F_FLOWTASKID" NVARCHAR2(50),
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0'

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE mt400655094485373381 IS 'cccccc-主表';
COMMENT ON COLUMN mt400655094485373381."COMINPUTFIELD101" IS '单行输入';
COMMENT ON COLUMN mt400655094485373381."F_FLOWID" IS '流程id';
COMMENT ON COLUMN mt400655094485373381."F_VERSION" IS '乐观锁';
COMMENT ON COLUMN mt400655094485373381."F_FLOWTASKID" IS '流程任务主键';
COMMENT ON COLUMN mt400655094485373381."F_ID" IS '主键';
COMMENT ON COLUMN mt400655094485373381."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：mt420589912199274117
-- ----------------------------
CREATE TABLE mt420589912199274117 (
	"SELECTFIELD101" NVARCHAR2(255),
	"SELECTFIELD102" NVARCHAR2(255),
	"SELECTFIELD103" NVARCHAR2(255),
	"F_FLOWID" NVARCHAR2(50),
	"F_VERSION" NUMBER,
	"F_FLOWTASKID" NVARCHAR2(50),
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_FLOW_ID" NVARCHAR2(50),
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0',
	"F_FLOW_TASK_ID" NVARCHAR2(50),
	"F_INTE_ASSISTANT" NUMBER

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE mt420589912199274117 IS '行政区划联动-主表';
COMMENT ON COLUMN mt420589912199274117."SELECTFIELD101" IS '省';
COMMENT ON COLUMN mt420589912199274117."SELECTFIELD102" IS '市';
COMMENT ON COLUMN mt420589912199274117."SELECTFIELD103" IS '区';
COMMENT ON COLUMN mt420589912199274117."F_FLOWID" IS '流程id';
COMMENT ON COLUMN mt420589912199274117."F_VERSION" IS '乐观锁';
COMMENT ON COLUMN mt420589912199274117."F_FLOWTASKID" IS '流程任务主键';
COMMENT ON COLUMN mt420589912199274117."F_ID" IS '主键';
COMMENT ON COLUMN mt420589912199274117."F_FLOW_ID" IS '流程id';
COMMENT ON COLUMN mt420589912199274117."F_TENANT_ID" IS '租户id';
COMMENT ON COLUMN mt420589912199274117."F_FLOW_TASK_ID" IS '流程任务主键';
COMMENT ON COLUMN mt420589912199274117."F_INTE_ASSISTANT" IS '集成助手数据标识';
-- ----------------------------
-- 表名：mt456990191458975685
-- ----------------------------
CREATE TABLE mt456990191458975685 (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"INPUTFIELD101" NVARCHAR2(500),
	"TEXTAREAFIELD102" NVARCHAR2(500),
	"INPUTNUMBERFIELD103" NVARCHAR2(500),
	"SWITCHFIELD104" NVARCHAR2(500),
	"RADIOFIELD105" NVARCHAR2(500),
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0'

, PRIMARY KEY (F_Id,f_tenant_id)
);
COMMENT ON TABLE mt456990191458975685 IS 'Test08041';
COMMENT ON COLUMN mt456990191458975685."F_ID" IS '主键';
COMMENT ON COLUMN mt456990191458975685."INPUTFIELD101" IS '单行输入';
COMMENT ON COLUMN mt456990191458975685."TEXTAREAFIELD102" IS '多行输入';
COMMENT ON COLUMN mt456990191458975685."INPUTNUMBERFIELD103" IS '数字输入';
COMMENT ON COLUMN mt456990191458975685."SWITCHFIELD104" IS '开关';
COMMENT ON COLUMN mt456990191458975685."RADIOFIELD105" IS '单选框组';
COMMENT ON COLUMN mt456990191458975685."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：mt469496947087047173
-- ----------------------------
CREATE TABLE mt469496947087047173 (
	"INPUTFIELD101" NVARCHAR2(255),
	"INPUTNUMBERFIELD102" NUMBER(38,15),
	"DATEPICKERFIELD111" TIMESTAMP,
	"SELECTFIELD106" NVARCHAR2(255),
	"TEXTAREAFIELD107" NVARCHAR2(255),
	"F_FLOW_ID" NVARCHAR2(50),
	"F_VERSION" NUMBER,
	"F_FLOW_TASK_ID" NVARCHAR2(50),
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0',
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_INTE_ASSISTANT" NUMBER

, PRIMARY KEY (f_tenant_id,f_id)
);
COMMENT ON TABLE mt469496947087047173 IS '复杂表头示例-主表';
COMMENT ON COLUMN mt469496947087047173."INPUTFIELD101" IS '客户名称';
COMMENT ON COLUMN mt469496947087047173."INPUTNUMBERFIELD102" IS '金额';
COMMENT ON COLUMN mt469496947087047173."DATEPICKERFIELD111" IS '日期';
COMMENT ON COLUMN mt469496947087047173."SELECTFIELD106" IS '方式字典';
COMMENT ON COLUMN mt469496947087047173."TEXTAREAFIELD107" IS '备注';
COMMENT ON COLUMN mt469496947087047173."F_FLOW_ID" IS '流程id';
COMMENT ON COLUMN mt469496947087047173."F_VERSION" IS '乐观锁';
COMMENT ON COLUMN mt469496947087047173."F_FLOW_TASK_ID" IS '流程任务主键';
COMMENT ON COLUMN mt469496947087047173."F_TENANT_ID" IS '租户id';
COMMENT ON COLUMN mt469496947087047173."F_ID" IS '主键';
COMMENT ON COLUMN mt469496947087047173."F_INTE_ASSISTANT" IS '集成助手数据标识';
-- ----------------------------
-- 表名：mt469499339534825989
-- ----------------------------
CREATE TABLE mt469499339534825989 (
	"INPUTFIELD112" NVARCHAR2(255),
	"ORGANIZESELECTFIELD105" NVARCHAR2(255),
	"DEPSELECTFIELD107" NVARCHAR2(255),
	"POSSELECTFIELD108" NVARCHAR2(255),
	"GROUPSELECTFIELD111" NVARCHAR2(255),
	"USERSELECTFIELD109" NVARCHAR2(255),
	"USERSSELECTFIELD110" NVARCHAR2(255),
	"F_FLOW_ID" NVARCHAR2(50),
	"F_VERSION" NUMBER,
	"F_FLOW_TASK_ID" NVARCHAR2(50),
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0',
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_INTE_ASSISTANT" NUMBER

, PRIMARY KEY (f_tenant_id,f_id)
);
COMMENT ON TABLE mt469499339534825989 IS '高级控件和默认查询-主表';
COMMENT ON COLUMN mt469499339534825989."INPUTFIELD112" IS '姓名';
COMMENT ON COLUMN mt469499339534825989."ORGANIZESELECTFIELD105" IS '组织选择';
COMMENT ON COLUMN mt469499339534825989."DEPSELECTFIELD107" IS '部门选择';
COMMENT ON COLUMN mt469499339534825989."POSSELECTFIELD108" IS '岗位选择';
COMMENT ON COLUMN mt469499339534825989."GROUPSELECTFIELD111" IS '分组选择';
COMMENT ON COLUMN mt469499339534825989."USERSELECTFIELD109" IS '用户选择';
COMMENT ON COLUMN mt469499339534825989."USERSSELECTFIELD110" IS '用户组件';
COMMENT ON COLUMN mt469499339534825989."F_FLOW_ID" IS '流程id';
COMMENT ON COLUMN mt469499339534825989."F_VERSION" IS '乐观锁';
COMMENT ON COLUMN mt469499339534825989."F_FLOW_TASK_ID" IS '流程任务主键';
COMMENT ON COLUMN mt469499339534825989."F_TENANT_ID" IS '租户id';
COMMENT ON COLUMN mt469499339534825989."F_ID" IS '主键';
COMMENT ON COLUMN mt469499339534825989."F_INTE_ASSISTANT" IS '集成助手数据标识';
-- ----------------------------
-- 表名：mt469502670336489989
-- ----------------------------
CREATE TABLE mt469502670336489989 (
	"INPUTFIELD104" NVARCHAR2(255),
	"RADIOFIELD106" NVARCHAR2(255),
	"RADIOFIELD101" NVARCHAR2(255),
	"CHECKBOXFIELD102" NVARCHAR2(255),
	"SELECTFIELD103" NVARCHAR2(255),
	"CASCADERFIELD107" NVARCHAR2(255),
	"TREESELECTFIELD108" NVARCHAR2(255),
	"POPUPTABLESELECTFIELD109" NVARCHAR2(255),
	"AUTOCOMPLETEFIELD111" NVARCHAR2(255),
	"POPUPSELECTFIELD110" NVARCHAR2(255),
	"F_FLOW_ID" NVARCHAR2(50),
	"F_VERSION" NUMBER,
	"F_FLOW_TASK_ID" NVARCHAR2(50),
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0',
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_INTE_ASSISTANT" NUMBER

, PRIMARY KEY (f_tenant_id,f_id)
);
COMMENT ON TABLE mt469502670336489989 IS '数据接口字段示例-主表';
COMMENT ON COLUMN mt469502670336489989."INPUTFIELD104" IS '姓名';
COMMENT ON COLUMN mt469502670336489989."RADIOFIELD106" IS '性别';
COMMENT ON COLUMN mt469502670336489989."RADIOFIELD101" IS '单选框组';
COMMENT ON COLUMN mt469502670336489989."CHECKBOXFIELD102" IS '多选框组';
COMMENT ON COLUMN mt469502670336489989."SELECTFIELD103" IS '下拉选择';
COMMENT ON COLUMN mt469502670336489989."CASCADERFIELD107" IS '级联选择';
COMMENT ON COLUMN mt469502670336489989."TREESELECTFIELD108" IS '树形';
COMMENT ON COLUMN mt469502670336489989."POPUPTABLESELECTFIELD109" IS '下拉表格真分页';
COMMENT ON COLUMN mt469502670336489989."AUTOCOMPLETEFIELD111" IS '下拉补全';
COMMENT ON COLUMN mt469502670336489989."POPUPSELECTFIELD110" IS '弹窗选择';
COMMENT ON COLUMN mt469502670336489989."F_FLOW_ID" IS '流程id';
COMMENT ON COLUMN mt469502670336489989."F_VERSION" IS '乐观锁';
COMMENT ON COLUMN mt469502670336489989."F_FLOW_TASK_ID" IS '流程任务主键';
COMMENT ON COLUMN mt469502670336489989."F_TENANT_ID" IS '租户id';
COMMENT ON COLUMN mt469502670336489989."F_ID" IS '主键';
COMMENT ON COLUMN mt469502670336489989."F_INTE_ASSISTANT" IS '集成助手数据标识';
-- ----------------------------
-- 表名：mt470888132380721605
-- ----------------------------
CREATE TABLE mt470888132380721605 (
	"UPLOADIMGFIELD142" CLOB,
	"UPLOADIMGFIELD143" CLOB,
	"UPLOADIMGFIELD144" CLOB,
	"UPLOADIMGFIELD145" CLOB,
	"UPLOADIMGFIELD147" CLOB,
	"UPLOADIMGFIELD146" CLOB,
	"UPLOADIMGFIELD148" CLOB,
	"UPLOADIMGFIELD178" CLOB,
	"UPLOADIMGFIELD181" CLOB,
	"UPLOADIMGFIELD149" CLOB,
	"UPLOADIMGFIELD150" CLOB,
	"UPLOADIMGFIELD151" CLOB,
	"UPLOADIMGFIELD152" CLOB,
	"UPLOADIMGFIELD153" CLOB,
	"UPLOADIMGFIELD154" CLOB,
	"UPLOADIMGFIELD155" CLOB,
	"UPLOADIMGFIELD156" CLOB,
	"UPLOADIMGFIELD158" CLOB,
	"UPLOADIMGFIELD161" CLOB,
	"UPLOADIMGFIELD162" CLOB,
	"UPLOADIMGFIELD164" CLOB,
	"UPLOADIMGFIELD165" CLOB,
	"UPLOADIMGFIELD166" CLOB,
	"UPLOADIMGFIELD167" CLOB,
	"UPLOADIMGFIELD168" CLOB,
	"UPLOADIMGFIELD169" CLOB,
	"UPLOADIMGFIELD170" CLOB,
	"UPLOADIMGFIELD171" CLOB,
	"UPLOADIMGFIELD172" CLOB,
	"UPLOADIMGFIELD173" CLOB,
	"F_FLOW_ID" NVARCHAR2(50),
	"F_VERSION" NUMBER,
	"F_FLOW_TASK_ID" NVARCHAR2(50),
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0',
	"F_ID" NVARCHAR2(50) NOT NULL,
	"UPLOADIMGFIELD157" CLOB,
	"UPLOADIMGFIELD11" NVARCHAR2(50),
	"UPLOADIMGFIELD12" CLOB

, PRIMARY KEY (f_tenant_id,f_id)
);
COMMENT ON TABLE mt470888132380721605 IS '3.5.0更新功能-主表';
COMMENT ON COLUMN mt470888132380721605."UPLOADIMGFIELD142" IS '图片上传';
COMMENT ON COLUMN mt470888132380721605."UPLOADIMGFIELD143" IS '图片上传';
COMMENT ON COLUMN mt470888132380721605."UPLOADIMGFIELD144" IS '图片上传';
COMMENT ON COLUMN mt470888132380721605."UPLOADIMGFIELD145" IS '图片上传';
COMMENT ON COLUMN mt470888132380721605."UPLOADIMGFIELD147" IS '图片上传';
COMMENT ON COLUMN mt470888132380721605."UPLOADIMGFIELD146" IS '图片上传';
COMMENT ON COLUMN mt470888132380721605."UPLOADIMGFIELD148" IS '图片上传';
COMMENT ON COLUMN mt470888132380721605."UPLOADIMGFIELD178" IS '图片上传';
COMMENT ON COLUMN mt470888132380721605."UPLOADIMGFIELD181" IS '图片上传';
COMMENT ON COLUMN mt470888132380721605."UPLOADIMGFIELD149" IS '图片上传';
COMMENT ON COLUMN mt470888132380721605."UPLOADIMGFIELD150" IS '图片上传';
COMMENT ON COLUMN mt470888132380721605."UPLOADIMGFIELD151" IS '图片上传';
COMMENT ON COLUMN mt470888132380721605."UPLOADIMGFIELD152" IS '图片上传';
COMMENT ON COLUMN mt470888132380721605."UPLOADIMGFIELD153" IS '图片上传';
COMMENT ON COLUMN mt470888132380721605."UPLOADIMGFIELD154" IS '图片上传';
COMMENT ON COLUMN mt470888132380721605."UPLOADIMGFIELD155" IS '图片上传';
COMMENT ON COLUMN mt470888132380721605."UPLOADIMGFIELD156" IS '图片上传';
COMMENT ON COLUMN mt470888132380721605."UPLOADIMGFIELD158" IS '图片上传';
COMMENT ON COLUMN mt470888132380721605."UPLOADIMGFIELD161" IS '图片上传';
COMMENT ON COLUMN mt470888132380721605."UPLOADIMGFIELD162" IS '图片上传';
COMMENT ON COLUMN mt470888132380721605."UPLOADIMGFIELD164" IS '图片上传';
COMMENT ON COLUMN mt470888132380721605."UPLOADIMGFIELD165" IS '图片上传';
COMMENT ON COLUMN mt470888132380721605."UPLOADIMGFIELD166" IS '图片上传';
COMMENT ON COLUMN mt470888132380721605."UPLOADIMGFIELD167" IS '图片上传';
COMMENT ON COLUMN mt470888132380721605."UPLOADIMGFIELD168" IS '图片上传';
COMMENT ON COLUMN mt470888132380721605."UPLOADIMGFIELD169" IS '图片上传';
COMMENT ON COLUMN mt470888132380721605."UPLOADIMGFIELD170" IS '图片上传';
COMMENT ON COLUMN mt470888132380721605."UPLOADIMGFIELD171" IS '图片上传';
COMMENT ON COLUMN mt470888132380721605."UPLOADIMGFIELD172" IS '图片上传';
COMMENT ON COLUMN mt470888132380721605."UPLOADIMGFIELD173" IS '图片上传';
COMMENT ON COLUMN mt470888132380721605."F_FLOW_ID" IS '流程id';
COMMENT ON COLUMN mt470888132380721605."F_VERSION" IS '乐观锁';
COMMENT ON COLUMN mt470888132380721605."F_FLOW_TASK_ID" IS '流程任务主键';
COMMENT ON COLUMN mt470888132380721605."F_TENANT_ID" IS '租户id';
COMMENT ON COLUMN mt470888132380721605."F_ID" IS '主键';
COMMENT ON COLUMN mt470888132380721605."UPLOADIMGFIELD157" IS '图片上传';
COMMENT ON COLUMN mt470888132380721605."UPLOADIMGFIELD11" IS '文件上传';
COMMENT ON COLUMN mt470888132380721605."UPLOADIMGFIELD12" IS '文件上传1';
-- ----------------------------
-- 表名：mt470913062111543749
-- ----------------------------
CREATE TABLE mt470913062111543749 (
	"INPUTFIELD101" NVARCHAR2(255),
	"INPUTFIELD102" NVARCHAR2(255),
	"INPUTFIELD103" NVARCHAR2(255),
	"INPUTFIELD104" NVARCHAR2(255),
	"F_FLOW_ID" NVARCHAR2(50),
	"F_VERSION" NUMBER,
	"F_FLOW_TASK_ID" NVARCHAR2(50),
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0',
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_INTE_ASSISTANT" NUMBER

, PRIMARY KEY (f_tenant_id,f_id)
);
COMMENT ON TABLE mt470913062111543749 IS '集成助手暂存数据表-主表';
COMMENT ON COLUMN mt470913062111543749."INPUTFIELD101" IS '单行输入1';
COMMENT ON COLUMN mt470913062111543749."INPUTFIELD102" IS '单行输入2';
COMMENT ON COLUMN mt470913062111543749."INPUTFIELD103" IS '单行输入3';
COMMENT ON COLUMN mt470913062111543749."INPUTFIELD104" IS '单行输入4';
COMMENT ON COLUMN mt470913062111543749."F_FLOW_ID" IS '流程id';
COMMENT ON COLUMN mt470913062111543749."F_VERSION" IS '乐观锁';
COMMENT ON COLUMN mt470913062111543749."F_FLOW_TASK_ID" IS '流程任务主键';
COMMENT ON COLUMN mt470913062111543749."F_TENANT_ID" IS '租户id';
COMMENT ON COLUMN mt470913062111543749."F_ID" IS '主键';
COMMENT ON COLUMN mt470913062111543749."F_INTE_ASSISTANT" IS '集成助手数据标识';
-- ----------------------------
-- 表名：mt470929966582727173
-- ----------------------------
CREATE TABLE mt470929966582727173 (
	"INPUTFIELD101" NVARCHAR2(255),
	"INPUTFIELD102" NVARCHAR2(255),
	"INPUTFIELD103" NVARCHAR2(255),
	"INPUTFIELD104" NVARCHAR2(255),
	"INPUTFIELD105" NVARCHAR2(255),
	"INPUTFIELD106" NVARCHAR2(255),
	"INPUTFIELD107" NVARCHAR2(255),
	"INPUTFIELD108" NVARCHAR2(255),
	"INPUTFIELD109" NVARCHAR2(255),
	"INPUTFIELD110" NVARCHAR2(255),
	"F_FLOW_ID" NVARCHAR2(50),
	"F_VERSION" NUMBER,
	"F_FLOW_TASK_ID" NVARCHAR2(50),
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0',
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_INTE_ASSISTANT" NUMBER

, PRIMARY KEY (f_tenant_id,f_id)
);
COMMENT ON TABLE mt470929966582727173 IS '客户管理记录表-主表';
COMMENT ON COLUMN mt470929966582727173."INPUTFIELD101" IS '内部订单号';
COMMENT ON COLUMN mt470929966582727173."INPUTFIELD102" IS '客户名称';
COMMENT ON COLUMN mt470929966582727173."INPUTFIELD103" IS '联系电话';
COMMENT ON COLUMN mt470929966582727173."INPUTFIELD104" IS '详细地址';
COMMENT ON COLUMN mt470929966582727173."INPUTFIELD105" IS '商品名';
COMMENT ON COLUMN mt470929966582727173."INPUTFIELD106" IS '编号';
COMMENT ON COLUMN mt470929966582727173."INPUTFIELD107" IS '销售价';
COMMENT ON COLUMN mt470929966582727173."INPUTFIELD108" IS '当前库存';
COMMENT ON COLUMN mt470929966582727173."INPUTFIELD109" IS '数量';
COMMENT ON COLUMN mt470929966582727173."INPUTFIELD110" IS '单品总价';
COMMENT ON COLUMN mt470929966582727173."F_FLOW_ID" IS '流程id';
COMMENT ON COLUMN mt470929966582727173."F_VERSION" IS '乐观锁';
COMMENT ON COLUMN mt470929966582727173."F_FLOW_TASK_ID" IS '流程任务主键';
COMMENT ON COLUMN mt470929966582727173."F_TENANT_ID" IS '租户id';
COMMENT ON COLUMN mt470929966582727173."F_ID" IS '主键';
COMMENT ON COLUMN mt470929966582727173."F_INTE_ASSISTANT" IS '集成助手数据标识';
-- ----------------------------
-- 表名：mt517668914876910661
-- ----------------------------
CREATE TABLE mt517668914876910661 (
	"CREATETIMEFIELD101" TIMESTAMP,
	"DATEPICKERFIELD102" TIMESTAMP,
	"DATEPICKERFIELD104" TIMESTAMP,
	"DATEPICKERFIELD105" TIMESTAMP,
	"TIMEPICKERFIELD103" NVARCHAR2(255),
	"SELECTFIELD106" NVARCHAR2(255),
	"CASCADERFIELD107" NVARCHAR2(255),
	"F_FLOW_ID" NVARCHAR2(50),
	"F_VERSION" NUMBER,
	"F_FLOW_TASK_ID" NVARCHAR2(50),
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0',
	"F_ID" NVARCHAR2(50) NOT NULL

, PRIMARY KEY (f_tenant_id,f_id)
);
COMMENT ON TABLE mt517668914876910661 IS '打印回显示例-主表';
COMMENT ON COLUMN mt517668914876910661."CREATETIMEFIELD101" IS '创建时间';
COMMENT ON COLUMN mt517668914876910661."DATEPICKERFIELD102" IS '年';
COMMENT ON COLUMN mt517668914876910661."DATEPICKERFIELD104" IS '年月';
COMMENT ON COLUMN mt517668914876910661."DATEPICKERFIELD105" IS '年月';
COMMENT ON COLUMN mt517668914876910661."TIMEPICKERFIELD103" IS '时间选择';
COMMENT ON COLUMN mt517668914876910661."SELECTFIELD106" IS '下拉选择';
COMMENT ON COLUMN mt517668914876910661."CASCADERFIELD107" IS '级联选择';
COMMENT ON COLUMN mt517668914876910661."F_FLOW_ID" IS '流程id';
COMMENT ON COLUMN mt517668914876910661."F_VERSION" IS '乐观锁';
COMMENT ON COLUMN mt517668914876910661."F_FLOW_TASK_ID" IS '流程任务主键';
COMMENT ON COLUMN mt517668914876910661."F_TENANT_ID" IS '租户id';
COMMENT ON COLUMN mt517668914876910661."F_ID" IS '主键';
-- ----------------------------
-- 表名：mt585077626008240453
-- ----------------------------
CREATE TABLE mt585077626008240453 (
	"BILLRULEFIELD106" NVARCHAR2(255),
	"INPUTFIELD101" NVARCHAR2(255),
	"DATEPICKERFIELD102" TIMESTAMP,
	"SELECTFIELD103" NVARCHAR2(255),
	"USERSELECTFIELD104" NVARCHAR2(255),
	"USERSELECTFIELD105" NVARCHAR2(255),
	"CALCULATEFIELD116" NUMBER(38,2),
	"CALCULATEFIELD117" NUMBER(38,2),
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_TENANT_ID" NVARCHAR2(50) NOT NULL,
	"F_FLOW_ID" NVARCHAR2(50),
	"F_VERSION" NUMBER,
	"F_FLOW_TASK_ID" NVARCHAR2(50),
	"F_INTE_ASSISTANT" NUMBER

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE mt585077626008240453 IS '采购合同-主表';
COMMENT ON COLUMN mt585077626008240453."BILLRULEFIELD106" IS '合同编号';
COMMENT ON COLUMN mt585077626008240453."INPUTFIELD101" IS '供应商';
COMMENT ON COLUMN mt585077626008240453."DATEPICKERFIELD102" IS '签订日期';
COMMENT ON COLUMN mt585077626008240453."SELECTFIELD103" IS '付款方式';
COMMENT ON COLUMN mt585077626008240453."USERSELECTFIELD104" IS '经手人';
COMMENT ON COLUMN mt585077626008240453."USERSELECTFIELD105" IS '审核人';
COMMENT ON COLUMN mt585077626008240453."CALCULATEFIELD116" IS '总数量';
COMMENT ON COLUMN mt585077626008240453."CALCULATEFIELD117" IS '合同金额';
COMMENT ON COLUMN mt585077626008240453."F_ID" IS '主键';
COMMENT ON COLUMN mt585077626008240453."F_TENANT_ID" IS '租户id';
COMMENT ON COLUMN mt585077626008240453."F_FLOW_ID" IS '流程id';
COMMENT ON COLUMN mt585077626008240453."F_VERSION" IS '乐观锁';
COMMENT ON COLUMN mt585077626008240453."F_FLOW_TASK_ID" IS '流程任务主键';
COMMENT ON COLUMN mt585077626008240453."F_INTE_ASSISTANT" IS '集成助手数据标识';
-- ----------------------------
-- 表名：mt585113061585584645
-- ----------------------------
CREATE TABLE mt585113061585584645 (
	"INPUTFIELD106" NVARCHAR2(255),
	"INPUTFIELD107" NVARCHAR2(255),
	"INPUTFIELD111" NVARCHAR2(255),
	"CALCULATEFIELD119" NUMBER(38,2),
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_TENANT_ID" NVARCHAR2(50) NOT NULL,
	"F_FLOW_ID" NVARCHAR2(50),
	"F_VERSION" NUMBER,
	"F_FLOW_TASK_ID" NVARCHAR2(50),
	"F_INTE_ASSISTANT" NUMBER

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE mt585113061585584645 IS '水电费用-主表';
COMMENT ON COLUMN mt585113061585584645."INPUTFIELD106" IS '楼层号';
COMMENT ON COLUMN mt585113061585584645."INPUTFIELD107" IS '业主姓名';
COMMENT ON COLUMN mt585113061585584645."INPUTFIELD111" IS '联系方式';
COMMENT ON COLUMN mt585113061585584645."CALCULATEFIELD119" IS '水电费用';
COMMENT ON COLUMN mt585113061585584645."F_ID" IS '主键';
COMMENT ON COLUMN mt585113061585584645."F_TENANT_ID" IS '租户id';
COMMENT ON COLUMN mt585113061585584645."F_FLOW_ID" IS '流程id';
COMMENT ON COLUMN mt585113061585584645."F_VERSION" IS '乐观锁';
COMMENT ON COLUMN mt585113061585584645."F_FLOW_TASK_ID" IS '流程任务主键';
COMMENT ON COLUMN mt585113061585584645."F_INTE_ASSISTANT" IS '集成助手数据标识';
-- ----------------------------
-- 表名：mt585115948944458245
-- ----------------------------
CREATE TABLE mt585115948944458245 (
	"INPUTFIELD101" NVARCHAR2(255),
	"INPUTFIELD102" NVARCHAR2(255),
	"INPUTFIELD106" NVARCHAR2(255),
	"AREASELECTFIELD105" NVARCHAR2(255),
	"INPUTFIELD107" NVARCHAR2(255),
	"INPUTFIELD104" NVARCHAR2(255),
	"AREASELECTFIELD108" NVARCHAR2(255),
	"INPUTFIELD119" NVARCHAR2(255),
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_TENANT_ID" NVARCHAR2(50) NOT NULL,
	"F_FLOW_ID" NVARCHAR2(50),
	"F_VERSION" NUMBER,
	"F_FLOW_TASK_ID" NVARCHAR2(50),
	"F_INTE_ASSISTANT" NUMBER

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE mt585115948944458245 IS '报价信息-主表';
COMMENT ON COLUMN mt585115948944458245."INPUTFIELD101" IS '需方联系员';
COMMENT ON COLUMN mt585115948944458245."INPUTFIELD102" IS '需方联系电话';
COMMENT ON COLUMN mt585115948944458245."INPUTFIELD106" IS '需方邮编';
COMMENT ON COLUMN mt585115948944458245."AREASELECTFIELD105" IS '需方地址';
COMMENT ON COLUMN mt585115948944458245."INPUTFIELD107" IS '供方联系人';
COMMENT ON COLUMN mt585115948944458245."INPUTFIELD104" IS '供方联系电话';
COMMENT ON COLUMN mt585115948944458245."AREASELECTFIELD108" IS '供方邮编';
COMMENT ON COLUMN mt585115948944458245."INPUTFIELD119" IS '供方地址';
COMMENT ON COLUMN mt585115948944458245."F_ID" IS '主键';
COMMENT ON COLUMN mt585115948944458245."F_TENANT_ID" IS '租户id';
COMMENT ON COLUMN mt585115948944458245."F_FLOW_ID" IS '流程id';
COMMENT ON COLUMN mt585115948944458245."F_VERSION" IS '乐观锁';
COMMENT ON COLUMN mt585115948944458245."F_FLOW_TASK_ID" IS '流程任务主键';
COMMENT ON COLUMN mt585115948944458245."F_INTE_ASSISTANT" IS '集成助手数据标识';
-- ----------------------------
-- 表名：mt585115958712992261
-- ----------------------------
CREATE TABLE mt585115958712992261 (
	"DATEPICKERFIELD126" TIMESTAMP,
	"INPUTFIELD101" NVARCHAR2(255),
	"RADIOFIELD102" NVARCHAR2(255),
	"DATEPICKERFIELD125" TIMESTAMP,
	"INPUTFIELD113" NVARCHAR2(255),
	"SELECTFIELD124" NVARCHAR2(255),
	"SELECTFIELD104" NVARCHAR2(255),
	"INPUTFIELD106" NVARCHAR2(255),
	"AREASELECTFIELD107" NVARCHAR2(255),
	"RADIOFIELD110" NVARCHAR2(255),
	"RADIOFIELD111" NVARCHAR2(255),
	"RADIOFIELD112" NVARCHAR2(255),
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_TENANT_ID" NVARCHAR2(50) NOT NULL,
	"F_FLOW_ID" NVARCHAR2(50),
	"F_VERSION" NUMBER,
	"F_FLOW_TASK_ID" NVARCHAR2(50),
	"F_INTE_ASSISTANT" NUMBER

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE mt585115958712992261 IS '入职申请-主表';
COMMENT ON COLUMN mt585115958712992261."DATEPICKERFIELD126" IS '填表日期';
COMMENT ON COLUMN mt585115958712992261."INPUTFIELD101" IS '姓名';
COMMENT ON COLUMN mt585115958712992261."RADIOFIELD102" IS '性别';
COMMENT ON COLUMN mt585115958712992261."DATEPICKERFIELD125" IS '出生年月';
COMMENT ON COLUMN mt585115958712992261."INPUTFIELD113" IS '年龄';
COMMENT ON COLUMN mt585115958712992261."SELECTFIELD124" IS '民族';
COMMENT ON COLUMN mt585115958712992261."SELECTFIELD104" IS '学历';
COMMENT ON COLUMN mt585115958712992261."INPUTFIELD106" IS '联系电话';
COMMENT ON COLUMN mt585115958712992261."AREASELECTFIELD107" IS '家庭住址';
COMMENT ON COLUMN mt585115958712992261."RADIOFIELD110" IS '能否加班';
COMMENT ON COLUMN mt585115958712992261."RADIOFIELD111" IS '能否出差';
COMMENT ON COLUMN mt585115958712992261."RADIOFIELD112" IS '能否接受调动';
COMMENT ON COLUMN mt585115958712992261."F_ID" IS '主键';
COMMENT ON COLUMN mt585115958712992261."F_TENANT_ID" IS '租户id';
COMMENT ON COLUMN mt585115958712992261."F_FLOW_ID" IS '流程id';
COMMENT ON COLUMN mt585115958712992261."F_VERSION" IS '乐观锁';
COMMENT ON COLUMN mt585115958712992261."F_FLOW_TASK_ID" IS '流程任务主键';
COMMENT ON COLUMN mt585115958712992261."F_INTE_ASSISTANT" IS '集成助手数据标识';
-- ----------------------------
-- 表名：mt585385026032501317
-- ----------------------------
CREATE TABLE mt585385026032501317 (
	"BILLRULEFIELD101" NVARCHAR2(255),
	"INPUTFIELD102" NVARCHAR2(255),
	"INPUTFIELD103" NVARCHAR2(255),
	"INPUTFIELD104" NVARCHAR2(255),
	"INPUTFIELD105" NVARCHAR2(255),
	"INPUTFIELD106" NVARCHAR2(255),
	"INPUTFIELD130" NVARCHAR2(255),
	"INPUTFIELD110" NVARCHAR2(255),
	"INPUTFIELD111" NVARCHAR2(255),
	"INPUTFIELD112" NVARCHAR2(255),
	"INPUTFIELD113" NVARCHAR2(255),
	"INPUTFIELD114" NVARCHAR2(255),
	"INPUTFIELD131" NVARCHAR2(255),
	"SELECTFIELD132" NVARCHAR2(255),
	"INPUTNUMBERFIELD118" NUMBER(38,0),
	"INPUTNUMBERFIELD126" NUMBER(38,15),
	"INPUTNUMBERFIELD127" NUMBER(38,15),
	"INPUTNUMBERFIELD119" NUMBER(38,15),
	"SIGNFIELD120" CLOB,
	"DATEPICKERFIELD122" TIMESTAMP,
	"INPUTFIELD123" NVARCHAR2(255),
	"SIGNFIELD124" CLOB,
	"DATEPICKERFIELD128" TIMESTAMP,
	"SIGNFIELD129" CLOB,
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_TENANT_ID" NVARCHAR2(50) NOT NULL,
	"F_FLOW_ID" NVARCHAR2(50),
	"F_VERSION" NUMBER,
	"F_FLOW_TASK_ID" NVARCHAR2(50),
	"F_INTE_ASSISTANT" NUMBER

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE mt585385026032501317 IS '套打示例-主表';
COMMENT ON COLUMN mt585385026032501317."BILLRULEFIELD101" IS '订单号';
COMMENT ON COLUMN mt585385026032501317."INPUTFIELD102" IS '收件邮编';
COMMENT ON COLUMN mt585385026032501317."INPUTFIELD103" IS '寄达局';
COMMENT ON COLUMN mt585385026032501317."INPUTFIELD104" IS '收件人姓名';
COMMENT ON COLUMN mt585385026032501317."INPUTFIELD105" IS '收件人电话';
COMMENT ON COLUMN mt585385026032501317."INPUTFIELD106" IS '单位名称';
COMMENT ON COLUMN mt585385026032501317."INPUTFIELD130" IS '详细地址';
COMMENT ON COLUMN mt585385026032501317."INPUTFIELD110" IS '寄件人姓名';
COMMENT ON COLUMN mt585385026032501317."INPUTFIELD111" IS '寄件人电话';
COMMENT ON COLUMN mt585385026032501317."INPUTFIELD112" IS '单位名称';
COMMENT ON COLUMN mt585385026032501317."INPUTFIELD113" IS '详细地址';
COMMENT ON COLUMN mt585385026032501317."INPUTFIELD114" IS '大客户代码';
COMMENT ON COLUMN mt585385026032501317."INPUTFIELD131" IS '邮政编码';
COMMENT ON COLUMN mt585385026032501317."SELECTFIELD132" IS '品名';
COMMENT ON COLUMN mt585385026032501317."INPUTNUMBERFIELD118" IS '数量';
COMMENT ON COLUMN mt585385026032501317."INPUTNUMBERFIELD126" IS '重量';
COMMENT ON COLUMN mt585385026032501317."INPUTNUMBERFIELD127" IS '金额';
COMMENT ON COLUMN mt585385026032501317."INPUTNUMBERFIELD119" IS '收款金额';
COMMENT ON COLUMN mt585385026032501317."SIGNFIELD120" IS '寄件人签名';
COMMENT ON COLUMN mt585385026032501317."DATEPICKERFIELD122" IS '收寄日期';
COMMENT ON COLUMN mt585385026032501317."INPUTFIELD123" IS '收寄局名';
COMMENT ON COLUMN mt585385026032501317."SIGNFIELD124" IS '收寄人签名';
COMMENT ON COLUMN mt585385026032501317."DATEPICKERFIELD128" IS '收件日期';
COMMENT ON COLUMN mt585385026032501317."SIGNFIELD129" IS '收件人签名';
COMMENT ON COLUMN mt585385026032501317."F_ID" IS '主键';
COMMENT ON COLUMN mt585385026032501317."F_TENANT_ID" IS '租户id';
COMMENT ON COLUMN mt585385026032501317."F_FLOW_ID" IS '流程id';
COMMENT ON COLUMN mt585385026032501317."F_VERSION" IS '乐观锁';
COMMENT ON COLUMN mt585385026032501317."F_FLOW_TASK_ID" IS '流程任务主键';
COMMENT ON COLUMN mt585385026032501317."F_INTE_ASSISTANT" IS '集成助手数据标识';
-- ----------------------------
-- 表名：mt585398421410546245
-- ----------------------------
CREATE TABLE mt585398421410546245 (
	"DATEPICKERFIELD102" TIMESTAMP,
	"DEPSELECTFIELD101" NVARCHAR2(255),
	"USERSELECTFIELD108" NVARCHAR2(255),
	"TEXTAREAFIELD109" NVARCHAR2(255),
	"INPUTFIELD105" NVARCHAR2(255),
	"INPUTFIELD106" NVARCHAR2(255),
	"INPUTNUMBERFIELD107" NUMBER(38,15),
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_TENANT_ID" NVARCHAR2(50) NOT NULL,
	"F_FLOW_ID" NVARCHAR2(50),
	"F_VERSION" NUMBER,
	"F_FLOW_TASK_ID" NVARCHAR2(50),
	"F_INTE_ASSISTANT" NUMBER

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE mt585398421410546245 IS '付款申请-主表';
COMMENT ON COLUMN mt585398421410546245."DATEPICKERFIELD102" IS '申请日期';
COMMENT ON COLUMN mt585398421410546245."DEPSELECTFIELD101" IS '申请部门';
COMMENT ON COLUMN mt585398421410546245."USERSELECTFIELD108" IS '申请人';
COMMENT ON COLUMN mt585398421410546245."TEXTAREAFIELD109" IS '申请事由';
COMMENT ON COLUMN mt585398421410546245."INPUTFIELD105" IS '开户银行';
COMMENT ON COLUMN mt585398421410546245."INPUTFIELD106" IS '账户';
COMMENT ON COLUMN mt585398421410546245."INPUTNUMBERFIELD107" IS '款项金额';
COMMENT ON COLUMN mt585398421410546245."F_ID" IS '主键';
COMMENT ON COLUMN mt585398421410546245."F_TENANT_ID" IS '租户id';
COMMENT ON COLUMN mt585398421410546245."F_FLOW_ID" IS '流程id';
COMMENT ON COLUMN mt585398421410546245."F_VERSION" IS '乐观锁';
COMMENT ON COLUMN mt585398421410546245."F_FLOW_TASK_ID" IS '流程任务主键';
COMMENT ON COLUMN mt585398421410546245."F_INTE_ASSISTANT" IS '集成助手数据标识';
-- ----------------------------
-- 表名：mt585441085065528069
-- ----------------------------
CREATE TABLE mt585441085065528069 (
	"DATEPICKERFIELD107" TIMESTAMP,
	"DEPSELECTFIELD102" NVARCHAR2(255),
	"USERSELECTFIELD101" NVARCHAR2(255),
	"INPUTFIELD104" NVARCHAR2(255),
	"INPUTFIELD105" NVARCHAR2(255),
	"INPUTNUMBERFIELD106" NUMBER(38,15),
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_TENANT_ID" NVARCHAR2(50) NOT NULL,
	"F_FLOW_ID" NVARCHAR2(50),
	"F_VERSION" NUMBER,
	"F_FLOW_TASK_ID" NVARCHAR2(50)

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE mt585441085065528069 IS '采购申请-主表';
COMMENT ON COLUMN mt585441085065528069."DATEPICKERFIELD107" IS '申请日期';
COMMENT ON COLUMN mt585441085065528069."DEPSELECTFIELD102" IS '所属部门';
COMMENT ON COLUMN mt585441085065528069."USERSELECTFIELD101" IS '申请人';
COMMENT ON COLUMN mt585441085065528069."INPUTFIELD104" IS '请购物资';
COMMENT ON COLUMN mt585441085065528069."INPUTFIELD105" IS '规格型号';
COMMENT ON COLUMN mt585441085065528069."INPUTNUMBERFIELD106" IS '请购数量';
COMMENT ON COLUMN mt585441085065528069."F_ID" IS '主键';
COMMENT ON COLUMN mt585441085065528069."F_TENANT_ID" IS '租户id';
COMMENT ON COLUMN mt585441085065528069."F_FLOW_ID" IS '流程id';
COMMENT ON COLUMN mt585441085065528069."F_VERSION" IS '乐观锁';
COMMENT ON COLUMN mt585441085065528069."F_FLOW_TASK_ID" IS '流程任务主键';
-- ----------------------------
-- 表名：mt585441095630979845
-- ----------------------------
CREATE TABLE mt585441095630979845 (
	"DATEPICKERFIELD107" TIMESTAMP,
	"DEPSELECTFIELD101" NVARCHAR2(255),
	"USERSELECTFIELD102" NVARCHAR2(255),
	"INPUTFIELD103" NVARCHAR2(255),
	"INPUTFIELD104" NVARCHAR2(255),
	"INPUTNUMBERFIELD105" NUMBER(38,15),
	"TEXTAREAFIELD106" NVARCHAR2(255),
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_TENANT_ID" NVARCHAR2(50) NOT NULL,
	"F_FLOW_ID" NVARCHAR2(50),
	"F_VERSION" NUMBER,
	"F_FLOW_TASK_ID" NVARCHAR2(50),
	"INPUTFIELD107" NVARCHAR2(255),
	"F_INTE_ASSISTANT" NUMBER

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE mt585441095630979845 IS '物资申请-主表';
COMMENT ON COLUMN mt585441095630979845."DATEPICKERFIELD107" IS '申请日期';
COMMENT ON COLUMN mt585441095630979845."DEPSELECTFIELD101" IS '申请部门';
COMMENT ON COLUMN mt585441095630979845."USERSELECTFIELD102" IS '申请人';
COMMENT ON COLUMN mt585441095630979845."INPUTFIELD103" IS '申请物资';
COMMENT ON COLUMN mt585441095630979845."INPUTFIELD104" IS '规格型号';
COMMENT ON COLUMN mt585441095630979845."INPUTNUMBERFIELD105" IS '数量';
COMMENT ON COLUMN mt585441095630979845."TEXTAREAFIELD106" IS '用途';
COMMENT ON COLUMN mt585441095630979845."F_ID" IS '主键';
COMMENT ON COLUMN mt585441095630979845."F_TENANT_ID" IS '租户id';
COMMENT ON COLUMN mt585441095630979845."F_FLOW_ID" IS '流程id';
COMMENT ON COLUMN mt585441095630979845."F_VERSION" IS '乐观锁';
COMMENT ON COLUMN mt585441095630979845."F_FLOW_TASK_ID" IS '流程任务主键';
COMMENT ON COLUMN mt585441095630979845."INPUTFIELD107" IS '库存';
COMMENT ON COLUMN mt585441095630979845."F_INTE_ASSISTANT" IS '集成助手数据标识';
-- ----------------------------
-- 表名：mt585484941698007941
-- ----------------------------
CREATE TABLE mt585484941698007941 (
	"INPUTFIELD101" NVARCHAR2(255),
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_TENANT_ID" NVARCHAR2(50) NOT NULL,
	"F_FLOW_ID" NVARCHAR2(50),
	"F_VERSION" NUMBER,
	"F_FLOW_TASK_ID" NVARCHAR2(50)

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE mt585484941698007941 IS 'JS控制列表上按钮的颜色-主表';
COMMENT ON COLUMN mt585484941698007941."INPUTFIELD101" IS '单行输入';
COMMENT ON COLUMN mt585484941698007941."F_ID" IS '主键';
COMMENT ON COLUMN mt585484941698007941."F_TENANT_ID" IS '租户id';
COMMENT ON COLUMN mt585484941698007941."F_FLOW_ID" IS '流程id';
COMMENT ON COLUMN mt585484941698007941."F_VERSION" IS '乐观锁';
COMMENT ON COLUMN mt585484941698007941."F_FLOW_TASK_ID" IS '流程任务主键';
-- ----------------------------
-- 表名：mt585806222716830853
-- ----------------------------
CREATE TABLE mt585806222716830853 (
	"DEPSELECTFIELD101" NVARCHAR2(255),
	"INPUTFIELD102" NVARCHAR2(255),
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_TENANT_ID" NVARCHAR2(50) NOT NULL,
	"F_FLOW_ID" NVARCHAR2(50),
	"F_VERSION" NUMBER,
	"F_FLOW_TASK_ID" NVARCHAR2(50)

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE mt585806222716830853 IS '列表左侧树-主表';
COMMENT ON COLUMN mt585806222716830853."DEPSELECTFIELD101" IS '部门选择';
COMMENT ON COLUMN mt585806222716830853."INPUTFIELD102" IS '单行输入';
COMMENT ON COLUMN mt585806222716830853."F_ID" IS '主键';
COMMENT ON COLUMN mt585806222716830853."F_TENANT_ID" IS '租户id';
COMMENT ON COLUMN mt585806222716830853."F_FLOW_ID" IS '流程id';
COMMENT ON COLUMN mt585806222716830853."F_VERSION" IS '乐观锁';
COMMENT ON COLUMN mt585806222716830853."F_FLOW_TASK_ID" IS '流程任务主键';
-- ----------------------------
-- 表名：mt585825608643118213
-- ----------------------------
CREATE TABLE mt585825608643118213 (
	"SELECTFIELD101" NVARCHAR2(255),
	"INPUTFIELD102" NVARCHAR2(255),
	"TEXTAREAFIELD103" NVARCHAR2(255),
	"INPUTNUMBERFIELD104" NUMBER(38,15),
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_TENANT_ID" NVARCHAR2(50) NOT NULL,
	"F_FLOW_ID" NVARCHAR2(50),
	"F_VERSION" NUMBER,
	"F_FLOW_TASK_ID" NVARCHAR2(50)

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE mt585825608643118213 IS '列表标签面板-主表';
COMMENT ON COLUMN mt585825608643118213."SELECTFIELD101" IS '客户分类';
COMMENT ON COLUMN mt585825608643118213."INPUTFIELD102" IS '客户名称';
COMMENT ON COLUMN mt585825608643118213."TEXTAREAFIELD103" IS '备注';
COMMENT ON COLUMN mt585825608643118213."INPUTNUMBERFIELD104" IS '需求数量';
COMMENT ON COLUMN mt585825608643118213."F_ID" IS '主键';
COMMENT ON COLUMN mt585825608643118213."F_TENANT_ID" IS '租户id';
COMMENT ON COLUMN mt585825608643118213."F_FLOW_ID" IS '流程id';
COMMENT ON COLUMN mt585825608643118213."F_VERSION" IS '乐观锁';
COMMENT ON COLUMN mt585825608643118213."F_FLOW_TASK_ID" IS '流程任务主键';
-- ----------------------------
-- 表名：mt585831812765320325
-- ----------------------------
CREATE TABLE mt585831812765320325 (
	"INPUTFIELD102" NVARCHAR2(255),
	"SELECTFIELD103" NVARCHAR2(255),
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_TENANT_ID" NVARCHAR2(50) NOT NULL,
	"F_FLOW_ID" NVARCHAR2(50),
	"F_VERSION" NUMBER,
	"F_FLOW_TASK_ID" NVARCHAR2(50)

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE mt585831812765320325 IS 'js列表按钮显隐-主表';
COMMENT ON COLUMN mt585831812765320325."INPUTFIELD102" IS '单行输入';
COMMENT ON COLUMN mt585831812765320325."SELECTFIELD103" IS '下拉选择';
COMMENT ON COLUMN mt585831812765320325."F_ID" IS '主键';
COMMENT ON COLUMN mt585831812765320325."F_TENANT_ID" IS '租户id';
COMMENT ON COLUMN mt585831812765320325."F_FLOW_ID" IS '流程id';
COMMENT ON COLUMN mt585831812765320325."F_VERSION" IS '乐观锁';
COMMENT ON COLUMN mt585831812765320325."F_FLOW_TASK_ID" IS '流程任务主键';
-- ----------------------------
-- 表名：mt623163332936859845
-- ----------------------------
CREATE TABLE mt623163332936859845 (
	"INPUTFIELDE343EA" NVARCHAR2(255),
	"DEPSELECTFIELD3E4BE5" NVARCHAR2(255),
	"USERSELECTFIELDDE46F0" NVARCHAR2(255),
	"DATEPICKERFIELD8796E7" TIMESTAMP,
	"RADIOFIELDC7DBEA" NVARCHAR2(255),
	"TEXTAREAFIELD5BECE7" NVARCHAR2(255),
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0',
	"F_FLOW_ID" NVARCHAR2(50),
	"F_VERSION" NUMBER,
	"F_FLOW_TASK_ID" NVARCHAR2(50)

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE mt623163332936859845 IS '离职申请-主表';
COMMENT ON COLUMN mt623163332936859845."INPUTFIELDE343EA" IS '工号';
COMMENT ON COLUMN mt623163332936859845."DEPSELECTFIELD3E4BE5" IS '所在部门';
COMMENT ON COLUMN mt623163332936859845."USERSELECTFIELDDE46F0" IS '姓名';
COMMENT ON COLUMN mt623163332936859845."DATEPICKERFIELD8796E7" IS '预计离职日期';
COMMENT ON COLUMN mt623163332936859845."RADIOFIELDC7DBEA" IS '离职类型';
COMMENT ON COLUMN mt623163332936859845."TEXTAREAFIELD5BECE7" IS '离职原因';
COMMENT ON COLUMN mt623163332936859845."F_ID" IS '主键';
COMMENT ON COLUMN mt623163332936859845."F_TENANT_ID" IS '租户id';
COMMENT ON COLUMN mt623163332936859845."F_FLOW_ID" IS '流程id';
COMMENT ON COLUMN mt623163332936859845."F_VERSION" IS '乐观锁';
COMMENT ON COLUMN mt623163332936859845."F_FLOW_TASK_ID" IS '流程任务主键';
-- ----------------------------
-- 表名：mt623163941190631621
-- ----------------------------
CREATE TABLE mt623163941190631621 (
	"INPUTFIELDB9B2FB" NVARCHAR2(255),
	"USERSELECTFIELD168AF6" NVARCHAR2(255),
	"DEPSELECTFIELD5A4271" NVARCHAR2(255),
	"DATEPICKERFIELD21A50A" TIMESTAMP,
	"INPUTFIELD08827C" NVARCHAR2(255),
	"INPUTFIELD7CDFAD" NVARCHAR2(255),
	"INPUTFIELDA4E0A4" NVARCHAR2(255),
	"TEXTAREAFIELDE9424D" NVARCHAR2(255),
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0',
	"F_FLOW_ID" NVARCHAR2(50),
	"F_VERSION" NUMBER,
	"F_FLOW_TASK_ID" NVARCHAR2(50),
	"F_DATEHT" TIMESTAMP

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE mt623163941190631621 IS '员工信息-主表';
COMMENT ON COLUMN mt623163941190631621."INPUTFIELDB9B2FB" IS '工号';
COMMENT ON COLUMN mt623163941190631621."USERSELECTFIELD168AF6" IS '姓名';
COMMENT ON COLUMN mt623163941190631621."DEPSELECTFIELD5A4271" IS '部门';
COMMENT ON COLUMN mt623163941190631621."DATEPICKERFIELD21A50A" IS '入职日期';
COMMENT ON COLUMN mt623163941190631621."INPUTFIELD08827C" IS '在职状态';
COMMENT ON COLUMN mt623163941190631621."INPUTFIELD7CDFAD" IS '联系方式';
COMMENT ON COLUMN mt623163941190631621."INPUTFIELDA4E0A4" IS '身份证号';
COMMENT ON COLUMN mt623163941190631621."TEXTAREAFIELDE9424D" IS '家庭住址';
COMMENT ON COLUMN mt623163941190631621."F_ID" IS '主键';
COMMENT ON COLUMN mt623163941190631621."F_TENANT_ID" IS '租户id';
COMMENT ON COLUMN mt623163941190631621."F_FLOW_ID" IS '流程id';
COMMENT ON COLUMN mt623163941190631621."F_VERSION" IS '乐观锁';
COMMENT ON COLUMN mt623163941190631621."F_FLOW_TASK_ID" IS '流程任务主键';
COMMENT ON COLUMN mt623163941190631621."F_DATEHT" IS '合同到期时间';
-- ----------------------------
-- 表名：mt623183981692584133
-- ----------------------------
CREATE TABLE mt623183981692584133 (
	"INPUTFIELD9EE228" NVARCHAR2(255),
	"DEPSELECTFIELDF77C52" NVARCHAR2(255),
	"USERSELECTFIELD39FC3A" NVARCHAR2(255),
	"DATEPICKERFIELD21E750" TIMESTAMP,
	"INPUTFIELD73D616" NVARCHAR2(255),
	"TEXTAREAFIELD406675" NVARCHAR2(255),
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0',
	"F_FLOW_ID" NVARCHAR2(50),
	"F_VERSION" NUMBER,
	"F_FLOW_TASK_ID" NVARCHAR2(50)

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE mt623183981692584133 IS '离职员工表-主表';
COMMENT ON COLUMN mt623183981692584133."INPUTFIELD9EE228" IS '工号';
COMMENT ON COLUMN mt623183981692584133."DEPSELECTFIELDF77C52" IS '部门';
COMMENT ON COLUMN mt623183981692584133."USERSELECTFIELD39FC3A" IS '姓名';
COMMENT ON COLUMN mt623183981692584133."DATEPICKERFIELD21E750" IS '离职日期';
COMMENT ON COLUMN mt623183981692584133."INPUTFIELD73D616" IS '离职类型';
COMMENT ON COLUMN mt623183981692584133."TEXTAREAFIELD406675" IS '离职原因';
COMMENT ON COLUMN mt623183981692584133."F_ID" IS '主键';
COMMENT ON COLUMN mt623183981692584133."F_TENANT_ID" IS '租户id';
COMMENT ON COLUMN mt623183981692584133."F_FLOW_ID" IS '流程id';
COMMENT ON COLUMN mt623183981692584133."F_VERSION" IS '乐观锁';
COMMENT ON COLUMN mt623183981692584133."F_FLOW_TASK_ID" IS '流程任务主键';
-- ----------------------------
-- 表名：mt623417550885093381
-- ----------------------------
CREATE TABLE mt623417550885093381 (
	"USERSELECTFIELDC1737E" NVARCHAR2(255),
	"DEPSELECTFIELDCA3BDA" NVARCHAR2(255),
	"DATEPICKERFIELD6E1B8E" TIMESTAMP,
	"INPUTFIELD0120F5" NVARCHAR2(255),
	"TEXTAREAFIELD5131EB" NVARCHAR2(255),
	"TEXTAREAFIELD240D59" NVARCHAR2(255),
	"UPLOADFILEFIELD567E4D" CLOB,
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0',
	"F_FLOW_ID" NVARCHAR2(50),
	"F_VERSION" NUMBER,
	"F_FLOW_TASK_ID" NVARCHAR2(50)

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE mt623417550885093381 IS '离职交接表-主表';
COMMENT ON COLUMN mt623417550885093381."USERSELECTFIELDC1737E" IS '离职员工';
COMMENT ON COLUMN mt623417550885093381."DEPSELECTFIELDCA3BDA" IS '所在部门';
COMMENT ON COLUMN mt623417550885093381."DATEPICKERFIELD6E1B8E" IS '离职日期';
COMMENT ON COLUMN mt623417550885093381."INPUTFIELD0120F5" IS '离职原因';
COMMENT ON COLUMN mt623417550885093381."TEXTAREAFIELD5131EB" IS '工作事项';
COMMENT ON COLUMN mt623417550885093381."TEXTAREAFIELD240D59" IS '未完成事项';
COMMENT ON COLUMN mt623417550885093381."UPLOADFILEFIELD567E4D" IS '文件交接';
COMMENT ON COLUMN mt623417550885093381."F_ID" IS '主键';
COMMENT ON COLUMN mt623417550885093381."F_TENANT_ID" IS '租户id';
COMMENT ON COLUMN mt623417550885093381."F_FLOW_ID" IS '流程id';
COMMENT ON COLUMN mt623417550885093381."F_VERSION" IS '乐观锁';
COMMENT ON COLUMN mt623417550885093381."F_FLOW_TASK_ID" IS '流程任务主键';
-- ----------------------------
-- 表名：mt623425084727492613
-- ----------------------------
CREATE TABLE mt623425084727492613 (
	"INPUTFIELD16DC57" NVARCHAR2(255),
	"USERSELECTFIELDD17AE6" NVARCHAR2(255),
	"DEPSELECTFIELDE34B42" NVARCHAR2(255),
	"INPUTFIELDCD3BC7" NVARCHAR2(255),
	"DATEPICKERFIELD2032C2" TIMESTAMP,
	"UPLOADFILEFIELDB4E26C" CLOB,
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0',
	"F_FLOW_ID" NVARCHAR2(50),
	"F_VERSION" NUMBER,
	"F_FLOW_TASK_ID" NVARCHAR2(50)

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE mt623425084727492613 IS '劳动合同续签-主表';
COMMENT ON COLUMN mt623425084727492613."INPUTFIELD16DC57" IS '工号';
COMMENT ON COLUMN mt623425084727492613."USERSELECTFIELDD17AE6" IS '姓名';
COMMENT ON COLUMN mt623425084727492613."DEPSELECTFIELDE34B42" IS '所在部门';
COMMENT ON COLUMN mt623425084727492613."INPUTFIELDCD3BC7" IS '合同类型';
COMMENT ON COLUMN mt623425084727492613."DATEPICKERFIELD2032C2" IS '合同到期日';
COMMENT ON COLUMN mt623425084727492613."UPLOADFILEFIELDB4E26C" IS '合同附件';
COMMENT ON COLUMN mt623425084727492613."F_ID" IS '主键';
COMMENT ON COLUMN mt623425084727492613."F_TENANT_ID" IS '租户id';
COMMENT ON COLUMN mt623425084727492613."F_FLOW_ID" IS '流程id';
COMMENT ON COLUMN mt623425084727492613."F_VERSION" IS '乐观锁';
COMMENT ON COLUMN mt623425084727492613."F_FLOW_TASK_ID" IS '流程任务主键';
-- ----------------------------
-- 表名：mt624164005967037317
-- ----------------------------
CREATE TABLE mt624164005967037317 (
	"INPUTFIELD44A3A9" NVARCHAR2(255),
	"USERSELECTFIELD570FC8" NVARCHAR2(255),
	"DEPSELECTFIELD0C00CE" NVARCHAR2(255),
	"DATEPICKERFIELDF1981D" TIMESTAMP,
	"INPUTFIELD5FE3CE" NVARCHAR2(255),
	"INPUTFIELD8F47FD" NVARCHAR2(255),
	"INPUTFIELD51C3C2" NVARCHAR2(255),
	"TEXTAREAFIELD700CEF" NVARCHAR2(255),
	"DATEPICKERFIELDCCED1F" TIMESTAMP,
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0',
	"F_FLOW_ID" NVARCHAR2(50),
	"F_VERSION" NUMBER,
	"F_FLOW_TASK_ID" NVARCHAR2(50)

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE mt624164005967037317 IS '入职申请-主表';
COMMENT ON COLUMN mt624164005967037317."INPUTFIELD44A3A9" IS '工号';
COMMENT ON COLUMN mt624164005967037317."USERSELECTFIELD570FC8" IS '姓名';
COMMENT ON COLUMN mt624164005967037317."DEPSELECTFIELD0C00CE" IS '部门';
COMMENT ON COLUMN mt624164005967037317."DATEPICKERFIELDF1981D" IS '入职时间';
COMMENT ON COLUMN mt624164005967037317."INPUTFIELD5FE3CE" IS '在职状态';
COMMENT ON COLUMN mt624164005967037317."INPUTFIELD8F47FD" IS '联系方式';
COMMENT ON COLUMN mt624164005967037317."INPUTFIELD51C3C2" IS '身份证';
COMMENT ON COLUMN mt624164005967037317."TEXTAREAFIELD700CEF" IS '家庭住址';
COMMENT ON COLUMN mt624164005967037317."DATEPICKERFIELDCCED1F" IS '合同到期时间';
COMMENT ON COLUMN mt624164005967037317."F_ID" IS '主键';
COMMENT ON COLUMN mt624164005967037317."F_TENANT_ID" IS '租户id';
COMMENT ON COLUMN mt624164005967037317."F_FLOW_ID" IS '流程id';
COMMENT ON COLUMN mt624164005967037317."F_VERSION" IS '乐观锁';
COMMENT ON COLUMN mt624164005967037317."F_FLOW_TASK_ID" IS '流程任务主键';
-- ----------------------------
-- 表名：mt624165616286172037
-- ----------------------------
CREATE TABLE mt624165616286172037 (
	"INPUTFIELD5FACEF" NVARCHAR2(255),
	"USERSELECTFIELDD6FA6C" NVARCHAR2(255),
	"DEPSELECTFIELD0312FD" NVARCHAR2(255),
	"INPUTFIELDA924AA" NVARCHAR2(255),
	"DATEPICKERFIELD2F5617" TIMESTAMP,
	"SELECTFIELD1CE6AB" NVARCHAR2(255),
	"TEXTAREAFIELD0EF029" NVARCHAR2(255),
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0',
	"F_FLOW_ID" NVARCHAR2(50),
	"F_VERSION" NUMBER,
	"F_FLOW_TASK_ID" NVARCHAR2(50)

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE mt624165616286172037 IS '员工培训-主表';
COMMENT ON COLUMN mt624165616286172037."INPUTFIELD5FACEF" IS '工号';
COMMENT ON COLUMN mt624165616286172037."USERSELECTFIELDD6FA6C" IS '培训申请人';
COMMENT ON COLUMN mt624165616286172037."DEPSELECTFIELD0312FD" IS '所在部门';
COMMENT ON COLUMN mt624165616286172037."INPUTFIELDA924AA" IS '培训项目';
COMMENT ON COLUMN mt624165616286172037."DATEPICKERFIELD2F5617" IS '申请时间';
COMMENT ON COLUMN mt624165616286172037."SELECTFIELD1CE6AB" IS '培训方式';
COMMENT ON COLUMN mt624165616286172037."TEXTAREAFIELD0EF029" IS '培训目的';
COMMENT ON COLUMN mt624165616286172037."F_ID" IS '主键';
COMMENT ON COLUMN mt624165616286172037."F_TENANT_ID" IS '租户id';
COMMENT ON COLUMN mt624165616286172037."F_FLOW_ID" IS '流程id';
COMMENT ON COLUMN mt624165616286172037."F_VERSION" IS '乐观锁';
COMMENT ON COLUMN mt624165616286172037."F_FLOW_TASK_ID" IS '流程任务主键';
-- ----------------------------
-- 表名：report_charts
-- ----------------------------
CREATE TABLE report_charts (
	"ID" NVARCHAR2(50) NOT NULL,
	"QYBM" NVARCHAR2(255),
	"FXDMC" NVARCHAR2(255),
	"FXDJ" NVARCHAR2(255),
	"PGRY" NVARCHAR2(255),
	"PGRQ" NVARCHAR2(255),
	"FXFXFF" NVARCHAR2(255),
	"LECE" NVARCHAR2(255),
	"LECC" NVARCHAR2(255),
	"LSL" NVARCHAR2(255),
	"LSS" NVARCHAR2(255),
	"PGFXZ" NVARCHAR2(255),
	"FPRQ" NVARCHAR2(255),
	"STATUS" NVARCHAR2(255),
	"CREATEDATE" NVARCHAR2(255),
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0'

, PRIMARY KEY (ID,f_tenant_id)
);
COMMENT ON TABLE report_charts IS '报表图表';
COMMENT ON COLUMN report_charts."ID" IS '';
COMMENT ON COLUMN report_charts."QYBM" IS '';
COMMENT ON COLUMN report_charts."FXDMC" IS '';
COMMENT ON COLUMN report_charts."FXDJ" IS '';
COMMENT ON COLUMN report_charts."PGRY" IS '';
COMMENT ON COLUMN report_charts."PGRQ" IS '';
COMMENT ON COLUMN report_charts."FXFXFF" IS '';
COMMENT ON COLUMN report_charts."LECE" IS '';
COMMENT ON COLUMN report_charts."LECC" IS '';
COMMENT ON COLUMN report_charts."LSL" IS '';
COMMENT ON COLUMN report_charts."LSS" IS '';
COMMENT ON COLUMN report_charts."PGFXZ" IS '';
COMMENT ON COLUMN report_charts."FPRQ" IS '';
COMMENT ON COLUMN report_charts."STATUS" IS '';
COMMENT ON COLUMN report_charts."CREATEDATE" IS '';
COMMENT ON COLUMN report_charts."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：report_department
-- ----------------------------
CREATE TABLE report_department (
	"ID" NVARCHAR2(50) NOT NULL,
	"DEPARTMENTNAME" NVARCHAR2(255),
	"DEPARTMENTNUM" NVARCHAR2(11),
	"ORGANIZATIONNAME" NVARCHAR2(255),
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0'

, PRIMARY KEY (id,f_tenant_id)
);
COMMENT ON TABLE report_department IS '报表部门示例';
COMMENT ON COLUMN report_department."ID" IS '';
COMMENT ON COLUMN report_department."DEPARTMENTNAME" IS '';
COMMENT ON COLUMN report_department."DEPARTMENTNUM" IS '';
COMMENT ON COLUMN report_department."ORGANIZATIONNAME" IS '';
COMMENT ON COLUMN report_department."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：report_template
-- ----------------------------
CREATE TABLE report_template (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_VERSION_ID" NVARCHAR2(50),
	"F_FULL_NAME" NVARCHAR2(200) NOT NULL,
	"F_EN_CODE" NVARCHAR2(50) NOT NULL,
	"F_CATEGORY" NVARCHAR2(50) NOT NULL,
	"F_DESCRIPTION" NVARCHAR2(500),
	"F_ENABLED_MARK" NUMBER,
	"F_SORT_CODE" NUMBER,
	"F_CREATOR_TIME" TIMESTAMP,
	"F_CREATOR_USER_ID" NVARCHAR2(50),
	"F_LAST_MODIFY_TIME" TIMESTAMP,
	"F_LAST_MODIFY_USER_ID" NVARCHAR2(50),
	"F_DELETE_TIME" TIMESTAMP,
	"F_DELETE_USER_ID" NVARCHAR2(50),
	"F_DELETE_MARK" NUMBER,
	"F_TENANT_ID" NVARCHAR2(50) NOT NULL,
	"F_ALLOW_EXPORT" NUMBER,
	"F_ALLOW_PRINT" NUMBER,
	"F_PLATFORM_RELEASE" NVARCHAR2(100)

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE report_template IS '报表模板';
COMMENT ON COLUMN report_template."F_ID" IS '主键';
COMMENT ON COLUMN report_template."F_VERSION_ID" IS '版本主键';
COMMENT ON COLUMN report_template."F_FULL_NAME" IS '名称';
COMMENT ON COLUMN report_template."F_EN_CODE" IS '编码';
COMMENT ON COLUMN report_template."F_CATEGORY" IS '分类';
COMMENT ON COLUMN report_template."F_DESCRIPTION" IS '描述或说明';
COMMENT ON COLUMN report_template."F_ENABLED_MARK" IS '有效标志';
COMMENT ON COLUMN report_template."F_SORT_CODE" IS '排序';
COMMENT ON COLUMN report_template."F_CREATOR_TIME" IS '创建时间';
COMMENT ON COLUMN report_template."F_CREATOR_USER_ID" IS '创建用户';
COMMENT ON COLUMN report_template."F_LAST_MODIFY_TIME" IS '修改时间';
COMMENT ON COLUMN report_template."F_LAST_MODIFY_USER_ID" IS '修改用户';
COMMENT ON COLUMN report_template."F_DELETE_TIME" IS '删除时间';
COMMENT ON COLUMN report_template."F_DELETE_USER_ID" IS '删除用户';
COMMENT ON COLUMN report_template."F_DELETE_MARK" IS '删除标志';
COMMENT ON COLUMN report_template."F_TENANT_ID" IS '租户id';
COMMENT ON COLUMN report_template."F_ALLOW_EXPORT" IS '是否导出';
COMMENT ON COLUMN report_template."F_ALLOW_PRINT" IS '是否打印';
COMMENT ON COLUMN report_template."F_PLATFORM_RELEASE" IS '发布选中平台';
-- ----------------------------
-- 表名：report_user
-- ----------------------------
CREATE TABLE report_user (
	"ID" NVARCHAR2(255) NOT NULL,
	"USERNAME" NVARCHAR2(255),
	"EDUCATION" NVARCHAR2(255),
	"SEX" NVARCHAR2(255),
	"SALARY" NUMBER(10,2),
	"DEPARTMENTNUM" NVARCHAR2(255),
	"PEOPLENUM" NVARCHAR2(255),
	"MONTH" NUMBER,
	"YEAR" NUMBER,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0'

, PRIMARY KEY (id,f_tenant_id)
);
COMMENT ON TABLE report_user IS '报表用户示例';
COMMENT ON COLUMN report_user."ID" IS '';
COMMENT ON COLUMN report_user."USERNAME" IS '';
COMMENT ON COLUMN report_user."EDUCATION" IS '';
COMMENT ON COLUMN report_user."SEX" IS '';
COMMENT ON COLUMN report_user."SALARY" IS '';
COMMENT ON COLUMN report_user."DEPARTMENTNUM" IS '';
COMMENT ON COLUMN report_user."PEOPLENUM" IS '';
COMMENT ON COLUMN report_user."MONTH" IS '';
COMMENT ON COLUMN report_user."YEAR" IS '';
COMMENT ON COLUMN report_user."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：report_version
-- ----------------------------
CREATE TABLE report_version (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_TEMPLATE_ID" NVARCHAR2(50),
	"F_STATE" NUMBER,
	"F_VERSION" NUMBER,
	"F_CELLS" CLOB,
	"F_SNAPSHOT" CLOB,
	"F_QUERY_LIST" CLOB,
	"F_CONVERT_CONFIG" CLOB,
	"F_SORT_CODE" NUMBER,
	"F_DESCRIPTION" NVARCHAR2(500),
	"F_ENABLED_MARK" NUMBER,
	"F_CREATOR_TIME" TIMESTAMP,
	"F_CREATOR_USER_ID" NVARCHAR2(50),
	"F_LAST_MODIFY_TIME" TIMESTAMP,
	"F_LAST_MODIFY_USER_ID" NVARCHAR2(50),
	"F_DELETE_TIME" TIMESTAMP,
	"F_DELETE_USER_ID" NVARCHAR2(50),
	"F_DELETE_MARK" NUMBER,
	"F_TENANT_ID" NVARCHAR2(50) NOT NULL,
	"F_SORT_LIST" CLOB

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE report_version IS '报表版本记录';
COMMENT ON COLUMN report_version."F_ID" IS '主键';
COMMENT ON COLUMN report_version."F_TEMPLATE_ID" IS '报表模板id';
COMMENT ON COLUMN report_version."F_STATE" IS '状态：0-设计中，1-启用中，2-已归档';
COMMENT ON COLUMN report_version."F_VERSION" IS '版本';
COMMENT ON COLUMN report_version."F_CELLS" IS '模板json';
COMMENT ON COLUMN report_version."F_SNAPSHOT" IS '模板json';
COMMENT ON COLUMN report_version."F_QUERY_LIST" IS '模板json';
COMMENT ON COLUMN report_version."F_CONVERT_CONFIG" IS '模板json';
COMMENT ON COLUMN report_version."F_SORT_CODE" IS '排序';
COMMENT ON COLUMN report_version."F_DESCRIPTION" IS '描述或说明';
COMMENT ON COLUMN report_version."F_ENABLED_MARK" IS '有效标志';
COMMENT ON COLUMN report_version."F_CREATOR_TIME" IS '创建时间';
COMMENT ON COLUMN report_version."F_CREATOR_USER_ID" IS '创建用户';
COMMENT ON COLUMN report_version."F_LAST_MODIFY_TIME" IS '修改时间';
COMMENT ON COLUMN report_version."F_LAST_MODIFY_USER_ID" IS '修改用户';
COMMENT ON COLUMN report_version."F_DELETE_TIME" IS '删除时间';
COMMENT ON COLUMN report_version."F_DELETE_USER_ID" IS '删除用户';
COMMENT ON COLUMN report_version."F_DELETE_MARK" IS '删除标志';
COMMENT ON COLUMN report_version."F_TENANT_ID" IS '租户id';
COMMENT ON COLUMN report_version."F_SORT_LIST" IS '模板json';
-- ----------------------------
-- 表名：test_carapplication
-- ----------------------------
CREATE TABLE test_carapplication (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_APPLICATIONNO" NVARCHAR2(50),
	"F_APPLICANT" NVARCHAR2(100),
	"F_APPLICANTDATE" TIMESTAMP,
	"F_DESTINATION" NVARCHAR2(100),
	"F_STARTDATE" TIMESTAMP,
	"F_ENDDATE" TIMESTAMP,
	"F_VEHICLENUMBER" NVARCHAR2(100),
	"F_DRIVER" NVARCHAR2(100),
	"F_ESTIMATED" NVARCHAR2(200),
	"F_ENTOURAGE" NVARCHAR2(500),
	"F_REASONS" NVARCHAR2(300),
	"F_REMARKS" NVARCHAR2(300),
	"F_CREATORUSERID" NVARCHAR2(50),
	"F_CREATORTIME" TIMESTAMP,
	"F_LASTMODIFYTIME" TIMESTAMP,
	"F_LASTMODIFYUSERID" NVARCHAR2(50),
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0'

, PRIMARY KEY (F_Id,f_tenant_id)
);
COMMENT ON TABLE test_carapplication IS '用车申请表';
COMMENT ON COLUMN test_carapplication."F_ID" IS '主键';
COMMENT ON COLUMN test_carapplication."F_APPLICATIONNO" IS '申请单号';
COMMENT ON COLUMN test_carapplication."F_APPLICANT" IS '申请人';
COMMENT ON COLUMN test_carapplication."F_APPLICANTDATE" IS '申请日期';
COMMENT ON COLUMN test_carapplication."F_DESTINATION" IS '目的地';
COMMENT ON COLUMN test_carapplication."F_STARTDATE" IS '起始时间';
COMMENT ON COLUMN test_carapplication."F_ENDDATE" IS '结束时间';
COMMENT ON COLUMN test_carapplication."F_VEHICLENUMBER" IS '车辆号码';
COMMENT ON COLUMN test_carapplication."F_DRIVER" IS '驾驶员';
COMMENT ON COLUMN test_carapplication."F_ESTIMATED" IS '预计里程/KM';
COMMENT ON COLUMN test_carapplication."F_ENTOURAGE" IS '随行人员';
COMMENT ON COLUMN test_carapplication."F_REASONS" IS '用车事由';
COMMENT ON COLUMN test_carapplication."F_REMARKS" IS '备注';
COMMENT ON COLUMN test_carapplication."F_CREATORUSERID" IS '创建用户';
COMMENT ON COLUMN test_carapplication."F_CREATORTIME" IS '创建时间';
COMMENT ON COLUMN test_carapplication."F_LASTMODIFYTIME" IS '修改时间';
COMMENT ON COLUMN test_carapplication."F_LASTMODIFYUSERID" IS '修改用户';
COMMENT ON COLUMN test_carapplication."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：test_cost
-- ----------------------------
CREATE TABLE test_cost (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_REIMBURSEMENTID" NVARCHAR2(50),
	"F_COST_CLASSES" NVARCHAR2(200),
	"F_AMOUNT" NUMBER(18,2),
	"F_REMARKS" NVARCHAR2(200),
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0'

, PRIMARY KEY (F_Id,f_tenant_id)
);
COMMENT ON TABLE test_cost IS '费用明细表';
COMMENT ON COLUMN test_cost."F_ID" IS '主键';
COMMENT ON COLUMN test_cost."F_REIMBURSEMENTID" IS '主表主键';
COMMENT ON COLUMN test_cost."F_COST_CLASSES" IS '费用类别';
COMMENT ON COLUMN test_cost."F_AMOUNT" IS '报销金额';
COMMENT ON COLUMN test_cost."F_REMARKS" IS '备注';
COMMENT ON COLUMN test_cost."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：test_customer
-- ----------------------------
CREATE TABLE test_customer (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_SORTCODE" NVARCHAR2(50),
	"F_DEPNAME" NVARCHAR2(255),
	"F_USERNAME" NVARCHAR2(50),
	"F_TYPE" NVARCHAR2(50),
	"F_GRADE" NVARCHAR2(50),
	"F_CUSTOMERNAME" NVARCHAR2(200),
	"F_LEVELADDRESS" NVARCHAR2(500),
	"F_CHANNEL" NVARCHAR2(200),
	"F_TRADE" NVARCHAR2(200),
	"F_NATURE" NVARCHAR2(500),
	"F_MODEL" NVARCHAR2(500),
	"F_ADDRESS" NVARCHAR2(500),
	"F_CREATORTIME" TIMESTAMP,
	"F_CREATORUSERID" NVARCHAR2(50),
	"F_LASTMODIFYTIME" TIMESTAMP,
	"F_LASTMODIFYUSERID" NVARCHAR2(50),
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0',
	"F_FLOW_ID" NVARCHAR2(50),
	"F_FLOW_TASK_ID" NVARCHAR2(50),
	"F_INTE_ASSISTANT" NUMBER

, PRIMARY KEY (F_Id,f_tenant_id)
);
COMMENT ON TABLE test_customer IS '大客户信息表';
COMMENT ON COLUMN test_customer."F_ID" IS '主键';
COMMENT ON COLUMN test_customer."F_SORTCODE" IS '序号';
COMMENT ON COLUMN test_customer."F_DEPNAME" IS '所属部门';
COMMENT ON COLUMN test_customer."F_USERNAME" IS '业务员姓名';
COMMENT ON COLUMN test_customer."F_TYPE" IS '客户类型';
COMMENT ON COLUMN test_customer."F_GRADE" IS '客户等级';
COMMENT ON COLUMN test_customer."F_CUSTOMERNAME" IS '客户全称';
COMMENT ON COLUMN test_customer."F_LEVELADDRESS" IS '省份';
COMMENT ON COLUMN test_customer."F_CHANNEL" IS '渠道全称';
COMMENT ON COLUMN test_customer."F_TRADE" IS '行业';
COMMENT ON COLUMN test_customer."F_NATURE" IS '企业性质';
COMMENT ON COLUMN test_customer."F_MODEL" IS '企业规模';
COMMENT ON COLUMN test_customer."F_ADDRESS" IS '企业地址（详细地址）';
COMMENT ON COLUMN test_customer."F_CREATORTIME" IS '创建时间';
COMMENT ON COLUMN test_customer."F_CREATORUSERID" IS '创建用户';
COMMENT ON COLUMN test_customer."F_LASTMODIFYTIME" IS '修改时间';
COMMENT ON COLUMN test_customer."F_LASTMODIFYUSERID" IS '修改用户';
COMMENT ON COLUMN test_customer."F_TENANT_ID" IS '租户id';
COMMENT ON COLUMN test_customer."F_FLOW_ID" IS '流程id';
COMMENT ON COLUMN test_customer."F_FLOW_TASK_ID" IS '流程任务主键';
COMMENT ON COLUMN test_customer."F_INTE_ASSISTANT" IS '集成助手数据标识';
-- ----------------------------
-- 表名：test_details
-- ----------------------------
CREATE TABLE test_details (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_RECEIVABLEID" NVARCHAR2(50),
	"F_MONTH" NVARCHAR2(200),
	"F_RENT" NUMBER(18,2),
	"F_WATER_RENT" NUMBER(18,2),
	"F_POWERRATE" NUMBER(18,2),
	"F_PROPERTY" NUMBER(18,2),
	"F_CLEANING" NUMBER(18,2),
	"F_POLLUTANT" NUMBER(18,2),
	"F_TOTALBILLING" NUMBER(18,2),
	"F_CREATORTIME" TIMESTAMP,
	"F_CREATORUSERID" NVARCHAR2(50),
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0'

, PRIMARY KEY (F_Id,f_tenant_id)
);
COMMENT ON TABLE test_details IS '应收费用明细表';
COMMENT ON COLUMN test_details."F_ID" IS '主键';
COMMENT ON COLUMN test_details."F_RECEIVABLEID" IS '主表主键';
COMMENT ON COLUMN test_details."F_MONTH" IS '缴费月份';
COMMENT ON COLUMN test_details."F_RENT" IS '房租';
COMMENT ON COLUMN test_details."F_WATER_RENT" IS '水费';
COMMENT ON COLUMN test_details."F_POWERRATE" IS '电费';
COMMENT ON COLUMN test_details."F_PROPERTY" IS '物业费';
COMMENT ON COLUMN test_details."F_CLEANING" IS '垃圾费';
COMMENT ON COLUMN test_details."F_POLLUTANT" IS '排污费';
COMMENT ON COLUMN test_details."F_TOTALBILLING" IS '累计应收费用';
COMMENT ON COLUMN test_details."F_CREATORTIME" IS '创建时间';
COMMENT ON COLUMN test_details."F_CREATORUSERID" IS '创建用户';
COMMENT ON COLUMN test_details."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：test_position
-- ----------------------------
CREATE TABLE test_position (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_APPLYS" NVARCHAR2(50),
	"F_DEP_NAME" NVARCHAR2(255),
	"F_STATION_NAME" NVARCHAR2(100),
	"F_ARRIVAL_DATE" TIMESTAMP,
	"F_DRADE" NVARCHAR2(50),
	"F_WORKNATURE" NVARCHAR2(100),
	"F_STATIONPAY" NVARCHAR2(100),
	"F_ADD_NUMBER" NVARCHAR2(50),
	"F_EDUCATION" NVARCHAR2(50),
	"F_GENDER" NVARCHAR2(50),
	"F_WORKING_SENIORITY" NVARCHAR2(100),
	"F_MARRIAGE" NVARCHAR2(50),
	"F_AGE" NVARCHAR2(50),
	"F_STATIONPAYS" NVARCHAR2(100),
	"F_DUTY" NVARCHAR2(50),
	"F_STATIONASK" NVARCHAR2(50),
	"F_STATIONKEY" NVARCHAR2(50),
	"F_CREATOR_TIME" TIMESTAMP,
	"F_CREATOR_USERID" NVARCHAR2(50),
	"F_LASTMODIFY_TIME" TIMESTAMP,
	"F_LASTMODIFY_USERID" NVARCHAR2(50),
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0',
	"F_FLOW_ID" NVARCHAR2(50),
	"F_FLOW_TASK_ID" NVARCHAR2(50),
	"F_INTE_ASSISTANT" NUMBER

, PRIMARY KEY (F_Id,f_tenant_id)
);
COMMENT ON TABLE test_position IS '招聘表';
COMMENT ON COLUMN test_position."F_ID" IS '主键';
COMMENT ON COLUMN test_position."F_APPLYS" IS '申请人';
COMMENT ON COLUMN test_position."F_DEP_NAME" IS '所属部门';
COMMENT ON COLUMN test_position."F_STATION_NAME" IS '岗位名称';
COMMENT ON COLUMN test_position."F_ARRIVAL_DATE" IS '期望到岗日期';
COMMENT ON COLUMN test_position."F_DRADE" IS '优先级';
COMMENT ON COLUMN test_position."F_WORKNATURE" IS '工作性质';
COMMENT ON COLUMN test_position."F_STATIONPAY" IS '岗位平均薪资';
COMMENT ON COLUMN test_position."F_ADD_NUMBER" IS '增补原因';
COMMENT ON COLUMN test_position."F_EDUCATION" IS '最低学历';
COMMENT ON COLUMN test_position."F_GENDER" IS '性别';
COMMENT ON COLUMN test_position."F_WORKING_SENIORITY" IS '工作经验年限';
COMMENT ON COLUMN test_position."F_MARRIAGE" IS '婚姻状况';
COMMENT ON COLUMN test_position."F_AGE" IS '年龄范围';
COMMENT ON COLUMN test_position."F_STATIONPAYS" IS '薪资范围';
COMMENT ON COLUMN test_position."F_DUTY" IS '职责描述';
COMMENT ON COLUMN test_position."F_STATIONASK" IS '岗位要求';
COMMENT ON COLUMN test_position."F_STATIONKEY" IS '岗位关键字';
COMMENT ON COLUMN test_position."F_CREATOR_TIME" IS '创建时间';
COMMENT ON COLUMN test_position."F_CREATOR_USERID" IS '创建用户';
COMMENT ON COLUMN test_position."F_LASTMODIFY_TIME" IS '修改时间';
COMMENT ON COLUMN test_position."F_LASTMODIFY_USERID" IS '修改用户';
COMMENT ON COLUMN test_position."F_TENANT_ID" IS '租户id';
COMMENT ON COLUMN test_position."F_FLOW_ID" IS '流程id';
COMMENT ON COLUMN test_position."F_FLOW_TASK_ID" IS '流程任务主键';
COMMENT ON COLUMN test_position."F_INTE_ASSISTANT" IS '集成助手数据标识';
-- ----------------------------
-- 表名：test_projects
-- ----------------------------
CREATE TABLE test_projects (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_FLOWID" NVARCHAR2(50),
	"F_PROJECTNAME" NVARCHAR2(200),
	"F_PROJECTTYPE" NVARCHAR2(10),
	"F_PROJECTCODE" NVARCHAR2(50),
	"F_PROJECTFUNDING" NUMBER(18,2),
	"F_DEPNAME" NVARCHAR2(255),
	"F_PERSON" NVARCHAR2(100),
	"F_DEGREE" NVARCHAR2(10),
	"F_CREATORTIME" TIMESTAMP,
	"F_CREATORUSERID" NVARCHAR2(50),
	"F_LASTMODIFYTIME" TIMESTAMP,
	"F_LASTMODIFYUSERID" NVARCHAR2(50),
	"BILLNO" NVARCHAR2(50),
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0',
	"F_FLOW_TASK_ID" NVARCHAR2(50),
	"F_FLOW_ID" NVARCHAR2(50)

, PRIMARY KEY (F_Id,f_tenant_id)
);
COMMENT ON TABLE test_projects IS '项目立项申请表';
COMMENT ON COLUMN test_projects."F_ID" IS '主键';
COMMENT ON COLUMN test_projects."F_FLOWID" IS '流程主键';
COMMENT ON COLUMN test_projects."F_PROJECTNAME" IS '项目名称';
COMMENT ON COLUMN test_projects."F_PROJECTTYPE" IS '项目类型';
COMMENT ON COLUMN test_projects."F_PROJECTCODE" IS '项目编号';
COMMENT ON COLUMN test_projects."F_PROJECTFUNDING" IS '项目经费';
COMMENT ON COLUMN test_projects."F_DEPNAME" IS '负责部门';
COMMENT ON COLUMN test_projects."F_PERSON" IS '负责人';
COMMENT ON COLUMN test_projects."F_DEGREE" IS '项目密级';
COMMENT ON COLUMN test_projects."F_CREATORTIME" IS '创建时间';
COMMENT ON COLUMN test_projects."F_CREATORUSERID" IS '创建用户';
COMMENT ON COLUMN test_projects."F_LASTMODIFYTIME" IS '修改时间';
COMMENT ON COLUMN test_projects."F_LASTMODIFYUSERID" IS '修改用户';
COMMENT ON COLUMN test_projects."BILLNO" IS '单据规则';
COMMENT ON COLUMN test_projects."F_TENANT_ID" IS '租户id';
COMMENT ON COLUMN test_projects."F_FLOW_TASK_ID" IS '流程任务主键';
COMMENT ON COLUMN test_projects."F_FLOW_ID" IS '流程id';
-- ----------------------------
-- 表名：test_purchase
-- ----------------------------
CREATE TABLE test_purchase (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_PURCHASE_NUMBER" NVARCHAR2(50),
	"F_SORT_CODE" NVARCHAR2(50),
	"F_APPLYS" NVARCHAR2(50),
	"F_DEP_NAME" NVARCHAR2(255),
	"F_PURCHASE" TIMESTAMP,
	"F_REASONS" NVARCHAR2(100),
	"F_REMARKS" NVARCHAR2(500),
	"F_CREATORTIME" TIMESTAMP,
	"F_CREATORUSERID" NVARCHAR2(50),
	"F_LASTMODIFYTIME" TIMESTAMP,
	"F_LASTMODIFYUSERID" NVARCHAR2(50),
	"F_DESCZ" NUMBER,
	"F_SASA" TIMESTAMP,
	"F_ASAD" NUMBER,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0',
	"F_FLOW_ID" NVARCHAR2(50),
	"F_FLOW_TASK_ID" NVARCHAR2(50),
	"F_INTE_ASSISTANT" NUMBER

, PRIMARY KEY (F_Id,f_tenant_id)
);
COMMENT ON TABLE test_purchase IS '采购申请表';
COMMENT ON COLUMN test_purchase."F_ID" IS '主键';
COMMENT ON COLUMN test_purchase."F_PURCHASE_NUMBER" IS '采购单号';
COMMENT ON COLUMN test_purchase."F_SORT_CODE" IS '排序';
COMMENT ON COLUMN test_purchase."F_APPLYS" IS '采购申请人';
COMMENT ON COLUMN test_purchase."F_DEP_NAME" IS '所属部门';
COMMENT ON COLUMN test_purchase."F_PURCHASE" IS '采购申请日期';
COMMENT ON COLUMN test_purchase."F_REASONS" IS '采购原因';
COMMENT ON COLUMN test_purchase."F_REMARKS" IS '备注';
COMMENT ON COLUMN test_purchase."F_CREATORTIME" IS '创建时间';
COMMENT ON COLUMN test_purchase."F_CREATORUSERID" IS '创建用户';
COMMENT ON COLUMN test_purchase."F_LASTMODIFYTIME" IS '修改时间';
COMMENT ON COLUMN test_purchase."F_LASTMODIFYUSERID" IS '修改用户';
COMMENT ON COLUMN test_purchase."F_DESCZ" IS '';
COMMENT ON COLUMN test_purchase."F_SASA" IS '';
COMMENT ON COLUMN test_purchase."F_ASAD" IS '';
COMMENT ON COLUMN test_purchase."F_TENANT_ID" IS '租户id';
COMMENT ON COLUMN test_purchase."F_FLOW_ID" IS '流程id';
COMMENT ON COLUMN test_purchase."F_FLOW_TASK_ID" IS '流程任务主键';
COMMENT ON COLUMN test_purchase."F_INTE_ASSISTANT" IS '集成助手数据标识';
-- ----------------------------
-- 表名：test_purchase_form
-- ----------------------------
CREATE TABLE test_purchase_form (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_FLOWID" NVARCHAR2(50),
	"F_SUPPLIER_CODE" NVARCHAR2(50),
	"F_SORTCODE" NVARCHAR2(50),
	"F_BUYER" NVARCHAR2(50),
	"F_DEPNAME" NVARCHAR2(255),
	"F_PURCHASE_DATE" TIMESTAMP,
	"F_STATUSS" NVARCHAR2(100),
	"F_TOTALS" NUMBER(38,0),
	"F_SUPPLIER" NVARCHAR2(100),
	"F_PHONE" NVARCHAR2(50),
	"F_ADD_RESS" NVARCHAR2(200),
	"F_CREATOR_TIME" TIMESTAMP,
	"F_CREATORUSERID" NVARCHAR2(50),
	"F_LASTMODIFYTIME" TIMESTAMP,
	"F_LASTMODIFYUSERID" NVARCHAR2(50),
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0',
	"F_FLOW_TASK_ID" NVARCHAR2(50),
	"F_FLOW_ID" NVARCHAR2(50)

, PRIMARY KEY (F_Id,f_tenant_id)
);
COMMENT ON TABLE test_purchase_form IS '采购订单表';
COMMENT ON COLUMN test_purchase_form."F_ID" IS '主键';
COMMENT ON COLUMN test_purchase_form."F_FLOWID" IS '流程主键';
COMMENT ON COLUMN test_purchase_form."F_SUPPLIER_CODE" IS '供应商识别码';
COMMENT ON COLUMN test_purchase_form."F_SORTCODE" IS '排序';
COMMENT ON COLUMN test_purchase_form."F_BUYER" IS '采购员';
COMMENT ON COLUMN test_purchase_form."F_DEPNAME" IS '所属部门';
COMMENT ON COLUMN test_purchase_form."F_PURCHASE_DATE" IS '采购日期';
COMMENT ON COLUMN test_purchase_form."F_STATUSS" IS '入库状态';
COMMENT ON COLUMN test_purchase_form."F_TOTALS" IS '订单合计金额';
COMMENT ON COLUMN test_purchase_form."F_SUPPLIER" IS '供应商对接人';
COMMENT ON COLUMN test_purchase_form."F_PHONE" IS '联系电话';
COMMENT ON COLUMN test_purchase_form."F_ADD_RESS" IS '收货地址';
COMMENT ON COLUMN test_purchase_form."F_CREATOR_TIME" IS '创建时间';
COMMENT ON COLUMN test_purchase_form."F_CREATORUSERID" IS '创建用户';
COMMENT ON COLUMN test_purchase_form."F_LASTMODIFYTIME" IS '修改时间';
COMMENT ON COLUMN test_purchase_form."F_LASTMODIFYUSERID" IS '修改用户';
COMMENT ON COLUMN test_purchase_form."F_TENANT_ID" IS '租户id';
COMMENT ON COLUMN test_purchase_form."F_FLOW_TASK_ID" IS '流程任务主键';
COMMENT ON COLUMN test_purchase_form."F_FLOW_ID" IS '流程id';
-- ----------------------------
-- 表名：test_purchase_form_order
-- ----------------------------
CREATE TABLE test_purchase_form_order (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_PURCHASE_ID" NVARCHAR2(50),
	"F_PRODUCT" NVARCHAR2(50),
	"F_PRODUCT_NAME_2" NVARCHAR2(50),
	"F_PRODUCT_CODE" NVARCHAR2(50),
	"F_PRODUCT_CATEGORY" NVARCHAR2(50),
	"F_SPECIFICATIONS" NVARCHAR2(50),
	"F_UNIT" NUMBER(18,2),
	"F_UNITPRICE" NUMBER(18,2),
	"F_DISCOUNT" NUMBER(18,2),
	"F_ACTUALUNIT_PRICE_NAME" NUMBER(18,2),
	"F_NUMBERS" NUMBER(18,2),
	"F_CREATORTIME" TIMESTAMP,
	"F_CREATORUSERID" NVARCHAR2(50),
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0'

, PRIMARY KEY (F_Id,f_tenant_id)
);
COMMENT ON TABLE test_purchase_form_order IS '采购订单明细表';
COMMENT ON COLUMN test_purchase_form_order."F_ID" IS '主键';
COMMENT ON COLUMN test_purchase_form_order."F_PURCHASE_ID" IS '主表主键';
COMMENT ON COLUMN test_purchase_form_order."F_PRODUCT" IS '产品';
COMMENT ON COLUMN test_purchase_form_order."F_PRODUCT_NAME_2" IS '产品名称';
COMMENT ON COLUMN test_purchase_form_order."F_PRODUCT_CODE" IS '产品编码';
COMMENT ON COLUMN test_purchase_form_order."F_PRODUCT_CATEGORY" IS '产品分类';
COMMENT ON COLUMN test_purchase_form_order."F_SPECIFICATIONS" IS '规格';
COMMENT ON COLUMN test_purchase_form_order."F_UNIT" IS '单位';
COMMENT ON COLUMN test_purchase_form_order."F_UNITPRICE" IS '单价';
COMMENT ON COLUMN test_purchase_form_order."F_DISCOUNT" IS '折扣（%）';
COMMENT ON COLUMN test_purchase_form_order."F_ACTUALUNIT_PRICE_NAME" IS '实际单价（元）';
COMMENT ON COLUMN test_purchase_form_order."F_NUMBERS" IS '数量';
COMMENT ON COLUMN test_purchase_form_order."F_CREATORTIME" IS '创建时间';
COMMENT ON COLUMN test_purchase_form_order."F_CREATORUSERID" IS '创建用户';
COMMENT ON COLUMN test_purchase_form_order."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：test_purchaseorder
-- ----------------------------
CREATE TABLE test_purchaseorder (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_PURCHASEID" NVARCHAR2(50),
	"F_PRODUCT" NVARCHAR2(50),
	"F_PRODUCT_NAME" NVARCHAR2(50),
	"F_PRODUCT_CODE" NVARCHAR2(50),
	"F_PRODUCT_CATEGORY" NVARCHAR2(50),
	"F_SPECIFICATIONS" NVARCHAR2(100),
	"F_UNIT" NVARCHAR2(50),
	"F_NUMBERS" NUMBER(18,2),
	"F_CREATORTIME" TIMESTAMP,
	"F_CREATORUSERID" NVARCHAR2(50),
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0'

, PRIMARY KEY (F_Id,f_tenant_id)
);
COMMENT ON TABLE test_purchaseorder IS '采购单明细表';
COMMENT ON COLUMN test_purchaseorder."F_ID" IS '主键';
COMMENT ON COLUMN test_purchaseorder."F_PURCHASEID" IS '主表主键';
COMMENT ON COLUMN test_purchaseorder."F_PRODUCT" IS '产品';
COMMENT ON COLUMN test_purchaseorder."F_PRODUCT_NAME" IS '产品名称';
COMMENT ON COLUMN test_purchaseorder."F_PRODUCT_CODE" IS '产品编码';
COMMENT ON COLUMN test_purchaseorder."F_PRODUCT_CATEGORY" IS '产品分类';
COMMENT ON COLUMN test_purchaseorder."F_SPECIFICATIONS" IS '规格';
COMMENT ON COLUMN test_purchaseorder."F_UNIT" IS 'F_Unit';
COMMENT ON COLUMN test_purchaseorder."F_NUMBERS" IS '数量';
COMMENT ON COLUMN test_purchaseorder."F_CREATORTIME" IS '创建时间';
COMMENT ON COLUMN test_purchaseorder."F_CREATORUSERID" IS '创建用户';
COMMENT ON COLUMN test_purchaseorder."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：test_receivable
-- ----------------------------
CREATE TABLE test_receivable (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_BUILDING" NVARCHAR2(100),
	"F_ROOM" NVARCHAR2(100),
	"F_COMPANY_NAME" NVARCHAR2(50),
	"F_USERID" NVARCHAR2(50),
	"F_PHONE" NVARCHAR2(50),
	"F_OST" NVARCHAR2(50),
	"F_SORT_CODE" NUMBER,
	"F_ENABLEDMARK" NUMBER,
	"F_CREATORTIME" TIMESTAMP,
	"F_CREATORUSERID" NVARCHAR2(50),
	"F_LASTMODIFYTIME" TIMESTAMP,
	"F_LASTMODIFYUSERID" NVARCHAR2(50),
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0',
	"F_VERSION" NUMBER,
	"F_FLOWTASKID" NVARCHAR2(50),
	"F_FLOW_ID" NVARCHAR2(50),
	"F_FLOW_TASK_ID" NVARCHAR2(50),
	"F_INTE_ASSISTANT" NUMBER

, PRIMARY KEY (F_Id,f_tenant_id)
);
COMMENT ON TABLE test_receivable IS '应收费用主表';
COMMENT ON COLUMN test_receivable."F_ID" IS '主键';
COMMENT ON COLUMN test_receivable."F_BUILDING" IS '楼宇号';
COMMENT ON COLUMN test_receivable."F_ROOM" IS '房间号';
COMMENT ON COLUMN test_receivable."F_COMPANY_NAME" IS '公司名称';
COMMENT ON COLUMN test_receivable."F_USERID" IS '对接人';
COMMENT ON COLUMN test_receivable."F_PHONE" IS '联系方式';
COMMENT ON COLUMN test_receivable."F_OST" IS '职务';
COMMENT ON COLUMN test_receivable."F_SORT_CODE" IS '排序';
COMMENT ON COLUMN test_receivable."F_ENABLEDMARK" IS '有效标志';
COMMENT ON COLUMN test_receivable."F_CREATORTIME" IS '创建时间';
COMMENT ON COLUMN test_receivable."F_CREATORUSERID" IS '创建用户';
COMMENT ON COLUMN test_receivable."F_LASTMODIFYTIME" IS '修改时间';
COMMENT ON COLUMN test_receivable."F_LASTMODIFYUSERID" IS '修改用户';
COMMENT ON COLUMN test_receivable."F_TENANT_ID" IS '租户id';
COMMENT ON COLUMN test_receivable."F_VERSION" IS '乐观锁';
COMMENT ON COLUMN test_receivable."F_FLOWTASKID" IS '流程任务主键';
COMMENT ON COLUMN test_receivable."F_FLOW_ID" IS '流程id';
COMMENT ON COLUMN test_receivable."F_FLOW_TASK_ID" IS '流程任务主键';
COMMENT ON COLUMN test_receivable."F_INTE_ASSISTANT" IS '集成助手数据标识';
-- ----------------------------
-- 表名：test_reimbursement
-- ----------------------------
CREATE TABLE test_reimbursement (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_REIMBURSE_MENT" NVARCHAR2(50),
	"F_REIMBURSEMENT_DATE_AP" NVARCHAR2(50),
	"F_USERID" NVARCHAR2(200),
	"F_DEP_NAME" NVARCHAR2(255),
	"F_TOTALA_MOUNT" NUMBER(18,2),
	"F_REASONS" NVARCHAR2(300),
	"F_REMARKS" NVARCHAR2(500),
	"F_CREATORTIME" TIMESTAMP,
	"F_CREATORUSERID" NVARCHAR2(50),
	"F_LASTMODIFY_TIME" TIMESTAMP,
	"F_LASTMODIFY_USERID" NVARCHAR2(50),
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0'

, PRIMARY KEY (F_Id,f_tenant_id)
);
COMMENT ON TABLE test_reimbursement IS '财务报销信息表';
COMMENT ON COLUMN test_reimbursement."F_ID" IS '主键';
COMMENT ON COLUMN test_reimbursement."F_REIMBURSE_MENT" IS '报销单号';
COMMENT ON COLUMN test_reimbursement."F_REIMBURSEMENT_DATE_AP" IS '项目名称';
COMMENT ON COLUMN test_reimbursement."F_USERID" IS '报销人';
COMMENT ON COLUMN test_reimbursement."F_DEP_NAME" IS '所属部门';
COMMENT ON COLUMN test_reimbursement."F_TOTALA_MOUNT" IS '总金额';
COMMENT ON COLUMN test_reimbursement."F_REASONS" IS '报销事由';
COMMENT ON COLUMN test_reimbursement."F_REMARKS" IS '备注';
COMMENT ON COLUMN test_reimbursement."F_CREATORTIME" IS '创建时间';
COMMENT ON COLUMN test_reimbursement."F_CREATORUSERID" IS '创建用户';
COMMENT ON COLUMN test_reimbursement."F_LASTMODIFY_TIME" IS '修改时间';
COMMENT ON COLUMN test_reimbursement."F_LASTMODIFY_USERID" IS '修改用户';
COMMENT ON COLUMN test_reimbursement."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：test_subpackage
-- ----------------------------
CREATE TABLE test_subpackage (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_SORT_CODE" NUMBER,
	"F_APPLYS" NVARCHAR2(500),
	"F_ARRIVAL_DATE" TIMESTAMP,
	"F_PROJECT_S" NVARCHAR2(200),
	"F_DEP_NAME_A" NVARCHAR2(255),
	"F_CONTRACTOR" NVARCHAR2(100),
	"F_SIGNER" NVARCHAR2(100),
	"F_FIRSTPARTY" NVARCHAR2(300),
	"F_CONTRACT" NVARCHAR2(100),
	"F_CONTRACT_NUMBER" NVARCHAR2(100),
	"F_CONTRACT_DATE" TIMESTAMP,
	"F_START_DATE_AA" TIMESTAMP,
	"F_ENDDATE_QP" TIMESTAMP,
	"F_CONTRACT_MONEY" NUMBER(18,2),
	"F_REMARKS" NVARCHAR2(1000),
	"F_FUJIAN" CLOB,
	"F_INVOICED" NUMBER(18,2),
	"F_CREATORUSERID" NVARCHAR2(50),
	"F_CREATORTIME" TIMESTAMP,
	"F_LASTMODIFYTIME" TIMESTAMP,
	"F_LASTMODIFYUSERID" NVARCHAR2(50),
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0',
	"F_FLOWID" NVARCHAR2(50),
	"F_FLOW_TASK_ID" NVARCHAR2(50),
	"F_FLOW_ID" NVARCHAR2(50)

, PRIMARY KEY (F_Id,f_tenant_id)
);
COMMENT ON TABLE test_subpackage IS '分包合同表';
COMMENT ON COLUMN test_subpackage."F_ID" IS '主键';
COMMENT ON COLUMN test_subpackage."F_SORT_CODE" IS '序号';
COMMENT ON COLUMN test_subpackage."F_APPLYS" IS '填单人';
COMMENT ON COLUMN test_subpackage."F_ARRIVAL_DATE" IS '填单日期';
COMMENT ON COLUMN test_subpackage."F_PROJECT_S" IS '所属项目';
COMMENT ON COLUMN test_subpackage."F_DEP_NAME_A" IS '所属部门';
COMMENT ON COLUMN test_subpackage."F_CONTRACTOR" IS '承包方';
COMMENT ON COLUMN test_subpackage."F_SIGNER" IS '合同签订人';
COMMENT ON COLUMN test_subpackage."F_FIRSTPARTY" IS '客户名称';
COMMENT ON COLUMN test_subpackage."F_CONTRACT" IS '合同';
COMMENT ON COLUMN test_subpackage."F_CONTRACT_NUMBER" IS '合同编号';
COMMENT ON COLUMN test_subpackage."F_CONTRACT_DATE" IS '合同签订日期';
COMMENT ON COLUMN test_subpackage."F_START_DATE_AA" IS '开始日期';
COMMENT ON COLUMN test_subpackage."F_ENDDATE_QP" IS '结束日期';
COMMENT ON COLUMN test_subpackage."F_CONTRACT_MONEY" IS '合同金额';
COMMENT ON COLUMN test_subpackage."F_REMARKS" IS '备注';
COMMENT ON COLUMN test_subpackage."F_FUJIAN" IS '附件';
COMMENT ON COLUMN test_subpackage."F_INVOICED" IS '已付款金额';
COMMENT ON COLUMN test_subpackage."F_CREATORUSERID" IS '创建用户';
COMMENT ON COLUMN test_subpackage."F_CREATORTIME" IS '创建时间';
COMMENT ON COLUMN test_subpackage."F_LASTMODIFYTIME" IS '修改时间';
COMMENT ON COLUMN test_subpackage."F_LASTMODIFYUSERID" IS '修改用户';
COMMENT ON COLUMN test_subpackage."F_TENANT_ID" IS '租户id';
COMMENT ON COLUMN test_subpackage."F_FLOWID" IS '流程id';
COMMENT ON COLUMN test_subpackage."F_FLOW_TASK_ID" IS '流程任务主键';
COMMENT ON COLUMN test_subpackage."F_FLOW_ID" IS '流程id';
-- ----------------------------
-- 表名：test_vehicleinfo
-- ----------------------------
CREATE TABLE test_vehicleinfo (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_SORTCODE" NVARCHAR2(50),
	"F_NUMBERPLATE" NVARCHAR2(50),
	"F_BRAND" NVARCHAR2(50),
	"F_MODEL" NVARCHAR2(50),
	"F_TYPE" NVARCHAR2(50),
	"F_COLOUR" NVARCHAR2(50),
	"F_NUMBER" NVARCHAR2(50),
	"F_PURCHASEPRICE" NVARCHAR2(50),
	"F_PURCHASEDATE" TIMESTAMP,
	"F_SUBORDINATE" NVARCHAR2(50),
	"F_DEPNAME" NVARCHAR2(255),
	"F_ENABLEMARK" NVARCHAR2(50),
	"F_MILEAGETRAVELED" NVARCHAR2(50),
	"F_CREDENTIALS" NVARCHAR2(50),
	"F_REMARKS" NVARCHAR2(500),
	"F_CREATORTIME" TIMESTAMP,
	"F_CREATORUSERID" NVARCHAR2(50),
	"F_LASTMODIFYTIME" TIMESTAMP,
	"F_LASTMODIFYUSERID" NVARCHAR2(50),
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0'

, PRIMARY KEY (F_Id,f_tenant_id)
);
COMMENT ON TABLE test_vehicleinfo IS '车辆信息表';
COMMENT ON COLUMN test_vehicleinfo."F_ID" IS '主键';
COMMENT ON COLUMN test_vehicleinfo."F_SORTCODE" IS '序号';
COMMENT ON COLUMN test_vehicleinfo."F_NUMBERPLATE" IS '车辆号牌';
COMMENT ON COLUMN test_vehicleinfo."F_BRAND" IS '车辆品牌';
COMMENT ON COLUMN test_vehicleinfo."F_MODEL" IS '车辆型号';
COMMENT ON COLUMN test_vehicleinfo."F_TYPE" IS '车辆类型';
COMMENT ON COLUMN test_vehicleinfo."F_COLOUR" IS '车身颜色';
COMMENT ON COLUMN test_vehicleinfo."F_NUMBER" IS '乘坐人数';
COMMENT ON COLUMN test_vehicleinfo."F_PURCHASEPRICE" IS '购置价格';
COMMENT ON COLUMN test_vehicleinfo."F_PURCHASEDATE" IS '购置日期';
COMMENT ON COLUMN test_vehicleinfo."F_SUBORDINATE" IS '所属领导';
COMMENT ON COLUMN test_vehicleinfo."F_DEPNAME" IS '所属部门';
COMMENT ON COLUMN test_vehicleinfo."F_ENABLEMARK" IS '车辆状态';
COMMENT ON COLUMN test_vehicleinfo."F_MILEAGETRAVELED" IS '已行驶里程/KM';
COMMENT ON COLUMN test_vehicleinfo."F_CREDENTIALS" IS '随车证件';
COMMENT ON COLUMN test_vehicleinfo."F_REMARKS" IS '其他信息';
COMMENT ON COLUMN test_vehicleinfo."F_CREATORTIME" IS '创建时间';
COMMENT ON COLUMN test_vehicleinfo."F_CREATORUSERID" IS '创建用户';
COMMENT ON COLUMN test_vehicleinfo."F_LASTMODIFYTIME" IS '修改时间';
COMMENT ON COLUMN test_vehicleinfo."F_LASTMODIFYUSERID" IS '修改用户';
COMMENT ON COLUMN test_vehicleinfo."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：test_warehousing
-- ----------------------------
CREATE TABLE test_warehousing (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_PURCHASE_NUMBER" NVARCHAR2(50),
	"F_SORT_CODE" NVARCHAR2(50),
	"F_APPLYS" NVARCHAR2(50),
	"F_DEP_NAME" NVARCHAR2(255),
	"F_PURCHASE" TIMESTAMP,
	"F_CREATOR_TIME" TIMESTAMP,
	"F_CREATOR_USERID" NVARCHAR2(50),
	"F_LASTMODIFY_TIME" TIMESTAMP,
	"F_LASTMODIFYUSERID" NVARCHAR2(50),
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0'

, PRIMARY KEY (F_Id,f_tenant_id)
);
COMMENT ON TABLE test_warehousing IS '采购入库表';
COMMENT ON COLUMN test_warehousing."F_ID" IS '主键';
COMMENT ON COLUMN test_warehousing."F_PURCHASE_NUMBER" IS '入库单号';
COMMENT ON COLUMN test_warehousing."F_SORT_CODE" IS '排序';
COMMENT ON COLUMN test_warehousing."F_APPLYS" IS '入库员';
COMMENT ON COLUMN test_warehousing."F_DEP_NAME" IS '所属部门';
COMMENT ON COLUMN test_warehousing."F_PURCHASE" IS '入库日期';
COMMENT ON COLUMN test_warehousing."F_CREATOR_TIME" IS '创建时间';
COMMENT ON COLUMN test_warehousing."F_CREATOR_USERID" IS '创建用户';
COMMENT ON COLUMN test_warehousing."F_LASTMODIFY_TIME" IS '修改时间';
COMMENT ON COLUMN test_warehousing."F_LASTMODIFYUSERID" IS '修改用户';
COMMENT ON COLUMN test_warehousing."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：test_warehousingorder
-- ----------------------------
CREATE TABLE test_warehousingorder (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_PURCHASEID" NVARCHAR2(50),
	"F_PRODUCT" NVARCHAR2(50),
	"F_PRODUCT_NAME" NVARCHAR2(50),
	"F_PRODUCT_CODE" NVARCHAR2(50),
	"F_PRODUCT_CATEGORY_BB" NVARCHAR2(50),
	"F_SPECIFICATIONS" NVARCHAR2(100),
	"F_UNIT" NVARCHAR2(50),
	"F_ACTUALUNITPRICE" NUMBER(18,2),
	"F_NUMBERS" NUMBER(18,2),
	"F_CREATOR_TIME" TIMESTAMP,
	"F_CREATORUSERID" NVARCHAR2(50),
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0'

, PRIMARY KEY (F_Id,f_tenant_id)
);
COMMENT ON TABLE test_warehousingorder IS '入库单明细表';
COMMENT ON COLUMN test_warehousingorder."F_ID" IS '主键';
COMMENT ON COLUMN test_warehousingorder."F_PURCHASEID" IS '主表主键';
COMMENT ON COLUMN test_warehousingorder."F_PRODUCT" IS '产品';
COMMENT ON COLUMN test_warehousingorder."F_PRODUCT_NAME" IS '产品名称';
COMMENT ON COLUMN test_warehousingorder."F_PRODUCT_CODE" IS '产品编码';
COMMENT ON COLUMN test_warehousingorder."F_PRODUCT_CATEGORY_BB" IS '产品分类';
COMMENT ON COLUMN test_warehousingorder."F_SPECIFICATIONS" IS '规格';
COMMENT ON COLUMN test_warehousingorder."F_UNIT" IS '单位';
COMMENT ON COLUMN test_warehousingorder."F_ACTUALUNITPRICE" IS '单价';
COMMENT ON COLUMN test_warehousingorder."F_NUMBERS" IS '采购数量';
COMMENT ON COLUMN test_warehousingorder."F_CREATOR_TIME" IS '创建时间';
COMMENT ON COLUMN test_warehousingorder."F_CREATORUSERID" IS '创建用户';
COMMENT ON COLUMN test_warehousingorder."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：undo_log
-- ----------------------------
CREATE TABLE undo_log (
	"ID" NUMBER,
	"BRANCH_ID" NUMBER NOT NULL,
	"XID" NVARCHAR2(100) NOT NULL,
	"CONTEXT" NVARCHAR2(128) NOT NULL,
	"ROLLBACK_INFO" BLOB NOT NULL,
	"LOG_STATUS" NUMBER NOT NULL,
	"LOG_CREATED" TIMESTAMP,
	"LOG_MODIFIED" TIMESTAMP,
	"EXT" NVARCHAR2(100),
	"F_TENANT_ID" NVARCHAR2(50)

, PRIMARY KEY (id)
);
CREATE SEQUENCE undo_log_seq
INCREMENT by 1
START WITH 1
NOMAXVALUE
NOCYCLE
NOCACHE;
COMMENT ON TABLE undo_log IS '事务表';
COMMENT ON COLUMN undo_log."ID" IS '';
COMMENT ON COLUMN undo_log."BRANCH_ID" IS '';
COMMENT ON COLUMN undo_log."XID" IS '';
COMMENT ON COLUMN undo_log."CONTEXT" IS '';
COMMENT ON COLUMN undo_log."ROLLBACK_INFO" IS '';
COMMENT ON COLUMN undo_log."LOG_STATUS" IS '';
COMMENT ON COLUMN undo_log."LOG_CREATED" IS '';
COMMENT ON COLUMN undo_log."LOG_MODIFIED" IS '';
COMMENT ON COLUMN undo_log."EXT" IS '';
COMMENT ON COLUMN undo_log."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：wform_applybanquet
-- ----------------------------
CREATE TABLE wform_applybanquet (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_FLOWID" NVARCHAR2(50),
	"F_FLOWTITLE" NVARCHAR2(50),
	"F_FLOWURGENT" NUMBER,
	"F_BILLNO" NVARCHAR2(50),
	"F_APPLYUSER" NVARCHAR2(50),
	"F_POSITION" NVARCHAR2(50),
	"F_APPLYDATE" TIMESTAMP,
	"F_BANQUETNUM" NVARCHAR2(50),
	"F_BANQUETPEOPLE" CLOB,
	"F_TOTAL" NVARCHAR2(50),
	"F_PLACE" NVARCHAR2(50),
	"F_EXPECTEDCOST" NUMBER(18,2),
	"F_DESCRIPTION" CLOB,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0',
	"F_FLOW_ID" NVARCHAR2(50)

, PRIMARY KEY (F_Id,f_tenant_id)
);
COMMENT ON TABLE wform_applybanquet IS '宴请申请';
COMMENT ON COLUMN wform_applybanquet."F_ID" IS '自然主键';
COMMENT ON COLUMN wform_applybanquet."F_FLOWID" IS '流程主键';
COMMENT ON COLUMN wform_applybanquet."F_FLOWTITLE" IS '流程标题';
COMMENT ON COLUMN wform_applybanquet."F_FLOWURGENT" IS '紧急程度';
COMMENT ON COLUMN wform_applybanquet."F_BILLNO" IS '流程单据';
COMMENT ON COLUMN wform_applybanquet."F_APPLYUSER" IS '申请人员';
COMMENT ON COLUMN wform_applybanquet."F_POSITION" IS '所属职务';
COMMENT ON COLUMN wform_applybanquet."F_APPLYDATE" IS '申请日期';
COMMENT ON COLUMN wform_applybanquet."F_BANQUETNUM" IS '宴请人数';
COMMENT ON COLUMN wform_applybanquet."F_BANQUETPEOPLE" IS '宴请人员';
COMMENT ON COLUMN wform_applybanquet."F_TOTAL" IS '人员总数';
COMMENT ON COLUMN wform_applybanquet."F_PLACE" IS '宴请地点';
COMMENT ON COLUMN wform_applybanquet."F_EXPECTEDCOST" IS '预计费用';
COMMENT ON COLUMN wform_applybanquet."F_DESCRIPTION" IS '备注';
COMMENT ON COLUMN wform_applybanquet."F_TENANT_ID" IS '租户id';
COMMENT ON COLUMN wform_applybanquet."F_FLOW_ID" IS '流程id';
-- ----------------------------
-- 表名：wform_applydelivergoods
-- ----------------------------
CREATE TABLE wform_applydelivergoods (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_FLOWID" NVARCHAR2(50),
	"F_FLOWTITLE" NVARCHAR2(50),
	"F_FLOWURGENT" NUMBER,
	"F_BILLNO" NVARCHAR2(50),
	"F_CUSTOMERNAME" NVARCHAR2(50),
	"F_CONTACTS" NVARCHAR2(50),
	"F_CONTACTPHONE" NVARCHAR2(50),
	"F_CUSTOMERADDRES" NVARCHAR2(50),
	"F_GOODSBELONGED" NVARCHAR2(50),
	"F_INVOICEDATE" TIMESTAMP,
	"F_FREIGHTCOMPANY" NVARCHAR2(50),
	"F_DELIVERYTYPE" NVARCHAR2(50),
	"F_RRANSPORTNUM" NVARCHAR2(50),
	"F_FREIGHTCHARGES" NUMBER(18,2),
	"F_CARGOINSURANCE" NUMBER(18,2),
	"F_DESCRIPTION" CLOB,
	"F_INVOICEVALUE" NUMBER(18,2),
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0',
	"F_FLOW_ID" NVARCHAR2(50)

, PRIMARY KEY (F_Id,f_tenant_id)
);
COMMENT ON TABLE wform_applydelivergoods IS '发货申请单';
COMMENT ON COLUMN wform_applydelivergoods."F_ID" IS '自然主键';
COMMENT ON COLUMN wform_applydelivergoods."F_FLOWID" IS '流程主键';
COMMENT ON COLUMN wform_applydelivergoods."F_FLOWTITLE" IS '流程标题';
COMMENT ON COLUMN wform_applydelivergoods."F_FLOWURGENT" IS '紧急程度';
COMMENT ON COLUMN wform_applydelivergoods."F_BILLNO" IS '流程单据';
COMMENT ON COLUMN wform_applydelivergoods."F_CUSTOMERNAME" IS '客户名称';
COMMENT ON COLUMN wform_applydelivergoods."F_CONTACTS" IS '联系人';
COMMENT ON COLUMN wform_applydelivergoods."F_CONTACTPHONE" IS '联系电话';
COMMENT ON COLUMN wform_applydelivergoods."F_CUSTOMERADDRES" IS '客户地址';
COMMENT ON COLUMN wform_applydelivergoods."F_GOODSBELONGED" IS '货品所属';
COMMENT ON COLUMN wform_applydelivergoods."F_INVOICEDATE" IS '发货日期';
COMMENT ON COLUMN wform_applydelivergoods."F_FREIGHTCOMPANY" IS '货运公司';
COMMENT ON COLUMN wform_applydelivergoods."F_DELIVERYTYPE" IS '发货类型';
COMMENT ON COLUMN wform_applydelivergoods."F_RRANSPORTNUM" IS '货运单号';
COMMENT ON COLUMN wform_applydelivergoods."F_FREIGHTCHARGES" IS '货运费';
COMMENT ON COLUMN wform_applydelivergoods."F_CARGOINSURANCE" IS '保险金额';
COMMENT ON COLUMN wform_applydelivergoods."F_DESCRIPTION" IS '备注';
COMMENT ON COLUMN wform_applydelivergoods."F_INVOICEVALUE" IS '发货金额';
COMMENT ON COLUMN wform_applydelivergoods."F_TENANT_ID" IS '租户id';
COMMENT ON COLUMN wform_applydelivergoods."F_FLOW_ID" IS '流程id';
-- ----------------------------
-- 表名：wform_applydelivergoodsentry
-- ----------------------------
CREATE TABLE wform_applydelivergoodsentry (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_INVOICEID" NVARCHAR2(50),
	"F_GOODSNAME" NVARCHAR2(50),
	"F_SPECIFICATIONS" NVARCHAR2(50),
	"F_UNIT" CLOB,
	"F_QTY" NVARCHAR2(50),
	"F_PRICE" NUMBER(18,2),
	"F_AMOUNT" NUMBER(18,2),
	"F_DESCRIPTION" CLOB,
	"F_SORTCODE" NUMBER,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0'

, PRIMARY KEY (F_Id,f_tenant_id)
);
COMMENT ON TABLE wform_applydelivergoodsentry IS '发货明细';
COMMENT ON COLUMN wform_applydelivergoodsentry."F_ID" IS '自然主键';
COMMENT ON COLUMN wform_applydelivergoodsentry."F_INVOICEID" IS '发货主键';
COMMENT ON COLUMN wform_applydelivergoodsentry."F_GOODSNAME" IS '商品名称';
COMMENT ON COLUMN wform_applydelivergoodsentry."F_SPECIFICATIONS" IS '规格型号';
COMMENT ON COLUMN wform_applydelivergoodsentry."F_UNIT" IS '单位';
COMMENT ON COLUMN wform_applydelivergoodsentry."F_QTY" IS '数量';
COMMENT ON COLUMN wform_applydelivergoodsentry."F_PRICE" IS '单价';
COMMENT ON COLUMN wform_applydelivergoodsentry."F_AMOUNT" IS '金额';
COMMENT ON COLUMN wform_applydelivergoodsentry."F_DESCRIPTION" IS '描述';
COMMENT ON COLUMN wform_applydelivergoodsentry."F_SORTCODE" IS '排序码';
COMMENT ON COLUMN wform_applydelivergoodsentry."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：wform_applymeeting
-- ----------------------------
CREATE TABLE wform_applymeeting (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_FLOWID" NVARCHAR2(50),
	"F_FLOWTITLE" NVARCHAR2(50),
	"F_FLOWURGENT" NUMBER,
	"F_BILLNO" NVARCHAR2(50),
	"F_APPLYUSER" NVARCHAR2(50),
	"F_POSITION" NVARCHAR2(50),
	"F_CONFERENCENAME" NVARCHAR2(50),
	"F_CONFERENCETHEME" NVARCHAR2(50),
	"F_CONFERENCETYPE" NVARCHAR2(50),
	"F_ESTIMATEPEOPLE" NVARCHAR2(50),
	"F_CONFERENCEROOM" NVARCHAR2(50),
	"F_ADMINISTRATOR" NVARCHAR2(50),
	"F_LOOKPEOPLE" NVARCHAR2(50),
	"F_MEMO" NVARCHAR2(50),
	"F_ATTENDEES" NVARCHAR2(50),
	"F_APPLYMATERIAL" NVARCHAR2(50),
	"F_ESTIMATEDAMOUNT" NUMBER(18,2),
	"F_OTHERATTENDEE" NVARCHAR2(50),
	"F_STARTDATE" TIMESTAMP,
	"F_ENDDATE" TIMESTAMP,
	"F_FILEJSON" CLOB,
	"F_DESCRIBE" CLOB,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0',
	"F_FLOW_ID" NVARCHAR2(50)

, PRIMARY KEY (F_Id,f_tenant_id)
);
COMMENT ON TABLE wform_applymeeting IS '会议申请';
COMMENT ON COLUMN wform_applymeeting."F_ID" IS '自然主键';
COMMENT ON COLUMN wform_applymeeting."F_FLOWID" IS '流程主键';
COMMENT ON COLUMN wform_applymeeting."F_FLOWTITLE" IS '流程标题';
COMMENT ON COLUMN wform_applymeeting."F_FLOWURGENT" IS '紧急程度';
COMMENT ON COLUMN wform_applymeeting."F_BILLNO" IS '流程单据';
COMMENT ON COLUMN wform_applymeeting."F_APPLYUSER" IS '申请人';
COMMENT ON COLUMN wform_applymeeting."F_POSITION" IS '所属职务';
COMMENT ON COLUMN wform_applymeeting."F_CONFERENCENAME" IS '会议名称';
COMMENT ON COLUMN wform_applymeeting."F_CONFERENCETHEME" IS '会议主题';
COMMENT ON COLUMN wform_applymeeting."F_CONFERENCETYPE" IS '会议类型';
COMMENT ON COLUMN wform_applymeeting."F_ESTIMATEPEOPLE" IS '预计人数';
COMMENT ON COLUMN wform_applymeeting."F_CONFERENCEROOM" IS '会议室';
COMMENT ON COLUMN wform_applymeeting."F_ADMINISTRATOR" IS '管理人';
COMMENT ON COLUMN wform_applymeeting."F_LOOKPEOPLE" IS '查看人';
COMMENT ON COLUMN wform_applymeeting."F_MEMO" IS '纪要员';
COMMENT ON COLUMN wform_applymeeting."F_ATTENDEES" IS '出席人';
COMMENT ON COLUMN wform_applymeeting."F_APPLYMATERIAL" IS '申请材料';
COMMENT ON COLUMN wform_applymeeting."F_ESTIMATEDAMOUNT" IS '预计金额';
COMMENT ON COLUMN wform_applymeeting."F_OTHERATTENDEE" IS '其他出席人';
COMMENT ON COLUMN wform_applymeeting."F_STARTDATE" IS '开始时间';
COMMENT ON COLUMN wform_applymeeting."F_ENDDATE" IS '结束时间';
COMMENT ON COLUMN wform_applymeeting."F_FILEJSON" IS '相关附件';
COMMENT ON COLUMN wform_applymeeting."F_DESCRIBE" IS '会议描述';
COMMENT ON COLUMN wform_applymeeting."F_TENANT_ID" IS '租户id';
COMMENT ON COLUMN wform_applymeeting."F_FLOW_ID" IS '流程id';
-- ----------------------------
-- 表名：wform_archivalborrow
-- ----------------------------
CREATE TABLE wform_archivalborrow (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_FLOWID" NVARCHAR2(50),
	"F_FLOWTITLE" NVARCHAR2(50),
	"F_FLOWURGENT" NUMBER,
	"F_BILLNO" NVARCHAR2(50),
	"F_APPLYUSER" NVARCHAR2(50),
	"F_BORROWINGDEPARTMENT" NVARCHAR2(255),
	"F_ARCHIVESNAME" NVARCHAR2(50),
	"F_ARCHIVALATTRIBUTES" NVARCHAR2(50),
	"F_BORROWMODE" NVARCHAR2(50),
	"F_APPLYREASON" CLOB,
	"F_ARCHIVESID" NVARCHAR2(50),
	"F_BORROWINGDATE" TIMESTAMP,
	"F_RETURNDATE" TIMESTAMP,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0',
	"F_FLOW_ID" NVARCHAR2(50)

, PRIMARY KEY (F_Id,f_tenant_id)
);
COMMENT ON TABLE wform_archivalborrow IS '档案借阅申请';
COMMENT ON COLUMN wform_archivalborrow."F_ID" IS '自然主键';
COMMENT ON COLUMN wform_archivalborrow."F_FLOWID" IS '流程主键';
COMMENT ON COLUMN wform_archivalborrow."F_FLOWTITLE" IS '流程标题';
COMMENT ON COLUMN wform_archivalborrow."F_FLOWURGENT" IS '紧急程度';
COMMENT ON COLUMN wform_archivalborrow."F_BILLNO" IS '流程单据';
COMMENT ON COLUMN wform_archivalborrow."F_APPLYUSER" IS '申请人';
COMMENT ON COLUMN wform_archivalborrow."F_BORROWINGDEPARTMENT" IS '借阅部门';
COMMENT ON COLUMN wform_archivalborrow."F_ARCHIVESNAME" IS '档案名称';
COMMENT ON COLUMN wform_archivalborrow."F_ARCHIVALATTRIBUTES" IS '档案属性';
COMMENT ON COLUMN wform_archivalborrow."F_BORROWMODE" IS '借阅方式';
COMMENT ON COLUMN wform_archivalborrow."F_APPLYREASON" IS '申请原因';
COMMENT ON COLUMN wform_archivalborrow."F_ARCHIVESID" IS '档案编号';
COMMENT ON COLUMN wform_archivalborrow."F_BORROWINGDATE" IS '借阅时间';
COMMENT ON COLUMN wform_archivalborrow."F_RETURNDATE" IS '归还时间';
COMMENT ON COLUMN wform_archivalborrow."F_TENANT_ID" IS '租户id';
COMMENT ON COLUMN wform_archivalborrow."F_FLOW_ID" IS '流程id';
-- ----------------------------
-- 表名：wform_articleswarehous
-- ----------------------------
CREATE TABLE wform_articleswarehous (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_FLOWID" NVARCHAR2(50),
	"F_FLOWTITLE" NVARCHAR2(50),
	"F_FLOWURGENT" NUMBER,
	"F_BILLNO" NVARCHAR2(50),
	"F_APPLYUSER" NVARCHAR2(50),
	"F_DEPARTMENT" NVARCHAR2(255),
	"F_ARTICLES" NVARCHAR2(50),
	"F_CLASSIFICATION" NVARCHAR2(50),
	"F_ARTICLESID" NVARCHAR2(50),
	"F_COMPANY" NVARCHAR2(50),
	"F_ESTIMATEPEOPLE" NVARCHAR2(50),
	"F_APPLYREASONS" CLOB,
	"F_APPLYDATE" TIMESTAMP,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0',
	"F_FLOW_ID" NVARCHAR2(50)

, PRIMARY KEY (F_Id,f_tenant_id)
);
COMMENT ON TABLE wform_articleswarehous IS '用品入库申请表';
COMMENT ON COLUMN wform_articleswarehous."F_ID" IS '自然主键';
COMMENT ON COLUMN wform_articleswarehous."F_FLOWID" IS '流程主键';
COMMENT ON COLUMN wform_articleswarehous."F_FLOWTITLE" IS '流程标题';
COMMENT ON COLUMN wform_articleswarehous."F_FLOWURGENT" IS '紧急程度';
COMMENT ON COLUMN wform_articleswarehous."F_BILLNO" IS '流程单据';
COMMENT ON COLUMN wform_articleswarehous."F_APPLYUSER" IS '申请人';
COMMENT ON COLUMN wform_articleswarehous."F_DEPARTMENT" IS '所属部门';
COMMENT ON COLUMN wform_articleswarehous."F_ARTICLES" IS '用品库存';
COMMENT ON COLUMN wform_articleswarehous."F_CLASSIFICATION" IS '用品分类';
COMMENT ON COLUMN wform_articleswarehous."F_ARTICLESID" IS '用品编号';
COMMENT ON COLUMN wform_articleswarehous."F_COMPANY" IS '单位';
COMMENT ON COLUMN wform_articleswarehous."F_ESTIMATEPEOPLE" IS '数量';
COMMENT ON COLUMN wform_articleswarehous."F_APPLYREASONS" IS '申请原因';
COMMENT ON COLUMN wform_articleswarehous."F_APPLYDATE" IS '申请时间';
COMMENT ON COLUMN wform_articleswarehous."F_TENANT_ID" IS '租户id';
COMMENT ON COLUMN wform_articleswarehous."F_FLOW_ID" IS '流程id';
-- ----------------------------
-- 表名：wform_batchpack
-- ----------------------------
CREATE TABLE wform_batchpack (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_FLOWID" NVARCHAR2(50),
	"F_FLOWTITLE" NVARCHAR2(50),
	"F_FLOWURGENT" NUMBER,
	"F_BILLNO" NVARCHAR2(50),
	"F_PRODUCTNAME" NVARCHAR2(50),
	"F_PRODUCTION" NVARCHAR2(50),
	"F_COMPACTOR" NVARCHAR2(50),
	"F_COMPACTORDATE" TIMESTAMP,
	"F_STANDARD" NVARCHAR2(50),
	"F_WAREHOUSNO" NVARCHAR2(50),
	"F_PRODUCTIONQUTY" NVARCHAR2(50),
	"F_OPERATIONDATE" TIMESTAMP,
	"F_REGULATIONS" NVARCHAR2(50),
	"F_PACKING" NVARCHAR2(50),
	"F_DESCRIPTION" CLOB,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0',
	"F_FLOW_ID" NVARCHAR2(50)

, PRIMARY KEY (F_Id,f_tenant_id)
);
COMMENT ON TABLE wform_batchpack IS '批包装指令';
COMMENT ON COLUMN wform_batchpack."F_ID" IS '自然主键';
COMMENT ON COLUMN wform_batchpack."F_FLOWID" IS '流程主键';
COMMENT ON COLUMN wform_batchpack."F_FLOWTITLE" IS '流程标题';
COMMENT ON COLUMN wform_batchpack."F_FLOWURGENT" IS '紧急程度';
COMMENT ON COLUMN wform_batchpack."F_BILLNO" IS '流程单据';
COMMENT ON COLUMN wform_batchpack."F_PRODUCTNAME" IS '产品名称';
COMMENT ON COLUMN wform_batchpack."F_PRODUCTION" IS '生产车间';
COMMENT ON COLUMN wform_batchpack."F_COMPACTOR" IS '编制人员';
COMMENT ON COLUMN wform_batchpack."F_COMPACTORDATE" IS '编制日期';
COMMENT ON COLUMN wform_batchpack."F_STANDARD" IS '产品规格';
COMMENT ON COLUMN wform_batchpack."F_WAREHOUSNO" IS '入库序号';
COMMENT ON COLUMN wform_batchpack."F_PRODUCTIONQUTY" IS '批产数量';
COMMENT ON COLUMN wform_batchpack."F_OPERATIONDATE" IS '操作日期';
COMMENT ON COLUMN wform_batchpack."F_REGULATIONS" IS '工艺规程';
COMMENT ON COLUMN wform_batchpack."F_PACKING" IS '包装规格';
COMMENT ON COLUMN wform_batchpack."F_DESCRIPTION" IS '备注';
COMMENT ON COLUMN wform_batchpack."F_TENANT_ID" IS '租户id';
COMMENT ON COLUMN wform_batchpack."F_FLOW_ID" IS '流程id';
-- ----------------------------
-- 表名：wform_batchtable
-- ----------------------------
CREATE TABLE wform_batchtable (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_FLOWID" NVARCHAR2(50),
	"F_FLOWTITLE" NVARCHAR2(50),
	"F_FLOWURGENT" NUMBER,
	"F_BILLNO" NVARCHAR2(50),
	"F_FILETITLE" NVARCHAR2(50),
	"F_DRAFTEDPERSON" NVARCHAR2(50),
	"F_FILLNUM" NVARCHAR2(50),
	"F_SENDUNIT" NVARCHAR2(50),
	"F_TYPING" NVARCHAR2(50),
	"F_WRITINGDATE" TIMESTAMP,
	"F_SHARENUM" NVARCHAR2(50),
	"F_FILEJSON" CLOB,
	"F_DESCRIPTION" CLOB,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0',
	"F_FLOW_ID" NVARCHAR2(50)

, PRIMARY KEY (F_Id,f_tenant_id)
);
COMMENT ON TABLE wform_batchtable IS '行文呈批表';
COMMENT ON COLUMN wform_batchtable."F_ID" IS '自然主键';
COMMENT ON COLUMN wform_batchtable."F_FLOWID" IS '流程主键';
COMMENT ON COLUMN wform_batchtable."F_FLOWTITLE" IS '流程标题';
COMMENT ON COLUMN wform_batchtable."F_FLOWURGENT" IS '紧急程度';
COMMENT ON COLUMN wform_batchtable."F_BILLNO" IS '流程单据';
COMMENT ON COLUMN wform_batchtable."F_FILETITLE" IS '文件标题';
COMMENT ON COLUMN wform_batchtable."F_DRAFTEDPERSON" IS '主办单位';
COMMENT ON COLUMN wform_batchtable."F_FILLNUM" IS '文件编号';
COMMENT ON COLUMN wform_batchtable."F_SENDUNIT" IS '发往单位';
COMMENT ON COLUMN wform_batchtable."F_TYPING" IS '打字';
COMMENT ON COLUMN wform_batchtable."F_WRITINGDATE" IS '发文日期';
COMMENT ON COLUMN wform_batchtable."F_SHARENUM" IS '份数';
COMMENT ON COLUMN wform_batchtable."F_FILEJSON" IS '相关附件';
COMMENT ON COLUMN wform_batchtable."F_DESCRIPTION" IS '备注';
COMMENT ON COLUMN wform_batchtable."F_TENANT_ID" IS '租户id';
COMMENT ON COLUMN wform_batchtable."F_FLOW_ID" IS '流程id';
-- ----------------------------
-- 表名：wform_conbilling
-- ----------------------------
CREATE TABLE wform_conbilling (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_FLOWID" NVARCHAR2(50),
	"F_FLOWTITLE" NVARCHAR2(50),
	"F_FLOWURGENT" NUMBER,
	"F_BILLNO" NVARCHAR2(50),
	"F_DRAWER" NVARCHAR2(50),
	"F_BILLDATE" TIMESTAMP,
	"F_COMPANYNAME" NVARCHAR2(50),
	"F_CONNAME" NVARCHAR2(50),
	"F_BANK" NVARCHAR2(50),
	"F_AMOUNT" NVARCHAR2(50),
	"F_BILLAMOUNT" NUMBER(18,2),
	"F_TAXID" NVARCHAR2(50),
	"F_INVOICEID" NVARCHAR2(50),
	"F_INVOADDRESS" NVARCHAR2(50),
	"F_PAYAMOUNT" NUMBER(18,2),
	"F_FILEJSON" CLOB,
	"F_DESCRIPTION" CLOB,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0',
	"F_FLOW_ID" NVARCHAR2(50)

, PRIMARY KEY (F_Id,f_tenant_id)
);
COMMENT ON TABLE wform_conbilling IS '合同开票流程';
COMMENT ON COLUMN wform_conbilling."F_ID" IS '自然主键';
COMMENT ON COLUMN wform_conbilling."F_FLOWID" IS '流程主键';
COMMENT ON COLUMN wform_conbilling."F_FLOWTITLE" IS '流程标题';
COMMENT ON COLUMN wform_conbilling."F_FLOWURGENT" IS '紧急程度';
COMMENT ON COLUMN wform_conbilling."F_BILLNO" IS '流程单据';
COMMENT ON COLUMN wform_conbilling."F_DRAWER" IS '开票人';
COMMENT ON COLUMN wform_conbilling."F_BILLDATE" IS '开票日期';
COMMENT ON COLUMN wform_conbilling."F_COMPANYNAME" IS '公司名称';
COMMENT ON COLUMN wform_conbilling."F_CONNAME" IS '关联名称';
COMMENT ON COLUMN wform_conbilling."F_BANK" IS '开户银行';
COMMENT ON COLUMN wform_conbilling."F_AMOUNT" IS '开户账号';
COMMENT ON COLUMN wform_conbilling."F_BILLAMOUNT" IS '开票金额';
COMMENT ON COLUMN wform_conbilling."F_TAXID" IS '税号';
COMMENT ON COLUMN wform_conbilling."F_INVOICEID" IS '发票号';
COMMENT ON COLUMN wform_conbilling."F_INVOADDRESS" IS '发票地址';
COMMENT ON COLUMN wform_conbilling."F_PAYAMOUNT" IS '付款金额';
COMMENT ON COLUMN wform_conbilling."F_FILEJSON" IS '相关附件';
COMMENT ON COLUMN wform_conbilling."F_DESCRIPTION" IS '备注';
COMMENT ON COLUMN wform_conbilling."F_TENANT_ID" IS '租户id';
COMMENT ON COLUMN wform_conbilling."F_FLOW_ID" IS '流程id';
-- ----------------------------
-- 表名：wform_contractapproval
-- ----------------------------
CREATE TABLE wform_contractapproval (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_FLOWID" NVARCHAR2(50),
	"F_FLOWTITLE" NVARCHAR2(50),
	"F_FLOWURGENT" NUMBER,
	"F_BILLNO" NVARCHAR2(50),
	"F_FIRSTPARTYUNIT" NVARCHAR2(50),
	"F_SECONDPARTYUNIT" NVARCHAR2(50),
	"F_FIRSTPARTYPERSON" NVARCHAR2(50),
	"F_SECONDPARTYPERSON" NVARCHAR2(50),
	"F_FIRSTPARTYCONTACT" NVARCHAR2(50),
	"F_SECONDPARTYCONTACT" NVARCHAR2(50),
	"F_CONTRACTNAME" NVARCHAR2(50),
	"F_CONTRACTCLASS" NVARCHAR2(50),
	"F_CONTRACTTYPE" NVARCHAR2(50),
	"F_CONTRACTID" NVARCHAR2(50),
	"F_BUSINESSPERSON" NVARCHAR2(50),
	"F_INCOMEAMOUNT" NUMBER(18,2),
	"F_INPUTPERSON" NVARCHAR2(50),
	"F_FILEJSON" CLOB,
	"F_PRIMARYCOVERAGE" CLOB,
	"F_DESCRIPTION" CLOB,
	"F_SIGNINGDATE" TIMESTAMP,
	"F_STARTDATE" TIMESTAMP,
	"F_ENDDATE" TIMESTAMP,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0',
	"F_FLOW_ID" NVARCHAR2(50)

, PRIMARY KEY (F_Id,f_tenant_id)
);
COMMENT ON TABLE wform_contractapproval IS '合同审批';
COMMENT ON COLUMN wform_contractapproval."F_ID" IS '自然主键';
COMMENT ON COLUMN wform_contractapproval."F_FLOWID" IS '流程主键';
COMMENT ON COLUMN wform_contractapproval."F_FLOWTITLE" IS '流程标题';
COMMENT ON COLUMN wform_contractapproval."F_FLOWURGENT" IS '紧急程度';
COMMENT ON COLUMN wform_contractapproval."F_BILLNO" IS '流程单据';
COMMENT ON COLUMN wform_contractapproval."F_FIRSTPARTYUNIT" IS '甲方单位';
COMMENT ON COLUMN wform_contractapproval."F_SECONDPARTYUNIT" IS '乙方单位';
COMMENT ON COLUMN wform_contractapproval."F_FIRSTPARTYPERSON" IS '甲方负责人';
COMMENT ON COLUMN wform_contractapproval."F_SECONDPARTYPERSON" IS '乙方负责人';
COMMENT ON COLUMN wform_contractapproval."F_FIRSTPARTYCONTACT" IS '甲方联系方式';
COMMENT ON COLUMN wform_contractapproval."F_SECONDPARTYCONTACT" IS '乙方联系方式';
COMMENT ON COLUMN wform_contractapproval."F_CONTRACTNAME" IS '合同名称';
COMMENT ON COLUMN wform_contractapproval."F_CONTRACTCLASS" IS '合同分类';
COMMENT ON COLUMN wform_contractapproval."F_CONTRACTTYPE" IS '合同类型';
COMMENT ON COLUMN wform_contractapproval."F_CONTRACTID" IS '合同编号';
COMMENT ON COLUMN wform_contractapproval."F_BUSINESSPERSON" IS '业务人员';
COMMENT ON COLUMN wform_contractapproval."F_INCOMEAMOUNT" IS '收入金额';
COMMENT ON COLUMN wform_contractapproval."F_INPUTPERSON" IS '填写人员';
COMMENT ON COLUMN wform_contractapproval."F_FILEJSON" IS '相关附件';
COMMENT ON COLUMN wform_contractapproval."F_PRIMARYCOVERAGE" IS '主要内容';
COMMENT ON COLUMN wform_contractapproval."F_DESCRIPTION" IS '备注';
COMMENT ON COLUMN wform_contractapproval."F_SIGNINGDATE" IS '签约时间';
COMMENT ON COLUMN wform_contractapproval."F_STARTDATE" IS '开始时间';
COMMENT ON COLUMN wform_contractapproval."F_ENDDATE" IS '结束时间';
COMMENT ON COLUMN wform_contractapproval."F_TENANT_ID" IS '租户id';
COMMENT ON COLUMN wform_contractapproval."F_FLOW_ID" IS '流程id';
-- ----------------------------
-- 表名：wform_contractapprovalsheet
-- ----------------------------
CREATE TABLE wform_contractapprovalsheet (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_FLOWID" NVARCHAR2(50),
	"F_FLOWTITLE" NVARCHAR2(50),
	"F_FLOWURGENT" NUMBER,
	"F_BILLNO" NVARCHAR2(50),
	"F_APPLYUSER" NVARCHAR2(50),
	"F_APPLYDATE" TIMESTAMP,
	"F_CONTRACTID" NVARCHAR2(50),
	"F_CONTRACTNUM" NVARCHAR2(50),
	"F_FIRSTPARTY" NVARCHAR2(50),
	"F_SECONDPARTY" NVARCHAR2(50),
	"F_CONTRACTNAME" NVARCHAR2(50),
	"F_CONTRACTTYPE" NVARCHAR2(50),
	"F_PERSONCHARGE" NVARCHAR2(50),
	"F_LEADDEPARTMENT" NVARCHAR2(255),
	"F_SIGNAREA" NVARCHAR2(50),
	"F_INCOMEAMOUNT" NUMBER(18,2),
	"F_TOTALEXPENDITURE" NUMBER(18,2),
	"F_CONTRACTPERIOD" NVARCHAR2(50),
	"F_PAYMENTMETHOD" NVARCHAR2(50),
	"F_BUDGETARYAPPROVAL" NVARCHAR2(50),
	"F_STARTCONTRACTDATE" TIMESTAMP,
	"F_ENDCONTRACTDATE" TIMESTAMP,
	"F_FILEJSON" CLOB,
	"F_CONTRACTCONTENT" CLOB,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0',
	"F_FLOW_ID" NVARCHAR2(50)

, PRIMARY KEY (F_Id,f_tenant_id)
);
COMMENT ON TABLE wform_contractapprovalsheet IS '合同申请单表';
COMMENT ON COLUMN wform_contractapprovalsheet."F_ID" IS '自然主键';
COMMENT ON COLUMN wform_contractapprovalsheet."F_FLOWID" IS '流程主键';
COMMENT ON COLUMN wform_contractapprovalsheet."F_FLOWTITLE" IS '流程标题';
COMMENT ON COLUMN wform_contractapprovalsheet."F_FLOWURGENT" IS '紧急程度';
COMMENT ON COLUMN wform_contractapprovalsheet."F_BILLNO" IS '流程单据';
COMMENT ON COLUMN wform_contractapprovalsheet."F_APPLYUSER" IS '申请人';
COMMENT ON COLUMN wform_contractapprovalsheet."F_APPLYDATE" IS '申请日期';
COMMENT ON COLUMN wform_contractapprovalsheet."F_CONTRACTID" IS '编号支出';
COMMENT ON COLUMN wform_contractapprovalsheet."F_CONTRACTNUM" IS '合同号';
COMMENT ON COLUMN wform_contractapprovalsheet."F_FIRSTPARTY" IS '签署方(甲方)';
COMMENT ON COLUMN wform_contractapprovalsheet."F_SECONDPARTY" IS '乙方';
COMMENT ON COLUMN wform_contractapprovalsheet."F_CONTRACTNAME" IS '合同名称';
COMMENT ON COLUMN wform_contractapprovalsheet."F_CONTRACTTYPE" IS '合同类型';
COMMENT ON COLUMN wform_contractapprovalsheet."F_PERSONCHARGE" IS '合作负责人';
COMMENT ON COLUMN wform_contractapprovalsheet."F_LEADDEPARTMENT" IS '所属部门';
COMMENT ON COLUMN wform_contractapprovalsheet."F_SIGNAREA" IS '签订地区';
COMMENT ON COLUMN wform_contractapprovalsheet."F_INCOMEAMOUNT" IS '收入金额';
COMMENT ON COLUMN wform_contractapprovalsheet."F_TOTALEXPENDITURE" IS '支出总额';
COMMENT ON COLUMN wform_contractapprovalsheet."F_CONTRACTPERIOD" IS '合同期限';
COMMENT ON COLUMN wform_contractapprovalsheet."F_PAYMENTMETHOD" IS '付款方式';
COMMENT ON COLUMN wform_contractapprovalsheet."F_BUDGETARYAPPROVAL" IS '预算批付';
COMMENT ON COLUMN wform_contractapprovalsheet."F_STARTCONTRACTDATE" IS '开始时间';
COMMENT ON COLUMN wform_contractapprovalsheet."F_ENDCONTRACTDATE" IS '';
COMMENT ON COLUMN wform_contractapprovalsheet."F_FILEJSON" IS '相关附件';
COMMENT ON COLUMN wform_contractapprovalsheet."F_CONTRACTCONTENT" IS '内容简要';
COMMENT ON COLUMN wform_contractapprovalsheet."F_TENANT_ID" IS '租户id';
COMMENT ON COLUMN wform_contractapprovalsheet."F_FLOW_ID" IS '流程id';
-- ----------------------------
-- 表名：wform_debitbill
-- ----------------------------
CREATE TABLE wform_debitbill (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_FLOWID" NVARCHAR2(50),
	"F_FLOWTITLE" NVARCHAR2(50),
	"F_FLOWURGENT" NUMBER,
	"F_BILLNO" NVARCHAR2(50),
	"F_DEPARTMENTAL" NVARCHAR2(255),
	"F_APPLYDATE" TIMESTAMP,
	"F_STAFFNAME" NVARCHAR2(50),
	"F_STAFFPOST" NVARCHAR2(50),
	"F_STAFFID" NVARCHAR2(50),
	"F_LOANMODE" NVARCHAR2(50),
	"F_AMOUNTDEBIT" NUMBER(18,2),
	"F_TRANSFERACCOUNT" NVARCHAR2(50),
	"F_REPAYMENTBILL" NVARCHAR2(50),
	"F_TEACHINGDATE" TIMESTAMP,
	"F_PAYMENTMETHOD" NVARCHAR2(50),
	"F_REASON" CLOB,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0',
	"F_FLOW_ID" NVARCHAR2(50)

, PRIMARY KEY (F_Id,f_tenant_id)
);
COMMENT ON TABLE wform_debitbill IS '借支单';
COMMENT ON COLUMN wform_debitbill."F_ID" IS '自然主键';
COMMENT ON COLUMN wform_debitbill."F_FLOWID" IS '流程主键';
COMMENT ON COLUMN wform_debitbill."F_FLOWTITLE" IS '流程标题';
COMMENT ON COLUMN wform_debitbill."F_FLOWURGENT" IS '紧急程度';
COMMENT ON COLUMN wform_debitbill."F_BILLNO" IS '流程单据';
COMMENT ON COLUMN wform_debitbill."F_DEPARTMENTAL" IS '工作部门';
COMMENT ON COLUMN wform_debitbill."F_APPLYDATE" IS '申请日期';
COMMENT ON COLUMN wform_debitbill."F_STAFFNAME" IS '员工姓名';
COMMENT ON COLUMN wform_debitbill."F_STAFFPOST" IS '员工职务';
COMMENT ON COLUMN wform_debitbill."F_STAFFID" IS '员工编号';
COMMENT ON COLUMN wform_debitbill."F_LOANMODE" IS '借款方式';
COMMENT ON COLUMN wform_debitbill."F_AMOUNTDEBIT" IS '借支金额';
COMMENT ON COLUMN wform_debitbill."F_TRANSFERACCOUNT" IS '转账账户';
COMMENT ON COLUMN wform_debitbill."F_REPAYMENTBILL" IS '还款票据';
COMMENT ON COLUMN wform_debitbill."F_TEACHINGDATE" IS '还款日期';
COMMENT ON COLUMN wform_debitbill."F_PAYMENTMETHOD" IS '支付方式';
COMMENT ON COLUMN wform_debitbill."F_REASON" IS '借款原因';
COMMENT ON COLUMN wform_debitbill."F_TENANT_ID" IS '租户id';
COMMENT ON COLUMN wform_debitbill."F_FLOW_ID" IS '流程id';
-- ----------------------------
-- 表名：wform_documentapproval
-- ----------------------------
CREATE TABLE wform_documentapproval (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_FLOWID" NVARCHAR2(50),
	"F_FLOWTITLE" NVARCHAR2(50),
	"F_FLOWURGENT" NUMBER,
	"F_BILLNO" NVARCHAR2(50),
	"F_FILENAME" NVARCHAR2(50),
	"F_DRAFTEDPERSON" NVARCHAR2(50),
	"F_SERVICEUNIT" NVARCHAR2(50),
	"F_FILLPREPARATION" NVARCHAR2(50),
	"F_FILLNUM" NVARCHAR2(50),
	"F_RECEIPTDATE" TIMESTAMP,
	"F_FILEJSON" CLOB,
	"F_MODIFYOPINION" CLOB,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0',
	"F_FLOW_ID" NVARCHAR2(50)

, PRIMARY KEY (F_Id,f_tenant_id)
);
COMMENT ON TABLE wform_documentapproval IS '文件签批意见表';
COMMENT ON COLUMN wform_documentapproval."F_ID" IS '自然主键';
COMMENT ON COLUMN wform_documentapproval."F_FLOWID" IS '流程主键';
COMMENT ON COLUMN wform_documentapproval."F_FLOWTITLE" IS '流程标题';
COMMENT ON COLUMN wform_documentapproval."F_FLOWURGENT" IS '紧急程度';
COMMENT ON COLUMN wform_documentapproval."F_BILLNO" IS '流程单据';
COMMENT ON COLUMN wform_documentapproval."F_FILENAME" IS '文件名称';
COMMENT ON COLUMN wform_documentapproval."F_DRAFTEDPERSON" IS '拟稿人';
COMMENT ON COLUMN wform_documentapproval."F_SERVICEUNIT" IS '发文单位';
COMMENT ON COLUMN wform_documentapproval."F_FILLPREPARATION" IS '文件拟办';
COMMENT ON COLUMN wform_documentapproval."F_FILLNUM" IS '文件编号';
COMMENT ON COLUMN wform_documentapproval."F_RECEIPTDATE" IS '收文日期';
COMMENT ON COLUMN wform_documentapproval."F_FILEJSON" IS '相关附件';
COMMENT ON COLUMN wform_documentapproval."F_MODIFYOPINION" IS '修改意见';
COMMENT ON COLUMN wform_documentapproval."F_TENANT_ID" IS '租户id';
COMMENT ON COLUMN wform_documentapproval."F_FLOW_ID" IS '流程id';
-- ----------------------------
-- 表名：wform_documentsigning
-- ----------------------------
CREATE TABLE wform_documentsigning (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_FLOWID" NVARCHAR2(50),
	"F_FLOWTITLE" NVARCHAR2(50),
	"F_FLOWURGENT" NUMBER,
	"F_BILLNO" NVARCHAR2(50),
	"F_FILENAME" NVARCHAR2(50),
	"F_FILLNUM" NVARCHAR2(50),
	"F_DRAFTEDPERSON" NVARCHAR2(50),
	"F_READER" NVARCHAR2(50),
	"F_FILLPREPARATION" NVARCHAR2(50),
	"F_CHECKDATE" TIMESTAMP,
	"F_PUBLICATIONDATE" TIMESTAMP,
	"F_FILEJSON" CLOB,
	"F_DOCUMENTCONTENT" CLOB,
	"F_ADVICECOLUMN" CLOB,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0',
	"F_FLOW_ID" NVARCHAR2(50)

, PRIMARY KEY (F_Id,f_tenant_id)
);
COMMENT ON TABLE wform_documentsigning IS '文件签阅表';
COMMENT ON COLUMN wform_documentsigning."F_ID" IS '自然主键';
COMMENT ON COLUMN wform_documentsigning."F_FLOWID" IS '流程主键';
COMMENT ON COLUMN wform_documentsigning."F_FLOWTITLE" IS '流程标题';
COMMENT ON COLUMN wform_documentsigning."F_FLOWURGENT" IS '紧急程度';
COMMENT ON COLUMN wform_documentsigning."F_BILLNO" IS '流程单据';
COMMENT ON COLUMN wform_documentsigning."F_FILENAME" IS '文件名称';
COMMENT ON COLUMN wform_documentsigning."F_FILLNUM" IS '文件编号';
COMMENT ON COLUMN wform_documentsigning."F_DRAFTEDPERSON" IS '拟稿人';
COMMENT ON COLUMN wform_documentsigning."F_READER" IS '签阅人';
COMMENT ON COLUMN wform_documentsigning."F_FILLPREPARATION" IS '文件拟办';
COMMENT ON COLUMN wform_documentsigning."F_CHECKDATE" IS '签阅时间';
COMMENT ON COLUMN wform_documentsigning."F_PUBLICATIONDATE" IS '发稿日期';
COMMENT ON COLUMN wform_documentsigning."F_FILEJSON" IS '相关附件';
COMMENT ON COLUMN wform_documentsigning."F_DOCUMENTCONTENT" IS '文件内容';
COMMENT ON COLUMN wform_documentsigning."F_ADVICECOLUMN" IS '建议栏';
COMMENT ON COLUMN wform_documentsigning."F_TENANT_ID" IS '租户id';
COMMENT ON COLUMN wform_documentsigning."F_FLOW_ID" IS '流程id';
-- ----------------------------
-- 表名：wform_expenseexpenditure
-- ----------------------------
CREATE TABLE wform_expenseexpenditure (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_FLOWID" NVARCHAR2(50),
	"F_FLOWTITLE" NVARCHAR2(50),
	"F_FLOWURGENT" NUMBER,
	"F_BILLNO" NVARCHAR2(50),
	"F_APPLYUSER" NVARCHAR2(50),
	"F_DEPARTMENT" NVARCHAR2(255),
	"F_APPLYDATE" TIMESTAMP,
	"F_CONTRACTNUM" NVARCHAR2(50),
	"F_NONCONTRACT" NVARCHAR2(50),
	"F_ACCOUNTOPENINGBANK" NVARCHAR2(50),
	"F_BANKACCOUNT" NVARCHAR2(50),
	"F_OPENACCOUNT" NVARCHAR2(50),
	"F_TOTAL" NUMBER(18,2),
	"F_PAYMENTMETHOD" NVARCHAR2(50),
	"F_AMOUNTPAYMENT" NUMBER(18,2),
	"F_DESCRIPTION" CLOB,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0',
	"F_FLOW_ID" NVARCHAR2(50)

, PRIMARY KEY (F_Id,f_tenant_id)
);
COMMENT ON TABLE wform_expenseexpenditure IS '费用支出单';
COMMENT ON COLUMN wform_expenseexpenditure."F_ID" IS '自然主键';
COMMENT ON COLUMN wform_expenseexpenditure."F_FLOWID" IS '流程主键';
COMMENT ON COLUMN wform_expenseexpenditure."F_FLOWTITLE" IS '流程标题';
COMMENT ON COLUMN wform_expenseexpenditure."F_FLOWURGENT" IS '流程等级';
COMMENT ON COLUMN wform_expenseexpenditure."F_BILLNO" IS '流程单据';
COMMENT ON COLUMN wform_expenseexpenditure."F_APPLYUSER" IS '申请人员';
COMMENT ON COLUMN wform_expenseexpenditure."F_DEPARTMENT" IS '所在部门';
COMMENT ON COLUMN wform_expenseexpenditure."F_APPLYDATE" IS '申请日期';
COMMENT ON COLUMN wform_expenseexpenditure."F_CONTRACTNUM" IS '合同编号';
COMMENT ON COLUMN wform_expenseexpenditure."F_NONCONTRACT" IS '非合同支出';
COMMENT ON COLUMN wform_expenseexpenditure."F_ACCOUNTOPENINGBANK" IS '开户银行';
COMMENT ON COLUMN wform_expenseexpenditure."F_BANKACCOUNT" IS '银行账号';
COMMENT ON COLUMN wform_expenseexpenditure."F_OPENACCOUNT" IS '开户姓名';
COMMENT ON COLUMN wform_expenseexpenditure."F_TOTAL" IS '合计费用';
COMMENT ON COLUMN wform_expenseexpenditure."F_PAYMENTMETHOD" IS '支付方式';
COMMENT ON COLUMN wform_expenseexpenditure."F_AMOUNTPAYMENT" IS '支付金额';
COMMENT ON COLUMN wform_expenseexpenditure."F_DESCRIPTION" IS '备注';
COMMENT ON COLUMN wform_expenseexpenditure."F_TENANT_ID" IS '租户id';
COMMENT ON COLUMN wform_expenseexpenditure."F_FLOW_ID" IS '流程id';
-- ----------------------------
-- 表名：wform_finishedproduct
-- ----------------------------
CREATE TABLE wform_finishedproduct (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_FLOWID" NVARCHAR2(50),
	"F_FLOWTITLE" NVARCHAR2(50),
	"F_FLOWURGENT" NUMBER,
	"F_BILLNO" NVARCHAR2(50),
	"F_WAREHOUSENAME" NVARCHAR2(50),
	"F_WAREHOUSE" NVARCHAR2(50),
	"F_DESCRIPTION" CLOB,
	"F_RESERVOIRDATE" TIMESTAMP,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0',
	"F_FLOW_ID" NVARCHAR2(50)

, PRIMARY KEY (F_Id,f_tenant_id)
);
COMMENT ON TABLE wform_finishedproduct IS '成品入库单';
COMMENT ON COLUMN wform_finishedproduct."F_ID" IS '自然主键';
COMMENT ON COLUMN wform_finishedproduct."F_FLOWID" IS '流程主键';
COMMENT ON COLUMN wform_finishedproduct."F_FLOWTITLE" IS '流程标题';
COMMENT ON COLUMN wform_finishedproduct."F_FLOWURGENT" IS '紧急程度';
COMMENT ON COLUMN wform_finishedproduct."F_BILLNO" IS '流程单据';
COMMENT ON COLUMN wform_finishedproduct."F_WAREHOUSENAME" IS '入库人';
COMMENT ON COLUMN wform_finishedproduct."F_WAREHOUSE" IS '仓库';
COMMENT ON COLUMN wform_finishedproduct."F_DESCRIPTION" IS '备注';
COMMENT ON COLUMN wform_finishedproduct."F_RESERVOIRDATE" IS '入库时间';
COMMENT ON COLUMN wform_finishedproduct."F_TENANT_ID" IS '租户id';
COMMENT ON COLUMN wform_finishedproduct."F_FLOW_ID" IS '流程id';
-- ----------------------------
-- 表名：wform_finishedproductentry
-- ----------------------------
CREATE TABLE wform_finishedproductentry (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_WAREHOUSEID" NVARCHAR2(50),
	"F_GOODSNAME" NVARCHAR2(50),
	"F_SPECIFICATIONS" NVARCHAR2(50),
	"F_UNIT" NVARCHAR2(50),
	"F_QTY" NVARCHAR2(50),
	"F_PRICE" NUMBER(18,2),
	"F_AMOUNT" NUMBER(18,2),
	"F_DESCRIPTION" CLOB,
	"F_SORTCODE" NUMBER,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0'

, PRIMARY KEY (F_Id,f_tenant_id)
);
COMMENT ON TABLE wform_finishedproductentry IS '成品入库单明细';
COMMENT ON COLUMN wform_finishedproductentry."F_ID" IS '自然主键';
COMMENT ON COLUMN wform_finishedproductentry."F_WAREHOUSEID" IS '入库单号';
COMMENT ON COLUMN wform_finishedproductentry."F_GOODSNAME" IS '商品名称';
COMMENT ON COLUMN wform_finishedproductentry."F_SPECIFICATIONS" IS '规格型号';
COMMENT ON COLUMN wform_finishedproductentry."F_UNIT" IS '单位';
COMMENT ON COLUMN wform_finishedproductentry."F_QTY" IS '数量';
COMMENT ON COLUMN wform_finishedproductentry."F_PRICE" IS '单价';
COMMENT ON COLUMN wform_finishedproductentry."F_AMOUNT" IS '金额';
COMMENT ON COLUMN wform_finishedproductentry."F_DESCRIPTION" IS '备注';
COMMENT ON COLUMN wform_finishedproductentry."F_SORTCODE" IS '排序号';
COMMENT ON COLUMN wform_finishedproductentry."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：wform_incomerecognition
-- ----------------------------
CREATE TABLE wform_incomerecognition (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_FLOWID" NVARCHAR2(50),
	"F_FLOWTITLE" NVARCHAR2(50),
	"F_FLOWURGENT" NUMBER,
	"F_BILLNO" NVARCHAR2(50),
	"F_SETTLEMENTMONTH" NVARCHAR2(50),
	"F_CUSTOMERNAME" NVARCHAR2(50),
	"F_CONTRACTNUM" NVARCHAR2(50),
	"F_TOTALAMOUNT" NUMBER(18,2),
	"F_MONEYBANK" NVARCHAR2(50),
	"F_ACTUALAMOUNT" NUMBER(18,2),
	"F_CONTACTNAME" NVARCHAR2(50),
	"F_CONTACPHONE" NVARCHAR2(50),
	"F_CONTACTQQ" NVARCHAR2(50),
	"F_UNPAIDAMOUNT" NUMBER(18,2),
	"F_AMOUNTPAID" NUMBER(18,2),
	"F_DESCRIPTION" CLOB,
	"F_PAYMENTDATE" TIMESTAMP,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0',
	"F_FLOW_ID" NVARCHAR2(50)

, PRIMARY KEY (F_Id,f_tenant_id)
);
COMMENT ON TABLE wform_incomerecognition IS '收入确认分析表';
COMMENT ON COLUMN wform_incomerecognition."F_ID" IS '自然主键';
COMMENT ON COLUMN wform_incomerecognition."F_FLOWID" IS '流程主题';
COMMENT ON COLUMN wform_incomerecognition."F_FLOWTITLE" IS '流程标题';
COMMENT ON COLUMN wform_incomerecognition."F_FLOWURGENT" IS '紧急程度';
COMMENT ON COLUMN wform_incomerecognition."F_BILLNO" IS '流程单据';
COMMENT ON COLUMN wform_incomerecognition."F_SETTLEMENTMONTH" IS '结算月份';
COMMENT ON COLUMN wform_incomerecognition."F_CUSTOMERNAME" IS '客户名称';
COMMENT ON COLUMN wform_incomerecognition."F_CONTRACTNUM" IS '合同编号';
COMMENT ON COLUMN wform_incomerecognition."F_TOTALAMOUNT" IS '合同金额';
COMMENT ON COLUMN wform_incomerecognition."F_MONEYBANK" IS '到款银行';
COMMENT ON COLUMN wform_incomerecognition."F_ACTUALAMOUNT" IS '到款金额';
COMMENT ON COLUMN wform_incomerecognition."F_CONTACTNAME" IS '联系人姓名';
COMMENT ON COLUMN wform_incomerecognition."F_CONTACPHONE" IS '联系电话';
COMMENT ON COLUMN wform_incomerecognition."F_CONTACTQQ" IS '联系QQ';
COMMENT ON COLUMN wform_incomerecognition."F_UNPAIDAMOUNT" IS '未付金额';
COMMENT ON COLUMN wform_incomerecognition."F_AMOUNTPAID" IS '已付金额';
COMMENT ON COLUMN wform_incomerecognition."F_DESCRIPTION" IS '备注';
COMMENT ON COLUMN wform_incomerecognition."F_PAYMENTDATE" IS '到款日期';
COMMENT ON COLUMN wform_incomerecognition."F_TENANT_ID" IS '租户id';
COMMENT ON COLUMN wform_incomerecognition."F_FLOW_ID" IS '流程id';
-- ----------------------------
-- 表名：wform_leaveapply
-- ----------------------------
CREATE TABLE wform_leaveapply (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_FLOWID" NVARCHAR2(50),
	"F_FLOWTITLE" NVARCHAR2(200),
	"F_FLOWURGENT" NUMBER,
	"F_BILLNO" NVARCHAR2(50),
	"F_APPLYUSER" NVARCHAR2(50),
	"F_APPLYDEPT" NVARCHAR2(255),
	"F_APPLYPOST" NVARCHAR2(50),
	"F_LEAVETYPE" NVARCHAR2(50),
	"F_LEAVEREASON" CLOB,
	"F_LEAVEDAYCOUNT" NVARCHAR2(50),
	"F_LEAVEHOUR" NVARCHAR2(50),
	"F_FILEJSON" CLOB,
	"F_DESCRIPTION" CLOB,
	"F_APPLYDATE" TIMESTAMP,
	"F_LEAVESTARTTIME" TIMESTAMP,
	"F_LEAVEENDTIME" TIMESTAMP,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0'

, PRIMARY KEY (F_Id,f_tenant_id)
);
COMMENT ON TABLE wform_leaveapply IS '流程表单【请假申请】';
COMMENT ON COLUMN wform_leaveapply."F_ID" IS '自然主键';
COMMENT ON COLUMN wform_leaveapply."F_FLOWID" IS '流程主键';
COMMENT ON COLUMN wform_leaveapply."F_FLOWTITLE" IS '流程标题';
COMMENT ON COLUMN wform_leaveapply."F_FLOWURGENT" IS '紧急程度';
COMMENT ON COLUMN wform_leaveapply."F_BILLNO" IS '单据编号';
COMMENT ON COLUMN wform_leaveapply."F_APPLYUSER" IS '申请人员';
COMMENT ON COLUMN wform_leaveapply."F_APPLYDEPT" IS '申请部门';
COMMENT ON COLUMN wform_leaveapply."F_APPLYPOST" IS '申请职位';
COMMENT ON COLUMN wform_leaveapply."F_LEAVETYPE" IS '请假类别';
COMMENT ON COLUMN wform_leaveapply."F_LEAVEREASON" IS '请假原因';
COMMENT ON COLUMN wform_leaveapply."F_LEAVEDAYCOUNT" IS '请假天数';
COMMENT ON COLUMN wform_leaveapply."F_LEAVEHOUR" IS '请假小时';
COMMENT ON COLUMN wform_leaveapply."F_FILEJSON" IS '相关附件';
COMMENT ON COLUMN wform_leaveapply."F_DESCRIPTION" IS '备注';
COMMENT ON COLUMN wform_leaveapply."F_APPLYDATE" IS '申请日期';
COMMENT ON COLUMN wform_leaveapply."F_LEAVESTARTTIME" IS '请假时间';
COMMENT ON COLUMN wform_leaveapply."F_LEAVEENDTIME" IS '结束时间';
COMMENT ON COLUMN wform_leaveapply."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：wform_letterservice
-- ----------------------------
CREATE TABLE wform_letterservice (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_FLOWID" NVARCHAR2(50),
	"F_FLOWTITLE" NVARCHAR2(50),
	"F_FLOWURGENT" NUMBER,
	"F_BILLNO" NVARCHAR2(50),
	"F_HOSTUNIT" NVARCHAR2(50),
	"F_TITLE" NVARCHAR2(50),
	"F_ISSUEDNUM" NVARCHAR2(50),
	"F_WRITINGDATE" TIMESTAMP,
	"F_SHARENUM" NVARCHAR2(50),
	"F_MAINDELIVERY" NVARCHAR2(50),
	"F_COPY" NVARCHAR2(50),
	"F_FILEJSON" CLOB,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0',
	"F_FLOW_ID" NVARCHAR2(50)

, PRIMARY KEY (F_Id,f_tenant_id)
);
COMMENT ON TABLE wform_letterservice IS '发文单';
COMMENT ON COLUMN wform_letterservice."F_ID" IS '自然主键';
COMMENT ON COLUMN wform_letterservice."F_FLOWID" IS '流程主键';
COMMENT ON COLUMN wform_letterservice."F_FLOWTITLE" IS '流程标题';
COMMENT ON COLUMN wform_letterservice."F_FLOWURGENT" IS '紧急程度';
COMMENT ON COLUMN wform_letterservice."F_BILLNO" IS '流程单据';
COMMENT ON COLUMN wform_letterservice."F_HOSTUNIT" IS '主办单位';
COMMENT ON COLUMN wform_letterservice."F_TITLE" IS '发文标题';
COMMENT ON COLUMN wform_letterservice."F_ISSUEDNUM" IS '发文字号';
COMMENT ON COLUMN wform_letterservice."F_WRITINGDATE" IS '发文日期';
COMMENT ON COLUMN wform_letterservice."F_SHARENUM" IS '份数';
COMMENT ON COLUMN wform_letterservice."F_MAINDELIVERY" IS '主送';
COMMENT ON COLUMN wform_letterservice."F_COPY" IS '抄送';
COMMENT ON COLUMN wform_letterservice."F_FILEJSON" IS '相关附件';
COMMENT ON COLUMN wform_letterservice."F_TENANT_ID" IS '租户id';
COMMENT ON COLUMN wform_letterservice."F_FLOW_ID" IS '流程id';
-- ----------------------------
-- 表名：wform_materialrequisition
-- ----------------------------
CREATE TABLE wform_materialrequisition (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_FLOWID" NVARCHAR2(50),
	"F_FLOWTITLE" NVARCHAR2(50),
	"F_FLOWURGENT" NUMBER,
	"F_BILLNO" NVARCHAR2(50),
	"F_LEADPEOPLE" NVARCHAR2(50),
	"F_LEADDEPARTMENT" NVARCHAR2(255),
	"F_LEADDATE" TIMESTAMP,
	"F_WAREHOUSE" NVARCHAR2(50),
	"F_DESCRIPTION" CLOB,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0',
	"F_FLOW_ID" NVARCHAR2(50)

, PRIMARY KEY (F_Id,f_tenant_id)
);
COMMENT ON TABLE wform_materialrequisition IS '领料单';
COMMENT ON COLUMN wform_materialrequisition."F_ID" IS '自然主键';
COMMENT ON COLUMN wform_materialrequisition."F_FLOWID" IS '流程主键';
COMMENT ON COLUMN wform_materialrequisition."F_FLOWTITLE" IS '流程标题';
COMMENT ON COLUMN wform_materialrequisition."F_FLOWURGENT" IS '紧急程度';
COMMENT ON COLUMN wform_materialrequisition."F_BILLNO" IS '流程单据';
COMMENT ON COLUMN wform_materialrequisition."F_LEADPEOPLE" IS '领料人';
COMMENT ON COLUMN wform_materialrequisition."F_LEADDEPARTMENT" IS '领料部门';
COMMENT ON COLUMN wform_materialrequisition."F_LEADDATE" IS '领料日期';
COMMENT ON COLUMN wform_materialrequisition."F_WAREHOUSE" IS '仓库';
COMMENT ON COLUMN wform_materialrequisition."F_DESCRIPTION" IS '备注';
COMMENT ON COLUMN wform_materialrequisition."F_TENANT_ID" IS '租户id';
COMMENT ON COLUMN wform_materialrequisition."F_FLOW_ID" IS '流程id';
-- ----------------------------
-- 表名：wform_materialrequisitionentry
-- ----------------------------
CREATE TABLE wform_materialrequisitionentry (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_LEADEID" NVARCHAR2(50),
	"F_GOODSNAME" NVARCHAR2(50),
	"F_SPECIFICATIONS" NVARCHAR2(50),
	"F_UNIT" NVARCHAR2(50),
	"F_MATERIALDEMAND" NVARCHAR2(50),
	"F_PROPORTIONING" NVARCHAR2(50),
	"F_PRICE" NUMBER(18,2),
	"F_AMOUNT" NUMBER(18,2),
	"F_DESCRIPTION" CLOB,
	"F_SORTCODE" NUMBER,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0'

, PRIMARY KEY (F_Id,f_tenant_id)
);
COMMENT ON TABLE wform_materialrequisitionentry IS '领料明细';
COMMENT ON COLUMN wform_materialrequisitionentry."F_ID" IS '自然主键';
COMMENT ON COLUMN wform_materialrequisitionentry."F_LEADEID" IS '领料主键';
COMMENT ON COLUMN wform_materialrequisitionentry."F_GOODSNAME" IS '商品名称';
COMMENT ON COLUMN wform_materialrequisitionentry."F_SPECIFICATIONS" IS '规格型号';
COMMENT ON COLUMN wform_materialrequisitionentry."F_UNIT" IS '单位';
COMMENT ON COLUMN wform_materialrequisitionentry."F_MATERIALDEMAND" IS '需数量';
COMMENT ON COLUMN wform_materialrequisitionentry."F_PROPORTIONING" IS '配数量';
COMMENT ON COLUMN wform_materialrequisitionentry."F_PRICE" IS '单价';
COMMENT ON COLUMN wform_materialrequisitionentry."F_AMOUNT" IS '金额';
COMMENT ON COLUMN wform_materialrequisitionentry."F_DESCRIPTION" IS '备注';
COMMENT ON COLUMN wform_materialrequisitionentry."F_SORTCODE" IS '排序码';
COMMENT ON COLUMN wform_materialrequisitionentry."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：wform_monthlyreport
-- ----------------------------
CREATE TABLE wform_monthlyreport (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_FLOWID" NVARCHAR2(50),
	"F_FLOWTITLE" NVARCHAR2(50),
	"F_FLOWURGENT" NUMBER,
	"F_BILLNO" NVARCHAR2(50),
	"F_APPLYUSER" NVARCHAR2(50),
	"F_APPLYDATE" TIMESTAMP,
	"F_APPLYDEPT" NVARCHAR2(255),
	"F_APPLYPOST" NVARCHAR2(50),
	"F_PLANENDTIME" TIMESTAMP,
	"F_OVERALEVALUAT" CLOB,
	"F_NPWORKMATTER" NVARCHAR2(50),
	"F_NPFINISHTIME" TIMESTAMP,
	"F_NFINISHMETHOD" CLOB,
	"F_FILEJSON" CLOB,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0',
	"F_FLOW_ID" NVARCHAR2(50)

, PRIMARY KEY (F_Id,f_tenant_id)
);
COMMENT ON TABLE wform_monthlyreport IS '月工作总结';
COMMENT ON COLUMN wform_monthlyreport."F_ID" IS '自然主键';
COMMENT ON COLUMN wform_monthlyreport."F_FLOWID" IS '流程主键';
COMMENT ON COLUMN wform_monthlyreport."F_FLOWTITLE" IS '流程标题';
COMMENT ON COLUMN wform_monthlyreport."F_FLOWURGENT" IS '紧急程度';
COMMENT ON COLUMN wform_monthlyreport."F_BILLNO" IS '流程单据';
COMMENT ON COLUMN wform_monthlyreport."F_APPLYUSER" IS '创建人';
COMMENT ON COLUMN wform_monthlyreport."F_APPLYDATE" IS '创建日期';
COMMENT ON COLUMN wform_monthlyreport."F_APPLYDEPT" IS '所属部门';
COMMENT ON COLUMN wform_monthlyreport."F_APPLYPOST" IS '所属职务';
COMMENT ON COLUMN wform_monthlyreport."F_PLANENDTIME" IS '完成时间';
COMMENT ON COLUMN wform_monthlyreport."F_OVERALEVALUAT" IS '总体评价';
COMMENT ON COLUMN wform_monthlyreport."F_NPWORKMATTER" IS '工作事项';
COMMENT ON COLUMN wform_monthlyreport."F_NPFINISHTIME" IS '次月日期';
COMMENT ON COLUMN wform_monthlyreport."F_NFINISHMETHOD" IS '次月目标';
COMMENT ON COLUMN wform_monthlyreport."F_FILEJSON" IS '相关附件';
COMMENT ON COLUMN wform_monthlyreport."F_TENANT_ID" IS '租户id';
COMMENT ON COLUMN wform_monthlyreport."F_FLOW_ID" IS '流程id';
-- ----------------------------
-- 表名：wform_officesupplies
-- ----------------------------
CREATE TABLE wform_officesupplies (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_FLOWID" NVARCHAR2(50),
	"F_FLOWTITLE" NVARCHAR2(50),
	"F_FLOWURGENT" NUMBER,
	"F_BILLNO" NVARCHAR2(50),
	"F_APPLYUSER" NVARCHAR2(255),
	"F_DEPARTMENT" NVARCHAR2(255),
	"F_USESTOCK" NVARCHAR2(50),
	"F_CLASSIFICATION" NVARCHAR2(50),
	"F_ARTICLESNAME" NVARCHAR2(50),
	"F_ARTICLESNUM" NVARCHAR2(50),
	"F_ARTICLESID" NVARCHAR2(50),
	"F_APPLYREASONS" CLOB,
	"F_APPLYDATE" TIMESTAMP,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0',
	"F_FLOW_ID" NVARCHAR2(50)

, PRIMARY KEY (F_Id,f_tenant_id)
);
COMMENT ON TABLE wform_officesupplies IS '领用办公用品申请表';
COMMENT ON COLUMN wform_officesupplies."F_ID" IS '自然主键';
COMMENT ON COLUMN wform_officesupplies."F_FLOWID" IS '流程主键';
COMMENT ON COLUMN wform_officesupplies."F_FLOWTITLE" IS '流程标题';
COMMENT ON COLUMN wform_officesupplies."F_FLOWURGENT" IS '紧急程度';
COMMENT ON COLUMN wform_officesupplies."F_BILLNO" IS '流程单据';
COMMENT ON COLUMN wform_officesupplies."F_APPLYUSER" IS '申请部门';
COMMENT ON COLUMN wform_officesupplies."F_DEPARTMENT" IS '所属部门';
COMMENT ON COLUMN wform_officesupplies."F_USESTOCK" IS '领用仓库';
COMMENT ON COLUMN wform_officesupplies."F_CLASSIFICATION" IS '用品分类';
COMMENT ON COLUMN wform_officesupplies."F_ARTICLESNAME" IS '用品名称';
COMMENT ON COLUMN wform_officesupplies."F_ARTICLESNUM" IS '用品数量';
COMMENT ON COLUMN wform_officesupplies."F_ARTICLESID" IS '用品编号';
COMMENT ON COLUMN wform_officesupplies."F_APPLYREASONS" IS '申请原因';
COMMENT ON COLUMN wform_officesupplies."F_APPLYDATE" IS '申请时间';
COMMENT ON COLUMN wform_officesupplies."F_TENANT_ID" IS '租户id';
COMMENT ON COLUMN wform_officesupplies."F_FLOW_ID" IS '流程id';
-- ----------------------------
-- 表名：wform_outboundorder
-- ----------------------------
CREATE TABLE wform_outboundorder (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_FLOWID" NVARCHAR2(50),
	"F_FLOWTITLE" NVARCHAR2(50),
	"F_FLOWURGENT" NUMBER,
	"F_BILLNO" NVARCHAR2(50),
	"F_CUSTOMERNAME" NVARCHAR2(50),
	"F_WAREHOUSE" NVARCHAR2(50),
	"F_OUTSTORAGE" NVARCHAR2(50),
	"F_BUSINESSPEOPLE" NVARCHAR2(50),
	"F_BUSINESSTYPE" NVARCHAR2(50),
	"F_OUTBOUNDDATE" TIMESTAMP,
	"F_DESCRIPTION" CLOB,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0',
	"F_FLOW_ID" NVARCHAR2(50)

, PRIMARY KEY (F_Id,f_tenant_id)
);
COMMENT ON TABLE wform_outboundorder IS '出库单';
COMMENT ON COLUMN wform_outboundorder."F_ID" IS '自然主键';
COMMENT ON COLUMN wform_outboundorder."F_FLOWID" IS '流程主键';
COMMENT ON COLUMN wform_outboundorder."F_FLOWTITLE" IS '流程标题';
COMMENT ON COLUMN wform_outboundorder."F_FLOWURGENT" IS '紧急程度';
COMMENT ON COLUMN wform_outboundorder."F_BILLNO" IS '流程单据';
COMMENT ON COLUMN wform_outboundorder."F_CUSTOMERNAME" IS '客户名称';
COMMENT ON COLUMN wform_outboundorder."F_WAREHOUSE" IS '仓库';
COMMENT ON COLUMN wform_outboundorder."F_OUTSTORAGE" IS '仓库人';
COMMENT ON COLUMN wform_outboundorder."F_BUSINESSPEOPLE" IS '业务人员';
COMMENT ON COLUMN wform_outboundorder."F_BUSINESSTYPE" IS '业务类型';
COMMENT ON COLUMN wform_outboundorder."F_OUTBOUNDDATE" IS '出库日期';
COMMENT ON COLUMN wform_outboundorder."F_DESCRIPTION" IS '备注';
COMMENT ON COLUMN wform_outboundorder."F_TENANT_ID" IS '租户id';
COMMENT ON COLUMN wform_outboundorder."F_FLOW_ID" IS '流程id';
-- ----------------------------
-- 表名：wform_outboundorderentry
-- ----------------------------
CREATE TABLE wform_outboundorderentry (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_OUTBOUNDID" NVARCHAR2(50),
	"F_GOODSNAME" NVARCHAR2(50),
	"F_SPECIFICATIONS" NVARCHAR2(50),
	"F_UNIT" NVARCHAR2(50),
	"F_QTY" NVARCHAR2(50),
	"F_PRICE" NUMBER(18,2),
	"F_AMOUNT" NUMBER(18,2),
	"F_DESCRIPTION" CLOB,
	"F_SORTCODE" NUMBER,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0'

, PRIMARY KEY (F_Id,f_tenant_id)
);
COMMENT ON TABLE wform_outboundorderentry IS '出库单明细';
COMMENT ON COLUMN wform_outboundorderentry."F_ID" IS '自然主键';
COMMENT ON COLUMN wform_outboundorderentry."F_OUTBOUNDID" IS '出库单号';
COMMENT ON COLUMN wform_outboundorderentry."F_GOODSNAME" IS '商品名称';
COMMENT ON COLUMN wform_outboundorderentry."F_SPECIFICATIONS" IS '规格型号';
COMMENT ON COLUMN wform_outboundorderentry."F_UNIT" IS '单位';
COMMENT ON COLUMN wform_outboundorderentry."F_QTY" IS '数量';
COMMENT ON COLUMN wform_outboundorderentry."F_PRICE" IS '单价';
COMMENT ON COLUMN wform_outboundorderentry."F_AMOUNT" IS '金额';
COMMENT ON COLUMN wform_outboundorderentry."F_DESCRIPTION" IS '备注';
COMMENT ON COLUMN wform_outboundorderentry."F_SORTCODE" IS '排序码';
COMMENT ON COLUMN wform_outboundorderentry."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：wform_outgoingapply
-- ----------------------------
CREATE TABLE wform_outgoingapply (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_FLOWID" NVARCHAR2(50),
	"F_FLOWTITLE" NVARCHAR2(50),
	"F_FLOWURGENT" NUMBER,
	"F_BILLNO" NVARCHAR2(50),
	"F_APPLYUSER" NVARCHAR2(50),
	"F_DEPARTMENT" NVARCHAR2(255),
	"F_APPLYDATE" TIMESTAMP,
	"F_OUTGOINGTOTLE" NVARCHAR2(50),
	"F_STARTTIME" TIMESTAMP,
	"F_ENDTIME" TIMESTAMP,
	"F_DESTINATION" NVARCHAR2(50),
	"F_FILEJSON" CLOB,
	"F_OUTGOINGCAUSE" CLOB,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0',
	"F_FLOW_ID" NVARCHAR2(50)

, PRIMARY KEY (F_Id,f_tenant_id)
);
COMMENT ON TABLE wform_outgoingapply IS '外出申请单';
COMMENT ON COLUMN wform_outgoingapply."F_ID" IS '自然主键';
COMMENT ON COLUMN wform_outgoingapply."F_FLOWID" IS '流程主键';
COMMENT ON COLUMN wform_outgoingapply."F_FLOWTITLE" IS '流程标题';
COMMENT ON COLUMN wform_outgoingapply."F_FLOWURGENT" IS '紧急程度';
COMMENT ON COLUMN wform_outgoingapply."F_BILLNO" IS '流程单据';
COMMENT ON COLUMN wform_outgoingapply."F_APPLYUSER" IS '申请人';
COMMENT ON COLUMN wform_outgoingapply."F_DEPARTMENT" IS '所在部门';
COMMENT ON COLUMN wform_outgoingapply."F_APPLYDATE" IS '申请日期';
COMMENT ON COLUMN wform_outgoingapply."F_OUTGOINGTOTLE" IS '外出总计';
COMMENT ON COLUMN wform_outgoingapply."F_STARTTIME" IS '开始时间';
COMMENT ON COLUMN wform_outgoingapply."F_ENDTIME" IS '结束时间';
COMMENT ON COLUMN wform_outgoingapply."F_DESTINATION" IS '目的地';
COMMENT ON COLUMN wform_outgoingapply."F_FILEJSON" IS '相关附件';
COMMENT ON COLUMN wform_outgoingapply."F_OUTGOINGCAUSE" IS '外出事由';
COMMENT ON COLUMN wform_outgoingapply."F_TENANT_ID" IS '租户id';
COMMENT ON COLUMN wform_outgoingapply."F_FLOW_ID" IS '流程id';
-- ----------------------------
-- 表名：wform_paydistribution
-- ----------------------------
CREATE TABLE wform_paydistribution (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_FLOWID" NVARCHAR2(50),
	"F_FLOWTITLE" NVARCHAR2(50),
	"F_FLOWURGENT" NUMBER,
	"F_BILLNO" NVARCHAR2(50),
	"F_MONTH" NVARCHAR2(50),
	"F_ISSUINGUNIT" NVARCHAR2(50),
	"F_DEPARTMENT" NVARCHAR2(255),
	"F_POSITION" NVARCHAR2(50),
	"F_BASESALARY" NUMBER(18,2),
	"F_ACTUALATTENDANCE" NVARCHAR2(50),
	"F_ALLOWANCE" NUMBER(18,2),
	"F_INCOMETAX" NUMBER(18,2),
	"F_INSURANCE" NUMBER(18,2),
	"F_PERFORMANCE" NUMBER(18,2),
	"F_OVERTIMEPAY" NUMBER(18,2),
	"F_GROSSPAY" NUMBER(18,2),
	"F_PAYROLL" NUMBER(18,2),
	"F_DESCRIPTION" CLOB,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0',
	"F_FLOW_ID" NVARCHAR2(50)

, PRIMARY KEY (F_Id,f_tenant_id)
);
COMMENT ON TABLE wform_paydistribution IS '薪酬发放';
COMMENT ON COLUMN wform_paydistribution."F_ID" IS '自然主键';
COMMENT ON COLUMN wform_paydistribution."F_FLOWID" IS '流程主键';
COMMENT ON COLUMN wform_paydistribution."F_FLOWTITLE" IS '流程标题';
COMMENT ON COLUMN wform_paydistribution."F_FLOWURGENT" IS '紧急程度';
COMMENT ON COLUMN wform_paydistribution."F_BILLNO" IS '流程单据';
COMMENT ON COLUMN wform_paydistribution."F_MONTH" IS '所属月份';
COMMENT ON COLUMN wform_paydistribution."F_ISSUINGUNIT" IS '发放单位';
COMMENT ON COLUMN wform_paydistribution."F_DEPARTMENT" IS '员工部门';
COMMENT ON COLUMN wform_paydistribution."F_POSITION" IS '员工职位';
COMMENT ON COLUMN wform_paydistribution."F_BASESALARY" IS '基本薪资';
COMMENT ON COLUMN wform_paydistribution."F_ACTUALATTENDANCE" IS '出勤天数';
COMMENT ON COLUMN wform_paydistribution."F_ALLOWANCE" IS '员工津贴';
COMMENT ON COLUMN wform_paydistribution."F_INCOMETAX" IS '所得税';
COMMENT ON COLUMN wform_paydistribution."F_INSURANCE" IS '员工保险';
COMMENT ON COLUMN wform_paydistribution."F_PERFORMANCE" IS '员工绩效';
COMMENT ON COLUMN wform_paydistribution."F_OVERTIMEPAY" IS '加班费用';
COMMENT ON COLUMN wform_paydistribution."F_GROSSPAY" IS '应发工资';
COMMENT ON COLUMN wform_paydistribution."F_PAYROLL" IS '实发工资';
COMMENT ON COLUMN wform_paydistribution."F_DESCRIPTION" IS '备注';
COMMENT ON COLUMN wform_paydistribution."F_TENANT_ID" IS '租户id';
COMMENT ON COLUMN wform_paydistribution."F_FLOW_ID" IS '流程id';
-- ----------------------------
-- 表名：wform_paymentapply
-- ----------------------------
CREATE TABLE wform_paymentapply (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_FLOWID" NVARCHAR2(50),
	"F_FLOWTITLE" NVARCHAR2(50),
	"F_FLOWURGENT" NUMBER,
	"F_BILLNO" NVARCHAR2(50),
	"F_APPLYUSER" NVARCHAR2(50),
	"F_DEPARTMENTAL" NVARCHAR2(255),
	"F_PURPOSENAME" NVARCHAR2(50),
	"F_PROJECTCATEGORY" NVARCHAR2(50),
	"F_PROJECTLEADER" NVARCHAR2(50),
	"F_OPENINGBANK" NVARCHAR2(50),
	"F_BENEFICIARYACCOUNT" NVARCHAR2(50),
	"F_RECEIVABLECONTACT" NVARCHAR2(50),
	"F_PAYMENTUNIT" NVARCHAR2(50),
	"F_APPLYAMOUNT" NUMBER(18,2),
	"F_SETTLEMENTMETHOD" NVARCHAR2(50),
	"F_PAYMENTTYPE" NVARCHAR2(50),
	"F_AMOUNTPAID" NUMBER(18,2),
	"F_DESCRIPTION" CLOB,
	"F_APPLYDATE" TIMESTAMP,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0',
	"F_FLOW_ID" NVARCHAR2(50)

, PRIMARY KEY (F_Id,f_tenant_id)
);
COMMENT ON TABLE wform_paymentapply IS '付款申请单';
COMMENT ON COLUMN wform_paymentapply."F_ID" IS '自然主键';
COMMENT ON COLUMN wform_paymentapply."F_FLOWID" IS '流程主键';
COMMENT ON COLUMN wform_paymentapply."F_FLOWTITLE" IS '流程标题';
COMMENT ON COLUMN wform_paymentapply."F_FLOWURGENT" IS '紧急程度';
COMMENT ON COLUMN wform_paymentapply."F_BILLNO" IS '流程单据';
COMMENT ON COLUMN wform_paymentapply."F_APPLYUSER" IS '申请人';
COMMENT ON COLUMN wform_paymentapply."F_DEPARTMENTAL" IS '申请部门';
COMMENT ON COLUMN wform_paymentapply."F_PURPOSENAME" IS '用途名称';
COMMENT ON COLUMN wform_paymentapply."F_PROJECTCATEGORY" IS '项目类别';
COMMENT ON COLUMN wform_paymentapply."F_PROJECTLEADER" IS '项目负责人';
COMMENT ON COLUMN wform_paymentapply."F_OPENINGBANK" IS '开户银行';
COMMENT ON COLUMN wform_paymentapply."F_BENEFICIARYACCOUNT" IS '收款账号';
COMMENT ON COLUMN wform_paymentapply."F_RECEIVABLECONTACT" IS '联系方式';
COMMENT ON COLUMN wform_paymentapply."F_PAYMENTUNIT" IS '付款单位';
COMMENT ON COLUMN wform_paymentapply."F_APPLYAMOUNT" IS '申请金额';
COMMENT ON COLUMN wform_paymentapply."F_SETTLEMENTMETHOD" IS '结算方式';
COMMENT ON COLUMN wform_paymentapply."F_PAYMENTTYPE" IS '付款类型';
COMMENT ON COLUMN wform_paymentapply."F_AMOUNTPAID" IS '付款金额';
COMMENT ON COLUMN wform_paymentapply."F_DESCRIPTION" IS '备注';
COMMENT ON COLUMN wform_paymentapply."F_APPLYDATE" IS '申请日期';
COMMENT ON COLUMN wform_paymentapply."F_TENANT_ID" IS '租户id';
COMMENT ON COLUMN wform_paymentapply."F_FLOW_ID" IS '流程id';
-- ----------------------------
-- 表名：wform_postbatchtab
-- ----------------------------
CREATE TABLE wform_postbatchtab (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_FLOWID" NVARCHAR2(50),
	"F_FLOWTITLE" NVARCHAR2(50),
	"F_FLOWURGENT" NUMBER,
	"F_BILLNO" NVARCHAR2(50),
	"F_FILETITLE" NVARCHAR2(50),
	"F_DRAFTEDPERSON" NVARCHAR2(50),
	"F_SENDUNIT" NVARCHAR2(50),
	"F_WRITINGNUM" NVARCHAR2(50),
	"F_WRITINGDATE" TIMESTAMP,
	"F_SHARENUM" NVARCHAR2(50),
	"F_FILEJSON" CLOB,
	"F_DESCRIPTION" CLOB,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0',
	"F_FLOW_ID" NVARCHAR2(50)

, PRIMARY KEY (F_Id,f_tenant_id)
);
COMMENT ON TABLE wform_postbatchtab IS '发文呈批表';
COMMENT ON COLUMN wform_postbatchtab."F_ID" IS '自然主键';
COMMENT ON COLUMN wform_postbatchtab."F_FLOWID" IS '流程主键';
COMMENT ON COLUMN wform_postbatchtab."F_FLOWTITLE" IS '流程标题';
COMMENT ON COLUMN wform_postbatchtab."F_FLOWURGENT" IS '紧急程度';
COMMENT ON COLUMN wform_postbatchtab."F_BILLNO" IS '流程单据';
COMMENT ON COLUMN wform_postbatchtab."F_FILETITLE" IS '文件标题';
COMMENT ON COLUMN wform_postbatchtab."F_DRAFTEDPERSON" IS '主办单位';
COMMENT ON COLUMN wform_postbatchtab."F_SENDUNIT" IS '发往单位';
COMMENT ON COLUMN wform_postbatchtab."F_WRITINGNUM" IS '发文编号';
COMMENT ON COLUMN wform_postbatchtab."F_WRITINGDATE" IS '发文日期';
COMMENT ON COLUMN wform_postbatchtab."F_SHARENUM" IS '份数';
COMMENT ON COLUMN wform_postbatchtab."F_FILEJSON" IS '相关附件';
COMMENT ON COLUMN wform_postbatchtab."F_DESCRIPTION" IS '备注';
COMMENT ON COLUMN wform_postbatchtab."F_TENANT_ID" IS '租户id';
COMMENT ON COLUMN wform_postbatchtab."F_FLOW_ID" IS '流程id';
-- ----------------------------
-- 表名：wform_procurementmaterial
-- ----------------------------
CREATE TABLE wform_procurementmaterial (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_FLOWID" NVARCHAR2(50),
	"F_FLOWTITLE" NVARCHAR2(50),
	"F_FLOWURGENT" NUMBER,
	"F_BILLNO" NVARCHAR2(50),
	"F_APPLYUSER" NVARCHAR2(50),
	"F_DEPARTMENTAL" NVARCHAR2(255),
	"F_APPLYDATE" TIMESTAMP,
	"F_PURCHASEUNIT" NVARCHAR2(50),
	"F_DELIVERYMODE" NVARCHAR2(50),
	"F_DELIVERYADDRESS" NVARCHAR2(50),
	"F_PAYMENTMETHOD" NVARCHAR2(50),
	"F_PAYMENTMONEY" NUMBER(18,2),
	"F_FILEJSON" CLOB,
	"F_REASON" CLOB,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0',
	"F_FLOW_ID" NVARCHAR2(50)

, PRIMARY KEY (F_Id,f_tenant_id)
);
COMMENT ON TABLE wform_procurementmaterial IS '采购原材料';
COMMENT ON COLUMN wform_procurementmaterial."F_ID" IS '自然主键';
COMMENT ON COLUMN wform_procurementmaterial."F_FLOWID" IS '流程主键';
COMMENT ON COLUMN wform_procurementmaterial."F_FLOWTITLE" IS '流程标题';
COMMENT ON COLUMN wform_procurementmaterial."F_FLOWURGENT" IS '紧急程度';
COMMENT ON COLUMN wform_procurementmaterial."F_BILLNO" IS '流程单据';
COMMENT ON COLUMN wform_procurementmaterial."F_APPLYUSER" IS '申请人';
COMMENT ON COLUMN wform_procurementmaterial."F_DEPARTMENTAL" IS '申请部门';
COMMENT ON COLUMN wform_procurementmaterial."F_APPLYDATE" IS '申请日期';
COMMENT ON COLUMN wform_procurementmaterial."F_PURCHASEUNIT" IS '采购单位';
COMMENT ON COLUMN wform_procurementmaterial."F_DELIVERYMODE" IS '送货方式';
COMMENT ON COLUMN wform_procurementmaterial."F_DELIVERYADDRESS" IS '送货地址';
COMMENT ON COLUMN wform_procurementmaterial."F_PAYMENTMETHOD" IS '付款方式';
COMMENT ON COLUMN wform_procurementmaterial."F_PAYMENTMONEY" IS '付款金额';
COMMENT ON COLUMN wform_procurementmaterial."F_FILEJSON" IS '相关附件';
COMMENT ON COLUMN wform_procurementmaterial."F_REASON" IS '用途原因';
COMMENT ON COLUMN wform_procurementmaterial."F_TENANT_ID" IS '租户id';
COMMENT ON COLUMN wform_procurementmaterial."F_FLOW_ID" IS '流程id';
-- ----------------------------
-- 表名：wform_procurementmaterialentry
-- ----------------------------
CREATE TABLE wform_procurementmaterialentry (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_PROCUREMENTID" NVARCHAR2(50),
	"F_GOODSNAME" NVARCHAR2(50),
	"F_SPECIFICATIONS" NVARCHAR2(50),
	"F_UNIT" CLOB,
	"F_QTY" NVARCHAR2(50),
	"F_PRICE" NUMBER(18,2),
	"F_AMOUNT" NUMBER(18,2),
	"F_DESCRIPTION" CLOB,
	"F_SORTCODE" NUMBER,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0'

, PRIMARY KEY (F_Id,f_tenant_id)
);
COMMENT ON TABLE wform_procurementmaterialentry IS '采购明细';
COMMENT ON COLUMN wform_procurementmaterialentry."F_ID" IS '自然主键';
COMMENT ON COLUMN wform_procurementmaterialentry."F_PROCUREMENTID" IS '采购主键';
COMMENT ON COLUMN wform_procurementmaterialentry."F_GOODSNAME" IS '商品名称';
COMMENT ON COLUMN wform_procurementmaterialentry."F_SPECIFICATIONS" IS '规格型号';
COMMENT ON COLUMN wform_procurementmaterialentry."F_UNIT" IS '单位';
COMMENT ON COLUMN wform_procurementmaterialentry."F_QTY" IS '数量';
COMMENT ON COLUMN wform_procurementmaterialentry."F_PRICE" IS '单价';
COMMENT ON COLUMN wform_procurementmaterialentry."F_AMOUNT" IS '金额';
COMMENT ON COLUMN wform_procurementmaterialentry."F_DESCRIPTION" IS '备注';
COMMENT ON COLUMN wform_procurementmaterialentry."F_SORTCODE" IS '排序码';
COMMENT ON COLUMN wform_procurementmaterialentry."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：wform_purchaselist
-- ----------------------------
CREATE TABLE wform_purchaselist (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_FLOWID" NVARCHAR2(50),
	"F_FLOWTITLE" NVARCHAR2(50),
	"F_FLOWURGENT" NUMBER,
	"F_BILLNO" NVARCHAR2(50),
	"F_APPLYUSER" NVARCHAR2(50),
	"F_DEPARTMENTAL" NVARCHAR2(255),
	"F_VENDORNAME" NVARCHAR2(50),
	"F_BUYER" NVARCHAR2(50),
	"F_PURCHASEDATE" TIMESTAMP,
	"F_WAREHOUSE" NVARCHAR2(50),
	"F_TELEPHONE" NVARCHAR2(50),
	"F_PAYMENTMETHOD" NVARCHAR2(50),
	"F_PAYMENTMONEY" NUMBER(18,2),
	"F_FILEJSON" CLOB,
	"F_REASON" CLOB,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0',
	"F_FLOW_ID" NVARCHAR2(50)

, PRIMARY KEY (F_Id,f_tenant_id)
);
COMMENT ON TABLE wform_purchaselist IS '日常物品采购清单';
COMMENT ON COLUMN wform_purchaselist."F_ID" IS '自然主键';
COMMENT ON COLUMN wform_purchaselist."F_FLOWID" IS '流程主键';
COMMENT ON COLUMN wform_purchaselist."F_FLOWTITLE" IS '流程标题';
COMMENT ON COLUMN wform_purchaselist."F_FLOWURGENT" IS '紧急程度';
COMMENT ON COLUMN wform_purchaselist."F_BILLNO" IS '流程单据';
COMMENT ON COLUMN wform_purchaselist."F_APPLYUSER" IS '申请人';
COMMENT ON COLUMN wform_purchaselist."F_DEPARTMENTAL" IS '所在部门';
COMMENT ON COLUMN wform_purchaselist."F_VENDORNAME" IS '供应商名称';
COMMENT ON COLUMN wform_purchaselist."F_BUYER" IS '采购人员';
COMMENT ON COLUMN wform_purchaselist."F_PURCHASEDATE" IS '采购日期';
COMMENT ON COLUMN wform_purchaselist."F_WAREHOUSE" IS '仓库';
COMMENT ON COLUMN wform_purchaselist."F_TELEPHONE" IS '联系方式';
COMMENT ON COLUMN wform_purchaselist."F_PAYMENTMETHOD" IS '支付方式';
COMMENT ON COLUMN wform_purchaselist."F_PAYMENTMONEY" IS '支付总额';
COMMENT ON COLUMN wform_purchaselist."F_FILEJSON" IS '相关附件';
COMMENT ON COLUMN wform_purchaselist."F_REASON" IS '用途原因';
COMMENT ON COLUMN wform_purchaselist."F_TENANT_ID" IS '租户id';
COMMENT ON COLUMN wform_purchaselist."F_FLOW_ID" IS '流程id';
-- ----------------------------
-- 表名：wform_purchaselistentry
-- ----------------------------
CREATE TABLE wform_purchaselistentry (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_PURCHASEID" NVARCHAR2(50),
	"F_GOODSNAME" NVARCHAR2(50),
	"F_SPECIFICATIONS" NVARCHAR2(50),
	"F_UNIT" NVARCHAR2(50),
	"F_QTY" NVARCHAR2(50),
	"F_PRICE" NUMBER(18,2),
	"F_AMOUNT" NUMBER(18,2),
	"F_DESCRIPTION" CLOB,
	"F_SORTCODE" NUMBER,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0'

, PRIMARY KEY (F_Id,f_tenant_id)
);
COMMENT ON TABLE wform_purchaselistentry IS '日常物品采购清单';
COMMENT ON COLUMN wform_purchaselistentry."F_ID" IS '自然主键';
COMMENT ON COLUMN wform_purchaselistentry."F_PURCHASEID" IS '采购主键';
COMMENT ON COLUMN wform_purchaselistentry."F_GOODSNAME" IS '商品名称';
COMMENT ON COLUMN wform_purchaselistentry."F_SPECIFICATIONS" IS '规格型号';
COMMENT ON COLUMN wform_purchaselistentry."F_UNIT" IS '单位';
COMMENT ON COLUMN wform_purchaselistentry."F_QTY" IS '数量';
COMMENT ON COLUMN wform_purchaselistentry."F_PRICE" IS '单价';
COMMENT ON COLUMN wform_purchaselistentry."F_AMOUNT" IS '金额';
COMMENT ON COLUMN wform_purchaselistentry."F_DESCRIPTION" IS '备注';
COMMENT ON COLUMN wform_purchaselistentry."F_SORTCODE" IS '排序码';
COMMENT ON COLUMN wform_purchaselistentry."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：wform_quotationapproval
-- ----------------------------
CREATE TABLE wform_quotationapproval (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_FLOWID" NVARCHAR2(50),
	"F_FLOWTITLE" NVARCHAR2(50),
	"F_FLOWURGENT" NUMBER,
	"F_BILLNO" NVARCHAR2(50),
	"F_WRITER" NVARCHAR2(50),
	"F_WRITEDATE" TIMESTAMP,
	"F_CUSTOMERNAME" NVARCHAR2(50),
	"F_QUOTATIONTYPE" NVARCHAR2(50),
	"F_PARTNERNAME" NVARCHAR2(50),
	"F_STANDARDFILE" NVARCHAR2(50),
	"F_CUSTSITUATION" CLOB,
	"F_FILEJSON" CLOB,
	"F_TYPE" NVARCHAR2(255),
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0',
	"F_FLOW_ID" NVARCHAR2(50)

, PRIMARY KEY (F_Id,f_tenant_id)
);
COMMENT ON TABLE wform_quotationapproval IS '报价审批表';
COMMENT ON COLUMN wform_quotationapproval."F_ID" IS '自然主键';
COMMENT ON COLUMN wform_quotationapproval."F_FLOWID" IS '流程主键';
COMMENT ON COLUMN wform_quotationapproval."F_FLOWTITLE" IS '流程标题';
COMMENT ON COLUMN wform_quotationapproval."F_FLOWURGENT" IS '流程等级';
COMMENT ON COLUMN wform_quotationapproval."F_BILLNO" IS '流程单据';
COMMENT ON COLUMN wform_quotationapproval."F_WRITER" IS '填报人';
COMMENT ON COLUMN wform_quotationapproval."F_WRITEDATE" IS '填表日期';
COMMENT ON COLUMN wform_quotationapproval."F_CUSTOMERNAME" IS '客户名称';
COMMENT ON COLUMN wform_quotationapproval."F_QUOTATIONTYPE" IS '类型';
COMMENT ON COLUMN wform_quotationapproval."F_PARTNERNAME" IS '合作人名';
COMMENT ON COLUMN wform_quotationapproval."F_STANDARDFILE" IS '模板参考';
COMMENT ON COLUMN wform_quotationapproval."F_CUSTSITUATION" IS '情况描述';
COMMENT ON COLUMN wform_quotationapproval."F_FILEJSON" IS '相关附件';
COMMENT ON COLUMN wform_quotationapproval."F_TYPE" IS '报价类型';
COMMENT ON COLUMN wform_quotationapproval."F_TENANT_ID" IS '租户id';
COMMENT ON COLUMN wform_quotationapproval."F_FLOW_ID" IS '流程id';
-- ----------------------------
-- 表名：wform_receiptprocessing
-- ----------------------------
CREATE TABLE wform_receiptprocessing (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_FLOWID" NVARCHAR2(50),
	"F_FLOWTITLE" NVARCHAR2(50),
	"F_FLOWURGENT" NUMBER,
	"F_BILLNO" NVARCHAR2(50),
	"F_FILETITLE" NVARCHAR2(50),
	"F_COMMUNICATIONUNIT" NVARCHAR2(50),
	"F_LETTERNUM" NVARCHAR2(50),
	"F_RECEIPTDATE" TIMESTAMP,
	"F_FILEJSON" CLOB,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0',
	"F_FLOW_ID" NVARCHAR2(50)

, PRIMARY KEY (F_Id,f_tenant_id)
);
COMMENT ON TABLE wform_receiptprocessing IS '收文处理表';
COMMENT ON COLUMN wform_receiptprocessing."F_ID" IS '自然主键';
COMMENT ON COLUMN wform_receiptprocessing."F_FLOWID" IS '流程主键';
COMMENT ON COLUMN wform_receiptprocessing."F_FLOWTITLE" IS '流程标题';
COMMENT ON COLUMN wform_receiptprocessing."F_FLOWURGENT" IS '紧急程度';
COMMENT ON COLUMN wform_receiptprocessing."F_BILLNO" IS '流程单据';
COMMENT ON COLUMN wform_receiptprocessing."F_FILETITLE" IS '文件标题';
COMMENT ON COLUMN wform_receiptprocessing."F_COMMUNICATIONUNIT" IS '来文单位';
COMMENT ON COLUMN wform_receiptprocessing."F_LETTERNUM" IS '来文字号';
COMMENT ON COLUMN wform_receiptprocessing."F_RECEIPTDATE" IS '收文日期';
COMMENT ON COLUMN wform_receiptprocessing."F_FILEJSON" IS '相关附件';
COMMENT ON COLUMN wform_receiptprocessing."F_TENANT_ID" IS '租户id';
COMMENT ON COLUMN wform_receiptprocessing."F_FLOW_ID" IS '流程id';
-- ----------------------------
-- 表名：wform_receiptsign
-- ----------------------------
CREATE TABLE wform_receiptsign (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_FLOWID" NVARCHAR2(50),
	"F_FLOWTITLE" NVARCHAR2(50),
	"F_FLOWURGENT" NUMBER,
	"F_BILLNO" NVARCHAR2(50),
	"F_RECEIPTTITLE" NVARCHAR2(50),
	"F_DEPARTMENT" NVARCHAR2(255),
	"F_COLLECTOR" NVARCHAR2(50),
	"F_FILEJSON" CLOB,
	"F_RECEIPTPAPER" CLOB,
	"F_RECEIPTDATE" TIMESTAMP,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0',
	"F_FLOW_ID" NVARCHAR2(50)

, PRIMARY KEY (F_Id,f_tenant_id)
);
COMMENT ON TABLE wform_receiptsign IS '收文签呈单';
COMMENT ON COLUMN wform_receiptsign."F_ID" IS '自然主键';
COMMENT ON COLUMN wform_receiptsign."F_FLOWID" IS '流程主键';
COMMENT ON COLUMN wform_receiptsign."F_FLOWTITLE" IS '流程标题';
COMMENT ON COLUMN wform_receiptsign."F_FLOWURGENT" IS '紧急程度';
COMMENT ON COLUMN wform_receiptsign."F_BILLNO" IS '流程单据';
COMMENT ON COLUMN wform_receiptsign."F_RECEIPTTITLE" IS '收文标题';
COMMENT ON COLUMN wform_receiptsign."F_DEPARTMENT" IS '收文部门';
COMMENT ON COLUMN wform_receiptsign."F_COLLECTOR" IS '收文人';
COMMENT ON COLUMN wform_receiptsign."F_FILEJSON" IS '相关附件';
COMMENT ON COLUMN wform_receiptsign."F_RECEIPTPAPER" IS '收文简述';
COMMENT ON COLUMN wform_receiptsign."F_RECEIPTDATE" IS '收文日期';
COMMENT ON COLUMN wform_receiptsign."F_TENANT_ID" IS '租户id';
COMMENT ON COLUMN wform_receiptsign."F_FLOW_ID" IS '流程id';
-- ----------------------------
-- 表名：wform_rewardpunishment
-- ----------------------------
CREATE TABLE wform_rewardpunishment (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_FLOWID" NVARCHAR2(50),
	"F_FLOWTITLE" NVARCHAR2(50),
	"F_FLOWURGENT" NUMBER,
	"F_BILLNO" NVARCHAR2(50),
	"F_FULLNAME" NVARCHAR2(50),
	"F_FILLFROMDATE" TIMESTAMP,
	"F_DEPARTMENT" NVARCHAR2(255),
	"F_POSITION" NVARCHAR2(50),
	"F_REWARDPUN" NUMBER(18,2),
	"F_REASON" CLOB,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0',
	"F_FLOW_ID" NVARCHAR2(50)

, PRIMARY KEY (F_Id,f_tenant_id)
);
COMMENT ON TABLE wform_rewardpunishment IS '行政赏罚单';
COMMENT ON COLUMN wform_rewardpunishment."F_ID" IS '自然主键';
COMMENT ON COLUMN wform_rewardpunishment."F_FLOWID" IS '主键';
COMMENT ON COLUMN wform_rewardpunishment."F_FLOWTITLE" IS '流程标题';
COMMENT ON COLUMN wform_rewardpunishment."F_FLOWURGENT" IS '紧急程度';
COMMENT ON COLUMN wform_rewardpunishment."F_BILLNO" IS '流程单据';
COMMENT ON COLUMN wform_rewardpunishment."F_FULLNAME" IS '员工姓名';
COMMENT ON COLUMN wform_rewardpunishment."F_FILLFROMDATE" IS '填表日期';
COMMENT ON COLUMN wform_rewardpunishment."F_DEPARTMENT" IS '员工部门';
COMMENT ON COLUMN wform_rewardpunishment."F_POSITION" IS '员工职位';
COMMENT ON COLUMN wform_rewardpunishment."F_REWARDPUN" IS '赏罚金额';
COMMENT ON COLUMN wform_rewardpunishment."F_REASON" IS '赏罚原因';
COMMENT ON COLUMN wform_rewardpunishment."F_TENANT_ID" IS '租户id';
COMMENT ON COLUMN wform_rewardpunishment."F_FLOW_ID" IS '流程id';
-- ----------------------------
-- 表名：wform_salesorder
-- ----------------------------
CREATE TABLE wform_salesorder (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_FLOWID" NVARCHAR2(50),
	"F_FLOWTITLE" NVARCHAR2(50),
	"F_FLOWURGENT" NUMBER,
	"F_BILLNO" NVARCHAR2(50),
	"F_SALESMAN" NVARCHAR2(50),
	"F_CUSTOMERNAME" NVARCHAR2(50),
	"F_CONTACTS" NVARCHAR2(50),
	"F_CONTACTPHONE" NVARCHAR2(50),
	"F_CUSTOMERADDRES" NVARCHAR2(50),
	"F_TICKETNUM" NVARCHAR2(50),
	"F_INVOICETYPE" NVARCHAR2(50),
	"F_PAYMENTMETHOD" NVARCHAR2(50),
	"F_PAYMENTMONEY" NUMBER(18,2),
	"F_SALESDATE" TIMESTAMP,
	"F_FILEJSON" CLOB,
	"F_DESCRIPTION" CLOB,
	"F_TICKETDATE" TIMESTAMP,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0'

, PRIMARY KEY (F_Id,f_tenant_id)
);
COMMENT ON TABLE wform_salesorder IS '销售订单';
COMMENT ON COLUMN wform_salesorder."F_ID" IS '自然主键';
COMMENT ON COLUMN wform_salesorder."F_FLOWID" IS '流程主键';
COMMENT ON COLUMN wform_salesorder."F_FLOWTITLE" IS '流程标题';
COMMENT ON COLUMN wform_salesorder."F_FLOWURGENT" IS '流程等级';
COMMENT ON COLUMN wform_salesorder."F_BILLNO" IS '流程单据';
COMMENT ON COLUMN wform_salesorder."F_SALESMAN" IS '业务人员';
COMMENT ON COLUMN wform_salesorder."F_CUSTOMERNAME" IS '客户名称';
COMMENT ON COLUMN wform_salesorder."F_CONTACTS" IS '联系人';
COMMENT ON COLUMN wform_salesorder."F_CONTACTPHONE" IS '联系电话';
COMMENT ON COLUMN wform_salesorder."F_CUSTOMERADDRES" IS '客户地址';
COMMENT ON COLUMN wform_salesorder."F_TICKETNUM" IS '发票编号';
COMMENT ON COLUMN wform_salesorder."F_INVOICETYPE" IS '发票类型';
COMMENT ON COLUMN wform_salesorder."F_PAYMENTMETHOD" IS '付款方式';
COMMENT ON COLUMN wform_salesorder."F_PAYMENTMONEY" IS '付款金额';
COMMENT ON COLUMN wform_salesorder."F_SALESDATE" IS '销售日期';
COMMENT ON COLUMN wform_salesorder."F_FILEJSON" IS '相关附件';
COMMENT ON COLUMN wform_salesorder."F_DESCRIPTION" IS '描述';
COMMENT ON COLUMN wform_salesorder."F_TICKETDATE" IS '开票日期';
COMMENT ON COLUMN wform_salesorder."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：wform_salesorderentry
-- ----------------------------
CREATE TABLE wform_salesorderentry (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_SALESORDERID" NVARCHAR2(50),
	"F_GOODSNAME" NVARCHAR2(50),
	"F_SPECIFICATIONS" NVARCHAR2(50),
	"F_UNIT" CLOB,
	"F_QTY" NVARCHAR2(50),
	"F_PRICE" NUMBER(18,2),
	"F_AMOUNT" NUMBER(18,2),
	"F_DESCRIPTION" CLOB,
	"F_SORTCODE" NUMBER,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0'

, PRIMARY KEY (F_Id,f_tenant_id)
);
COMMENT ON TABLE wform_salesorderentry IS '销售订单明细';
COMMENT ON COLUMN wform_salesorderentry."F_ID" IS '自然主键';
COMMENT ON COLUMN wform_salesorderentry."F_SALESORDERID" IS '订单主键';
COMMENT ON COLUMN wform_salesorderentry."F_GOODSNAME" IS '商品名称';
COMMENT ON COLUMN wform_salesorderentry."F_SPECIFICATIONS" IS '规格型号';
COMMENT ON COLUMN wform_salesorderentry."F_UNIT" IS '单位';
COMMENT ON COLUMN wform_salesorderentry."F_QTY" IS '数量';
COMMENT ON COLUMN wform_salesorderentry."F_PRICE" IS '单价';
COMMENT ON COLUMN wform_salesorderentry."F_AMOUNT" IS '金额';
COMMENT ON COLUMN wform_salesorderentry."F_DESCRIPTION" IS '描述';
COMMENT ON COLUMN wform_salesorderentry."F_SORTCODE" IS '';
COMMENT ON COLUMN wform_salesorderentry."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：wform_salessupport
-- ----------------------------
CREATE TABLE wform_salessupport (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_FLOWID" NVARCHAR2(50),
	"F_FLOWTITLE" NVARCHAR2(50),
	"F_FLOWURGENT" NUMBER,
	"F_BILLNO" NVARCHAR2(50),
	"F_APPLYUSER" NVARCHAR2(50),
	"F_APPLYDATE" TIMESTAMP,
	"F_APPLYDEPT" NVARCHAR2(255),
	"F_CUSTOMER" NVARCHAR2(50),
	"F_PROJECT" NVARCHAR2(50),
	"F_PSALESUPINFO" NVARCHAR2(50),
	"F_STARTDATE" TIMESTAMP,
	"F_ENDDATE" TIMESTAMP,
	"F_PSALESUPDAYS" NVARCHAR2(50),
	"F_PSALEPREDAYS" NVARCHAR2(50),
	"F_CONSULMANAGER" NVARCHAR2(50),
	"F_PSALSUPCONSUL" NVARCHAR2(50),
	"F_FILEJSON" CLOB,
	"F_SALSUPCONCLU" CLOB,
	"F_CONSULTRESULT" CLOB,
	"F_IEVALUATION" CLOB,
	"F_CONCLUSION" CLOB,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0',
	"F_FLOW_ID" NVARCHAR2(50)

, PRIMARY KEY (F_Id,f_tenant_id)
);
COMMENT ON TABLE wform_salessupport IS '销售支持表';
COMMENT ON COLUMN wform_salessupport."F_ID" IS '自然主键';
COMMENT ON COLUMN wform_salessupport."F_FLOWID" IS '流程主键';
COMMENT ON COLUMN wform_salessupport."F_FLOWTITLE" IS '流程标题';
COMMENT ON COLUMN wform_salessupport."F_FLOWURGENT" IS '紧急程度';
COMMENT ON COLUMN wform_salessupport."F_BILLNO" IS '流程单据';
COMMENT ON COLUMN wform_salessupport."F_APPLYUSER" IS '申请人';
COMMENT ON COLUMN wform_salessupport."F_APPLYDATE" IS '申请日期';
COMMENT ON COLUMN wform_salessupport."F_APPLYDEPT" IS '申请部门';
COMMENT ON COLUMN wform_salessupport."F_CUSTOMER" IS '相关客户';
COMMENT ON COLUMN wform_salessupport."F_PROJECT" IS '相关项目';
COMMENT ON COLUMN wform_salessupport."F_PSALESUPINFO" IS '售前支持';
COMMENT ON COLUMN wform_salessupport."F_STARTDATE" IS '开始时间';
COMMENT ON COLUMN wform_salessupport."F_ENDDATE" IS '结束日期';
COMMENT ON COLUMN wform_salessupport."F_PSALESUPDAYS" IS '支持天数';
COMMENT ON COLUMN wform_salessupport."F_PSALEPREDAYS" IS '准备天数';
COMMENT ON COLUMN wform_salessupport."F_CONSULMANAGER" IS '机构咨询';
COMMENT ON COLUMN wform_salessupport."F_PSALSUPCONSUL" IS '售前顾问';
COMMENT ON COLUMN wform_salessupport."F_FILEJSON" IS '';
COMMENT ON COLUMN wform_salessupport."F_SALSUPCONCLU" IS '销售总结';
COMMENT ON COLUMN wform_salessupport."F_CONSULTRESULT" IS '交付说明';
COMMENT ON COLUMN wform_salessupport."F_IEVALUATION" IS '咨询评价';
COMMENT ON COLUMN wform_salessupport."F_CONCLUSION" IS '发起人总结';
COMMENT ON COLUMN wform_salessupport."F_TENANT_ID" IS '租户id';
COMMENT ON COLUMN wform_salessupport."F_FLOW_ID" IS '流程id';
-- ----------------------------
-- 表名：wform_staffovertime
-- ----------------------------
CREATE TABLE wform_staffovertime (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_FLOWID" NVARCHAR2(50),
	"F_FLOWTITLE" NVARCHAR2(50),
	"F_FLOWURGENT" NUMBER,
	"F_BILLNO" NVARCHAR2(50),
	"F_APPLYUSER" NVARCHAR2(50),
	"F_DEPARTMENT" NVARCHAR2(255),
	"F_APPLYDATE" TIMESTAMP,
	"F_TOTLETIME" NVARCHAR2(50),
	"F_STARTTIME" TIMESTAMP,
	"F_ENDTIME" TIMESTAMP,
	"F_CATEGORY" NVARCHAR2(50),
	"F_CAUSE" CLOB,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0',
	"F_FLOW_ID" NVARCHAR2(50)

, PRIMARY KEY (F_Id,f_tenant_id)
);
COMMENT ON TABLE wform_staffovertime IS '员工加班申请表';
COMMENT ON COLUMN wform_staffovertime."F_ID" IS '自然主键';
COMMENT ON COLUMN wform_staffovertime."F_FLOWID" IS '流程标题';
COMMENT ON COLUMN wform_staffovertime."F_FLOWTITLE" IS '流程标题';
COMMENT ON COLUMN wform_staffovertime."F_FLOWURGENT" IS '紧急程度';
COMMENT ON COLUMN wform_staffovertime."F_BILLNO" IS '流程单据';
COMMENT ON COLUMN wform_staffovertime."F_APPLYUSER" IS '申请人';
COMMENT ON COLUMN wform_staffovertime."F_DEPARTMENT" IS '申请部门';
COMMENT ON COLUMN wform_staffovertime."F_APPLYDATE" IS '申请日期';
COMMENT ON COLUMN wform_staffovertime."F_TOTLETIME" IS '总计时间';
COMMENT ON COLUMN wform_staffovertime."F_STARTTIME" IS '开始时间';
COMMENT ON COLUMN wform_staffovertime."F_ENDTIME" IS '结束时间';
COMMENT ON COLUMN wform_staffovertime."F_CATEGORY" IS '记入类别';
COMMENT ON COLUMN wform_staffovertime."F_CAUSE" IS '加班事由';
COMMENT ON COLUMN wform_staffovertime."F_TENANT_ID" IS '租户id';
COMMENT ON COLUMN wform_staffovertime."F_FLOW_ID" IS '流程id';
-- ----------------------------
-- 表名：wform_supplementcard
-- ----------------------------
CREATE TABLE wform_supplementcard (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_FLOWID" NVARCHAR2(50),
	"F_FLOWTITLE" NVARCHAR2(50),
	"F_FLOWURGENT" NUMBER,
	"F_BILLNO" NVARCHAR2(50),
	"F_FULLNAME" NVARCHAR2(50),
	"F_DEPARTMENT" NVARCHAR2(255),
	"F_POSITION" NVARCHAR2(50),
	"F_WITNESS" NVARCHAR2(50),
	"F_SUPPLEMENTNUM" NVARCHAR2(50),
	"F_DESCRIPTION" CLOB,
	"F_APPLYDATE" TIMESTAMP,
	"F_STARTTIME" TIMESTAMP,
	"F_ENDTIME" TIMESTAMP,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0',
	"F_FLOW_ID" NVARCHAR2(50)

, PRIMARY KEY (F_Id,f_tenant_id)
);
COMMENT ON TABLE wform_supplementcard IS '补卡申请';
COMMENT ON COLUMN wform_supplementcard."F_ID" IS '自然主键';
COMMENT ON COLUMN wform_supplementcard."F_FLOWID" IS '流程主键';
COMMENT ON COLUMN wform_supplementcard."F_FLOWTITLE" IS '流程标题';
COMMENT ON COLUMN wform_supplementcard."F_FLOWURGENT" IS '紧急程度';
COMMENT ON COLUMN wform_supplementcard."F_BILLNO" IS '流程单据';
COMMENT ON COLUMN wform_supplementcard."F_FULLNAME" IS '员工姓名';
COMMENT ON COLUMN wform_supplementcard."F_DEPARTMENT" IS '所在部门';
COMMENT ON COLUMN wform_supplementcard."F_POSITION" IS '所在职务';
COMMENT ON COLUMN wform_supplementcard."F_WITNESS" IS '证明人';
COMMENT ON COLUMN wform_supplementcard."F_SUPPLEMENTNUM" IS '补卡次数';
COMMENT ON COLUMN wform_supplementcard."F_DESCRIPTION" IS '备注';
COMMENT ON COLUMN wform_supplementcard."F_APPLYDATE" IS '申请日期';
COMMENT ON COLUMN wform_supplementcard."F_STARTTIME" IS '开始时间';
COMMENT ON COLUMN wform_supplementcard."F_ENDTIME" IS '结束日期';
COMMENT ON COLUMN wform_supplementcard."F_TENANT_ID" IS '租户id';
COMMENT ON COLUMN wform_supplementcard."F_FLOW_ID" IS '流程id';
-- ----------------------------
-- 表名：wform_travelapply
-- ----------------------------
CREATE TABLE wform_travelapply (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_FLOWID" NVARCHAR2(50),
	"F_FLOWTITLE" NVARCHAR2(50),
	"F_FLOWURGENT" NUMBER,
	"F_BILLNO" NVARCHAR2(50),
	"F_TRAVELMAN" NVARCHAR2(50),
	"F_APPLYDATE" TIMESTAMP,
	"F_DEPARTMENTAL" NVARCHAR2(255),
	"F_POSITION" NVARCHAR2(50),
	"F_STARTDATE" TIMESTAMP,
	"F_ENDDATE" TIMESTAMP,
	"F_STARTPLACE" NVARCHAR2(50),
	"F_DESTINATION" NVARCHAR2(50),
	"F_PREPAIDTRAVEL" NUMBER(18,2),
	"F_DESCRIPTION" CLOB,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0',
	"F_FLOW_ID" NVARCHAR2(50)

, PRIMARY KEY (F_Id,f_tenant_id)
);
COMMENT ON TABLE wform_travelapply IS '出差预支申请单';
COMMENT ON COLUMN wform_travelapply."F_ID" IS '自然主键';
COMMENT ON COLUMN wform_travelapply."F_FLOWID" IS '流程主键';
COMMENT ON COLUMN wform_travelapply."F_FLOWTITLE" IS '流程标题';
COMMENT ON COLUMN wform_travelapply."F_FLOWURGENT" IS '紧急程度';
COMMENT ON COLUMN wform_travelapply."F_BILLNO" IS '流程单据';
COMMENT ON COLUMN wform_travelapply."F_TRAVELMAN" IS '出差人';
COMMENT ON COLUMN wform_travelapply."F_APPLYDATE" IS '申请日期';
COMMENT ON COLUMN wform_travelapply."F_DEPARTMENTAL" IS '所属部门';
COMMENT ON COLUMN wform_travelapply."F_POSITION" IS '所属职务';
COMMENT ON COLUMN wform_travelapply."F_STARTDATE" IS '开始日期';
COMMENT ON COLUMN wform_travelapply."F_ENDDATE" IS '结束日期';
COMMENT ON COLUMN wform_travelapply."F_STARTPLACE" IS '起始地点';
COMMENT ON COLUMN wform_travelapply."F_DESTINATION" IS '目的地';
COMMENT ON COLUMN wform_travelapply."F_PREPAIDTRAVEL" IS '预支旅费';
COMMENT ON COLUMN wform_travelapply."F_DESCRIPTION" IS '备注';
COMMENT ON COLUMN wform_travelapply."F_TENANT_ID" IS '租户id';
COMMENT ON COLUMN wform_travelapply."F_FLOW_ID" IS '流程id';
-- ----------------------------
-- 表名：wform_travelreimbursement
-- ----------------------------
CREATE TABLE wform_travelreimbursement (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_FLOWID" NVARCHAR2(50),
	"F_FLOWTITLE" NVARCHAR2(50),
	"F_FLOWURGENT" NUMBER,
	"F_BILLNO" NVARCHAR2(50),
	"F_APPLYUSER" NVARCHAR2(50),
	"F_DEPARTMENTAL" NVARCHAR2(255),
	"F_BILLSNUM" NVARCHAR2(50),
	"F_BUSINESSMISSION" CLOB,
	"F_SETOUTDATE" TIMESTAMP,
	"F_RETURNDATE" TIMESTAMP,
	"F_DESTINATION" NVARCHAR2(50),
	"F_PLANETICKET" NUMBER(18,2),
	"F_FARE" NUMBER(18,2),
	"F_GETACCOMMODATION" NUMBER(18,2),
	"F_TRAVELALLOWANCE" NUMBER(18,2),
	"F_OTHER" NUMBER(18,2),
	"F_TOTAL" NUMBER(18,2),
	"F_REIMBURSEMENTAMOUNT" NUMBER(18,2),
	"F_LOANAMOUNT" NUMBER(18,2),
	"F_SUMOFMONEY" NUMBER(18,2),
	"F_TRAVELERUSER" NVARCHAR2(50),
	"F_VEHICLEMILEAGE" NUMBER(18,2),
	"F_ROADFEE" NUMBER(18,2),
	"F_PARKINGRATE" NUMBER(18,2),
	"F_MEALALLOWANCE" NUMBER(18,2),
	"F_BREAKDOWNFEE" NUMBER(18,2),
	"F_REIMBURSEMENTID" NVARCHAR2(50),
	"F_RAILTRANSIT" NUMBER(18,2),
	"F_APPLYDATE" TIMESTAMP,
	"F_VERSIONS" NUMBER,
	"F_FLOWTASKID" NVARCHAR2(50),
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0',
	"F_FLOW_ID" NVARCHAR2(50)

, PRIMARY KEY (F_Id,f_tenant_id)
);
COMMENT ON TABLE wform_travelreimbursement IS '差旅报销申请表';
COMMENT ON COLUMN wform_travelreimbursement."F_ID" IS '自然主键';
COMMENT ON COLUMN wform_travelreimbursement."F_FLOWID" IS '流程主键';
COMMENT ON COLUMN wform_travelreimbursement."F_FLOWTITLE" IS '流程标题';
COMMENT ON COLUMN wform_travelreimbursement."F_FLOWURGENT" IS '流程等级';
COMMENT ON COLUMN wform_travelreimbursement."F_BILLNO" IS '流程单据';
COMMENT ON COLUMN wform_travelreimbursement."F_APPLYUSER" IS '申请人';
COMMENT ON COLUMN wform_travelreimbursement."F_DEPARTMENTAL" IS '申请部门';
COMMENT ON COLUMN wform_travelreimbursement."F_BILLSNUM" IS '票据数';
COMMENT ON COLUMN wform_travelreimbursement."F_BUSINESSMISSION" IS '出差任务';
COMMENT ON COLUMN wform_travelreimbursement."F_SETOUTDATE" IS '出发日期';
COMMENT ON COLUMN wform_travelreimbursement."F_RETURNDATE" IS '回归日期';
COMMENT ON COLUMN wform_travelreimbursement."F_DESTINATION" IS '到达地';
COMMENT ON COLUMN wform_travelreimbursement."F_PLANETICKET" IS '机票费';
COMMENT ON COLUMN wform_travelreimbursement."F_FARE" IS '车船费';
COMMENT ON COLUMN wform_travelreimbursement."F_GETACCOMMODATION" IS '住宿费用';
COMMENT ON COLUMN wform_travelreimbursement."F_TRAVELALLOWANCE" IS '出差补助';
COMMENT ON COLUMN wform_travelreimbursement."F_OTHER" IS '其他费用';
COMMENT ON COLUMN wform_travelreimbursement."F_TOTAL" IS '合计';
COMMENT ON COLUMN wform_travelreimbursement."F_REIMBURSEMENTAMOUNT" IS '报销金额';
COMMENT ON COLUMN wform_travelreimbursement."F_LOANAMOUNT" IS '借款金额';
COMMENT ON COLUMN wform_travelreimbursement."F_SUMOFMONEY" IS '补找金额';
COMMENT ON COLUMN wform_travelreimbursement."F_TRAVELERUSER" IS '';
COMMENT ON COLUMN wform_travelreimbursement."F_VEHICLEMILEAGE" IS '车辆里程';
COMMENT ON COLUMN wform_travelreimbursement."F_ROADFEE" IS '过路费';
COMMENT ON COLUMN wform_travelreimbursement."F_PARKINGRATE" IS '停车费';
COMMENT ON COLUMN wform_travelreimbursement."F_MEALALLOWANCE" IS '餐补费用';
COMMENT ON COLUMN wform_travelreimbursement."F_BREAKDOWNFEE" IS '故障报修费';
COMMENT ON COLUMN wform_travelreimbursement."F_REIMBURSEMENTID" IS '报销编号';
COMMENT ON COLUMN wform_travelreimbursement."F_RAILTRANSIT" IS '轨道交通费';
COMMENT ON COLUMN wform_travelreimbursement."F_APPLYDATE" IS '申请时间';
COMMENT ON COLUMN wform_travelreimbursement."F_VERSIONS" IS '乐观锁';
COMMENT ON COLUMN wform_travelreimbursement."F_FLOWTASKID" IS '流程任务主键';
COMMENT ON COLUMN wform_travelreimbursement."F_TENANT_ID" IS '租户id';
COMMENT ON COLUMN wform_travelreimbursement."F_FLOW_ID" IS '流程id';
-- ----------------------------
-- 表名：wform_vehicleapply
-- ----------------------------
CREATE TABLE wform_vehicleapply (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_FLOWID" NVARCHAR2(50),
	"F_FLOWTITLE" NVARCHAR2(50),
	"F_FLOWURGENT" NUMBER,
	"F_BILLNO" NVARCHAR2(50),
	"F_CARMAN" NVARCHAR2(50),
	"F_DEPARTMENT" NVARCHAR2(255),
	"F_PLATENUM" NVARCHAR2(50),
	"F_DESTINATION" NVARCHAR2(50),
	"F_ROADFEE" NUMBER(18,2),
	"F_KILOMETRENUM" NVARCHAR2(50),
	"F_ENTOURAGE" NVARCHAR2(50),
	"F_DESCRIPTION" CLOB,
	"F_STARTDATE" TIMESTAMP,
	"F_ENDDATE" TIMESTAMP,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0',
	"F_FLOW_ID" NVARCHAR2(50)

, PRIMARY KEY (F_Id,f_tenant_id)
);
COMMENT ON TABLE wform_vehicleapply IS '车辆申请';
COMMENT ON COLUMN wform_vehicleapply."F_ID" IS '自然主键';
COMMENT ON COLUMN wform_vehicleapply."F_FLOWID" IS '流程主键';
COMMENT ON COLUMN wform_vehicleapply."F_FLOWTITLE" IS '流程标题';
COMMENT ON COLUMN wform_vehicleapply."F_FLOWURGENT" IS '紧急程度';
COMMENT ON COLUMN wform_vehicleapply."F_BILLNO" IS '流程单据';
COMMENT ON COLUMN wform_vehicleapply."F_CARMAN" IS '用车人';
COMMENT ON COLUMN wform_vehicleapply."F_DEPARTMENT" IS '所在部门';
COMMENT ON COLUMN wform_vehicleapply."F_PLATENUM" IS '车牌号';
COMMENT ON COLUMN wform_vehicleapply."F_DESTINATION" IS '目的地';
COMMENT ON COLUMN wform_vehicleapply."F_ROADFEE" IS '路费金额';
COMMENT ON COLUMN wform_vehicleapply."F_KILOMETRENUM" IS '公里数';
COMMENT ON COLUMN wform_vehicleapply."F_ENTOURAGE" IS '随行人数';
COMMENT ON COLUMN wform_vehicleapply."F_DESCRIPTION" IS '备注';
COMMENT ON COLUMN wform_vehicleapply."F_STARTDATE" IS '开始日期';
COMMENT ON COLUMN wform_vehicleapply."F_ENDDATE" IS '结束日期';
COMMENT ON COLUMN wform_vehicleapply."F_TENANT_ID" IS '租户id';
COMMENT ON COLUMN wform_vehicleapply."F_FLOW_ID" IS '流程id';
-- ----------------------------
-- 表名：wform_violationhandling
-- ----------------------------
CREATE TABLE wform_violationhandling (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_FLOWID" NVARCHAR2(50),
	"F_FLOWTITLE" NVARCHAR2(50),
	"F_FLOWURGENT" NUMBER,
	"F_BILLNO" NVARCHAR2(50),
	"F_PLATENUM" NVARCHAR2(50),
	"F_DRIVER" NVARCHAR2(50),
	"F_LEADINGOFFICIAL" NVARCHAR2(50),
	"F_VIOLATIONSITE" NVARCHAR2(50),
	"F_VIOLATIONBEHAVIOR" NVARCHAR2(50),
	"F_DEDUCTION" NVARCHAR2(50),
	"F_AMOUNTMONEY" NUMBER(18,2),
	"F_DESCRIPTION" CLOB,
	"F_NOTICEDATE" TIMESTAMP,
	"F_PECCANCYDATE" TIMESTAMP,
	"F_LIMITDATE" TIMESTAMP,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0',
	"F_FLOW_ID" NVARCHAR2(50)

, PRIMARY KEY (F_Id,f_tenant_id)
);
COMMENT ON TABLE wform_violationhandling IS '违章处理申请表';
COMMENT ON COLUMN wform_violationhandling."F_ID" IS '自然主键';
COMMENT ON COLUMN wform_violationhandling."F_FLOWID" IS '流程主键';
COMMENT ON COLUMN wform_violationhandling."F_FLOWTITLE" IS '流程标题';
COMMENT ON COLUMN wform_violationhandling."F_FLOWURGENT" IS '紧急程度';
COMMENT ON COLUMN wform_violationhandling."F_BILLNO" IS '流程单据';
COMMENT ON COLUMN wform_violationhandling."F_PLATENUM" IS '车牌号';
COMMENT ON COLUMN wform_violationhandling."F_DRIVER" IS '驾驶人';
COMMENT ON COLUMN wform_violationhandling."F_LEADINGOFFICIAL" IS '负责人';
COMMENT ON COLUMN wform_violationhandling."F_VIOLATIONSITE" IS '违章地点';
COMMENT ON COLUMN wform_violationhandling."F_VIOLATIONBEHAVIOR" IS '违章行为';
COMMENT ON COLUMN wform_violationhandling."F_DEDUCTION" IS '违章扣分';
COMMENT ON COLUMN wform_violationhandling."F_AMOUNTMONEY" IS '违章罚款';
COMMENT ON COLUMN wform_violationhandling."F_DESCRIPTION" IS '备注';
COMMENT ON COLUMN wform_violationhandling."F_NOTICEDATE" IS '通知日期';
COMMENT ON COLUMN wform_violationhandling."F_PECCANCYDATE" IS '违章日期';
COMMENT ON COLUMN wform_violationhandling."F_LIMITDATE" IS '限处理日期';
COMMENT ON COLUMN wform_violationhandling."F_TENANT_ID" IS '租户id';
COMMENT ON COLUMN wform_violationhandling."F_FLOW_ID" IS '流程id';
-- ----------------------------
-- 表名：wform_warehousereceipt
-- ----------------------------
CREATE TABLE wform_warehousereceipt (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_FLOWID" NVARCHAR2(50),
	"F_FLOWTITLE" NVARCHAR2(50),
	"F_FLOWURGENT" NUMBER,
	"F_BILLNO" NVARCHAR2(50),
	"F_SUPPLIERNAME" NVARCHAR2(50),
	"F_CONTACTPHONE" NVARCHAR2(50),
	"F_WAREHOUSCATEGORY" NVARCHAR2(50),
	"F_WAREHOUSE" NVARCHAR2(50),
	"F_WAREHOUSESPEOPLE" NVARCHAR2(50),
	"F_DELIVERYNO" NVARCHAR2(50),
	"F_WAREHOUSENO" NVARCHAR2(50),
	"F_WAREHOUSDATE" TIMESTAMP,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0',
	"F_FLOW_ID" NVARCHAR2(50)

, PRIMARY KEY (F_Id,f_tenant_id)
);
COMMENT ON TABLE wform_warehousereceipt IS '入库申请单';
COMMENT ON COLUMN wform_warehousereceipt."F_ID" IS '自然主键';
COMMENT ON COLUMN wform_warehousereceipt."F_FLOWID" IS '流程主键';
COMMENT ON COLUMN wform_warehousereceipt."F_FLOWTITLE" IS '流程标题';
COMMENT ON COLUMN wform_warehousereceipt."F_FLOWURGENT" IS '紧急程度';
COMMENT ON COLUMN wform_warehousereceipt."F_BILLNO" IS '流程单据';
COMMENT ON COLUMN wform_warehousereceipt."F_SUPPLIERNAME" IS '供应商名称';
COMMENT ON COLUMN wform_warehousereceipt."F_CONTACTPHONE" IS '联系电话';
COMMENT ON COLUMN wform_warehousereceipt."F_WAREHOUSCATEGORY" IS '入库类别';
COMMENT ON COLUMN wform_warehousereceipt."F_WAREHOUSE" IS '仓库';
COMMENT ON COLUMN wform_warehousereceipt."F_WAREHOUSESPEOPLE" IS '入库人';
COMMENT ON COLUMN wform_warehousereceipt."F_DELIVERYNO" IS '送货单号';
COMMENT ON COLUMN wform_warehousereceipt."F_WAREHOUSENO" IS '入库单号';
COMMENT ON COLUMN wform_warehousereceipt."F_WAREHOUSDATE" IS '入库日期';
COMMENT ON COLUMN wform_warehousereceipt."F_TENANT_ID" IS '租户id';
COMMENT ON COLUMN wform_warehousereceipt."F_FLOW_ID" IS '流程id';
-- ----------------------------
-- 表名：wform_warehousereceiptentry
-- ----------------------------
CREATE TABLE wform_warehousereceiptentry (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_WAREHOUSEID" NVARCHAR2(50),
	"F_GOODSNAME" NVARCHAR2(50),
	"F_SPECIFICATIONS" NVARCHAR2(50),
	"F_UNIT" NVARCHAR2(50),
	"F_QTY" NVARCHAR2(50),
	"F_PRICE" NUMBER(18,2),
	"F_AMOUNT" NUMBER(18,2),
	"F_DESCRIPTION" CLOB,
	"F_SORTCODE" NUMBER,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0'

, PRIMARY KEY (F_Id,f_tenant_id)
);
COMMENT ON TABLE wform_warehousereceiptentry IS '出库单明细';
COMMENT ON COLUMN wform_warehousereceiptentry."F_ID" IS '自然主键';
COMMENT ON COLUMN wform_warehousereceiptentry."F_WAREHOUSEID" IS '入库主键';
COMMENT ON COLUMN wform_warehousereceiptentry."F_GOODSNAME" IS '商品名称';
COMMENT ON COLUMN wform_warehousereceiptentry."F_SPECIFICATIONS" IS '规格型号';
COMMENT ON COLUMN wform_warehousereceiptentry."F_UNIT" IS '单位';
COMMENT ON COLUMN wform_warehousereceiptentry."F_QTY" IS '数量';
COMMENT ON COLUMN wform_warehousereceiptentry."F_PRICE" IS '单价';
COMMENT ON COLUMN wform_warehousereceiptentry."F_AMOUNT" IS '金额';
COMMENT ON COLUMN wform_warehousereceiptentry."F_DESCRIPTION" IS '备注';
COMMENT ON COLUMN wform_warehousereceiptentry."F_SORTCODE" IS '排序码';
COMMENT ON COLUMN wform_warehousereceiptentry."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：wform_workcontactsheet
-- ----------------------------
CREATE TABLE wform_workcontactsheet (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_FLOWID" NVARCHAR2(50),
	"F_FLOWTITLE" NVARCHAR2(50),
	"F_FLOWURGENT" NUMBER,
	"F_BILLNO" NVARCHAR2(50),
	"F_DRAWPEOPLE" NVARCHAR2(50),
	"F_ISSUINGDEPARTMENT" NVARCHAR2(255),
	"F_SERVICEDEPARTMENT" NVARCHAR2(255),
	"F_RECIPIENTS" NVARCHAR2(50),
	"F_COORDINATION" CLOB,
	"F_FILEJSON" CLOB,
	"F_TODATE" TIMESTAMP,
	"F_COLLECTIONDATE" TIMESTAMP,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0',
	"F_FLOW_ID" NVARCHAR2(50)

, PRIMARY KEY (F_Id,f_tenant_id)
);
COMMENT ON TABLE wform_workcontactsheet IS '工作联系单';
COMMENT ON COLUMN wform_workcontactsheet."F_ID" IS '自然主键';
COMMENT ON COLUMN wform_workcontactsheet."F_FLOWID" IS '流程主键';
COMMENT ON COLUMN wform_workcontactsheet."F_FLOWTITLE" IS '流程标题';
COMMENT ON COLUMN wform_workcontactsheet."F_FLOWURGENT" IS '紧急程度';
COMMENT ON COLUMN wform_workcontactsheet."F_BILLNO" IS '流程单据';
COMMENT ON COLUMN wform_workcontactsheet."F_DRAWPEOPLE" IS '发件人';
COMMENT ON COLUMN wform_workcontactsheet."F_ISSUINGDEPARTMENT" IS '发件部门';
COMMENT ON COLUMN wform_workcontactsheet."F_SERVICEDEPARTMENT" IS '收件部门';
COMMENT ON COLUMN wform_workcontactsheet."F_RECIPIENTS" IS '收件人';
COMMENT ON COLUMN wform_workcontactsheet."F_COORDINATION" IS '协调事项';
COMMENT ON COLUMN wform_workcontactsheet."F_FILEJSON" IS '相关附件';
COMMENT ON COLUMN wform_workcontactsheet."F_TODATE" IS '发件日期';
COMMENT ON COLUMN wform_workcontactsheet."F_COLLECTIONDATE" IS '收件日期';
COMMENT ON COLUMN wform_workcontactsheet."F_TENANT_ID" IS '租户id';
COMMENT ON COLUMN wform_workcontactsheet."F_FLOW_ID" IS '流程id';
-- ----------------------------
-- 表名：wform_zjf_wikxqi
-- ----------------------------
CREATE TABLE wform_zjf_wikxqi (
	"USERSELECTFIELD101" NVARCHAR2(255),
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0'

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE wform_zjf_wikxqi IS '主表';
COMMENT ON COLUMN wform_zjf_wikxqi."USERSELECTFIELD101" IS '用户选择';
COMMENT ON COLUMN wform_zjf_wikxqi."F_ID" IS '主键';
COMMENT ON COLUMN wform_zjf_wikxqi."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：workflow_candidates
-- ----------------------------
CREATE TABLE workflow_candidates (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_NODE_CODE" NVARCHAR2(50),
	"F_TASK_ID" NVARCHAR2(50),
	"F_HANDLE_ID" NVARCHAR2(50),
	"F_ACCOUNT" NVARCHAR2(50),
	"F_CANDIDATES" CLOB,
	"F_OPERATOR_ID" NVARCHAR2(50),
	"F_TYPE" NUMBER,
	"F_SORT_CODE" NUMBER,
	"F_CREATOR_TIME" TIMESTAMP,
	"F_CREATOR_USER_ID" NVARCHAR2(50),
	"F_LAST_MODIFY_TIME" TIMESTAMP,
	"F_LAST_MODIFY_USER_ID" NVARCHAR2(50),
	"F_DELETE_TIME" TIMESTAMP,
	"F_DELETE_USER_ID" NVARCHAR2(50),
	"F_DELETE_MARK" NUMBER,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0'

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE workflow_candidates IS '流程候选人/异常处理人';
COMMENT ON COLUMN workflow_candidates."F_ID" IS '自然主键';
COMMENT ON COLUMN workflow_candidates."F_NODE_CODE" IS '节点编码';
COMMENT ON COLUMN workflow_candidates."F_TASK_ID" IS '任务id';
COMMENT ON COLUMN workflow_candidates."F_HANDLE_ID" IS '审批人id';
COMMENT ON COLUMN workflow_candidates."F_ACCOUNT" IS '审批人账号';
COMMENT ON COLUMN workflow_candidates."F_CANDIDATES" IS '候选人';
COMMENT ON COLUMN workflow_candidates."F_OPERATOR_ID" IS '经办主键';
COMMENT ON COLUMN workflow_candidates."F_TYPE" IS '审批类型(1-候选人 2-异常处理人)';
COMMENT ON COLUMN workflow_candidates."F_SORT_CODE" IS '排序';
COMMENT ON COLUMN workflow_candidates."F_CREATOR_TIME" IS '创建时间';
COMMENT ON COLUMN workflow_candidates."F_CREATOR_USER_ID" IS '创建用户';
COMMENT ON COLUMN workflow_candidates."F_LAST_MODIFY_TIME" IS '修改时间';
COMMENT ON COLUMN workflow_candidates."F_LAST_MODIFY_USER_ID" IS '修改用户';
COMMENT ON COLUMN workflow_candidates."F_DELETE_TIME" IS '删除时间';
COMMENT ON COLUMN workflow_candidates."F_DELETE_USER_ID" IS '删除用户';
COMMENT ON COLUMN workflow_candidates."F_DELETE_MARK" IS '删除标志';
COMMENT ON COLUMN workflow_candidates."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：workflow_circulate
-- ----------------------------
CREATE TABLE workflow_circulate (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_USER_ID" NVARCHAR2(50),
	"F_TASK_ID" NVARCHAR2(50),
	"F_NODE_CODE" NVARCHAR2(50),
	"F_NODE_NAME" NVARCHAR2(50),
	"F_NODE_ID" NVARCHAR2(50),
	"F_OPERATOR_ID" NVARCHAR2(50),
	"F_READ" NUMBER,
	"F_SORT_CODE" NUMBER,
	"F_CREATOR_TIME" TIMESTAMP,
	"F_CREATOR_USER_ID" NVARCHAR2(50),
	"F_LAST_MODIFY_TIME" TIMESTAMP,
	"F_LAST_MODIFY_USER_ID" NVARCHAR2(50),
	"F_DELETE_TIME" TIMESTAMP,
	"F_DELETE_USER_ID" NVARCHAR2(50),
	"F_DELETE_MARK" NUMBER,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0'

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE workflow_circulate IS '流程抄送';
COMMENT ON COLUMN workflow_circulate."F_ID" IS '自然主键';
COMMENT ON COLUMN workflow_circulate."F_USER_ID" IS '抄送人员';
COMMENT ON COLUMN workflow_circulate."F_TASK_ID" IS '任务主键';
COMMENT ON COLUMN workflow_circulate."F_NODE_CODE" IS '节点编号';
COMMENT ON COLUMN workflow_circulate."F_NODE_NAME" IS '节点名称';
COMMENT ON COLUMN workflow_circulate."F_NODE_ID" IS '节点主键';
COMMENT ON COLUMN workflow_circulate."F_OPERATOR_ID" IS '经办主键';
COMMENT ON COLUMN workflow_circulate."F_READ" IS '是否已读';
COMMENT ON COLUMN workflow_circulate."F_SORT_CODE" IS '排序';
COMMENT ON COLUMN workflow_circulate."F_CREATOR_TIME" IS '创建时间';
COMMENT ON COLUMN workflow_circulate."F_CREATOR_USER_ID" IS '创建用户';
COMMENT ON COLUMN workflow_circulate."F_LAST_MODIFY_TIME" IS '修改时间';
COMMENT ON COLUMN workflow_circulate."F_LAST_MODIFY_USER_ID" IS '修改用户';
COMMENT ON COLUMN workflow_circulate."F_DELETE_TIME" IS '删除时间';
COMMENT ON COLUMN workflow_circulate."F_DELETE_USER_ID" IS '删除用户';
COMMENT ON COLUMN workflow_circulate."F_DELETE_MARK" IS '删除标志';
COMMENT ON COLUMN workflow_circulate."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：workflow_comment
-- ----------------------------
CREATE TABLE workflow_comment (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_TASK_ID" NVARCHAR2(50),
	"F_REPLY_ID" NVARCHAR2(50),
	"F_TEXT" CLOB,
	"F_IMAGE" CLOB,
	"F_FILE" CLOB,
	"F_DELETE_SHOW" NUMBER,
	"F_ENABLED_MARK" NUMBER,
	"F_SORT_CODE" NUMBER,
	"F_CREATOR_TIME" TIMESTAMP,
	"F_CREATOR_USER_ID" NVARCHAR2(50),
	"F_LAST_MODIFY_TIME" TIMESTAMP,
	"F_LAST_MODIFY_USER_ID" NVARCHAR2(50),
	"F_DELETE_MARK" NUMBER,
	"F_DELETE_TIME" TIMESTAMP,
	"F_DELETE_USER_ID" NVARCHAR2(50),
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0'

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE workflow_comment IS '流程评论';
COMMENT ON COLUMN workflow_comment."F_ID" IS '自然主键';
COMMENT ON COLUMN workflow_comment."F_TASK_ID" IS '任务主键';
COMMENT ON COLUMN workflow_comment."F_REPLY_ID" IS '回复评论id';
COMMENT ON COLUMN workflow_comment."F_TEXT" IS '文本';
COMMENT ON COLUMN workflow_comment."F_IMAGE" IS '图片';
COMMENT ON COLUMN workflow_comment."F_FILE" IS '附件';
COMMENT ON COLUMN workflow_comment."F_DELETE_SHOW" IS '评论删除显示';
COMMENT ON COLUMN workflow_comment."F_ENABLED_MARK" IS '有效标志';
COMMENT ON COLUMN workflow_comment."F_SORT_CODE" IS '排序';
COMMENT ON COLUMN workflow_comment."F_CREATOR_TIME" IS '创建时间';
COMMENT ON COLUMN workflow_comment."F_CREATOR_USER_ID" IS '创建用户';
COMMENT ON COLUMN workflow_comment."F_LAST_MODIFY_TIME" IS '修改时间';
COMMENT ON COLUMN workflow_comment."F_LAST_MODIFY_USER_ID" IS '修改用户';
COMMENT ON COLUMN workflow_comment."F_DELETE_MARK" IS '删除标志';
COMMENT ON COLUMN workflow_comment."F_DELETE_TIME" IS '删除时间';
COMMENT ON COLUMN workflow_comment."F_DELETE_USER_ID" IS '删除用户';
COMMENT ON COLUMN workflow_comment."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：workflow_common
-- ----------------------------
CREATE TABLE workflow_common (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_TYPE" NVARCHAR2(50),
	"F_FLOW_ID" NVARCHAR2(50),
	"F_CREATOR_TIME" TIMESTAMP,
	"F_CREATOR_USER_ID" NVARCHAR2(50),
	"F_LAST_MODIFY_TIME" TIMESTAMP,
	"F_LAST_MODIFY_USER_ID" NVARCHAR2(50),
	"F_DELETE_TIME" TIMESTAMP,
	"F_DELETE_USER_ID" NVARCHAR2(50),
	"F_DELETE_MARK" NUMBER,
	"F_SORT_CODE" NUMBER,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0'

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE workflow_common IS '常用流程';
COMMENT ON COLUMN workflow_common."F_ID" IS '自然主键';
COMMENT ON COLUMN workflow_common."F_TYPE" IS '类型 web、app';
COMMENT ON COLUMN workflow_common."F_FLOW_ID" IS '流程版本id';
COMMENT ON COLUMN workflow_common."F_CREATOR_TIME" IS '创建时间';
COMMENT ON COLUMN workflow_common."F_CREATOR_USER_ID" IS '创建用户';
COMMENT ON COLUMN workflow_common."F_LAST_MODIFY_TIME" IS '修改时间';
COMMENT ON COLUMN workflow_common."F_LAST_MODIFY_USER_ID" IS '修改用户';
COMMENT ON COLUMN workflow_common."F_DELETE_TIME" IS '删除时间';
COMMENT ON COLUMN workflow_common."F_DELETE_USER_ID" IS '删除用户';
COMMENT ON COLUMN workflow_common."F_DELETE_MARK" IS '删除标志';
COMMENT ON COLUMN workflow_common."F_SORT_CODE" IS '排序';
COMMENT ON COLUMN workflow_common."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：workflow_delegate
-- ----------------------------
CREATE TABLE workflow_delegate (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_FLOW_ID" NVARCHAR2(2000),
	"F_FLOW_NAME" NVARCHAR2(2000),
	"F_START_TIME" TIMESTAMP,
	"F_END_TIME" TIMESTAMP,
	"F_USER_ID" NVARCHAR2(50),
	"F_USER_NAME" NVARCHAR2(50),
	"F_TYPE" NUMBER,
	"F_DESCRIPTION" NVARCHAR2(500),
	"F_ENABLED_MARK" NUMBER,
	"F_SORT_CODE" NUMBER,
	"F_CREATOR_TIME" TIMESTAMP,
	"F_CREATOR_USER_ID" NVARCHAR2(50),
	"F_LAST_MODIFY_TIME" TIMESTAMP,
	"F_LAST_MODIFY_USER_ID" NVARCHAR2(50),
	"F_DELETE_TIME" TIMESTAMP,
	"F_DELETE_USER_ID" NVARCHAR2(50),
	"F_DELETE_MARK" NUMBER,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0'

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE workflow_delegate IS '流程委托';
COMMENT ON COLUMN workflow_delegate."F_ID" IS '自然主键';
COMMENT ON COLUMN workflow_delegate."F_FLOW_ID" IS '委托流程（为空是全部流程）';
COMMENT ON COLUMN workflow_delegate."F_FLOW_NAME" IS '委托流程名称';
COMMENT ON COLUMN workflow_delegate."F_START_TIME" IS '开始时间';
COMMENT ON COLUMN workflow_delegate."F_END_TIME" IS '结束时间';
COMMENT ON COLUMN workflow_delegate."F_USER_ID" IS '委托人';
COMMENT ON COLUMN workflow_delegate."F_USER_NAME" IS '委托人名称';
COMMENT ON COLUMN workflow_delegate."F_TYPE" IS '委托类型（0-发起委托，1-审批委托）';
COMMENT ON COLUMN workflow_delegate."F_DESCRIPTION" IS '描述或说明';
COMMENT ON COLUMN workflow_delegate."F_ENABLED_MARK" IS '有效标志(0-禁用，1-启用)';
COMMENT ON COLUMN workflow_delegate."F_SORT_CODE" IS '排序';
COMMENT ON COLUMN workflow_delegate."F_CREATOR_TIME" IS '创建时间';
COMMENT ON COLUMN workflow_delegate."F_CREATOR_USER_ID" IS '创建用户';
COMMENT ON COLUMN workflow_delegate."F_LAST_MODIFY_TIME" IS '修改时间';
COMMENT ON COLUMN workflow_delegate."F_LAST_MODIFY_USER_ID" IS '修改用户';
COMMENT ON COLUMN workflow_delegate."F_DELETE_TIME" IS '删除时间';
COMMENT ON COLUMN workflow_delegate."F_DELETE_USER_ID" IS '删除用户';
COMMENT ON COLUMN workflow_delegate."F_DELETE_MARK" IS '删除标志';
COMMENT ON COLUMN workflow_delegate."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：workflow_delegate_info
-- ----------------------------
CREATE TABLE workflow_delegate_info (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_DELEGATE_ID" NVARCHAR2(50) NOT NULL,
	"F_TO_USER_ID" NVARCHAR2(50),
	"F_TO_USER_NAME" NVARCHAR2(50),
	"F_STATUS" NUMBER,
	"F_SORT_CODE" NUMBER,
	"F_CREATOR_TIME" TIMESTAMP,
	"F_CREATOR_USER_ID" NVARCHAR2(50),
	"F_LAST_MODIFY_TIME" TIMESTAMP,
	"F_LAST_MODIFY_USER_ID" NVARCHAR2(50),
	"F_DELETE_TIME" TIMESTAMP,
	"F_DELETE_USER_ID" NVARCHAR2(50),
	"F_DELETE_MARK" NUMBER,
	"F_TENANT_ID" NVARCHAR2(50) NOT NULL

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE workflow_delegate_info IS '委托信息';
COMMENT ON COLUMN workflow_delegate_info."F_ID" IS '主键';
COMMENT ON COLUMN workflow_delegate_info."F_DELEGATE_ID" IS '委托主键';
COMMENT ON COLUMN workflow_delegate_info."F_TO_USER_ID" IS '被委托人id';
COMMENT ON COLUMN workflow_delegate_info."F_TO_USER_NAME" IS '被委托人';
COMMENT ON COLUMN workflow_delegate_info."F_STATUS" IS '状态(0.待确认 1.已接受 2.已拒绝)';
COMMENT ON COLUMN workflow_delegate_info."F_SORT_CODE" IS '排序';
COMMENT ON COLUMN workflow_delegate_info."F_CREATOR_TIME" IS '创建时间';
COMMENT ON COLUMN workflow_delegate_info."F_CREATOR_USER_ID" IS '创建用户';
COMMENT ON COLUMN workflow_delegate_info."F_LAST_MODIFY_TIME" IS '修改时间';
COMMENT ON COLUMN workflow_delegate_info."F_LAST_MODIFY_USER_ID" IS '修改用户';
COMMENT ON COLUMN workflow_delegate_info."F_DELETE_TIME" IS '删除时间';
COMMENT ON COLUMN workflow_delegate_info."F_DELETE_USER_ID" IS '删除用户';
COMMENT ON COLUMN workflow_delegate_info."F_DELETE_MARK" IS '删除标志';
COMMENT ON COLUMN workflow_delegate_info."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：workflow_form_relation
-- ----------------------------
CREATE TABLE workflow_form_relation (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_FLOW_ID" NVARCHAR2(50),
	"F_FORM_ID" NVARCHAR2(50),
	"F_SORT_CODE" NUMBER,
	"F_CREATOR_TIME" TIMESTAMP,
	"F_CREATOR_USER_ID" NVARCHAR2(50),
	"F_LAST_MODIFY_TIME" TIMESTAMP,
	"F_LAST_MODIFY_USER_ID" NVARCHAR2(50),
	"F_DELETE_TIME" TIMESTAMP,
	"F_DELETE_USER_ID" NVARCHAR2(50),
	"F_DELETE_MARK" NUMBER,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0'

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE workflow_form_relation IS '流程表单关联表';
COMMENT ON COLUMN workflow_form_relation."F_ID" IS '主键';
COMMENT ON COLUMN workflow_form_relation."F_FLOW_ID" IS '流程id';
COMMENT ON COLUMN workflow_form_relation."F_FORM_ID" IS '表单id';
COMMENT ON COLUMN workflow_form_relation."F_SORT_CODE" IS '排序';
COMMENT ON COLUMN workflow_form_relation."F_CREATOR_TIME" IS '创建时间';
COMMENT ON COLUMN workflow_form_relation."F_CREATOR_USER_ID" IS '创建用户';
COMMENT ON COLUMN workflow_form_relation."F_LAST_MODIFY_TIME" IS '修改时间';
COMMENT ON COLUMN workflow_form_relation."F_LAST_MODIFY_USER_ID" IS '修改用户';
COMMENT ON COLUMN workflow_form_relation."F_DELETE_TIME" IS '删除时间';
COMMENT ON COLUMN workflow_form_relation."F_DELETE_USER_ID" IS '删除用户';
COMMENT ON COLUMN workflow_form_relation."F_DELETE_MARK" IS '删除标志';
COMMENT ON COLUMN workflow_form_relation."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：workflow_launch_user
-- ----------------------------
CREATE TABLE workflow_launch_user (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_ORGANIZE_ID" CLOB,
	"F_POSITION_ID" CLOB,
	"F_MANAGER_ID" NVARCHAR2(50),
	"F_SUPERIOR" NVARCHAR2(50),
	"F_SUBORDINATE" CLOB,
	"F_TASK_ID" NVARCHAR2(50),
	"F_DEPARTMENT" CLOB,
	"F_SORT_CODE" NUMBER,
	"F_CREATOR_TIME" TIMESTAMP,
	"F_CREATOR_USER_ID" NVARCHAR2(50),
	"F_LAST_MODIFY_TIME" TIMESTAMP,
	"F_LAST_MODIFY_USER_ID" NVARCHAR2(50),
	"F_DELETE_TIME" TIMESTAMP,
	"F_DELETE_USER_ID" NVARCHAR2(50),
	"F_DELETE_MARK" NUMBER,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0'

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE workflow_launch_user IS '流程发起用户信息';
COMMENT ON COLUMN workflow_launch_user."F_ID" IS '主键';
COMMENT ON COLUMN workflow_launch_user."F_ORGANIZE_ID" IS '组织主键';
COMMENT ON COLUMN workflow_launch_user."F_POSITION_ID" IS '岗位主键';
COMMENT ON COLUMN workflow_launch_user."F_MANAGER_ID" IS '主管主键';
COMMENT ON COLUMN workflow_launch_user."F_SUPERIOR" IS '上级用户';
COMMENT ON COLUMN workflow_launch_user."F_SUBORDINATE" IS '下属用户';
COMMENT ON COLUMN workflow_launch_user."F_TASK_ID" IS '任务主键';
COMMENT ON COLUMN workflow_launch_user."F_DEPARTMENT" IS '公司下所有部门';
COMMENT ON COLUMN workflow_launch_user."F_SORT_CODE" IS '排序';
COMMENT ON COLUMN workflow_launch_user."F_CREATOR_TIME" IS '创建时间';
COMMENT ON COLUMN workflow_launch_user."F_CREATOR_USER_ID" IS '创建用户';
COMMENT ON COLUMN workflow_launch_user."F_LAST_MODIFY_TIME" IS '修改时间';
COMMENT ON COLUMN workflow_launch_user."F_LAST_MODIFY_USER_ID" IS '修改用户';
COMMENT ON COLUMN workflow_launch_user."F_DELETE_TIME" IS '删除时间';
COMMENT ON COLUMN workflow_launch_user."F_DELETE_USER_ID" IS '删除用户';
COMMENT ON COLUMN workflow_launch_user."F_DELETE_MARK" IS '删除标志';
COMMENT ON COLUMN workflow_launch_user."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：workflow_node
-- ----------------------------
CREATE TABLE workflow_node (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_FLOW_ID" NVARCHAR2(50),
	"F_FORM_ID" NVARCHAR2(50),
	"F_NODE_TYPE" NVARCHAR2(50),
	"F_NODE_CODE" NVARCHAR2(50),
	"F_NODE_JSON" CLOB,
	"F_SORT_CODE" NUMBER,
	"F_CREATOR_TIME" TIMESTAMP,
	"F_CREATOR_USER_ID" NVARCHAR2(50),
	"F_LAST_MODIFY_TIME" TIMESTAMP,
	"F_LAST_MODIFY_USER_ID" NVARCHAR2(50),
	"F_DELETE_TIME" TIMESTAMP,
	"F_DELETE_USER_ID" NVARCHAR2(50),
	"F_DELETE_MARK" NUMBER,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0'

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE workflow_node IS '流程节点';
COMMENT ON COLUMN workflow_node."F_ID" IS '主键';
COMMENT ON COLUMN workflow_node."F_FLOW_ID" IS '流程版本主键';
COMMENT ON COLUMN workflow_node."F_FORM_ID" IS '表单主键';
COMMENT ON COLUMN workflow_node."F_NODE_TYPE" IS '节点类型';
COMMENT ON COLUMN workflow_node."F_NODE_CODE" IS '节点编码';
COMMENT ON COLUMN workflow_node."F_NODE_JSON" IS '节点属性';
COMMENT ON COLUMN workflow_node."F_SORT_CODE" IS '排序';
COMMENT ON COLUMN workflow_node."F_CREATOR_TIME" IS '创建时间';
COMMENT ON COLUMN workflow_node."F_CREATOR_USER_ID" IS '创建用户';
COMMENT ON COLUMN workflow_node."F_LAST_MODIFY_TIME" IS '修改时间';
COMMENT ON COLUMN workflow_node."F_LAST_MODIFY_USER_ID" IS '修改用户';
COMMENT ON COLUMN workflow_node."F_DELETE_TIME" IS '删除时间';
COMMENT ON COLUMN workflow_node."F_DELETE_USER_ID" IS '删除用户';
COMMENT ON COLUMN workflow_node."F_DELETE_MARK" IS '删除标志';
COMMENT ON COLUMN workflow_node."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：workflow_node_record
-- ----------------------------
CREATE TABLE workflow_node_record (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_TASK_ID" NVARCHAR2(50),
	"F_NODE_ID" NVARCHAR2(50),
	"F_NODE_CODE" NVARCHAR2(50),
	"F_NODE_NAME" NVARCHAR2(50),
	"F_NODE_STATUS" NUMBER,
	"F_CREATOR_TIME" TIMESTAMP,
	"F_CREATOR_USER_ID" NVARCHAR2(50),
	"F_LAST_MODIFY_TIME" TIMESTAMP,
	"F_LAST_MODIFY_USER_ID" NVARCHAR2(50),
	"F_DELETE_TIME" TIMESTAMP,
	"F_DELETE_USER_ID" NVARCHAR2(50),
	"F_DELETE_MARK" NUMBER,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0',
	"F_SORT_CODE" NUMBER

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE workflow_node_record IS '节点流转';
COMMENT ON COLUMN workflow_node_record."F_ID" IS '主键';
COMMENT ON COLUMN workflow_node_record."F_TASK_ID" IS '任务id';
COMMENT ON COLUMN workflow_node_record."F_NODE_ID" IS '节点id';
COMMENT ON COLUMN workflow_node_record."F_NODE_CODE" IS '节点编码';
COMMENT ON COLUMN workflow_node_record."F_NODE_NAME" IS '节点名称';
COMMENT ON COLUMN workflow_node_record."F_NODE_STATUS" IS '节点状态';
COMMENT ON COLUMN workflow_node_record."F_CREATOR_TIME" IS '创建时间';
COMMENT ON COLUMN workflow_node_record."F_CREATOR_USER_ID" IS '创建用户';
COMMENT ON COLUMN workflow_node_record."F_LAST_MODIFY_TIME" IS '修改时间';
COMMENT ON COLUMN workflow_node_record."F_LAST_MODIFY_USER_ID" IS '修改用户';
COMMENT ON COLUMN workflow_node_record."F_DELETE_TIME" IS '删除时间';
COMMENT ON COLUMN workflow_node_record."F_DELETE_USER_ID" IS '删除用户';
COMMENT ON COLUMN workflow_node_record."F_DELETE_MARK" IS '删除标志';
COMMENT ON COLUMN workflow_node_record."F_TENANT_ID" IS '租户id';
COMMENT ON COLUMN workflow_node_record."F_SORT_CODE" IS '排序';
-- ----------------------------
-- 表名：workflow_operator
-- ----------------------------
CREATE TABLE workflow_operator (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_NODE_NAME" NVARCHAR2(50),
	"F_NODE_CODE" NVARCHAR2(50),
	"F_TASK_ID" NVARCHAR2(50),
	"F_NODE_ID" NVARCHAR2(50),
	"F_PARENT_ID" NVARCHAR2(50),
	"F_HANDLE_TIME" TIMESTAMP,
	"F_HANDLE_ID" NVARCHAR2(50),
	"F_HANDLE_ALL" CLOB,
	"F_HANDLE_STATUS" NUMBER,
	"F_HANDLE_PARAMETER" CLOB,
	"F_START_HANDLE_TIME" TIMESTAMP,
	"F_DUEDATE" TIMESTAMP,
	"F_SIGN_TIME" TIMESTAMP,
	"F_STATUS" NUMBER,
	"F_INSTANCE_ID" NVARCHAR2(50),
	"F_ENGINE_TYPE" NUMBER,
	"F_SORT_CODE" NUMBER,
	"F_CREATOR_TIME" TIMESTAMP,
	"F_CREATOR_USER_ID" NVARCHAR2(50),
	"F_LAST_MODIFY_TIME" TIMESTAMP,
	"F_LAST_MODIFY_USER_ID" NVARCHAR2(50),
	"F_DELETE_TIME" TIMESTAMP,
	"F_DELETE_USER_ID" NVARCHAR2(50),
	"F_DELETE_MARK" NUMBER,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0',
	"F_DRAFT_DATA" CLOB,
	"F_COMPLETION" NUMBER,
	"F_IS_PROCESSING" NUMBER

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE workflow_operator IS '流程经办';
COMMENT ON COLUMN workflow_operator."F_ID" IS '自然主键';
COMMENT ON COLUMN workflow_operator."F_NODE_NAME" IS '节点名称';
COMMENT ON COLUMN workflow_operator."F_NODE_CODE" IS '节点编码';
COMMENT ON COLUMN workflow_operator."F_TASK_ID" IS '任务id';
COMMENT ON COLUMN workflow_operator."F_NODE_ID" IS '节点id（对应引擎的任务id）';
COMMENT ON COLUMN workflow_operator."F_PARENT_ID" IS '加签经办父级id';
COMMENT ON COLUMN workflow_operator."F_HANDLE_TIME" IS '处理时间';
COMMENT ON COLUMN workflow_operator."F_HANDLE_ID" IS '处理人id';
COMMENT ON COLUMN workflow_operator."F_HANDLE_ALL" IS '全部处理人';
COMMENT ON COLUMN workflow_operator."F_HANDLE_STATUS" IS '处理状态';
COMMENT ON COLUMN workflow_operator."F_HANDLE_PARAMETER" IS '处理参数';
COMMENT ON COLUMN workflow_operator."F_START_HANDLE_TIME" IS '开始处理时间';
COMMENT ON COLUMN workflow_operator."F_DUEDATE" IS '截止时间';
COMMENT ON COLUMN workflow_operator."F_SIGN_TIME" IS '签收时间';
COMMENT ON COLUMN workflow_operator."F_STATUS" IS '状态';
COMMENT ON COLUMN workflow_operator."F_INSTANCE_ID" IS '流程引擎任务id';
COMMENT ON COLUMN workflow_operator."F_ENGINE_TYPE" IS '流程引擎类型;1.flowable,2,activity,3.canmda';
COMMENT ON COLUMN workflow_operator."F_SORT_CODE" IS '排序';
COMMENT ON COLUMN workflow_operator."F_CREATOR_TIME" IS '创建时间';
COMMENT ON COLUMN workflow_operator."F_CREATOR_USER_ID" IS '创建用户';
COMMENT ON COLUMN workflow_operator."F_LAST_MODIFY_TIME" IS '修改时间';
COMMENT ON COLUMN workflow_operator."F_LAST_MODIFY_USER_ID" IS '修改用户';
COMMENT ON COLUMN workflow_operator."F_DELETE_TIME" IS '删除时间';
COMMENT ON COLUMN workflow_operator."F_DELETE_USER_ID" IS '删除用户';
COMMENT ON COLUMN workflow_operator."F_DELETE_MARK" IS '删除标志';
COMMENT ON COLUMN workflow_operator."F_TENANT_ID" IS '租户id';
COMMENT ON COLUMN workflow_operator."F_DRAFT_DATA" IS '草稿数据';
COMMENT ON COLUMN workflow_operator."F_COMPLETION" IS '是否完成';
COMMENT ON COLUMN workflow_operator."F_IS_PROCESSING" IS '是否办理节点(0否 1是)';
-- ----------------------------
-- 表名：workflow_record
-- ----------------------------
CREATE TABLE workflow_record (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_TASK_ID" NVARCHAR2(50),
	"F_OPERATOR_ID" NVARCHAR2(50),
	"F_NODE_ID" NVARCHAR2(2000),
	"F_NODE_CODE" NVARCHAR2(2000),
	"F_NODE_NAME" NVARCHAR2(2000),
	"F_HANDLE_TYPE" NUMBER,
	"F_HANDLE_ID" NVARCHAR2(50),
	"F_HANDLE_TIME" TIMESTAMP,
	"F_HANDLE_OPINION" NVARCHAR2(500),
	"F_HANDLE_USER_ID" NVARCHAR2(2000),
	"F_SIGN_IMG" CLOB,
	"F_FILE_LIST" CLOB,
	"F_STATUS" NUMBER,
	"F_EXPAND_FIELD" CLOB,
	"F_SORT_CODE" NUMBER,
	"F_CREATOR_TIME" TIMESTAMP,
	"F_CREATOR_USER_ID" NVARCHAR2(50),
	"F_LAST_MODIFY_TIME" TIMESTAMP,
	"F_LAST_MODIFY_USER_ID" NVARCHAR2(50),
	"F_DELETE_TIME" TIMESTAMP,
	"F_DELETE_USER_ID" NVARCHAR2(50),
	"F_DELETE_MARK" NUMBER,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0'

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE workflow_record IS '流程记录';
COMMENT ON COLUMN workflow_record."F_ID" IS '自然主键';
COMMENT ON COLUMN workflow_record."F_TASK_ID" IS '任务主键';
COMMENT ON COLUMN workflow_record."F_OPERATOR_ID" IS '经办主键';
COMMENT ON COLUMN workflow_record."F_NODE_ID" IS '节点id';
COMMENT ON COLUMN workflow_record."F_NODE_CODE" IS '节点编号';
COMMENT ON COLUMN workflow_record."F_NODE_NAME" IS '节点名称';
COMMENT ON COLUMN workflow_record."F_HANDLE_TYPE" IS '经办类型';
COMMENT ON COLUMN workflow_record."F_HANDLE_ID" IS '经办人员';
COMMENT ON COLUMN workflow_record."F_HANDLE_TIME" IS '经办时间';
COMMENT ON COLUMN workflow_record."F_HANDLE_OPINION" IS '经办理由';
COMMENT ON COLUMN workflow_record."F_HANDLE_USER_ID" IS '流转操作人';
COMMENT ON COLUMN workflow_record."F_SIGN_IMG" IS '签名图片';
COMMENT ON COLUMN workflow_record."F_FILE_LIST" IS '经办文件';
COMMENT ON COLUMN workflow_record."F_STATUS" IS '状态';
COMMENT ON COLUMN workflow_record."F_EXPAND_FIELD" IS '拓展字段';
COMMENT ON COLUMN workflow_record."F_SORT_CODE" IS '排序';
COMMENT ON COLUMN workflow_record."F_CREATOR_TIME" IS '创建时间';
COMMENT ON COLUMN workflow_record."F_CREATOR_USER_ID" IS '创建用户';
COMMENT ON COLUMN workflow_record."F_LAST_MODIFY_TIME" IS '修改时间';
COMMENT ON COLUMN workflow_record."F_LAST_MODIFY_USER_ID" IS '修改用户';
COMMENT ON COLUMN workflow_record."F_DELETE_TIME" IS '删除时间';
COMMENT ON COLUMN workflow_record."F_DELETE_USER_ID" IS '删除用户';
COMMENT ON COLUMN workflow_record."F_DELETE_MARK" IS '删除标志';
COMMENT ON COLUMN workflow_record."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：workflow_reject_data
-- ----------------------------
CREATE TABLE workflow_reject_data (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_TASK_JSON" CLOB,
	"F_OPERATOR_JSON" CLOB,
	"F_NODE_CODE" NVARCHAR2(50),
	"F_SORT_CODE" NUMBER,
	"F_CREATOR_TIME" TIMESTAMP,
	"F_CREATOR_USER_ID" NVARCHAR2(50),
	"F_LAST_MODIFY_TIME" TIMESTAMP,
	"F_LAST_MODIFY_USER_ID" NVARCHAR2(50),
	"F_DELETE_TIME" TIMESTAMP,
	"F_DELETE_USER_ID" NVARCHAR2(50),
	"F_DELETE_MARK" NUMBER,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0'

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE workflow_reject_data IS '冻结审批';
COMMENT ON COLUMN workflow_reject_data."F_ID" IS '主键';
COMMENT ON COLUMN workflow_reject_data."F_TASK_JSON" IS '任务json';
COMMENT ON COLUMN workflow_reject_data."F_OPERATOR_JSON" IS '经办json';
COMMENT ON COLUMN workflow_reject_data."F_NODE_CODE" IS '节点编码';
COMMENT ON COLUMN workflow_reject_data."F_SORT_CODE" IS '排序';
COMMENT ON COLUMN workflow_reject_data."F_CREATOR_TIME" IS '创建时间';
COMMENT ON COLUMN workflow_reject_data."F_CREATOR_USER_ID" IS '创建用户';
COMMENT ON COLUMN workflow_reject_data."F_LAST_MODIFY_TIME" IS '修改时间';
COMMENT ON COLUMN workflow_reject_data."F_LAST_MODIFY_USER_ID" IS '修改用户';
COMMENT ON COLUMN workflow_reject_data."F_DELETE_TIME" IS '删除时间';
COMMENT ON COLUMN workflow_reject_data."F_DELETE_USER_ID" IS '删除用户';
COMMENT ON COLUMN workflow_reject_data."F_DELETE_MARK" IS '删除标志';
COMMENT ON COLUMN workflow_reject_data."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：workflow_revoke
-- ----------------------------
CREATE TABLE workflow_revoke (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_TASK_ID" NVARCHAR2(50),
	"F_REVOKE_TASK_ID" NVARCHAR2(50),
	"F_FORM_DATA" CLOB,
	"F_SORT_CODE" NUMBER,
	"F_CREATOR_TIME" TIMESTAMP,
	"F_CREATOR_USER_ID" NVARCHAR2(50),
	"F_LAST_MODIFY_TIME" TIMESTAMP,
	"F_LAST_MODIFY_USER_ID" NVARCHAR2(50),
	"F_DELETE_TIME" TIMESTAMP,
	"F_DELETE_USER_ID" NVARCHAR2(50),
	"F_DELETE_MARK" NUMBER,
	"F_TENANT_ID" NVARCHAR2(50) NOT NULL

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE workflow_revoke IS '流程撤销';
COMMENT ON COLUMN workflow_revoke."F_ID" IS '主键';
COMMENT ON COLUMN workflow_revoke."F_TASK_ID" IS '任务主键';
COMMENT ON COLUMN workflow_revoke."F_REVOKE_TASK_ID" IS '撤销任务主键';
COMMENT ON COLUMN workflow_revoke."F_FORM_DATA" IS '表单数据';
COMMENT ON COLUMN workflow_revoke."F_SORT_CODE" IS '排序';
COMMENT ON COLUMN workflow_revoke."F_CREATOR_TIME" IS '创建时间';
COMMENT ON COLUMN workflow_revoke."F_CREATOR_USER_ID" IS '创建用户';
COMMENT ON COLUMN workflow_revoke."F_LAST_MODIFY_TIME" IS '修改时间';
COMMENT ON COLUMN workflow_revoke."F_LAST_MODIFY_USER_ID" IS '修改用户';
COMMENT ON COLUMN workflow_revoke."F_DELETE_TIME" IS '删除时间';
COMMENT ON COLUMN workflow_revoke."F_DELETE_USER_ID" IS '删除用户';
COMMENT ON COLUMN workflow_revoke."F_DELETE_MARK" IS '删除标志';
COMMENT ON COLUMN workflow_revoke."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：workflow_subtask_data
-- ----------------------------
CREATE TABLE workflow_subtask_data (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_SUBTASK_JSON" CLOB,
	"F_PARENT_ID" NVARCHAR2(50),
	"F_NODE_CODE" NVARCHAR2(50),
	"F_SORT_CODE" NUMBER,
	"F_CREATOR_TIME" TIMESTAMP,
	"F_CREATOR_USER_ID" NVARCHAR2(50),
	"F_LAST_MODIFY_TIME" TIMESTAMP,
	"F_LAST_MODIFY_USER_ID" NVARCHAR2(50),
	"F_DELETE_TIME" TIMESTAMP,
	"F_DELETE_USER_ID" NVARCHAR2(50),
	"F_DELETE_MARK" NUMBER,
	"F_TENANT_ID" NVARCHAR2(50) NOT NULL

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE workflow_subtask_data IS '子流程发起参数(依次发起)';
COMMENT ON COLUMN workflow_subtask_data."F_ID" IS '主键';
COMMENT ON COLUMN workflow_subtask_data."F_SUBTASK_JSON" IS '子流程发起参数';
COMMENT ON COLUMN workflow_subtask_data."F_PARENT_ID" IS '父流程id';
COMMENT ON COLUMN workflow_subtask_data."F_NODE_CODE" IS '节点编码';
COMMENT ON COLUMN workflow_subtask_data."F_SORT_CODE" IS '排序';
COMMENT ON COLUMN workflow_subtask_data."F_CREATOR_TIME" IS '创建时间';
COMMENT ON COLUMN workflow_subtask_data."F_CREATOR_USER_ID" IS '创建用户';
COMMENT ON COLUMN workflow_subtask_data."F_LAST_MODIFY_TIME" IS '修改时间';
COMMENT ON COLUMN workflow_subtask_data."F_LAST_MODIFY_USER_ID" IS '修改用户';
COMMENT ON COLUMN workflow_subtask_data."F_DELETE_TIME" IS '删除时间';
COMMENT ON COLUMN workflow_subtask_data."F_DELETE_USER_ID" IS '删除用户';
COMMENT ON COLUMN workflow_subtask_data."F_DELETE_MARK" IS '删除标志';
COMMENT ON COLUMN workflow_subtask_data."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：workflow_task
-- ----------------------------
CREATE TABLE workflow_task (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_EN_CODE" NVARCHAR2(200),
	"F_FULL_NAME" NVARCHAR2(200),
	"F_FLOW_NAME" NVARCHAR2(200),
	"F_FLOW_CODE" NVARCHAR2(200),
	"F_FLOW_CATEGORY" NVARCHAR2(50),
	"F_STATUS" NUMBER,
	"F_FLOW_TYPE" NUMBER,
	"F_FLOW_VERSION" NVARCHAR2(50),
	"F_IS_ASYNC" NUMBER,
	"F_SUB_PARAMETER" NVARCHAR2(2000),
	"F_PARENT_ID" NVARCHAR2(50),
	"F_URGENT" NUMBER,
	"F_TEMPLATE_ID" NVARCHAR2(50),
	"F_FLOW_ID" NVARCHAR2(50),
	"F_INSTANCE_ID" NVARCHAR2(255),
	"F_ENGINE_TYPE" NUMBER,
	"F_DELEGATE_USER_ID" NVARCHAR2(50),
	"F_START_TIME" TIMESTAMP,
	"F_END_TIME" TIMESTAMP,
	"F_CURRENT_NODE_NAME" NVARCHAR2(2000),
	"F_SORT_CODE" NUMBER,
	"F_CREATOR_TIME" TIMESTAMP,
	"F_CREATOR_USER_ID" NVARCHAR2(50),
	"F_LAST_MODIFY_TIME" TIMESTAMP,
	"F_LAST_MODIFY_USER_ID" NVARCHAR2(50),
	"F_DELETE_TIME" TIMESTAMP,
	"F_DELETE_USER_ID" NVARCHAR2(50),
	"F_DELETE_MARK" NUMBER,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0',
	"F_ENGINE_ID" NVARCHAR2(50),
	"F_CURRENT_NODE_CODE" NVARCHAR2(2000),
	"F_REJECT_DATA_ID" NVARCHAR2(50),
	"F_SUB_CODE" NVARCHAR2(50),
	"F_GLOBAL_PARAMETER" CLOB,
	"F_HIS_STATUS" NUMBER,
	"F_RESTORE" NUMBER,
	"F_IS_FILE" NUMBER,
	"F_TYPE" NUMBER

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE workflow_task IS '流程任务';
COMMENT ON COLUMN workflow_task."F_ID" IS '主键';
COMMENT ON COLUMN workflow_task."F_EN_CODE" IS '编号';
COMMENT ON COLUMN workflow_task."F_FULL_NAME" IS '标题';
COMMENT ON COLUMN workflow_task."F_FLOW_NAME" IS '流程名称';
COMMENT ON COLUMN workflow_task."F_FLOW_CODE" IS '流程编号';
COMMENT ON COLUMN workflow_task."F_FLOW_CATEGORY" IS '流程分类';
COMMENT ON COLUMN workflow_task."F_STATUS" IS '状态';
COMMENT ON COLUMN workflow_task."F_FLOW_TYPE" IS '流程类型';
COMMENT ON COLUMN workflow_task."F_FLOW_VERSION" IS '流程版本';
COMMENT ON COLUMN workflow_task."F_IS_ASYNC" IS '同步异步（0：同步，1：异步）';
COMMENT ON COLUMN workflow_task."F_SUB_PARAMETER" IS '子流程参数';
COMMENT ON COLUMN workflow_task."F_PARENT_ID" IS '父级实例id';
COMMENT ON COLUMN workflow_task."F_URGENT" IS '紧急程度';
COMMENT ON COLUMN workflow_task."F_TEMPLATE_ID" IS '流程主键';
COMMENT ON COLUMN workflow_task."F_FLOW_ID" IS '流程版本主键';
COMMENT ON COLUMN workflow_task."F_INSTANCE_ID" IS '流程引擎实例id';
COMMENT ON COLUMN workflow_task."F_ENGINE_TYPE" IS '流程引擎类型;1.flowable,2,activity,3.canmda';
COMMENT ON COLUMN workflow_task."F_DELEGATE_USER_ID" IS '委托用户';
COMMENT ON COLUMN workflow_task."F_START_TIME" IS '开始时间';
COMMENT ON COLUMN workflow_task."F_END_TIME" IS '结束时间';
COMMENT ON COLUMN workflow_task."F_CURRENT_NODE_NAME" IS '当前节点名称';
COMMENT ON COLUMN workflow_task."F_SORT_CODE" IS '排序';
COMMENT ON COLUMN workflow_task."F_CREATOR_TIME" IS '创建时间';
COMMENT ON COLUMN workflow_task."F_CREATOR_USER_ID" IS '创建用户';
COMMENT ON COLUMN workflow_task."F_LAST_MODIFY_TIME" IS '修改时间';
COMMENT ON COLUMN workflow_task."F_LAST_MODIFY_USER_ID" IS '修改用户';
COMMENT ON COLUMN workflow_task."F_DELETE_TIME" IS '删除时间';
COMMENT ON COLUMN workflow_task."F_DELETE_USER_ID" IS '删除用户';
COMMENT ON COLUMN workflow_task."F_DELETE_MARK" IS '删除标志';
COMMENT ON COLUMN workflow_task."F_TENANT_ID" IS '租户id';
COMMENT ON COLUMN workflow_task."F_ENGINE_ID" IS '流程引擎id';
COMMENT ON COLUMN workflow_task."F_CURRENT_NODE_CODE" IS '当前节点编码';
COMMENT ON COLUMN workflow_task."F_REJECT_DATA_ID" IS '冻结审批';
COMMENT ON COLUMN workflow_task."F_SUB_CODE" IS '子流程节点编码';
COMMENT ON COLUMN workflow_task."F_GLOBAL_PARAMETER" IS '全局参数';
COMMENT ON COLUMN workflow_task."F_HIS_STATUS" IS '历史状态';
COMMENT ON COLUMN workflow_task."F_RESTORE" IS '是否能恢复（0：能，1：不能）';
COMMENT ON COLUMN workflow_task."F_IS_FILE" IS '是否归档（null：未配置，0：未归档，1：已归档）';
COMMENT ON COLUMN workflow_task."F_TYPE" IS '类型(0-功能 1-发起)';
-- ----------------------------
-- 表名：workflow_task_line
-- ----------------------------
CREATE TABLE workflow_task_line (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_TASK_ID" NVARCHAR2(50),
	"F_LINE_KEY" NVARCHAR2(50),
	"F_LINE_VALUE" NVARCHAR2(50),
	"F_SORT_CODE" NUMBER,
	"F_CREATOR_TIME" TIMESTAMP,
	"F_CREATOR_USER_ID" NVARCHAR2(50),
	"F_LAST_MODIFY_TIME" TIMESTAMP,
	"F_LAST_MODIFY_USER_ID" NVARCHAR2(50),
	"F_DELETE_TIME" TIMESTAMP,
	"F_DELETE_USER_ID" NVARCHAR2(50),
	"F_DELETE_MARK" NUMBER,
	"F_TENANT_ID" NVARCHAR2(50) NOT NULL

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE workflow_task_line IS '任务条件';
COMMENT ON COLUMN workflow_task_line."F_ID" IS '主键';
COMMENT ON COLUMN workflow_task_line."F_TASK_ID" IS '任务主键';
COMMENT ON COLUMN workflow_task_line."F_LINE_KEY" IS '线的键';
COMMENT ON COLUMN workflow_task_line."F_LINE_VALUE" IS '线的值';
COMMENT ON COLUMN workflow_task_line."F_SORT_CODE" IS '排序';
COMMENT ON COLUMN workflow_task_line."F_CREATOR_TIME" IS '创建时间';
COMMENT ON COLUMN workflow_task_line."F_CREATOR_USER_ID" IS '创建用户';
COMMENT ON COLUMN workflow_task_line."F_LAST_MODIFY_TIME" IS '修改时间';
COMMENT ON COLUMN workflow_task_line."F_LAST_MODIFY_USER_ID" IS '修改用户';
COMMENT ON COLUMN workflow_task_line."F_DELETE_TIME" IS '删除时间';
COMMENT ON COLUMN workflow_task_line."F_DELETE_USER_ID" IS '删除用户';
COMMENT ON COLUMN workflow_task_line."F_DELETE_MARK" IS '删除标志';
COMMENT ON COLUMN workflow_task_line."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：workflow_template
-- ----------------------------
CREATE TABLE workflow_template (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_FLOW_ID" NVARCHAR2(50),
	"F_VERSION" NVARCHAR2(50),
	"F_EN_CODE" NVARCHAR2(200),
	"F_FULL_NAME" NVARCHAR2(200),
	"F_TYPE" NUMBER,
	"F_CATEGORY" NVARCHAR2(50),
	"F_ICON" NVARCHAR2(50),
	"F_ICON_BACKGROUND" NVARCHAR2(50),
	"F_CONFIGURATION" CLOB,
	"F_ACTIVITI_ID" NVARCHAR2(50),
	"F_FLOWABLE_ID" NVARCHAR2(50),
	"F_CAMUNDA_ID" NVARCHAR2(50),
	"F_DESCRIPTION" NVARCHAR2(500),
	"F_ENABLED_MARK" NUMBER,
	"F_SORT_CODE" NUMBER,
	"F_CREATOR_TIME" TIMESTAMP,
	"F_CREATOR_USER_ID" NVARCHAR2(50),
	"F_LAST_MODIFY_TIME" TIMESTAMP,
	"F_LAST_MODIFY_USER_ID" NVARCHAR2(50),
	"F_DELETE_TIME" TIMESTAMP,
	"F_DELETE_USER_ID" NVARCHAR2(50),
	"F_DELETE_MARK" NUMBER,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0',
	"F_VISIBLE_TYPE" NUMBER,
	"F_FLOW_CONFIG" CLOB,
	"F_SHOW_TYPE" NUMBER,
	"F_STATUS" NUMBER

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE workflow_template IS '流程定义';
COMMENT ON COLUMN workflow_template."F_ID" IS '自然主键';
COMMENT ON COLUMN workflow_template."F_FLOW_ID" IS '流程主版本id';
COMMENT ON COLUMN workflow_template."F_VERSION" IS '流程主版本';
COMMENT ON COLUMN workflow_template."F_EN_CODE" IS '流程编码';
COMMENT ON COLUMN workflow_template."F_FULL_NAME" IS '流程名称';
COMMENT ON COLUMN workflow_template."F_TYPE" IS '流程类型';
COMMENT ON COLUMN workflow_template."F_CATEGORY" IS '流程分类';
COMMENT ON COLUMN workflow_template."F_ICON" IS '图标';
COMMENT ON COLUMN workflow_template."F_ICON_BACKGROUND" IS '图标背景色';
COMMENT ON COLUMN workflow_template."F_CONFIGURATION" IS '流程参数设置';
COMMENT ON COLUMN workflow_template."F_ACTIVITI_ID" IS 'activiti部署id';
COMMENT ON COLUMN workflow_template."F_FLOWABLE_ID" IS 'flowable部署id';
COMMENT ON COLUMN workflow_template."F_CAMUNDA_ID" IS 'camunda部署id';
COMMENT ON COLUMN workflow_template."F_DESCRIPTION" IS '描述或说明';
COMMENT ON COLUMN workflow_template."F_ENABLED_MARK" IS '有效标志(0-禁用，1-启用)';
COMMENT ON COLUMN workflow_template."F_SORT_CODE" IS '排序';
COMMENT ON COLUMN workflow_template."F_CREATOR_TIME" IS '创建时间';
COMMENT ON COLUMN workflow_template."F_CREATOR_USER_ID" IS '创建用户';
COMMENT ON COLUMN workflow_template."F_LAST_MODIFY_TIME" IS '修改时间';
COMMENT ON COLUMN workflow_template."F_LAST_MODIFY_USER_ID" IS '修改用户';
COMMENT ON COLUMN workflow_template."F_DELETE_TIME" IS '删除时间';
COMMENT ON COLUMN workflow_template."F_DELETE_USER_ID" IS '删除用户';
COMMENT ON COLUMN workflow_template."F_DELETE_MARK" IS '删除标志';
COMMENT ON COLUMN workflow_template."F_TENANT_ID" IS '租户id';
COMMENT ON COLUMN workflow_template."F_VISIBLE_TYPE" IS '流程权限（1全局  2权限）';
COMMENT ON COLUMN workflow_template."F_FLOW_CONFIG" IS '流程设置';
COMMENT ON COLUMN workflow_template."F_SHOW_TYPE" IS '流程显示类型（0-全局 1-流程 2-菜单）';
COMMENT ON COLUMN workflow_template."F_STATUS" IS '状态(0.未上架,1.上架,2.下架-继续审批，3.下架-隐藏审批)';
-- ----------------------------
-- 表名：workflow_trigger_record
-- ----------------------------
CREATE TABLE workflow_trigger_record (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_TRIGGER_ID" NVARCHAR2(50),
	"F_TASK_ID" NVARCHAR2(50),
	"F_NODE_ID" NVARCHAR2(50),
	"F_NODE_CODE" NVARCHAR2(50),
	"F_NODE_NAME" NVARCHAR2(50),
	"F_START_TIME" TIMESTAMP,
	"F_END_TIME" TIMESTAMP,
	"F_STATUS" NUMBER,
	"F_ERROR_TIP" NVARCHAR2(500),
	"F_ERROR_DATA" CLOB,
	"F_SORT_CODE" NUMBER,
	"F_CREATOR_TIME" TIMESTAMP,
	"F_CREATOR_USER_ID" NVARCHAR2(50),
	"F_LAST_MODIFY_TIME" TIMESTAMP,
	"F_LAST_MODIFY_USER_ID" NVARCHAR2(50),
	"F_DELETE_TIME" TIMESTAMP,
	"F_DELETE_USER_ID" NVARCHAR2(50),
	"F_DELETE_MARK" NUMBER,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0'

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE workflow_trigger_record IS '触发记录';
COMMENT ON COLUMN workflow_trigger_record."F_ID" IS '自然主键';
COMMENT ON COLUMN workflow_trigger_record."F_TRIGGER_ID" IS '触发主键';
COMMENT ON COLUMN workflow_trigger_record."F_TASK_ID" IS '标准任务主键';
COMMENT ON COLUMN workflow_trigger_record."F_NODE_ID" IS '节点id';
COMMENT ON COLUMN workflow_trigger_record."F_NODE_CODE" IS '节点编号';
COMMENT ON COLUMN workflow_trigger_record."F_NODE_NAME" IS '节点名称';
COMMENT ON COLUMN workflow_trigger_record."F_START_TIME" IS '开始时间';
COMMENT ON COLUMN workflow_trigger_record."F_END_TIME" IS '结束时间';
COMMENT ON COLUMN workflow_trigger_record."F_STATUS" IS '状态（0-通过 1-异常）';
COMMENT ON COLUMN workflow_trigger_record."F_ERROR_TIP" IS '错误提示';
COMMENT ON COLUMN workflow_trigger_record."F_ERROR_DATA" IS '错误数据';
COMMENT ON COLUMN workflow_trigger_record."F_SORT_CODE" IS '排序';
COMMENT ON COLUMN workflow_trigger_record."F_CREATOR_TIME" IS '创建时间';
COMMENT ON COLUMN workflow_trigger_record."F_CREATOR_USER_ID" IS '创建用户';
COMMENT ON COLUMN workflow_trigger_record."F_LAST_MODIFY_TIME" IS '修改时间';
COMMENT ON COLUMN workflow_trigger_record."F_LAST_MODIFY_USER_ID" IS '修改用户';
COMMENT ON COLUMN workflow_trigger_record."F_DELETE_TIME" IS '删除时间';
COMMENT ON COLUMN workflow_trigger_record."F_DELETE_USER_ID" IS '删除用户';
COMMENT ON COLUMN workflow_trigger_record."F_DELETE_MARK" IS '删除标志';
COMMENT ON COLUMN workflow_trigger_record."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：workflow_trigger_task
-- ----------------------------
CREATE TABLE workflow_trigger_task (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_FULL_NAME" NVARCHAR2(50),
	"F_PARENT_TIME" TIMESTAMP,
	"F_PARENT_ID" NVARCHAR2(50),
	"F_TASK_ID" NVARCHAR2(50),
	"F_NODE_CODE" NVARCHAR2(50),
	"F_NODE_ID" NVARCHAR2(50),
	"F_IS_ASYNC" NUMBER,
	"F_START_TIME" TIMESTAMP,
	"F_FLOW_ID" NVARCHAR2(50),
	"F_DATA" CLOB,
	"F_DATA_ID" NVARCHAR2(50),
	"F_INSTANCE_ID" NVARCHAR2(50),
	"F_ENGINE_TYPE" NUMBER,
	"F_STATUS" NUMBER,
	"F_SORT_CODE" NUMBER,
	"F_CREATOR_TIME" TIMESTAMP,
	"F_CREATOR_USER_ID" NVARCHAR2(50),
	"F_LAST_MODIFY_TIME" TIMESTAMP,
	"F_LAST_MODIFY_USER_ID" NVARCHAR2(50),
	"F_DELETE_TIME" TIMESTAMP,
	"F_DELETE_USER_ID" NVARCHAR2(50),
	"F_DELETE_MARK" NUMBER,
	"F_TENANT_ID" NVARCHAR2(50) NOT NULL

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE workflow_trigger_task IS '触发任务';
COMMENT ON COLUMN workflow_trigger_task."F_ID" IS '自然主键';
COMMENT ON COLUMN workflow_trigger_task."F_FULL_NAME" IS '任务名称';
COMMENT ON COLUMN workflow_trigger_task."F_PARENT_TIME" IS '重试任务开始时间';
COMMENT ON COLUMN workflow_trigger_task."F_PARENT_ID" IS '重试任务主键id';
COMMENT ON COLUMN workflow_trigger_task."F_TASK_ID" IS '标准任务主键';
COMMENT ON COLUMN workflow_trigger_task."F_NODE_CODE" IS '节点编码';
COMMENT ON COLUMN workflow_trigger_task."F_NODE_ID" IS '节点id';
COMMENT ON COLUMN workflow_trigger_task."F_IS_ASYNC" IS '0-同步 1-异步';
COMMENT ON COLUMN workflow_trigger_task."F_START_TIME" IS '开始时间';
COMMENT ON COLUMN workflow_trigger_task."F_FLOW_ID" IS '模板id';
COMMENT ON COLUMN workflow_trigger_task."F_DATA" IS '数据';
COMMENT ON COLUMN workflow_trigger_task."F_DATA_ID" IS '数据主键';
COMMENT ON COLUMN workflow_trigger_task."F_INSTANCE_ID" IS '引擎主键';
COMMENT ON COLUMN workflow_trigger_task."F_ENGINE_TYPE" IS '流程引擎类型;1.flowable,2,activity,3.canmda';
COMMENT ON COLUMN workflow_trigger_task."F_STATUS" IS '状态(0-进行中 1-通过 2-异常 3-终止)';
COMMENT ON COLUMN workflow_trigger_task."F_SORT_CODE" IS '排序';
COMMENT ON COLUMN workflow_trigger_task."F_CREATOR_TIME" IS '创建时间';
COMMENT ON COLUMN workflow_trigger_task."F_CREATOR_USER_ID" IS '创建用户';
COMMENT ON COLUMN workflow_trigger_task."F_LAST_MODIFY_TIME" IS '修改时间';
COMMENT ON COLUMN workflow_trigger_task."F_LAST_MODIFY_USER_ID" IS '修改用户';
COMMENT ON COLUMN workflow_trigger_task."F_DELETE_TIME" IS '删除时间';
COMMENT ON COLUMN workflow_trigger_task."F_DELETE_USER_ID" IS '删除用户';
COMMENT ON COLUMN workflow_trigger_task."F_DELETE_MARK" IS '删除标志';
COMMENT ON COLUMN workflow_trigger_task."F_TENANT_ID" IS '租户id';
-- ----------------------------
-- 表名：workflow_version
-- ----------------------------
CREATE TABLE workflow_version (
	"F_ID" NVARCHAR2(50) NOT NULL,
	"F_TEMPLATE_ID" NVARCHAR2(50),
	"F_FLOWABLE_ID" NVARCHAR2(50),
	"F_ACTIVITI_ID" NVARCHAR2(50),
	"F_CAMUNDA_ID" NVARCHAR2(50),
	"F_VERSION" NVARCHAR2(50),
	"F_XML" CLOB,
	"F_STATUS" NUMBER,
	"F_SORT_CODE" NUMBER,
	"F_SEND_CONFIG_IDS" CLOB,
	"F_CREATOR_TIME" TIMESTAMP,
	"F_CREATOR_USER_ID" NVARCHAR2(50),
	"F_LAST_MODIFY_TIME" TIMESTAMP,
	"F_LAST_MODIFY_USER_ID" NVARCHAR2(50),
	"F_DELETE_TIME" TIMESTAMP,
	"F_DELETE_USER_ID" NVARCHAR2(50),
	"F_DELETE_MARK" NUMBER,
	"F_TENANT_ID" NVARCHAR2(50) DEFAULT '0'

, PRIMARY KEY (f_id,f_tenant_id)
);
COMMENT ON TABLE workflow_version IS '流程定义版本';
COMMENT ON COLUMN workflow_version."F_ID" IS '自然主键';
COMMENT ON COLUMN workflow_version."F_TEMPLATE_ID" IS '流程定义主键';
COMMENT ON COLUMN workflow_version."F_FLOWABLE_ID" IS 'flowable部署id';
COMMENT ON COLUMN workflow_version."F_ACTIVITI_ID" IS 'activiti部署id';
COMMENT ON COLUMN workflow_version."F_CAMUNDA_ID" IS 'camunda部署id';
COMMENT ON COLUMN workflow_version."F_VERSION" IS '流程版本';
COMMENT ON COLUMN workflow_version."F_XML" IS '流程xml';
COMMENT ON COLUMN workflow_version."F_STATUS" IS '状态(0.设计,1.启用,2.历史)';
COMMENT ON COLUMN workflow_version."F_SORT_CODE" IS '排序';
COMMENT ON COLUMN workflow_version."F_SEND_CONFIG_IDS" IS '消息配置id';
COMMENT ON COLUMN workflow_version."F_CREATOR_TIME" IS '创建时间';
COMMENT ON COLUMN workflow_version."F_CREATOR_USER_ID" IS '创建用户';
COMMENT ON COLUMN workflow_version."F_LAST_MODIFY_TIME" IS '修改时间';
COMMENT ON COLUMN workflow_version."F_LAST_MODIFY_USER_ID" IS '修改用户';
COMMENT ON COLUMN workflow_version."F_DELETE_TIME" IS '删除时间';
COMMENT ON COLUMN workflow_version."F_DELETE_USER_ID" IS '删除用户';
COMMENT ON COLUMN workflow_version."F_DELETE_MARK" IS '删除标志';
COMMENT ON COLUMN workflow_version."F_TENANT_ID" IS '租户id';


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

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