diff --git a/app/views/settings/processing_items/_form.html.erb b/app/views/settings/processing_items/_form.html.erb
index 61ee6438..6613f4b6 100644
--- a/app/views/settings/processing_items/_form.html.erb
+++ b/app/views/settings/processing_items/_form.html.erb
@@ -2,6 +2,10 @@
<%= f.error_notification %>
<%= f.input :processing_items, as: :hidden %>
Select Menu Items
+
+ <%= f.button :submit, class:'pull-right', label: "Add Menu Items to Queue Station" %>
+
+
<% @menu_categories.each do |category|%>
diff --git a/config/environments/production.rb b/config/environments/production.rb
index feb370ea..daf783e7 100644
--- a/config/environments/production.rb
+++ b/config/environments/production.rb
@@ -84,4 +84,8 @@ Rails.application.configure do
# Do not dump schema after migrations.
config.active_record.dump_schema_after_migration = false
+
+ # Action Cable Setup
+ config.action_cable.url = "ws://192.168.1.24:9292/cable"
+ config.action_cable.allowed_request_origins = [/http:\/\/*/, /https:\/\/*/]
end
diff --git a/db/sym_master.sql b/db/sym_master.sql
index 84822ba5..bb05a94e 100644
--- a/db/sym_master.sql
+++ b/db/sym_master.sql
@@ -48,10 +48,18 @@ delete from sym_node;
# Create Channels for logically grouped tables
+insert into sym_channel
+(channel_id, processing_order, max_batch_size, enabled, description)
+values('setting', 1, 100000, 1, 'All Settings');
+
insert into sym_channel
(channel_id, processing_order, max_batch_size, enabled, description)
values('dining', 1, 100000, 1, 'sale_transactional data from register and back office');
+insert into sym_channel
+(channel_id, processing_order, max_batch_size, enabled, description)
+values('commission', 1, 100000, 1, 'Commission ,Commissioners ,Products and Promotion');
+
insert into sym_channel
(channel_id, processing_order, max_batch_size, enabled, description)
values('menu', 1, 100000, 1, 'Item and pricing data');
@@ -60,6 +68,14 @@ insert into sym_channel
(channel_id, processing_order, max_batch_size, enabled, description)
values('order', 1, 100000, 1, 'Item and pricing data');
+insert into sym_channel
+(channel_id, processing_order, max_batch_size, enabled, description)
+values('sale', 1, 100000, 1, 'Sale data');
+
+insert into sym_channel
+(channel_id, processing_order, max_batch_size, enabled, description)
+values('oqs', 1, 100000, 1, 'OQS and cashier temenal');
+
# Create Node Groups and Links
insert into sym_node_group (node_group_id) values ('sx');
insert into sym_node_group (node_group_id) values ('store');
@@ -67,27 +83,95 @@ insert into sym_node_group (node_group_id) values ('store');
insert into sym_node_group_link (source_node_group_id, target_node_group_id, data_event_action) values ('sx', 'store', 'W');
insert into sym_node_group_link (source_node_group_id, target_node_group_id, data_event_action) values ('store', 'sx', 'P');
-# Create Trigger for Tables
+# Create Trigger for Setting Channel
+insert into sym_trigger
+(trigger_id,source_table_name,channel_id,last_update_time,create_time)
+values('lookups','lookups','setting',current_timestamp,current_timestamp);
+
+insert into sym_trigger
+(trigger_id,source_table_name,channel_id,last_update_time,create_time)
+values('membership_actions','membership_actions','setting',current_timestamp,current_timestamp);
+
+insert into sym_trigger
+(trigger_id,source_table_name,channel_id,last_update_time,create_time)
+values('membership_settings','membership_settings','setting',current_timestamp,current_timestamp);
+
+insert into sym_trigger
+(trigger_id,source_table_name,channel_id,last_update_time,create_time)
+values('payment_method_settings','payment_method_settings','setting',current_timestamp,current_timestamp);
+
+insert into sym_trigger
+(trigger_id,source_table_name,channel_id,last_update_time,create_time)
+values('print_settings','print_settings','setting',current_timestamp,current_timestamp);
+
+insert into sym_trigger
+(trigger_id,source_table_name,channel_id,last_update_time,create_time)
+values('shops','shops','setting',current_timestamp,current_timestamp);
+
+insert into sym_trigger
+(trigger_id,source_table_name,channel_id,last_update_time,create_time)
+values('customers','customers','setting',current_timestamp,current_timestamp);
+
+# Create Trigger for Dining Channel
insert into sym_trigger
(trigger_id,source_table_name,channel_id,last_update_time,create_time)
values('zones','zones','dining',current_timestamp,current_timestamp);
insert into sym_trigger
(trigger_id,source_table_name,channel_id,last_update_time,create_time)
-values('menus','menus','menu',current_timestamp,current_timestamp);
+values('dining_charges','dining_charges','dining',current_timestamp,current_timestamp);
insert into sym_trigger
(trigger_id,source_table_name,channel_id,last_update_time,create_time)
-values('menu_categories','menu_categories','menu',current_timestamp,current_timestamp);
+values('dining_facilities','dining_facilities','dining',current_timestamp,current_timestamp);
+insert into sym_trigger
+(trigger_id,source_table_name,channel_id,last_update_time,create_time)
+values('dining_queues','dining_queues','dining',current_timestamp,current_timestamp);
+
+
+# Create Trigger for Commission Channel
+insert into sym_trigger
+(trigger_id,source_table_name,channel_id,last_update_time,create_time)
+values('commissioners','commissioners','commission',current_timestamp,current_timestamp);
+
+insert into sym_trigger
+(trigger_id,source_table_name,channel_id,last_update_time,create_time)
+values('commissions','commissions','commission',current_timestamp,current_timestamp);
+
+insert into sym_trigger
+(trigger_id,source_table_name,channel_id,last_update_time,create_time)
+values('employees','employees','commission',current_timestamp,current_timestamp);
+
+insert into sym_trigger
+(trigger_id,source_table_name,channel_id,last_update_time,create_time)
+values('in_duties','in_duties','commission',current_timestamp,current_timestamp);
+
+insert into sym_trigger
+(trigger_id,source_table_name,channel_id,last_update_time,create_time)
+values('inventory_definitions','inventory_definitions','commission',current_timestamp,current_timestamp);
+
+insert into sym_trigger
+(trigger_id,source_table_name,channel_id,last_update_time,create_time)
+values('product_commissions','product_commissions','commission',current_timestamp,current_timestamp);
+
+insert into sym_trigger
+(trigger_id,source_table_name,channel_id,last_update_time,create_time)
+values('products','products','commission',current_timestamp,current_timestamp);
+
+insert into sym_trigger
+(trigger_id,source_table_name,channel_id,last_update_time,create_time)
+values('promotion_products','promotion_products','commission',current_timestamp,current_timestamp);
+
+insert into sym_trigger
+(trigger_id,source_table_name,channel_id,last_update_time,create_time)
+values('promotions','promotions','commission',current_timestamp,current_timestamp);
+
+# Create Trigger for Menu Channel
insert into sym_trigger
(trigger_id,source_table_name,channel_id,last_update_time,create_time)
values('accounts','accounts','menu',current_timestamp,current_timestamp);
-insert into sym_trigger
-(trigger_id,source_table_name,channel_id,last_update_time,create_time)
-values('menu_items','menu_items','menu',current_timestamp,current_timestamp);
-
insert into sym_trigger
(trigger_id,source_table_name,channel_id,last_update_time,create_time)
values('menu_item_attributes','menu_item_attributes','menu',current_timestamp,current_timestamp);
@@ -96,10 +180,35 @@ insert into sym_trigger
(trigger_id,source_table_name,channel_id,last_update_time,create_time)
values('menu_item_options','menu_item_options','menu',current_timestamp,current_timestamp);
+insert into sym_trigger
+(trigger_id,source_table_name,channel_id,last_update_time,create_time)
+values('menus','menus','menu',current_timestamp,current_timestamp);
+
+insert into sym_trigger
+(trigger_id,source_table_name,channel_id,last_update_time,create_time)
+values('menu_categories','menu_categories','menu',current_timestamp,current_timestamp);
+
+insert into sym_trigger
+(trigger_id,source_table_name,channel_id,last_update_time,create_time)
+values('menu_items','menu_items','menu',current_timestamp,current_timestamp);
+
insert into sym_trigger
(trigger_id,source_table_name,channel_id,last_update_time,create_time)
values('menu_item_instances','menu_item_instances','menu',current_timestamp,current_timestamp);
+insert into sym_trigger
+(trigger_id,source_table_name,channel_id,last_update_time,create_time)
+values('item_sets','item_sets','menu',current_timestamp,current_timestamp);
+
+insert into sym_trigger
+(trigger_id,source_table_name,channel_id,last_update_time,create_time)
+values('menu_item_sets','menu_item_sets','menu',current_timestamp,current_timestamp);
+
+insert into sym_trigger
+(trigger_id,source_table_name,channel_id,last_update_time,create_time)
+values('menu_instance_item_sets','menu_instance_item_sets','menu',current_timestamp,current_timestamp);
+
+# Create Trigger for Order Channel
insert into sym_trigger
(trigger_id,source_table_name,channel_id,last_update_time,create_time)
values('orders','orders','order',current_timestamp,current_timestamp);
@@ -108,6 +217,68 @@ insert into sym_trigger
(trigger_id,source_table_name,channel_id,last_update_time,create_time)
values('order_items','order_items','order',current_timestamp,current_timestamp);
+insert into sym_trigger
+(trigger_id,source_table_name,channel_id,last_update_time,create_time)
+values('bookings','bookings','order',current_timestamp,current_timestamp);
+
+insert into sym_trigger
+(trigger_id,source_table_name,channel_id,last_update_time,create_time)
+values('booking_orders','booking_orders','order',current_timestamp,current_timestamp);
+
+# Create Trigger for Sale Channel
+insert into sym_trigger
+(trigger_id,source_table_name,channel_id,last_update_time,create_time)
+values('sales','sales','sale',current_timestamp,current_timestamp);
+
+insert into sym_trigger
+(trigger_id,source_table_name,channel_id,last_update_time,create_time)
+values('sale_items','sale_items','sale',current_timestamp,current_timestamp);
+
+insert into sym_trigger
+(trigger_id,source_table_name,channel_id,last_update_time,create_time)
+values('sale_audits','sale_audits','sale',current_timestamp,current_timestamp);
+
+insert into sym_trigger
+(trigger_id,source_table_name,channel_id,last_update_time,create_time)
+values('sale_orders','sale_orders','sale',current_timestamp,current_timestamp);
+
+insert into sym_trigger
+(trigger_id,source_table_name,channel_id,last_update_time,create_time)
+values('sale_payments','sale_payments','sale',current_timestamp,current_timestamp);
+
+insert into sym_trigger
+(trigger_id,source_table_name,channel_id,last_update_time,create_time)
+values('sale_taxes','sale_taxes','sale',current_timestamp,current_timestamp);
+
+insert into sym_trigger
+(trigger_id,source_table_name,channel_id,last_update_time,create_time)
+values('payment_journals','payment_journals','sale',current_timestamp,current_timestamp);
+
+insert into sym_trigger
+(trigger_id,source_table_name,channel_id,last_update_time,create_time)
+values('shift_sales','shift_sales','sale',current_timestamp,current_timestamp);
+
+# Create Trigger for Order Channel
+insert into sym_trigger
+(trigger_id,source_table_name,channel_id,last_update_time,create_time)
+values('assigned_order_items','assigned_order_items','oqs',current_timestamp,current_timestamp);
+
+insert into sym_trigger
+(trigger_id,source_table_name,channel_id,last_update_time,create_time)
+values('cashier_terminals','cashier_terminals','oqs',current_timestamp,current_timestamp);
+
+insert into sym_trigger
+(trigger_id,source_table_name,channel_id,last_update_time,create_time)
+values('cashier_login_logs','cashier_login_logs','oqs',current_timestamp,current_timestamp);
+
+insert into sym_trigger
+(trigger_id,source_table_name,channel_id,last_update_time,create_time)
+values('order_queue_process_by_zones','order_queue_process_by_zones','oqs',current_timestamp,current_timestamp);
+
+insert into sym_trigger
+(trigger_id,source_table_name,channel_id,last_update_time,create_time)
+values('order_queue_stations','order_queue_stations','oqs',current_timestamp,current_timestamp);
+
# Create Routers for Nodes
insert into sym_router
@@ -115,8 +286,8 @@ insert into sym_router
values('sx_2_store', 'sx', 'store', 'default',current_timestamp, current_timestamp);
insert into sym_router
-(router_id,source_node_group_id,target_node_group_id,router_type,create_time,last_update_time)
-values('store_2_sx', 'store', 'sx', 'default',current_timestamp, current_timestamp);
+(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);
-- insert into sym_router
-- (router_id,source_node_group_id,target_node_group_id,router_type,router_expression,create_time,last_update_time)
@@ -124,14 +295,263 @@ values('store_2_sx', 'store', 'sx', 'default',current_timestamp, current_timesta
# Add triggers for tables with router
+
+# Setting Channel # From Store 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);
+
+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);
+
+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);
+
+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);
+
+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);
+
+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);
+
+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);
+
+# Setting Channel # From Master to Store
+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);
+
+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);
+
+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);
+
+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);
+
+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);
+
+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);
+
+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);
+
+#End Setting Channel
+
+# Dining Channel # From Store 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);
+
+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);
+
+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);
+
+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);
+
+# Dining Channel # From SX to Store
+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);
+
+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);
+
+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);
+
+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);
+
+#end Dining Channel
+
+# Commission/Promotion/Product Channel # From Store 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);
+
+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);
+
+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);
+
+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);
+
+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);
+
+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);
+
+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);
+
+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);
+
+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);
+
+# Commission/Promotion/Product Channel # From SX to Store
+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);
+
+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);
+
+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);
+
+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);
+
+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);
+
+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);
+
+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);
+
+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);
+
+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);
+
+#end Commission/Promotion/Product Channel
+
+# Menu Channel # From Store 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);
+
+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);
+
+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);
+
+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);
+
+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);
+
+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);
+
+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);
+
+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);
+
+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);
+
+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);
+
+# Menu Channel # From SX to Store
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);
--- insert into sym_trigger_router
--- (trigger_id,router_id,initial_load_order,initial_load_select,last_update_time,create_time)
--- values('accounts','sx_2_one_store',100,'store_id=''$(externalId)''',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);
+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);
+
+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);
+
+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);
+
+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);
+
+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);
+
+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);
+
+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);
+
+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);
+#End Menu Channel
+
+# Order Channel # From Store 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);
@@ -140,19 +560,156 @@ 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);
+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);
+
+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);
+
+# Order Channel # From SX to Store
+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);
+
+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);
+
+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);
+
+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);
+# End Order Channel
+
+# Sale Channel # From Store 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);
+
+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);
+
+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);
+
+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);
+
+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);
+
+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);
+
+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);
+
+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);
+
+# Sale Channel # From SX to Store
+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);
+
+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);
+
+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);
+
+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);
+
+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);
+
+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);
+
+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);
+
+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);
+# End Sale Channel
+
+# Oqs Channel # From Store 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);
+
+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);
+
+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);
+
+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);
+
+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);
+
+# Oqs Channel # From SX to Store
+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);
+
+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);
+
+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);
+
+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);
+
+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);
+# 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');
-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');
+-- 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');
insert into sym_node_security (node_id,node_password,registration_enabled,registration_time,initial_load_enabled,initial_load_time,created_at_node_id)
values ('000','acd36ce830d1fda466eec921433f38',0,current_timestamp,0,current_timestamp,'000');
insert into sym_node_security (node_id,node_password,registration_enabled,registration_time,initial_load_enabled,initial_load_time,created_at_node_id)
values ('001','acd36ce830d1fda466eec921433f38',1,null,1,null,'000');
-insert into sym_node_security (node_id,node_password,registration_enabled,registration_time,initial_load_enabled,initial_load_time,created_at_node_id)
- values ('002','acd36ce830d1fda466eec921433f38',1,null,1,null,'000');
+-- insert into sym_node_security (node_id,node_password,registration_enabled,registration_time,initial_load_enabled,initial_load_time,created_at_node_id)
+-- values ('002','acd36ce830d1fda466eec921433f38',1,null,1,null,'000');
insert into sym_node_identity values ('000');