You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
sdny-order/mycat-config/schema.xml

175 lines
10 KiB

<?xml version="1.0"?>
<!DOCTYPE mycat:schema SYSTEM "schema.dtd">
<mycat:schema xmlns:mycat="http://io.mycat/">
<!--去掉 sqlMaxLimit 返回所有 -->
<schema name="sales_order" checkSQLschema="true">
<!--******************* 全局表,所有节点都会存储 start *******************-->
<!--认证表-->
<table name="authentication" primaryKey="id" type="global" dataNode="dn$1-4"/>
<!--二维码配置主表-->
<table name="ewm_config" primaryKey="id" type="global" dataNode="dn$1-4"/>
<!--二维码配置明细表-->
<table name="ewm_config_item" primaryKey="id" type="global" dataNode="dn$1-4"/>
<!--二维码公众号配置表-->
<table name="ewm_gzh_config" primaryKey="id" type="global" dataNode="dn$1-4"/>
<!--发票快递表-->
<table name="fp_express" primaryKey="id" type="global" dataNode="dn$1-4"/>
<!--快递公司表-->
<table name="fp_kdbm" primaryKey="id" type="global" dataNode="dn$1-4"/>
<!--发票邮寄表-->
<table name="fp_sender" primaryKey="id" type="global" dataNode="dn$1-4"/>
<!--拆分规则表-->
<table name="rule_split" primaryKey="id" type="global" dataNode="dn$1-4"/>
<!--发票预警表-->
<table name="saler_warning" primaryKey="id" type="global" dataNode="dn$1-4"/>
<!--推送企业信息表-->
<table name="push_info" primaryKey="id" type="global" dataNode="dn$1-4"/>
<!--发票预警表-->
<table name="invoice_warning_info" primaryKey="id" type="global" dataNode="dn$1-4"/>
<!--字典表-->
<table name="sys_dictionary" primaryKey="id" type="global" dataNode="dn$1-4"/>
<!--税号队列表-->
<table name="sys_nsr_queue" primaryKey="id" type="global" dataNode="dn$1-4"/>
<!--税号队列配置表-->
<table name="sys_queue_config" primaryKey="id" type="global" dataNode="dn$1-4"/>
<!--税号队列配置表-->
<table name="sys_qd_queue_config" primaryKey="id" type="global" dataNode="dn$1-4"/>
<!--红字申请单下载表-->
<table name="special_invoice_reversal_download" primaryKey="id" type="global" dataNode="dn$1-4"/>
<!--红字申请单主表-->
<table name="special_invoice_reversal" primaryKey="id" type="global" dataNode="dn$1-4"/>
<!--红字申请单明细表-->
<table name="special_invoice_reversal_item" primaryKey="id" type="global" dataNode="dn$1-4"/>
<!--税编集团表-->
<table name="group_tax_class_code" primaryKey="id" type="global" dataNode="dn$1-4"/>
<!--购方分组表-->
<table name="group_commodity" primaryKey="id" type="global" dataNode="dn$1-4"/>
<!--税编基础表-->
<table name="tax_class_code" primaryKey="id" type="global" dataNode="dn$1-4"/>
<!--用户引导表-->
<table name="user_guider" primaryKey="id" type="global" dataNode="dn$1-4"/>
<!--方格注册表-->
<table name="registration_code" primaryKey="id" type="global" dataNode="dn$1-4"/>
<!--车辆税编表-->
<table name="vehicles_code" primaryKey="id" type="global" dataNode="dn$1-4"/>
<!--车辆类型表-->
<table name="vehicles_type" primaryKey="id" type="global" dataNode="dn$1-4"/>
<!--车辆产地表-->
<table name="vehicles_produce_area" primaryKey="id" type="global" dataNode="dn$1-4"/>
<!--车辆生产厂家表-->
<table name="vehicles_manufacturer" primaryKey="id" type="global" dataNode="dn$1-4"/>
<!--成品油下载退回记录-->
<table name="oil_log" primaryKey="id" type="global" dataNode="dn$1-4"/>
<!--本地打印设置表-->
<table name="local_print_config" primaryKey="id" type="global" dataNode="dn$1-4"/>
<!--基础信息表-->
<table name="sys_base_info" primaryKey="id" type="global" dataNode="dn$1-4"/>
<!--开票组织管理表-->
<table name="sys_group_management" primaryKey="id" type="global" dataNode="dn$1-4"/>
<!--发票开票点表-->
<table name="invoice_kpd_info" primaryKey="id" type="global" dataNode="dn$1-4"/>
<!-- 一共24张全局表 -->
<!--******************* 全局表,所有节点都会存储 end *******************-->
<!--******************* 分库 start *******************-->
<!--验签失败数据表-->
<table name="check_fail_info" primaryKey="id" dataNode="dn$1-4" rule="xhfNsrsbhHashRule"/>
<!--业务类型表-->
<table name="business_type_info" primaryKey="id" dataNode="dn$1-4" rule="xhfNsrsbhHashRule"/>
<!--购货方信息表-->
<table name="buyer_manage_info" primaryKey="id" dataNode="dn$1-4" rule="xhfNsrsbhHashRule"/>
<!--商品信息表-->
<table name="commodity_code" primaryKey="id" dataNode="dn$1-4" rule="xhfNsrsbhHashRule"/>
<!--开票人表-->
<table name="drawer_info" primaryKey="id" dataNode="dn$1-4" rule="xhfNsrsbhHashRule"/>
<!--方格发票打印表-->
<table name="fp_dy" primaryKey="id" dataNode="dn$1-4" rule="xhfNsrsbhHashRule"/>
<!--发票类型扩展表-->
<table name="invoice_type_code_ext" primaryKey="id" dataNode="dn$1-4" rule="xhfNsrsbhHashRule"/>
<!--纸票作废表-->
<table name="paper_invalid_invoice_info" primaryKey="id" dataNode="dn$1-4" rule="xhfNsrsbhHashRule"/>
<!--批量开票请求批次表-->
<table name="invoice_batch_request" primaryKey="id" dataNode="dn$1-4" rule="xhfNsrsbhHashRule"/>
<!--批量开票请求明细表-->
<table name="invoice_batch_request_item" primaryKey="id" dataNode="dn$1-4" rule="xhfNsrsbhHashRule"/>
<!--批量订单请求批次表-->
<table name="order_batch_request" primaryKey="id" dataNode="dn$1-4" rule="xhfNsrsbhHashRule"/>
<!--订单机动车信息表-->
<table name="order_info_jdc" primaryKey="id" dataNode="dn$1-4" rule="xhfNsrsbhHashRule"/>
<!--订单二手车信息表-->
<table name="order_info_esc" primaryKey="id" dataNode="dn$1-4" rule="xhfNsrsbhHashRule"/>
<!--订单全电信息表-->
<table name="order_info_qd" primaryKey="id" dataNode="dn$1-4" rule="xhfNsrsbhHashRule"/>
<!--订单全电发附加要素信息表-->
<table name="order_info_qd_fjys" primaryKey="id" dataNode="dn$1-4" rule="xhfNsrsbhHashRule"/>
<!--订单信息表-->
<table name="order_info" primaryKey="id" dataNode="dn$1-4" rule="xhfNsrsbhHashRule"/>
<!--订单处理表-->
<table name="order_invoice_info" primaryKey="id" dataNode="dn$1-4" rule="xhfNsrsbhHashRule"/>
<!--订单明细表-->
<table name="order_item_info" primaryKey="id" dataNode="dn$1-4" rule="xhfNsrsbhHashRule"/>
<!--订单原始订单扩展表-->
<table name="order_orgin_extend_info" primaryKey="id" dataNode="dn$1-4" rule="xhfNsrsbhHashRule"/>
<!--订单处理表-->
<table name="order_process_info" primaryKey="id" dataNode="dn$1-4" rule="xhfNsrsbhHashRule"/>
<!--订单处理表-->
<table name="order_process_info_ext" primaryKey="id" dataNode="dn$1-4" rule="xhfNsrsbhHashRule"/>
<!--订单二维码扩展表-->
<table name="order_qrcode_extend" primaryKey="id" dataNode="dn$1-4" rule="xhfNsrsbhHashRule"/>
<!--静态码二维码主表-->
<table name="quick_response_code_info" primaryKey="id" dataNode="dn$1-4" rule="xhfNsrsbhHashRule"/>
<!--静态码二维码明细表-->
<table name="quick_response_code_item_info" primaryKey="id" dataNode="dn$1-4" rule="xhfNsrsbhHashRule"/>
<!--全税项目统计汇总表-->
<table name="invoice_item_request" primaryKey="id" dataNode="dn$1-4" rule="xhfNsrsbhHashRule"/>
<!--全税率金额统计汇总表-->
<table name="invoice_taxrate_request" primaryKey="id" dataNode="dn$1-4" rule="xhfNsrsbhHashRule"/>
<!-- 一共23张分表 -->
<!--******************* 分库 end *******************-->
</schema>
<dataNode name="dn1" dataHost="db1" database="sales_order_mycat1"/>
<dataNode name="dn2" dataHost="db2" database="sales_order_mycat2"/>
<dataNode name="dn3" dataHost="db3" database="sales_order_mycat3"/>
<dataNode name="dn4" dataHost="db4" database="sales_order_mycat4"/>
<!--配置不同数据库连接,根据大区对应多套数据库-->
<dataHost name="db1" maxCon="1000" minCon="10" balance="0"
writeType="0" dbType="mysql" dbDriver="native" switchType="1" slaveThreshold="100">
<heartbeat>select user()</heartbeat>
<writeHost host="sales_order_host1" url="10.1.1.224:3306" user="dxhy" password="Dxhy@123">
<!--<readHost host="hostS1" url="10.1.21.86:3306" password="123" user="dxhy"/>-->
</writeHost>
</dataHost>
<dataHost name="db2" maxCon="1000" minCon="10" balance="0"
writeType="0" dbType="mysql" dbDriver="native" switchType="1" slaveThreshold="100">
<heartbeat>select user()</heartbeat>
<writeHost host="sales_order_host2" url="10.1.1.224:3306" user="dxhy" password="Dxhy@123">
<!--<readHost host="hostS1" url="10.1.21.86:3306" password="123" user="dxhy"/>-->
</writeHost>
</dataHost>
<dataHost name="db3" maxCon="1000" minCon="10" balance="0"
writeType="0" dbType="mysql" dbDriver="native" switchType="1" slaveThreshold="100">
<heartbeat>select user()</heartbeat>
<writeHost host="sales_order_host3" url="10.1.1.224:3306" user="dxhy" password="Dxhy@123">
<!--<readHost host="hostS1" url="10.1.21.86:3306" password="123" user="dxhy"/>-->
</writeHost>
</dataHost>
<dataHost name="db4" maxCon="1000" minCon="10" balance="0"
writeType="0" dbType="mysql" dbDriver="native" switchType="1" slaveThreshold="100">
<heartbeat>select user()</heartbeat>
<writeHost host="sales_order_host3" url="10.1.1.224:3306" user="dxhy" password="Dxhy@123">
<!--<readHost host="hostS1" url="10.1.21.86:3306" password="123" user="dxhy"/>-->
</writeHost>
</dataHost>
</mycat:schema>