| | |
| | | sharding: |
| | | tables: |
| | | xp_charging_record: |
| | | standard: |
| | | sharding-column: vehicle_id |
| | | sharding-algorithm-name: xp_charging_record_inline |
| | | actual-data-nodes: xp0.xp_charging_record_$->{0..19} |
| | | table-strategy: |
| | | standard: |
| | | sharding-column: vehicle_id |
| | | sharding-algorithm-name: xp_charging_record_inline |
| | | key-generate-strategy: |
| | | column: id |
| | | key-generator-name: snowflake |
| | | xp_clock_in: |
| | | standard: |
| | | sharding-column: app_user_id |
| | | sharding-algorithm-name: xp_clock_in_inline |
| | | actual-data-nodes: xp0.xp_clock_in_$->{0..9} |
| | | table-strategy: |
| | | standard: |
| | | sharding-column: app_user_id |
| | | sharding-algorithm-name: xp_clock_in_inline |
| | | key-generate-strategy: |
| | | column: id |
| | | key-generator-name: snowflake |
| | | xp_task: |
| | | standard: |
| | | sharding-column: vehicle_id |
| | | sharding-algorithm-name: xp_task_inline |
| | | actual-data-nodes: xp0.xp_task_$->{0..19} |
| | | table-strategy: |
| | | standard: |
| | | sharding-column: vehicle_id |
| | | sharding-algorithm-name: xp_task_inline |
| | | key-generate-strategy: |
| | | column: id |
| | | key-generator-name: snowflake |
| | | xp_task_handle_detail: |
| | | standard: |
| | | sharding-column: task_id |
| | | sharding-algorithm-name: xp_task_handle_detail_inline |
| | | actual-data-nodes: xp0.xp_task_handle_detail_$->{0..19} |
| | | table-strategy: |
| | | standard: |
| | | sharding-column: task_id |
| | | sharding-algorithm-name: xp_task_handle_detail_inline |
| | | key-generate-strategy: |
| | | column: id |
| | | key-generator-name: snowflake |
| | | xp_task_handle_detail_routine: |
| | | standard: |
| | | sharding-column: task_id |
| | | sharding-algorithm-name: xp_task_handle_detail_routine_inline |
| | | actual-data-nodes: xp0.xp_task_handle_detail_routine_$->{0..19} |
| | | table-strategy: |
| | | standard: |
| | | sharding-column: task_id |
| | | sharding-algorithm-name: xp_task_handle_detail_routine_inline |
| | | key-generate-strategy: |
| | | column: id |
| | | key-generator-name: snowflake |
| | | xp_vehicle_detection: |
| | | standard: |
| | | sharding-column: task_id |
| | | sharding-algorithm-name: xp_vehicle_detection_inline |
| | | actual-data-nodes: xp0.xp_vehicle_detection_$->{0..9} |
| | | table-strategy: |
| | | standard: |
| | | sharding-column: task_id |
| | | sharding-algorithm-name: xp_vehicle_detection_inline |
| | | key-generate-strategy: |
| | | column: id |
| | | key-generator-name: snowflake |
| | | xp_vehicle_preparation: |
| | | standard: |
| | | sharding-column: task_id |
| | | sharding-algorithm-name: xp_vehicle_preparation_inline |
| | | actual-data-nodes: xp0.xp_vehicle_preparation_$->{0..9} |
| | | table-strategy: |
| | | standard: |
| | | sharding-column: task_id |
| | | sharding-algorithm-name: xp_vehicle_preparation_inline |
| | | key-generate-strategy: |
| | | column: id |
| | | key-generator-name: snowflake |
| | | xp_vehicle_repair: |
| | | standard: |
| | | sharding-column: task_id |
| | | sharding-algorithm-name: xp_vehicle_repair_inline |
| | | actual-data-nodes: xp0.xp_vehicle_repair_$->{0..9} |
| | | table-strategy: |
| | | standard: |
| | | sharding-column: task_id |
| | | sharding-algorithm-name: xp_vehicle_repair_inline |
| | | key-generate-strategy: |
| | | column: id |
| | | key-generator-name: snowflake |
| | | xp_work_order: |
| | | standard: |
| | | sharding-column: feedback_user_phone |
| | | sharding-algorithm-name: xp_work_order_inline |
| | | actual-data-nodes: xp0.xp_work_order_$->{0..9} |
| | | table-strategy: |
| | | standard: |
| | | sharding-column: feedback_user_phone |
| | | sharding-algorithm-name: xp_work_order_inline |
| | | key-generate-strategy: |
| | | column: id |
| | | key-generator-name: snowflake |
| | | xp_work_order_log: |
| | | standard: |
| | | sharding-column: work_order_id |
| | | sharding-algorithm-name: xp_work_order_log_inline |
| | | actual-data-nodes: xp0.xp_work_order_log_$->{0..19} |
| | | table-strategy: |
| | | standard: |
| | | sharding-column: work_order_id |
| | | sharding-algorithm-name: xp_work_order_log_inline |
| | | key-generate-strategy: |
| | | column: id |
| | | key-generator-name: snowflake |
| | | sharding-algorithms: |
| | | xp_charging_record_inline: |
| | | type: INLINE |
| | | props: |
| | | algorithm-expression: xp0.xp_charging_record_${vehicle_id % 20} |
| | | xp_clock_in_inline: |
| | | type: INLINE |
| | | props: |
| | | algorithm-expression: xp0.xp_clock_in_${app_user_id % 10} |
| | | xp_task_inline: |
| | | type: INLINE |
| | | props: |
| | | algorithm-expression: xp0.xp_task_${vehicle_id % 20} |
| | | xp_task_handle_detail_inline: |
| | | type: INLINE |
| | | props: |
| | | algorithm-expression: xp0.xp_task_handle_detail_${task_id % 20} |
| | | xp_task_handle_detail_routine_inline: |
| | | type: INLINE |
| | | props: |
| | | algorithm-expression: xp0.xp_task_handle_detail_routine_${task_id % 20} |
| | | xp_vehicle_detection_inline: |
| | | type: INLINE |
| | | props: |
| | | algorithm-expression: xp0.xp_vehicle_detection_${task_id % 10} |
| | | xp_vehicle_preparation_inline: |
| | | type: INLINE |
| | | props: |
| | | algorithm-expression: xp0.xp_vehicle_preparation_${task_id % 10} |
| | | xp_vehicle_repair_inline: |
| | | type: INLINE |
| | | props: |
| | | algorithm-expression: xp0.xp_vehicle_repair_${task_id % 10} |
| | | xp_work_order_inline: |
| | | type: INLINE |
| | | props: |
| | | algorithm-expression: xp0.xp_work_order_${feedback_user_phone % 10} |
| | | xp_work_order_log_inline: |
| | | type: INLINE |
| | | props: |
| | | algorithm-expression: xp0.xp_work_order_log_${work_order_id % 20} |
| | | |
| | | single-table: |
| | | tables: |
| | | - xp0.xp_check_location |
| | | - xp0.xp_fleet |
| | | - xp0.xp_fleet_operations |
| | | - xp0.xp_fleet_vehicle |
| | | - xp0.xp_policy_application |
| | | - xp0.xp_position |
| | | - xp0.xp_scheduling |
| | | - xp0.xp_scheduling_detail |
| | | - xp0.xp_shift |
| | | - xp0.xp_task_rule |
| | | - xp0.xp_task_rule_role |
| | | - xp0.xp_vehicle |
| | | - xp0.xp_vehicle_clean |
| | | - xp0.xp_vehicle_description |
| | | sharding-algorithms: |
| | | xp_charging_record_inline: |
| | | type: INLINE |
| | | props: |
| | | algorithm-expression: xp_charging_record_$->{vehicle_id % 20} |
| | | xp_clock_in_inline: |
| | | type: INLINE |
| | | props: |
| | | algorithm-expression: xp_clock_in_$->{app_user_id % 10} |
| | | xp_task_inline: |
| | | type: INLINE |
| | | props: |
| | | algorithm-expression: xp_task_$->{vehicle_id % 20} |
| | | xp_task_handle_detail_inline: |
| | | type: INLINE |
| | | props: |
| | | algorithm-expression: xp_task_handle_detail_$->{task_id % 20} |
| | | xp_task_handle_detail_routine_inline: |
| | | type: INLINE |
| | | props: |
| | | algorithm-expression: xp_task_handle_detail_routine_$->{task_id % 20} |
| | | xp_vehicle_detection_inline: |
| | | type: INLINE |
| | | props: |
| | | algorithm-expression: xp_vehicle_detection_$->{task_id % 10} |
| | | xp_vehicle_preparation_inline: |
| | | type: INLINE |
| | | props: |
| | | algorithm-expression: xp_vehicle_preparation_$->{task_id % 10} |
| | | xp_vehicle_repair_inline: |
| | | type: INLINE |
| | | props: |
| | | algorithm-expression: xp_vehicle_repair_$->{task_id % 10} |
| | | xp_work_order_inline: |
| | | type: INLINE |
| | | props: |
| | | algorithm-expression: xp_work_order_$->{feedback_user_phone % 10} |
| | | xp_work_order_log_inline: |
| | | type: INLINE |
| | | props: |
| | | algorithm-expression: xp_work_order_log_$->{work_order_id % 20} |
| | | key-generators: |
| | | snowflake: |
| | | type: SNOWFLAKE |
| | | single-table: |
| | | default-data-source-name: xp0 |
| | | props: |
| | | sql-show: true |
| | | sql-simple: true |