Commit 57adec670b5eeb71a4b299b5a2ad694ce0ef4e74

Authored by Volodymyr Babak
1 parent 193cccf1

Formatting

@@ -107,15 +107,15 @@ CREATE MATERIALIZED VIEW IF NOT EXISTS thingsboard.edge_by_customer_by_type_and_ @@ -107,15 +107,15 @@ CREATE MATERIALIZED VIEW IF NOT EXISTS thingsboard.edge_by_customer_by_type_and_
107 WITH CLUSTERING ORDER BY ( tenant_id DESC, type ASC, search_text ASC, id DESC ); 107 WITH CLUSTERING ORDER BY ( tenant_id DESC, type ASC, search_text ASC, id DESC );
108 108
109 CREATE TABLE IF NOT EXISTS thingsboard.edge_event ( 109 CREATE TABLE IF NOT EXISTS thingsboard.edge_event (
110 - id timeuuid,  
111 - tenant_id timeuuid, 110 + id timeuuid,
  111 + tenant_id timeuuid,
112 edge_id timeuuid, 112 edge_id timeuuid,
113 - edge_event_type text,  
114 - edge_event_action text,  
115 - edge_event_uid text,  
116 - entity_id timeuuid,  
117 - body text,  
118 - PRIMARY KEY ((tenant_id, edge_id), edge_event_type, edge_event_uid) 113 + edge_event_type text,
  114 + edge_event_action text,
  115 + edge_event_uid text,
  116 + entity_id timeuuid,
  117 + body text,
  118 + PRIMARY KEY ((tenant_id, edge_id), edge_event_type, edge_event_uid)
119 ); 119 );
120 120
121 CREATE MATERIALIZED VIEW IF NOT EXISTS thingsboard.edge_event_by_id AS 121 CREATE MATERIALIZED VIEW IF NOT EXISTS thingsboard.edge_event_by_id AS
@@ -787,15 +787,15 @@ CREATE MATERIALIZED VIEW IF NOT EXISTS thingsboard.edge_by_customer_by_type_and_ @@ -787,15 +787,15 @@ CREATE MATERIALIZED VIEW IF NOT EXISTS thingsboard.edge_by_customer_by_type_and_
787 WITH CLUSTERING ORDER BY ( tenant_id DESC, type ASC, search_text ASC, id DESC ); 787 WITH CLUSTERING ORDER BY ( tenant_id DESC, type ASC, search_text ASC, id DESC );
788 788
789 CREATE TABLE IF NOT EXISTS thingsboard.edge_event ( 789 CREATE TABLE IF NOT EXISTS thingsboard.edge_event (
790 - id timeuuid,  
791 - tenant_id timeuuid, 790 + id timeuuid,
  791 + tenant_id timeuuid,
792 edge_id timeuuid, 792 edge_id timeuuid,
793 - edge_event_type text,  
794 - edge_event_action text,  
795 - edge_event_uid text,  
796 - entity_id timeuuid,  
797 - body text,  
798 - PRIMARY KEY ((tenant_id, edge_id), edge_event_type, edge_event_uid) 793 + edge_event_type text,
  794 + edge_event_action text,
  795 + edge_event_uid text,
  796 + entity_id timeuuid,
  797 + body text,
  798 + PRIMARY KEY ((tenant_id, edge_id), edge_event_type, edge_event_uid)
799 ); 799 );
800 800
801 CREATE MATERIALIZED VIEW IF NOT EXISTS thingsboard.edge_event_by_id AS 801 CREATE MATERIALIZED VIEW IF NOT EXISTS thingsboard.edge_event_by_id AS