added license

This commit is contained in:
Yan
2017-11-16 16:13:26 +06:30
parent b1f98df4e0
commit 178b3484be
10 changed files with 264 additions and 184 deletions

View File

@@ -23,8 +23,8 @@
-- Sample Data
------------------------------------------------------------------------------
-- insert into item (item_id, name) values (11000001, 'Yummy Gum');
-- insert into item_selling_price (item_id, store_id, price, cost) values (11000001, '001',0.20, 0.10);
-- insert into item_selling_price (item_id, store_id, price, cost) values (11000001, '002',0.30, 0.20);
-- insert into item_selling_price (item_id, cloud_id, price, cost) values (11000001, '001',0.20, 0.10);
-- insert into item_selling_price (item_id, cloud_id, price, cost) values (11000001, '002',0.30, 0.20);
-- insert into sale_transaction (tran_id, store_id, workstation, day, seq)
-- values (900, '001', '3', '2012-12-01', 90);
@@ -48,6 +48,10 @@ delete from sym_node;
# Create Channels for logically grouped tables
# For Initial Data Faster by bulk
update sym_channel set data_loader_type='mysql_bulk', max_batch_size=100000, max_data_to_route=100000
where channel_id = 'reload';
insert into sym_channel
(channel_id, processing_order, max_batch_size, enabled, description)
values('setting', 1, 100000, 1, 'All Settings');
@@ -305,466 +309,466 @@ delete from sym_node;
# Create Routers for Nodes
insert into sym_router
(router_id,source_node_group_id,target_node_group_id,router_type,create_time,last_update_time)
values('sx_2_store', 'sx', 'store', 'default',current_timestamp, current_timestamp);
values('sx_2_cloud', 'sx', 'cloud', 'default',current_timestamp, current_timestamp);
insert into sym_router
(router_id,source_node_group_id,target_node_group_id,router_type,sync_on_delete,create_time,last_update_time)
values('store_2_sx', 'store', 'sx', 'default',0,current_timestamp, current_timestamp);
values('cloud_2_sx', 'cloud', 'sx', 'default',0,current_timestamp, current_timestamp);
-- insert into sym_router
-- (router_id,source_node_group_id,target_node_group_id,router_type,router_expression,create_time,last_update_time)
-- values('sx_2_one_store', 'sx', 'store', 'column','STORE_ID=:EXTERNAL_ID or OLD_STORE_ID=:EXTERNAL_ID',current_timestamp, current_timestamp);
-- values('sx_2_one_cloud', 'sx', 'cloud', 'column','cloud_ID=:EXTERNAL_ID or OLD_cloud_ID=:EXTERNAL_ID',current_timestamp, current_timestamp);
# Add triggers for tables with router
# Setting Channel # From Store to Master
# Setting Channel # From cloud to Master
insert into sym_trigger_router
(trigger_id,router_id,initial_load_order,last_update_time,create_time)
values('lookups','store_2_sx', 100, current_timestamp, current_timestamp);
values('lookups','cloud_2_sx', 100, current_timestamp, current_timestamp);
insert into sym_trigger_router
(trigger_id,router_id,initial_load_order,last_update_time,create_time)
values('membership_actions','store_2_sx', 100, current_timestamp, current_timestamp);
values('membership_actions','cloud_2_sx', 100, current_timestamp, current_timestamp);
insert into sym_trigger_router
(trigger_id,router_id,initial_load_order,last_update_time,create_time)
values('membership_settings','store_2_sx', 100, current_timestamp, current_timestamp);
values('membership_settings','cloud_2_sx', 100, current_timestamp, current_timestamp);
insert into sym_trigger_router
(trigger_id,router_id,initial_load_order,last_update_time,create_time)
values('payment_method_settings','store_2_sx', 100, current_timestamp, current_timestamp);
values('payment_method_settings','cloud_2_sx', 100, current_timestamp, current_timestamp);
insert into sym_trigger_router
(trigger_id,router_id,initial_load_order,last_update_time,create_time)
values('print_settings','store_2_sx', 100, current_timestamp, current_timestamp);
values('print_settings','cloud_2_sx', 100, current_timestamp, current_timestamp);
insert into sym_trigger_router
(trigger_id,router_id,initial_load_order,last_update_time,create_time)
values('shops','store_2_sx', 100, current_timestamp, current_timestamp);
values('shops','cloud_2_sx', 100, current_timestamp, current_timestamp);
insert into sym_trigger_router
(trigger_id,router_id,initial_load_order,last_update_time,create_time)
values('customers','store_2_sx', 100, current_timestamp, current_timestamp);
values('customers','cloud_2_sx', 100, current_timestamp, current_timestamp);
# Setting Channel # From Master to Store
# Setting Channel # From Master to cloud
insert into sym_trigger_router
(trigger_id,router_id,initial_load_order,last_update_time,create_time)
values('lookups','sx_2_store', 100, current_timestamp, current_timestamp);
values('lookups','sx_2_cloud', 100, current_timestamp, current_timestamp);
insert into sym_trigger_router
(trigger_id,router_id,initial_load_order,last_update_time,create_time)
values('membership_actions','sx_2_store', 100, current_timestamp, current_timestamp);
values('membership_actions','sx_2_cloud', 100, current_timestamp, current_timestamp);
insert into sym_trigger_router
(trigger_id,router_id,initial_load_order,last_update_time,create_time)
values('membership_settings','sx_2_store', 100, current_timestamp, current_timestamp);
values('membership_settings','sx_2_cloud', 100, current_timestamp, current_timestamp);
insert into sym_trigger_router
(trigger_id,router_id,initial_load_order,last_update_time,create_time)
values('payment_method_settings','sx_2_store', 100, current_timestamp, current_timestamp);
values('payment_method_settings','sx_2_cloud', 100, current_timestamp, current_timestamp);
insert into sym_trigger_router
(trigger_id,router_id,initial_load_order,last_update_time,create_time)
values('print_settings','sx_2_store', 100, current_timestamp, current_timestamp);
values('print_settings','sx_2_cloud', 100, current_timestamp, current_timestamp);
insert into sym_trigger_router
(trigger_id,router_id,initial_load_order,last_update_time,create_time)
values('shops','sx_2_store', 100, current_timestamp, current_timestamp);
values('shops','sx_2_cloud', 100, current_timestamp, current_timestamp);
insert into sym_trigger_router
(trigger_id,router_id,initial_load_order,last_update_time,create_time)
values('customers','sx_2_store', 100, current_timestamp, current_timestamp);
values('customers','sx_2_cloud', 100, current_timestamp, current_timestamp);
#End Setting Channel
# Dining Channel # From Store to SX
# Dining Channel # From cloud to SX
insert into sym_trigger_router
(trigger_id,router_id,initial_load_order,last_update_time,create_time)
values('zones','store_2_sx', 100, current_timestamp, current_timestamp);
values('zones','cloud_2_sx', 100, current_timestamp, current_timestamp);
insert into sym_trigger_router
(trigger_id,router_id,initial_load_order,last_update_time,create_time)
values('dining_charges','store_2_sx', 100, current_timestamp, current_timestamp);
values('dining_charges','cloud_2_sx', 100, current_timestamp, current_timestamp);
insert into sym_trigger_router
(trigger_id,router_id,initial_load_order,last_update_time,create_time)
values('dining_facilities','store_2_sx', 100, current_timestamp, current_timestamp);
values('dining_facilities','cloud_2_sx', 100, current_timestamp, current_timestamp);
insert into sym_trigger_router
(trigger_id,router_id,initial_load_order,last_update_time,create_time)
values('dining_queues','store_2_sx', 100, current_timestamp, current_timestamp);
values('dining_queues','cloud_2_sx', 100, current_timestamp, current_timestamp);
# Dining Channel # From SX to Store
# Dining Channel # From SX to cloud
insert into sym_trigger_router
(trigger_id,router_id,initial_load_order,last_update_time,create_time)
values('zones','sx_2_store', 100, current_timestamp, current_timestamp);
values('zones','sx_2_cloud', 100, current_timestamp, current_timestamp);
insert into sym_trigger_router
(trigger_id,router_id,initial_load_order,last_update_time,create_time)
values('dining_charges','sx_2_store', 100, current_timestamp, current_timestamp);
values('dining_charges','sx_2_cloud', 100, current_timestamp, current_timestamp);
insert into sym_trigger_router
(trigger_id,router_id,initial_load_order,last_update_time,create_time)
values('dining_facilities','sx_2_store', 100, current_timestamp, current_timestamp);
values('dining_facilities','sx_2_cloud', 100, current_timestamp, current_timestamp);
insert into sym_trigger_router
(trigger_id,router_id,initial_load_order,last_update_time,create_time)
values('dining_queues','sx_2_store', 100, current_timestamp, current_timestamp);
values('dining_queues','sx_2_cloud', 100, current_timestamp, current_timestamp);
#end Dining Channel
# Commission/Promotion/Product Channel # From Store to SX
# Commission/Promotion/Product Channel # From cloud to SX
insert into sym_trigger_router
(trigger_id,router_id,initial_load_order,last_update_time,create_time)
values('commissioners','store_2_sx', 100, current_timestamp, current_timestamp);
values('commissioners','cloud_2_sx', 100, current_timestamp, current_timestamp);
insert into sym_trigger_router
(trigger_id,router_id,initial_load_order,last_update_time,create_time)
values('commissions','store_2_sx', 100, current_timestamp, current_timestamp);
values('commissions','cloud_2_sx', 100, current_timestamp, current_timestamp);
insert into sym_trigger_router
(trigger_id,router_id,initial_load_order,last_update_time,create_time)
values('employees','store_2_sx', 100, current_timestamp, current_timestamp);
values('employees','cloud_2_sx', 100, current_timestamp, current_timestamp);
insert into sym_trigger_router
(trigger_id,router_id,initial_load_order,last_update_time,create_time)
values('in_duties','store_2_sx', 100, current_timestamp, current_timestamp);
values('in_duties','cloud_2_sx', 100, current_timestamp, current_timestamp);
insert into sym_trigger_router
(trigger_id,router_id,initial_load_order,last_update_time,create_time)
values('inventory_definitions','store_2_sx', 100, current_timestamp, current_timestamp);
values('inventory_definitions','cloud_2_sx', 100, current_timestamp, current_timestamp);
insert into sym_trigger_router
(trigger_id,router_id,initial_load_order,last_update_time,create_time)
values('product_commissions','store_2_sx', 100, current_timestamp, current_timestamp);
values('product_commissions','cloud_2_sx', 100, current_timestamp, current_timestamp);
insert into sym_trigger_router
(trigger_id,router_id,initial_load_order,last_update_time,create_time)
values('products','store_2_sx', 100, current_timestamp, current_timestamp);
values('products','cloud_2_sx', 100, current_timestamp, current_timestamp);
insert into sym_trigger_router
(trigger_id,router_id,initial_load_order,last_update_time,create_time)
values('promotion_products','store_2_sx', 100, current_timestamp, current_timestamp);
values('promotion_products','cloud_2_sx', 100, current_timestamp, current_timestamp);
insert into sym_trigger_router
(trigger_id,router_id,initial_load_order,last_update_time,create_time)
values('promotions','store_2_sx', 100, current_timestamp, current_timestamp);
values('promotions','cloud_2_sx', 100, current_timestamp, current_timestamp);
# Commission/Promotion/Product Channel # From SX to Store
# Commission/Promotion/Product Channel # From SX to cloud
insert into sym_trigger_router
(trigger_id,router_id,initial_load_order,last_update_time,create_time)
values('commissioners','sx_2_store', 100, current_timestamp, current_timestamp);
values('commissioners','sx_2_cloud', 100, current_timestamp, current_timestamp);
insert into sym_trigger_router
(trigger_id,router_id,initial_load_order,last_update_time,create_time)
values('commissions','sx_2_store', 100, current_timestamp, current_timestamp);
values('commissions','sx_2_cloud', 100, current_timestamp, current_timestamp);
insert into sym_trigger_router
(trigger_id,router_id,initial_load_order,last_update_time,create_time)
values('employees','sx_2_store', 100, current_timestamp, current_timestamp);
values('employees','sx_2_cloud', 100, current_timestamp, current_timestamp);
insert into sym_trigger_router
(trigger_id,router_id,initial_load_order,last_update_time,create_time)
values('in_duties','sx_2_store', 100, current_timestamp, current_timestamp);
values('in_duties','sx_2_cloud', 100, current_timestamp, current_timestamp);
insert into sym_trigger_router
(trigger_id,router_id,initial_load_order,last_update_time,create_time)
values('inventory_definitions','sx_2_store', 100, current_timestamp, current_timestamp);
values('inventory_definitions','sx_2_cloud', 100, current_timestamp, current_timestamp);
insert into sym_trigger_router
(trigger_id,router_id,initial_load_order,last_update_time,create_time)
values('product_commissions','sx_2_store', 100, current_timestamp, current_timestamp);
values('product_commissions','sx_2_cloud', 100, current_timestamp, current_timestamp);
insert into sym_trigger_router
(trigger_id,router_id,initial_load_order,last_update_time,create_time)
values('products','sx_2_store', 100, current_timestamp, current_timestamp);
values('products','sx_2_cloud', 100, current_timestamp, current_timestamp);
insert into sym_trigger_router
(trigger_id,router_id,initial_load_order,last_update_time,create_time)
values('promotion_products','sx_2_store', 100, current_timestamp, current_timestamp);
values('promotion_products','sx_2_cloud', 100, current_timestamp, current_timestamp);
insert into sym_trigger_router
(trigger_id,router_id,initial_load_order,last_update_time,create_time)
values('promotions','sx_2_store', 100, current_timestamp, current_timestamp);
values('promotions','sx_2_cloud', 100, current_timestamp, current_timestamp);
#end Commission/Promotion/Product Channel
# Menu Channel # From Store to SX
# Menu Channel # From cloud to SX
insert into sym_trigger_router
(trigger_id,router_id,initial_load_order,last_update_time,create_time)
values('accounts','store_2_sx', 100, current_timestamp, current_timestamp);
values('accounts','cloud_2_sx', 100, current_timestamp, current_timestamp);
insert into sym_trigger_router
(trigger_id,router_id,initial_load_order,last_update_time,create_time)
values('menu_item_attributes','store_2_sx', 100, current_timestamp, current_timestamp);
values('menu_item_attributes','cloud_2_sx', 100, current_timestamp, current_timestamp);
insert into sym_trigger_router
(trigger_id,router_id,initial_load_order,last_update_time,create_time)
values('menu_item_options','store_2_sx', 100, current_timestamp, current_timestamp);
values('menu_item_options','cloud_2_sx', 100, current_timestamp, current_timestamp);
insert into sym_trigger_router
(trigger_id,router_id,initial_load_order,last_update_time,create_time)
values('menus','store_2_sx', 100, current_timestamp, current_timestamp);
values('menus','cloud_2_sx', 100, current_timestamp, current_timestamp);
insert into sym_trigger_router
(trigger_id,router_id,initial_load_order,last_update_time,create_time)
values('menu_categories','store_2_sx', 100, current_timestamp, current_timestamp);
values('menu_categories','cloud_2_sx', 100, current_timestamp, current_timestamp);
insert into sym_trigger_router
(trigger_id,router_id,initial_load_order,last_update_time,create_time)
values('menu_items','store_2_sx', 100, current_timestamp, current_timestamp);
values('menu_items','cloud_2_sx', 100, current_timestamp, current_timestamp);
insert into sym_trigger_router
(trigger_id,router_id,initial_load_order,last_update_time,create_time)
values('menu_item_instances','store_2_sx', 100, current_timestamp, current_timestamp);
values('menu_item_instances','cloud_2_sx', 100, current_timestamp, current_timestamp);
insert into sym_trigger_router
(trigger_id,router_id,initial_load_order,last_update_time,create_time)
values('item_sets','store_2_sx', 100, current_timestamp, current_timestamp);
values('item_sets','cloud_2_sx', 100, current_timestamp, current_timestamp);
insert into sym_trigger_router
(trigger_id,router_id,initial_load_order,last_update_time,create_time)
values('menu_item_sets','store_2_sx', 100, current_timestamp, current_timestamp);
values('menu_item_sets','cloud_2_sx', 100, current_timestamp, current_timestamp);
insert into sym_trigger_router
(trigger_id,router_id,initial_load_order,last_update_time,create_time)
values('menu_instance_item_sets','store_2_sx', 100, current_timestamp, current_timestamp);
values('menu_instance_item_sets','cloud_2_sx', 100, current_timestamp, current_timestamp);
# Menu Channel # From SX to Store
# Menu Channel # From SX to cloud
insert into sym_trigger_router
(trigger_id,router_id,initial_load_order,last_update_time,create_time)
values('accounts','sx_2_store', 100, current_timestamp, current_timestamp);
values('accounts','sx_2_cloud', 100, current_timestamp, current_timestamp);
insert into sym_trigger_router
(trigger_id,router_id,initial_load_order,last_update_time,create_time)
values('menu_item_attributes','sx_2_store', 100, current_timestamp, current_timestamp);
values('menu_item_attributes','sx_2_cloud', 100, current_timestamp, current_timestamp);
insert into sym_trigger_router
(trigger_id,router_id,initial_load_order,last_update_time,create_time)
values('menu_item_options','sx_2_store', 100, current_timestamp, current_timestamp);
values('menu_item_options','sx_2_cloud', 100, current_timestamp, current_timestamp);
insert into sym_trigger_router
(trigger_id,router_id,initial_load_order,last_update_time,create_time)
values('menus','sx_2_store', 100, current_timestamp, current_timestamp);
values('menus','sx_2_cloud', 100, current_timestamp, current_timestamp);
insert into sym_trigger_router
(trigger_id,router_id,initial_load_order,last_update_time,create_time)
values('menu_categories','sx_2_store', 100, current_timestamp, current_timestamp);
values('menu_categories','sx_2_cloud', 100, current_timestamp, current_timestamp);
insert into sym_trigger_router
(trigger_id,router_id,initial_load_order,last_update_time,create_time)
values('menu_items','sx_2_store', 100, current_timestamp, current_timestamp);
values('menu_items','sx_2_cloud', 100, current_timestamp, current_timestamp);
insert into sym_trigger_router
(trigger_id,router_id,initial_load_order,last_update_time,create_time)
values('menu_item_instances','sx_2_store', 100, current_timestamp, current_timestamp);
values('menu_item_instances','sx_2_cloud', 100, current_timestamp, current_timestamp);
insert into sym_trigger_router
(trigger_id,router_id,initial_load_order,last_update_time,create_time)
values('item_sets','sx_2_store', 100, current_timestamp, current_timestamp);
values('item_sets','sx_2_cloud', 100, current_timestamp, current_timestamp);
insert into sym_trigger_router
(trigger_id,router_id,initial_load_order,last_update_time,create_time)
values('menu_item_sets','sx_2_store', 100, current_timestamp, current_timestamp);
values('menu_item_sets','sx_2_cloud', 100, current_timestamp, current_timestamp);
insert into sym_trigger_router
(trigger_id,router_id,initial_load_order,last_update_time,create_time)
values('menu_instance_item_sets','sx_2_store', 100, current_timestamp, current_timestamp);
values('menu_instance_item_sets','sx_2_cloud', 100, current_timestamp, current_timestamp);
#End Menu Channel
# Order Channel # From Store to Sx
# Order Channel # From cloud to Sx
insert into sym_trigger_router
(trigger_id,router_id,initial_load_order,last_update_time,create_time)
values('orders','store_2_sx', 200, current_timestamp, current_timestamp);
values('orders','cloud_2_sx', 200, current_timestamp, current_timestamp);
insert into sym_trigger_router
(trigger_id,router_id,initial_load_order,last_update_time,create_time)
values('order_items','store_2_sx', 200, current_timestamp, current_timestamp);
values('order_items','cloud_2_sx', 200, current_timestamp, current_timestamp);
insert into sym_trigger_router
(trigger_id,router_id,initial_load_order,last_update_time,create_time)
values('bookings','store_2_sx', 200, current_timestamp, current_timestamp);
values('bookings','cloud_2_sx', 200, current_timestamp, current_timestamp);
insert into sym_trigger_router
(trigger_id,router_id,initial_load_order,last_update_time,create_time)
values('booking_orders','store_2_sx', 200, current_timestamp, current_timestamp);
values('booking_orders','cloud_2_sx', 200, current_timestamp, current_timestamp);
# Order Channel # From SX to Store
# Order Channel # From SX to cloud
insert into sym_trigger_router
(trigger_id,router_id,initial_load_order,last_update_time,create_time)
values('orders','sx_2_store', 200, current_timestamp, current_timestamp);
values('orders','sx_2_cloud', 200, current_timestamp, current_timestamp);
insert into sym_trigger_router
(trigger_id,router_id,initial_load_order,last_update_time,create_time)
values('order_items','sx_2_store', 200, current_timestamp, current_timestamp);
values('order_items','sx_2_cloud', 200, current_timestamp, current_timestamp);
insert into sym_trigger_router
(trigger_id,router_id,initial_load_order,last_update_time,create_time)
values('bookings','sx_2_store', 200, current_timestamp, current_timestamp);
values('bookings','sx_2_cloud', 200, current_timestamp, current_timestamp);
insert into sym_trigger_router
(trigger_id,router_id,initial_load_order,last_update_time,create_time)
values('booking_orders','sx_2_store', 200, current_timestamp, current_timestamp);
values('booking_orders','sx_2_cloud', 200, current_timestamp, current_timestamp);
# End Order Channel
# Sale Channel # From Store to Sx
# Sale Channel # From cloud to Sx
insert into sym_trigger_router
(trigger_id,router_id,initial_load_order,last_update_time,create_time)
values('sales','store_2_sx', 200, current_timestamp, current_timestamp);
values('sales','cloud_2_sx', 200, current_timestamp, current_timestamp);
insert into sym_trigger_router
(trigger_id,router_id,initial_load_order,last_update_time,create_time)
values('sale_items','store_2_sx', 200, current_timestamp, current_timestamp);
values('sale_items','cloud_2_sx', 200, current_timestamp, current_timestamp);
insert into sym_trigger_router
(trigger_id,router_id,initial_load_order,last_update_time,create_time)
values('sale_audits','store_2_sx', 200, current_timestamp, current_timestamp);
values('sale_audits','cloud_2_sx', 200, current_timestamp, current_timestamp);
insert into sym_trigger_router
(trigger_id,router_id,initial_load_order,last_update_time,create_time)
values('sale_orders','store_2_sx', 200, current_timestamp, current_timestamp);
values('sale_orders','cloud_2_sx', 200, current_timestamp, current_timestamp);
insert into sym_trigger_router
(trigger_id,router_id,initial_load_order,last_update_time,create_time)
values('sale_payments','store_2_sx', 200, current_timestamp, current_timestamp);
values('sale_payments','cloud_2_sx', 200, current_timestamp, current_timestamp);
insert into sym_trigger_router
(trigger_id,router_id,initial_load_order,last_update_time,create_time)
values('sale_taxes','store_2_sx', 200, current_timestamp, current_timestamp);
values('sale_taxes','cloud_2_sx', 200, current_timestamp, current_timestamp);
insert into sym_trigger_router
(trigger_id,router_id,initial_load_order,last_update_time,create_time)
values('payment_journals','store_2_sx', 200, current_timestamp, current_timestamp);
values('payment_journals','cloud_2_sx', 200, current_timestamp, current_timestamp);
insert into sym_trigger_router
(trigger_id,router_id,initial_load_order,last_update_time,create_time)
values('shift_sales','store_2_sx', 200, current_timestamp, current_timestamp);
values('shift_sales','cloud_2_sx', 200, current_timestamp, current_timestamp);
insert into sym_trigger_router
(trigger_id,router_id,initial_load_order,last_update_time,create_time)
values('stock_check_items','store_2_sx', 200, current_timestamp, current_timestamp);
values('stock_check_items','cloud_2_sx', 200, current_timestamp, current_timestamp);
insert into sym_trigger_router
(trigger_id,router_id,initial_load_order,last_update_time,create_time)
values('stock_checks','store_2_sx', 200, current_timestamp, current_timestamp);
values('stock_checks','cloud_2_sx', 200, current_timestamp, current_timestamp);
insert into sym_trigger_router
(trigger_id,router_id,initial_load_order,last_update_time,create_time)
values('stock_journals','store_2_sx', 200, current_timestamp, current_timestamp);
values('stock_journals','cloud_2_sx', 200, current_timestamp, current_timestamp);
insert into sym_trigger_router
(trigger_id,router_id,initial_load_order,last_update_time,create_time)
values('surveys','store_2_sx', 200, current_timestamp, current_timestamp);
values('surveys','cloud_2_sx', 200, current_timestamp, current_timestamp);
# Sale Channel # From SX to Store
# Sale Channel # From SX to cloud
insert into sym_trigger_router
(trigger_id,router_id,initial_load_order,last_update_time,create_time)
values('sales','sx_2_store', 200, current_timestamp, current_timestamp);
values('sales','sx_2_cloud', 200, current_timestamp, current_timestamp);
insert into sym_trigger_router
(trigger_id,router_id,initial_load_order,last_update_time,create_time)
values('sale_items','sx_2_store', 200, current_timestamp, current_timestamp);
values('sale_items','sx_2_cloud', 200, current_timestamp, current_timestamp);
insert into sym_trigger_router
(trigger_id,router_id,initial_load_order,last_update_time,create_time)
values('sale_audits','sx_2_store', 200, current_timestamp, current_timestamp);
values('sale_audits','sx_2_cloud', 200, current_timestamp, current_timestamp);
insert into sym_trigger_router
(trigger_id,router_id,initial_load_order,last_update_time,create_time)
values('sale_orders','sx_2_store', 200, current_timestamp, current_timestamp);
values('sale_orders','sx_2_cloud', 200, current_timestamp, current_timestamp);
insert into sym_trigger_router
(trigger_id,router_id,initial_load_order,last_update_time,create_time)
values('sale_payments','sx_2_store', 200, current_timestamp, current_timestamp);
values('sale_payments','sx_2_cloud', 200, current_timestamp, current_timestamp);
insert into sym_trigger_router
(trigger_id,router_id,initial_load_order,last_update_time,create_time)
values('sale_taxes','sx_2_store', 200, current_timestamp, current_timestamp);
values('sale_taxes','sx_2_cloud', 200, current_timestamp, current_timestamp);
insert into sym_trigger_router
(trigger_id,router_id,initial_load_order,last_update_time,create_time)
values('payment_journals','sx_2_store', 200, current_timestamp, current_timestamp);
values('payment_journals','sx_2_cloud', 200, current_timestamp, current_timestamp);
insert into sym_trigger_router
(trigger_id,router_id,initial_load_order,last_update_time,create_time)
values('shift_sales','sx_2_store', 200, current_timestamp, current_timestamp);
values('shift_sales','sx_2_cloud', 200, current_timestamp, current_timestamp);
insert into sym_trigger_router
(trigger_id,router_id,initial_load_order,last_update_time,create_time)
values('stock_check_items','sx_2_store', 200, current_timestamp, current_timestamp);
values('stock_check_items','sx_2_cloud', 200, current_timestamp, current_timestamp);
insert into sym_trigger_router
(trigger_id,router_id,initial_load_order,last_update_time,create_time)
values('stock_checks','sx_2_store', 200, current_timestamp, current_timestamp);
values('stock_checks','sx_2_cloud', 200, current_timestamp, current_timestamp);
insert into sym_trigger_router
(trigger_id,router_id,initial_load_order,last_update_time,create_time)
values('stock_journals','sx_2_store', 200, current_timestamp, current_timestamp);
values('stock_journals','sx_2_cloud', 200, current_timestamp, current_timestamp);
insert into sym_trigger_router
(trigger_id,router_id,initial_load_order,last_update_time,create_time)
values('surveys','sx_2_store', 200, current_timestamp, current_timestamp);
values('surveys','sx_2_cloud', 200, current_timestamp, current_timestamp);
# End Sale Channel
# Oqs Channel # From Store to Sx
# Oqs Channel # From cloud to Sx
insert into sym_trigger_router
(trigger_id,router_id,initial_load_order,last_update_time,create_time)
values('assigned_order_items','store_2_sx', 200, current_timestamp, current_timestamp);
values('assigned_order_items','cloud_2_sx', 200, current_timestamp, current_timestamp);
insert into sym_trigger_router
(trigger_id,router_id,initial_load_order,last_update_time,create_time)
values('cashier_terminals','store_2_sx', 200, current_timestamp, current_timestamp);
values('cashier_terminals','cloud_2_sx', 200, current_timestamp, current_timestamp);
insert into sym_trigger_router
(trigger_id,router_id,initial_load_order,last_update_time,create_time)
values('cashier_terminal_by_zones','store_2_sx', 200, current_timestamp, current_timestamp);
values('cashier_terminal_by_zones','cloud_2_sx', 200, current_timestamp, current_timestamp);
insert into sym_trigger_router
(trigger_id,router_id,initial_load_order,last_update_time,create_time)
values('cashier_login_logs','store_2_sx', 200, current_timestamp, current_timestamp);
values('cashier_login_logs','cloud_2_sx', 200, current_timestamp, current_timestamp);
insert into sym_trigger_router
(trigger_id,router_id,initial_load_order,last_update_time,create_time)
values('order_queue_process_by_zones','store_2_sx', 200, current_timestamp, current_timestamp);
values('order_queue_process_by_zones','cloud_2_sx', 200, current_timestamp, current_timestamp);
insert into sym_trigger_router
(trigger_id,router_id,initial_load_order,last_update_time,create_time)
values('order_queue_stations','store_2_sx', 200, current_timestamp, current_timestamp);
values('order_queue_stations','cloud_2_sx', 200, current_timestamp, current_timestamp);
# Oqs Channel # From SX to Store
# Oqs Channel # From SX to cloud
insert into sym_trigger_router
(trigger_id,router_id,initial_load_order,last_update_time,create_time)
values('assigned_order_items','sx_2_store', 200, current_timestamp, current_timestamp);
values('assigned_order_items','sx_2_cloud', 200, current_timestamp, current_timestamp);
insert into sym_trigger_router
(trigger_id,router_id,initial_load_order,last_update_time,create_time)
values('cashier_terminals','sx_2_store', 200, current_timestamp, current_timestamp);
values('cashier_terminals','sx_2_cloud', 200, current_timestamp, current_timestamp);
insert into sym_trigger_router
(trigger_id,router_id,initial_load_order,last_update_time,create_time)
values('cashier_terminal_by_zones','sx_2_store', 200, current_timestamp, current_timestamp);
values('cashier_terminal_by_zones','sx_2_cloud', 200, current_timestamp, current_timestamp);
insert into sym_trigger_router
(trigger_id,router_id,initial_load_order,last_update_time,create_time)
values('cashier_login_logs','sx_2_store', 200, current_timestamp, current_timestamp);
values('cashier_login_logs','sx_2_cloud', 200, current_timestamp, current_timestamp);
insert into sym_trigger_router
(trigger_id,router_id,initial_load_order,last_update_time,create_time)
values('order_queue_process_by_zones','sx_2_store', 200, current_timestamp, current_timestamp);
values('order_queue_process_by_zones','sx_2_cloud', 200, current_timestamp, current_timestamp);
insert into sym_trigger_router
(trigger_id,router_id,initial_load_order,last_update_time,create_time)
values('order_queue_stations','sx_2_store', 200, current_timestamp, current_timestamp);
values('order_queue_stations','sx_2_cloud', 200, current_timestamp, current_timestamp);
# End Oqs Channel
insert into sym_node (node_id,node_group_id,external_id,sync_enabled,sync_url,schema_version,symmetric_version,database_type,database_version,heartbeat_time,timezone_offset,batch_to_send_count,batch_in_error_count,created_at_node_id)
values ('000','sx','000',1,null,null,null,null,null,current_timestamp,null,0,0,'000');
insert into sym_node (node_id,node_group_id,external_id,sync_enabled,sync_url,schema_version,symmetric_version,database_type,database_version,heartbeat_time,timezone_offset,batch_to_send_count,batch_in_error_count,created_at_node_id)
values ('001','store','001',1,null,null,null,null,null,current_timestamp,null,0,0,'000');
values ('001','cloud','001',1,null,null,null,null,null,current_timestamp,null,0,0,'000');
-- insert into sym_node (node_id,node_group_id,external_id,sync_enabled,sync_url,schema_version,symmetric_version,database_type,database_version,heartbeat_time,timezone_offset,batch_to_send_count,batch_in_error_count,created_at_node_id)
-- values ('002','store','002',1,null,null,null,null,null,current_timestamp,null,0,0,'000');
-- values ('002','cloud','002',1,null,null,null,null,null,current_timestamp,null,0,0,'000');
insert into sym_node_security (node_id,node_password,registration_enabled,registration_time,initial_load_enabled,initial_load_time,created_at_node_id)