From 4b48c66f496d28011876d3bfa20f3e09c6984ac9 Mon Sep 17 00:00:00 2001
From: Dimitra Chatzichrysou <dimitra.chatzichrysou@cern.ch>
Date: Fri, 19 Mar 2021 15:53:44 +0000
Subject: [PATCH] [#37] Bugfix: Channel's user list

---
 .../data_source/data_source.py                |   8 +
 .../postgres/postgres_data_source.py          |  17 ++
 notifications_routing/router.py               |  14 +-
 scripts/dump.sql                              | 246 ++++++++++++++++--
 4 files changed, 262 insertions(+), 23 deletions(-)

diff --git a/notifications_routing/data_source/data_source.py b/notifications_routing/data_source/data_source.py
index a284c06..585b865 100644
--- a/notifications_routing/data_source/data_source.py
+++ b/notifications_routing/data_source/data_source.py
@@ -14,6 +14,7 @@ class DataSource(ABC):
     GROUP_ID = "group_id"
     PREFERENCES = "preferences"
     DEVICES = "devices"
+    LAST_LOGIN = "last_login"
 
     @abstractmethod
     def get_channel_users(self, channel_id: str, **kwargs) -> List[Dict[str, str]]:
@@ -88,3 +89,10 @@ class DataSource(ABC):
         :param delivery_time: time
         """
         pass
+
+    def get_system_user(self, username: str, **kwargs) -> Dict[str, str]:
+        """Return a dict of user_id, username and email of user.
+
+        :param username: Username
+        """
+        pass
diff --git a/notifications_routing/data_source/postgres/postgres_data_source.py b/notifications_routing/data_source/postgres/postgres_data_source.py
index 708839c..03eaad4 100644
--- a/notifications_routing/data_source/postgres/postgres_data_source.py
+++ b/notifications_routing/data_source/postgres/postgres_data_source.py
@@ -66,6 +66,7 @@ class PostgresDataSource(DataSource):
                         DataSource.USER_ID: member.id,
                         DataSource.USERNAME: member.username,
                         DataSource.EMAIL: member.email,
+                        DataSource.LAST_LOGIN: member.lastLogin,
                     }
                 )
 
@@ -175,6 +176,20 @@ class PostgresDataSource(DataSource):
                 .delete()
             )
 
+    def get_system_user(self, username: str, **kwargs) -> Dict[str, str]:
+        """Return a dict of user_id and email of user."""
+        with self.session() as session:
+            user = self.__get_scalar(session, User, username=username)
+            if not user:
+                raise NotFoundDataSourceError(User, username=username)
+
+            return {
+                DataSource.USER_ID: user.id,
+                DataSource.USERNAME: user.username,
+                DataSource.EMAIL: user.email,
+                DataSource.LAST_LOGIN: user.lastLogin,
+            }
+
 
 class User(PostgresDataSource.Base):
     """User Model."""
@@ -186,6 +201,8 @@ class User(PostgresDataSource.Base):
     username = Column(String)
     email = Column(String)
     enabled = Column(Boolean)
+    created = Column(Time)
+    lastLogin = Column(Time)
     preferences = relationship("Preference")
     devices = relationship("Device")
 
diff --git a/notifications_routing/router.py b/notifications_routing/router.py
index f662514..ce51e57 100644
--- a/notifications_routing/router.py
+++ b/notifications_routing/router.py
@@ -80,7 +80,7 @@ class Router(megabus.Listener):
     def get_channel_users(self, channel_id):
         """Join users from our data source and the grappa system to return a unique users list."""
         channel_users = self.data_source.get_channel_users(channel_id)
-        unique_usernames = [username for username in channel_users]
+        unique_usernames = [channel_user[self.data_source.USERNAME] for channel_user in channel_users]
         logging.debug("channel %s usernames: %s", channel_id, unique_usernames)
 
         channel_groups = self.data_source.get_channel_groups(channel_id)
@@ -96,8 +96,13 @@ class Router(megabus.Listener):
                         if user[self.data_source.USERNAME] in unique_usernames:
                             continue
 
-                        channel_users.append(user)
-                        unique_usernames.append(self.data_source.USERNAME)
+                        try:
+                            system_user = self.data_source.get_system_user(user[self.data_source.USERNAME])
+                            channel_users.append(system_user)
+                            unique_usernames.append(self.data_source.USERNAME)
+                        except NotFoundDataSourceError:
+                            channel_users.append(user)
+                            unique_usernames.append(self.data_source.USERNAME)
 
         logging.debug("channel %s final users %s", channel_id, channel_users)
 
@@ -111,7 +116,8 @@ class Router(megabus.Listener):
             return
 
         for user in channel_users:
-            if self.data_source.USER_ID not in user:
+            has_logged_in = self.data_source.LAST_LOGIN in user and user.get(self.data_source.LAST_LOGIN)
+            if self.data_source.USER_ID not in user or not has_logged_in:
                 # User not registered in the notifications service (coming from grappa groups)
                 apply_default_preferences(self.publisher, message, user[self.data_source.EMAIL])
                 continue
diff --git a/scripts/dump.sql b/scripts/dump.sql
index fa5b136..aa6b6d9 100644
--- a/scripts/dump.sql
+++ b/scripts/dump.sql
@@ -3,7 +3,7 @@
 --
 
 -- Dumped from database version 9.6.20
--- Dumped by pg_dump version 13.1
+-- Dumped by pg_dump version 12.6
 
 SET statement_timeout = 0;
 SET lock_timeout = 0;
@@ -483,7 +483,9 @@ CREATE TABLE push."Users" (
     id uuid DEFAULT public.gen_random_uuid() NOT NULL,
     username character varying NOT NULL,
     email character varying NOT NULL,
-    enabled boolean NOT NULL
+    enabled boolean NOT NULL,
+    created timestamp with time zone DEFAULT now() NOT NULL,
+    "lastLogin" timestamp with time zone
 );
 
 
@@ -1002,14 +1004,26 @@ INSERT INTO public."Notifications" VALUES (4, 'pablo.roncer.fernandez@cern.ch',
 
 INSERT INTO push."Channels" VALUES ('a8b1b6db-2543-4549-b143-442735739fed', 'notifications-dev-test-channel', 'Notifications DEV Test Channel', 'Notifications DEV Test Channel', 'RESTRICTED', 'DYNAMIC', false, NULL, '2021-02-26 18:38:30.292949', '2021-02-26 18:38:30.292949', NULL, NULL, 'edeebd44-29db-43f6-98d5-a3852b0fcbe7', '186d8dfc-2774-43a8-91b5-a887fcb6ba4a');
 INSERT INTO push."Channels" VALUES ('00736a81-9f42-49c8-9d2c-1b8536507706', '0', 'Test-Notifications', 'Test Channel For notifications', 'INTERNAL', 'SELF_SUBSCRIPTION', false, NULL, '2021-02-26 19:44:44.030731', '2021-02-26 19:44:44.030731', 'igor.jakovljevic@outlook.com', NULL, '598d151c-f850-451e-9eac-1f6a3d987a5c', '08d7bc9a-583b-4015-86a5-4ab9f3f771b8');
-INSERT INTO push."Channels" VALUES ('ac47643d-0f6e-4c33-9d96-3fa3946215a8', 'caetan-test-channel', 'Caetan Test Channel (edit)', 'This is the test Channel for Caetán (edited)', 'RESTRICTED', 'DYNAMIC', false, NULL, '2021-03-01 10:04:22.492549', '2021-03-01 10:04:22.492549', NULL, NULL, 'a7fc13ae-f38c-4501-83f3-e37a35661fa1', NULL);
+INSERT INTO push."Channels" VALUES ('cdd942d1-ce63-4191-ace4-8358440a4ce7', 'ca', 'Ca', '', 'RESTRICTED', 'DYNAMIC', false, NULL, '2021-03-15 12:28:01.473281', '2021-03-15 12:28:01.473281', NULL, '2021-03-15 12:30:03.687017', 'a7fc13ae-f38c-4501-83f3-e37a35661fa1', NULL);
 INSERT INTO push."Channels" VALUES ('93015feb-b53d-4806-ae9c-1f630bca5a0c', 'a', 'a', '', 'RESTRICTED', 'DYNAMIC', false, NULL, '2021-03-01 11:37:22.570865', '2021-03-01 11:37:22.570865', NULL, '2021-03-01 11:37:29.779889', 'edeebd44-29db-43f6-98d5-a3852b0fcbe7', NULL);
 INSERT INTO push."Channels" VALUES ('9367e33e-47df-4648-825e-e6b52d73b593', 'test-public-channel', 'Test Public Channel', 'A Public Channel for testing', 'PUBLIC', 'SELF_SUBSCRIPTION', false, NULL, '2021-03-01 11:38:04.611044', '2021-03-01 11:38:04.611044', NULL, NULL, 'edeebd44-29db-43f6-98d5-a3852b0fcbe7', NULL);
-INSERT INTO push."Channels" VALUES ('ef46aca0-e73b-4794-8043-ffe974247cc8', 'my-internal-test-channel', 'My Internal Test Channel', 'My Internal Test Channel', 'RESTRICTED', 'DYNAMIC', false, NULL, '2021-03-01 12:52:17.25554', '2021-03-01 12:52:17.25554', NULL, NULL, 'edeebd44-29db-43f6-98d5-a3852b0fcbe7', NULL);
-INSERT INTO push."Channels" VALUES ('54f42ef2-8dc8-4dd1-986d-18025eb74b82', 'carina-s-internal-test-channel', 'Carina''s Internal Test Channel', '', 'INTERNAL', 'SELF_SUBSCRIPTION_APPROVAL', false, NULL, '2021-03-01 12:56:47.422348', '2021-03-01 12:56:47.422348', NULL, NULL, 'edeebd44-29db-43f6-98d5-a3852b0fcbe7', NULL);
 INSERT INTO push."Channels" VALUES ('23ada92a-e7dd-4c19-90b0-a9493f95f1e4', 'a-wf-restricted-test-channel', 'A WF Restricted test channel', '', 'RESTRICTED', 'DYNAMIC', false, NULL, '2021-03-01 12:58:00.902803', '2021-03-01 12:58:00.902803', NULL, NULL, 'edeebd44-29db-43f6-98d5-a3852b0fcbe7', '186d8dfc-2774-43a8-91b5-a887fcb6ba4a');
-INSERT INTO push."Channels" VALUES ('e4aa1f94-9eba-43cc-ad3e-9d9d49b03891', 'test-self-subscription-with-approval', 'Test Self Subscription with approval', '', 'INTERNAL', 'SELF_SUBSCRIPTION_APPROVAL', false, NULL, '2021-03-01 14:14:03.452426', '2021-03-01 14:14:03.452426', NULL, NULL, 'edeebd44-29db-43f6-98d5-a3852b0fcbe7', NULL);
 INSERT INTO push."Channels" VALUES ('fbd18055-a847-40b9-9a98-d9f400ebd08b', 'my-internal-test-channel-2', 'My Internal Test Channel 2', '', 'RESTRICTED', 'DYNAMIC', false, NULL, '2021-03-01 12:53:48.935061', '2021-03-01 12:53:48.935061', NULL, '2021-03-01 15:39:48.298667', 'edeebd44-29db-43f6-98d5-a3852b0fcbe7', NULL);
+INSERT INTO push."Channels" VALUES ('8f2361db-f1e9-47da-92fc-8ff74c7a3b3a', 'caetan-test-channel--edit-', 'Caetan Test Channel (edit)', 'This is the test Channel for Caetán (edited)', 'RESTRICTED', 'DYNAMIC', false, NULL, '2021-03-02 09:27:41.717181', '2021-03-02 09:27:41.717181', NULL, '2021-03-02 09:28:49.751187', 'a7fc13ae-f38c-4501-83f3-e37a35661fa1', NULL);
+INSERT INTO push."Channels" VALUES ('c3ccc15b-298f-4dc7-877f-2c8970331caf', 'it-cda-wf', 'IT-CDA-WF', 'Section notification channel for IT-CDA-WF section', 'RESTRICTED', 'DYNAMIC', false, NULL, '2021-03-02 14:50:36.472017', '2021-03-02 14:50:36.472017', NULL, NULL, '0cbbcb15-e43c-4eab-b08f-99bf256ce6c0', NULL);
+INSERT INTO push."Channels" VALUES ('533788d4-2fb2-48bf-854b-60d0fd814406', 'it-security-news', 'IT Security news', 'IT Security news and notifications', 'INTERNAL', 'SELF_SUBSCRIPTION', false, NULL, '2021-03-02 14:49:09.205001', '2021-03-02 14:49:09.205001', NULL, NULL, '0cbbcb15-e43c-4eab-b08f-99bf256ce6c0', NULL);
+INSERT INTO push."Channels" VALUES ('46c3601d-8eec-49c7-bf98-f9c17f56f83f', 'caetan-test-cha', 'Caetan Test Cha', '', 'RESTRICTED', 'DYNAMIC', false, NULL, '2021-03-15 09:18:30.134153', '2021-03-15 09:18:30.134153', NULL, '2021-03-15 09:18:43.644829', 'a7fc13ae-f38c-4501-83f3-e37a35661fa1', NULL);
+INSERT INTO push."Channels" VALUES ('a988f641-8966-41bb-b939-844757b82768', 'test-caetan2', 'Test Caetan2', '', 'RESTRICTED', 'DYNAMIC', false, NULL, '2021-03-05 19:37:54.585766', '2021-03-05 19:37:54.585766', NULL, '2021-03-05 19:39:38.071075', 'a7fc13ae-f38c-4501-83f3-e37a35661fa1', NULL);
+INSERT INTO push."Channels" VALUES ('c0befa6f-2fd8-49b1-8947-2e4d72086dbc', 'test-caetan', 'Test Caetan', '', 'RESTRICTED', 'DYNAMIC', false, NULL, '2021-03-05 19:28:32.476382', '2021-03-05 19:28:32.476382', NULL, '2021-03-05 19:40:25.510027', 'a7fc13ae-f38c-4501-83f3-e37a35661fa1', NULL);
+INSERT INTO push."Channels" VALUES ('e4aa1f94-9eba-43cc-ad3e-9d9d49b03891', 'test-self-subscription-with-approval', 'Test Self Subscription with approval', '', 'INTERNAL', 'SELF_SUBSCRIPTION_APPROVAL', false, NULL, '2021-03-01 14:14:03.452426', '2021-03-01 14:14:03.452426', NULL, '2021-03-04 12:40:12.36043', 'edeebd44-29db-43f6-98d5-a3852b0fcbe7', NULL);
+INSERT INTO push."Channels" VALUES ('ef46aca0-e73b-4794-8043-ffe974247cc8', 'my-internal-test-channel', 'My Internal Test Channel', 'My Internal Test Channel', 'INTERNAL', 'DYNAMIC', false, NULL, '2021-03-01 12:52:17.25554', '2021-03-01 12:52:17.25554', NULL, '2021-03-05 10:54:16.881154', 'edeebd44-29db-43f6-98d5-a3852b0fcbe7', '186d8dfc-2774-43a8-91b5-a887fcb6ba4a');
+INSERT INTO push."Channels" VALUES ('9db3104b-1400-4fab-84bb-8ca42c38dc56', 'test-caetan3', 'Test Caetan3', '', 'RESTRICTED', 'DYNAMIC', false, NULL, '2021-03-05 19:43:20.658645', '2021-03-05 19:43:20.658645', NULL, '2021-03-05 19:51:31.016036', 'a7fc13ae-f38c-4501-83f3-e37a35661fa1', NULL);
+INSERT INTO push."Channels" VALUES ('431d3f39-2df7-4b22-b63e-ad40670a7091', 'carina-s-restricted-test-channel', 'Carina''s Restricted Test Channel', '', 'RESTRICTED', 'DYNAMIC', false, NULL, '2021-03-05 10:53:34.557828', '2021-03-05 10:53:34.557828', NULL, NULL, 'edeebd44-29db-43f6-98d5-a3852b0fcbe7', NULL);
+INSERT INTO push."Channels" VALUES ('54f42ef2-8dc8-4dd1-986d-18025eb74b82', 'carina-s-internal-test-channel', 'Carina''s Internal Test Channel', '', 'INTERNAL', 'SELF_SUBSCRIPTION_APPROVAL', false, NULL, '2021-03-01 12:56:47.422348', '2021-03-01 12:56:47.422348', NULL, NULL, 'edeebd44-29db-43f6-98d5-a3852b0fcbe7', NULL);
+INSERT INTO push."Channels" VALUES ('1d652946-524a-4115-bd06-ec6fc4de7939', 'test', 'test', '', 'RESTRICTED', 'DYNAMIC', false, NULL, '2021-03-08 14:28:08.863671', '2021-03-08 14:28:08.863671', NULL, '2021-03-08 14:28:32.912806', 'edeebd44-29db-43f6-98d5-a3852b0fcbe7', '186d8dfc-2774-43a8-91b5-a887fcb6ba4a');
+INSERT INTO push."Channels" VALUES ('44a197e8-2fdc-4a7f-a9a5-4d02c050ebf1', 'testing-caetan', 'Testing Caetan', '', 'RESTRICTED', 'DYNAMIC', true, NULL, '2021-03-02 12:06:46.467351', '2021-03-02 12:06:46.467351', NULL, NULL, 'a7fc13ae-f38c-4501-83f3-e37a35661fa1', NULL);
+INSERT INTO push."Channels" VALUES ('a155ee5a-fcc4-4b0c-8cf7-e1ad11a78fce', 'cern-news', 'CERN News', 'Organization news (https://home.cern)', 'PUBLIC', 'SELF_SUBSCRIPTION', false, NULL, '2021-03-02 14:51:08.972028', '2021-03-02 14:51:08.972028', NULL, NULL, '0cbbcb15-e43c-4eab-b08f-99bf256ce6c0', NULL);
+INSERT INTO push."Channels" VALUES ('ac47643d-0f6e-4c33-9d96-3fa3946215a8', 'caetan-test-channel', 'Caetan Test Channel', 'This is the test Channel for Caetán', 'INTERNAL', 'DYNAMIC', false, NULL, '2021-03-01 10:04:22.492549', '2021-03-01 10:04:22.492549', NULL, NULL, 'a7fc13ae-f38c-4501-83f3-e37a35661fa1', NULL);
 
 
 --
@@ -1020,8 +1034,13 @@ INSERT INTO push."Devices" VALUES ('d4e15d11-a56e-4568-9e9f-497110426a72', 'cari
 INSERT INTO push."Devices" VALUES ('c14467fd-acd5-446a-b2e8-31f4eb601a37', 'caetan.tojeiro.carpente@cern.ch', 'Default', 'MAIL', NULL, NULL, 'caetan.tojeiro.carpente@cern.ch', 'a7fc13ae-f38c-4501-83f3-e37a35661fa1');
 INSERT INTO push."Devices" VALUES ('5b2d3c49-e4dc-4827-ae75-0ab48e1b5ac6', 'igor.jakovljevic@cern.ch', 'Default', 'MAIL', NULL, NULL, 'igor.jakovljevic@cern.ch', '598d151c-f850-451e-9eac-1f6a3d987a5c');
 INSERT INTO push."Devices" VALUES ('fa69dcc7-8c71-41af-9886-8993c124c8de', 'emmanuel.ormancey@cern.ch', 'Default', 'MAIL', NULL, NULL, 'emmanuel.ormancey@cern.ch', '60a5b86e-345e-47bc-915f-2a8af500485b');
-INSERT INTO push."Devices" VALUES ('4d36d008-ee1e-4e66-8c46-6dc4742210ef', 'Mac Chrome', 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.192 Safari/537.36', 'BROWSER', 'OTHER', '2c8e2dd3-c850-417c-b1a6-57fedee8bd60', '{"endpoint":"https://fcm.googleapis.com/fcm/send/e-OO6NZSAdA:APA91bEotRFt3nj7wo_6UKD0xp3N3kt9YCWGvSz9jrwtvHYlssW6jjpO5znRvac_azKIrpHvcAJ88ucBZ15WLRj0aNrytkwdoB-CNmbirF9cz462QgNYjSZwwUslH6aU8aB7QYICy8jj","expirationTime":null,"keys":{"p256dh":"BK71DL-82wyjT68Xv0Rr7C8LwJQWwkiKYvgr5D2I_SgQS30o8Nu0wFSQDoB8q3HVjTskn3_LvQVN3_ocT4_-4UE","auth":"8t1uf7_SYN_bY5__-40UYQ"}}', 'edeebd44-29db-43f6-98d5-a3852b0fcbe7');
 INSERT INTO push."Devices" VALUES ('7b338d47-a34d-46f6-a6be-ce123f03a8ac', 'Mac Chrome', 'Mozilla/5.0 (Macintosh; Intel Mac OS X 11_2_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.192 Safari/537.36', 'BROWSER', 'OTHER', '92fee1b5-838c-4f10-9bf2-cc4a593f2fa9', '{"endpoint":"https://fcm.googleapis.com/fcm/send/eDyYgiUXIKY:APA91bHKPJ7s3MbHoP9oNAL16RkAZGS08qo9DmTd8x7abUjQbNCqsaLjqUjHfcC_qv3BAIkMJg_ZgpaOz6rvt9_jVOGmFgPBGAmQVqoOfMI86ACl0xoE6bQES-ZjIIpVScfK5Lf9U824","expirationTime":null,"keys":{"p256dh":"BP9a5bhIQFbAp4doR0MpkW_mAM94RBupsMoVXARke72yXadW7ZbebdugAHtIXJWk58l3Ks5tmCkoGoE4VYMta5o","auth":"peGTvAd3tL2_KuEay5xvpg"}}', '60a5b86e-345e-47bc-915f-2a8af500485b');
+INSERT INTO push."Devices" VALUES ('26d0fb3e-5d1c-4a19-a624-c1893dcd9a10', 'eduardo.alvarez.fernandez@cern.ch', 'Default', 'MAIL', NULL, NULL, 'eduardo.alvarez.fernandez@cern.ch', '0cbbcb15-e43c-4eab-b08f-99bf256ce6c0');
+INSERT INTO push."Devices" VALUES ('3df09d16-5ad8-4654-9542-5a2aaeaeba37', 'Win Chrome', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.190 Safari/537.36', 'BROWSER', 'OTHER', '278e03a0-dce7-4957-af66-99d624667802', '{"endpoint":"https://fcm.googleapis.com/fcm/send/dZc0xNybiGs:APA91bFv-eAJoZrXxii5YvmWsRYvwrjw6brr5_OM7MgPgFRWG1ALFNCpz3A9SlBnF_c4-HMCA-2GvCs7T5fy96Aa43jIHh01G2HfzYjdju00PKMcqnHp4I3vOaMzKZqviDvjpCVT92tG","expirationTime":null,"keys":{"p256dh":"BDMCyG7hwxxj_6oqqgy1rFQ8IsNx07VZiL0zSMxMp5Zoi3wjBp76aS_-IMkuhUkI2ob_XEU9kynY75vpamYEQEw","auth":"OvLTX1JnFehi7alUSkqHoA"}}', '0cbbcb15-e43c-4eab-b08f-99bf256ce6c0');
+INSERT INTO push."Devices" VALUES ('ac83f078-d4a6-4355-adaa-790fd19e3b40', 'dimitra.chatzichrysou@cern.ch', 'Default', 'MAIL', NULL, NULL, 'dimitra.chatzichrysou@cern.ch', '3855058d-a287-4cf8-974e-502fc568af78');
+INSERT INTO push."Devices" VALUES ('0f2958d8-c386-4b32-a9b3-669caf3cd296', 'admca@cern.ch', 'Default', 'MAIL', NULL, NULL, 'admca@cern.ch', 'dbf92a91-553f-4d7d-9ac5-d19ddfcf9c6e');
+INSERT INTO push."Devices" VALUES ('8d515b7f-5f2c-4d1c-8c31-592d1c795fc9', 'sjdfnksjfjksdf.fsdfsdfsd@cern.ch', 'Default', 'MAIL', NULL, NULL, 'sjdfnksjfjksdf.fsdfsdfsd@cern.ch', '88733d47-5c15-4503-b5be-3ad194c137fb');
+INSERT INTO push."Devices" VALUES ('11ce2a6c-418d-48c5-bb10-537bf99164a1', 'Mac Chrome', 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.192 Safari/537.36', 'BROWSER', 'OTHER', '726f97ee-d417-4e41-adb0-1b96756bfb3d', '{"endpoint":"https://fcm.googleapis.com/fcm/send/cjc32Jksg9o:APA91bEIQmcZJ2gvhshQwf4brrEtVfhejQINkFppqNH0sq7r6T7fpo9QmbIBk9w7cIvpBDk1E9P15KS_cdpMg7YrjwIRzAQUFFulEPXyNrt9zxKx8tqgp1npO41uFXP-essTycqjSPQj","expirationTime":null,"keys":{"p256dh":"BM05NTk-IfVnDHPCw_c9RbLx_A9Pm_6hl5tWKn2rQo7xoPeGp-uYJSzljCBDJxR4yrTIHXHQWs8ky5Tt0xpXXws","auth":"_3YGUOaIe3qal3BYKsEuIA"}}', 'edeebd44-29db-43f6-98d5-a3852b0fcbe7');
 
 
 --
@@ -1067,18 +1086,146 @@ INSERT INTO push."Notifications" VALUES ('c086358b-df22-48d3-b518-12b18d100cc6',
 ', NULL, '2021-03-01 14:23:11.609', NULL, NULL, 'Test', NULL, NULL, 'NORMAL', 'ef46aca0-e73b-4794-8043-ffe974247cc8');
 INSERT INTO push."Notifications" VALUES ('508cd4db-74cb-4ea6-941c-d45170dca8f6', '<p>Daily Test Notification Body</p>
 ', NULL, '2021-03-01 14:40:18.556', NULL, NULL, 'Daily Test Notification', NULL, NULL, 'NORMAL', 'ef46aca0-e73b-4794-8043-ffe974247cc8');
+INSERT INTO push."Notifications" VALUES ('2003cb40-b39b-4aa7-951e-26ceed6cf9b6', '<p><img alt="" src="https://cds.cern.ch/record/2751566/files/BPH-20-004_LambdaK_v1.png?subformat=icon-640" style="height:317px; width:640px" /></p>
+', NULL, '2021-03-01 17:45:01.259', NULL, NULL, 'Hello World!', NULL, NULL, 'NORMAL', '23ada92a-e7dd-4c19-90b0-a9493f95f1e4');
+INSERT INTO push."Notifications" VALUES ('07dcdb82-c56b-4396-a9fe-aa86709431fd', '<p>This time with a Image Url</p>
+', NULL, '2021-03-01 17:45:35.579', NULL, NULL, 'Hello world 2!', NULL, 'https://cds.cern.ch/record/2751566/files/BPH-20-004_LambdaK_v1.png?subformat=icon-640', 'NORMAL', '23ada92a-e7dd-4c19-90b0-a9493f95f1e4');
+INSERT INTO push."Notifications" VALUES ('9cd6ade8-dd1e-4daf-b1f6-c1dbcbd78dbc', '<p>Just for me notif low</p>
+', NULL, '2021-03-01 18:23:10.575', NULL, NULL, 'Just for me notif', NULL, NULL, 'NORMAL', 'ef46aca0-e73b-4794-8043-ffe974247cc8');
+INSERT INTO push."Notifications" VALUES ('63e4a411-df20-4d0e-becb-cef24d089ec8', '<p>testing</p>
+', NULL, '2021-03-01 18:24:28.339', NULL, NULL, 'low', NULL, NULL, 'NORMAL', 'a8b1b6db-2543-4549-b143-442735739fed');
+INSERT INTO push."Notifications" VALUES ('3bec8a7b-bcba-4cb5-9e20-c14479e51aae', '<p>ccc</p>
+', NULL, '2021-03-02 12:07:03.664', NULL, NULL, 'ddd', NULL, NULL, 'NORMAL', '00736a81-9f42-49c8-9d2c-1b8536507706');
+INSERT INTO push."Notifications" VALUES ('487019f7-449c-493f-a6e5-c6fda29df2f4', '<p><img alt="" src="https://liveoakreserveresident.files.wordpress.com/2020/07/board-meeting.png" style="height:333px; margin-left:200px; margin-right:200px; width:383px" /></p>
+
+<p>Dear members, a reminder for tomorrow&#39;s section meeting at 11:00. As usual, please fill in the highlights (activity, news, changes, incidents, etc.) for your services since the last section meeting on the Indico event page <a href="https://indico.cern.ch/e/CERN-IT-CDA-WF-2021-03-03" target="_blank">https://indico.cern.ch/e/CERN-IT-CDA-WF-2021-03-03</a> (To join the meeting: <a href="https://cern.zoom.us/j/871767646?pwd=YmR5ZTdYRFpuWEhmWVZHRXo5c1BlUT09" target="_blank">https://cern.zoom.us/j/871767646?pwd=YmR5ZTdYRFpuWEhmWVZHRXo5c1BlUT09</a> ).</p>
+', NULL, '2021-03-02 17:22:26.209', NULL, NULL, 'Section Meeting Reminder', NULL, NULL, 'NORMAL', '23ada92a-e7dd-4c19-90b0-a9493f95f1e4');
+INSERT INTO push."Notifications" VALUES ('1e1afb46-9d5d-439b-980d-dd6abae32a6b', '<p><img alt="" src="https://huntnewsnu.com/wp-content/uploads/2017/10/cartoon.png" style="height:389px; margin-left:200px; margin-right:200px; width:500px" /></p>
+
+<p>Dear all, a reminder for tomorrow&#39;s section meeting at 11:00. As usual, please fill in the highlights (activity, news, changes, incidents, etc.) for your services since the last section meeting on the Indico event page <a href="https://indico.cern.ch/e/CERN-IT-CDA-WF-2021-02-24" target="_blank">https://indico.cern.ch/e/CERN-IT-CDA-WF-2021-02-24</a> (To join the meeting: <a href="https://cern.zoom.us/j/871767646?pwd=YmR5ZTdYRFpuWEhmWVZHRXo5c1BlUT09" target="_blank">https://cern.zoom.us/j/871767646?pwd=YmR5ZTdYRFpuWEhmWVZHRXo5c1BlUT09</a> ).</p>
+', NULL, '2021-03-02 17:27:44.88', NULL, NULL, 'Section Meeting Reminder', NULL, NULL, 'NORMAL', '23ada92a-e7dd-4c19-90b0-a9493f95f1e4');
+INSERT INTO push."Notifications" VALUES ('69dbebfc-1ef3-4047-9321-45efd6f0ef9d', '', NULL, '2021-03-03 09:26:26.726', NULL, 'https://gitlab.cern.ch/', 'URL target notif', NULL, NULL, 'NORMAL', 'ac47643d-0f6e-4c33-9d96-3fa3946215a8');
+INSERT INTO push."Notifications" VALUES ('12fb8898-a420-44d3-9c51-252cfd98d747', '<p>Test</p>
+', NULL, '2021-03-04 12:36:05.268', NULL, NULL, 'Test', NULL, NULL, 'NORMAL', 'e4aa1f94-9eba-43cc-ad3e-9d9d49b03891');
+INSERT INTO push."Notifications" VALUES ('01927855-ca37-4b1d-a0bf-1009e27afde8', '', NULL, '2021-03-05 10:55:44.565', NULL, NULL, 'test', NULL, NULL, 'NORMAL', '431d3f39-2df7-4b22-b63e-ad40670a7091');
+INSERT INTO push."Notifications" VALUES ('119e8eb4-51d8-4f39-aea1-75b8e0de9558', '', NULL, '2021-03-05 10:56:13.017', NULL, NULL, 'hi', NULL, NULL, 'NORMAL', '431d3f39-2df7-4b22-b63e-ad40670a7091');
+INSERT INTO push."Notifications" VALUES ('3c421d4a-2e9a-47ba-a751-17375e0635a3', '<p>Notification Caetan</p>
+', NULL, '2021-03-08 12:34:08.263', NULL, NULL, 'Notification Caetan', NULL, NULL, 'NORMAL', 'ac47643d-0f6e-4c33-9d96-3fa3946215a8');
+INSERT INTO push."Notifications" VALUES ('84bd7a68-c61e-4198-b49e-cdcda7129518', '<p>Notification Caetan</p>
+', NULL, '2021-03-08 12:34:26.74', NULL, NULL, 'Notification Caetan', NULL, NULL, 'NORMAL', 'ac47643d-0f6e-4c33-9d96-3fa3946215a8');
+INSERT INTO push."Notifications" VALUES ('36cafe2f-7228-43ba-82b2-b01eaa2f4c98', '<p>this has a target URL</p>
+', NULL, '2021-03-08 12:35:03.477', NULL, 'https://gitlab.cern.ch', 'target URL Caetan', NULL, NULL, 'NORMAL', 'ac47643d-0f6e-4c33-9d96-3fa3946215a8');
+INSERT INTO push."Notifications" VALUES ('13254a5e-6073-473b-aae4-1c55371d6282', '<p>this is for chck if alsways is normal</p>
+', NULL, '2021-03-08 12:38:37.537', NULL, NULL, 'checking normal', NULL, NULL, 'NORMAL', 'ac47643d-0f6e-4c33-9d96-3fa3946215a8');
+INSERT INTO push."Notifications" VALUES ('cecbf3bc-f2ae-4153-a64a-383e57d897b4', '<p>this is a ow notif</p>
+', NULL, '2021-03-08 12:46:28.966', NULL, NULL, 'testin low not', NULL, NULL, 'NORMAL', 'ac47643d-0f6e-4c33-9d96-3fa3946215a8');
+INSERT INTO push."Notifications" VALUES ('16658b7d-2233-4c8d-95cf-db2a0eb5febd', '', NULL, '2021-03-08 12:53:44.119', NULL, NULL, 'test low', NULL, NULL, 'NORMAL', 'ac47643d-0f6e-4c33-9d96-3fa3946215a8');
+INSERT INTO push."Notifications" VALUES ('57345a2c-cd94-428d-896e-06c27294409d', '', NULL, '2021-03-08 12:54:34.104', NULL, NULL, 'payload test', NULL, NULL, 'NORMAL', 'ac47643d-0f6e-4c33-9d96-3fa3946215a8');
+INSERT INTO push."Notifications" VALUES ('43f80e77-2ad5-4f6d-9084-489a65d69c51', '', NULL, '2021-03-08 12:55:52.18', NULL, NULL, 'changing update', NULL, NULL, 'NORMAL', 'ac47643d-0f6e-4c33-9d96-3fa3946215a8');
+INSERT INTO push."Notifications" VALUES ('cc11e78c-de65-4bd4-a326-d1c5464ede75', '', NULL, '2021-03-08 13:06:35.277', NULL, NULL, 'check onchange', NULL, NULL, 'NORMAL', 'ac47643d-0f6e-4c33-9d96-3fa3946215a8');
+INSERT INTO push."Notifications" VALUES ('797e3172-c381-4bc5-8ccd-79e70df5209b', '', NULL, '2021-03-08 13:08:06.792', NULL, NULL, 'onchange', NULL, NULL, 'NORMAL', 'ac47643d-0f6e-4c33-9d96-3fa3946215a8');
+INSERT INTO push."Notifications" VALUES ('6c51c94a-4280-4db1-94e9-b561d76251b8', '', NULL, '2021-03-08 13:12:52.684', NULL, NULL, 'test notif', NULL, NULL, 'NORMAL', 'ac47643d-0f6e-4c33-9d96-3fa3946215a8');
+INSERT INTO push."Notifications" VALUES ('458b703a-66e5-4313-94b7-45759b12074c', '', NULL, '2021-03-08 13:13:25.68', NULL, NULL, 'cahnge type', NULL, NULL, 'NORMAL', 'ac47643d-0f6e-4c33-9d96-3fa3946215a8');
+INSERT INTO push."Notifications" VALUES ('5242181e-a919-486c-be81-3a65c2f5fa0c', '', NULL, '2021-03-08 13:13:58.456', NULL, NULL, 'test low type', NULL, NULL, 'NORMAL', 'ac47643d-0f6e-4c33-9d96-3fa3946215a8');
+INSERT INTO push."Notifications" VALUES ('e43d83be-d8a0-49d8-a7c4-6b4dc6d6c5f3', '', NULL, '2021-03-08 13:15:15.874', NULL, NULL, 'test impotant', NULL, NULL, 'NORMAL', 'ac47643d-0f6e-4c33-9d96-3fa3946215a8');
+INSERT INTO push."Notifications" VALUES ('5903a52d-a36f-442c-a702-89fb1230cf0a', '', NULL, '2021-03-08 13:16:33.306', NULL, NULL, 'test  backend changed', NULL, NULL, 'LOW', 'ac47643d-0f6e-4c33-9d96-3fa3946215a8');
+INSERT INTO push."Notifications" VALUES ('08fd038f-0ffd-4873-8367-b19d01b5737d', '', NULL, '2021-03-08 13:21:03.58', NULL, NULL, 'bancekd test', NULL, NULL, 'NORMAL', 'ac47643d-0f6e-4c33-9d96-3fa3946215a8');
+INSERT INTO push."Notifications" VALUES ('e4c23826-f1b4-4266-93ce-5105c14ea33e', '', NULL, '2021-03-08 13:22:07.701', NULL, NULL, 'tstt backedn', NULL, NULL, 'NORMAL', 'ac47643d-0f6e-4c33-9d96-3fa3946215a8');
+INSERT INTO push."Notifications" VALUES ('74a9bfaf-9a71-43ef-b404-f8f00f22aad9', '', NULL, '2021-03-08 13:22:37.986', NULL, NULL, 'test this backedn', NULL, NULL, 'NORMAL', 'ac47643d-0f6e-4c33-9d96-3fa3946215a8');
+INSERT INTO push."Notifications" VALUES ('124611a1-114c-4f95-8085-ec230be1ba72', '', NULL, '2021-03-08 14:02:12.588', NULL, NULL, '1', NULL, NULL, 'NORMAL', '54f42ef2-8dc8-4dd1-986d-18025eb74b82');
+INSERT INTO push."Notifications" VALUES ('91be5d26-013c-4646-8809-61274645ea1d', '', NULL, '2021-03-08 14:02:41.264', NULL, NULL, '1', NULL, NULL, 'NORMAL', '54f42ef2-8dc8-4dd1-986d-18025eb74b82');
+INSERT INTO push."Notifications" VALUES ('c30fff76-3d73-4038-8927-006c0d90d9ec', '<p>Testing</p>
+', NULL, '2021-03-08 14:03:40.304', NULL, NULL, 'Hello!', NULL, NULL, 'NORMAL', '9367e33e-47df-4648-825e-e6b52d73b593');
+INSERT INTO push."Notifications" VALUES ('b711722c-96b8-4690-8c4a-5dca390e856a', '', NULL, '2021-03-08 14:05:31.682', NULL, NULL, '1', NULL, NULL, 'NORMAL', '9367e33e-47df-4648-825e-e6b52d73b593');
+INSERT INTO push."Notifications" VALUES ('38bf32f0-287e-4088-989c-43c990c1f3a7', '<p>Hello</p>
+', NULL, '2021-03-08 14:07:09.36', NULL, NULL, 'Hi', NULL, NULL, 'NORMAL', '9367e33e-47df-4648-825e-e6b52d73b593');
+INSERT INTO push."Notifications" VALUES ('2d81b6d3-da44-4ecf-b6f6-a2c4f37ece1a', '', NULL, '2021-03-08 14:07:28.364', NULL, NULL, 'Hi', NULL, NULL, 'NORMAL', '9367e33e-47df-4648-825e-e6b52d73b593');
+INSERT INTO push."Notifications" VALUES ('8de4361a-1d6f-4ac0-8649-e447a3e67258', '<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
+', NULL, '2021-03-08 18:39:41.523', NULL, NULL, 'Lorem ipsum dolor sit amet', NULL, NULL, 'NORMAL', '9367e33e-47df-4648-825e-e6b52d73b593');
+INSERT INTO push."Notifications" VALUES ('02a2ea6d-80b0-4ce9-8c99-eb98a48d898a', '<ul>
+	<li>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</li>
+	<li>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</li>
+</ul>
+', NULL, '2021-03-08 18:40:05.363', NULL, NULL, 'Lorem ipsum', NULL, NULL, 'NORMAL', '9367e33e-47df-4648-825e-e6b52d73b593');
+INSERT INTO push."Notifications" VALUES ('bf8a2647-3ca8-41b1-8aae-b0167b379768', '', NULL, '2021-03-09 13:58:45.861', NULL, NULL, 'importante notif', NULL, NULL, 'IMPORTANT', 'ac47643d-0f6e-4c33-9d96-3fa3946215a8');
+INSERT INTO push."Notifications" VALUES ('5eabde63-dd34-419a-aff6-1c5fa110a865', '', NULL, '2021-03-09 13:59:14.114', NULL, NULL, 'low notif', NULL, NULL, 'LOW', 'ac47643d-0f6e-4c33-9d96-3fa3946215a8');
+INSERT INTO push."Notifications" VALUES ('10501117-4a24-4354-af1f-50d4be61dbd1', '<p>Test test 1 2 3</p>
+', NULL, '2021-03-11 14:28:17.394', NULL, NULL, 'Test', NULL, NULL, 'NORMAL', '9367e33e-47df-4648-825e-e6b52d73b593');
+INSERT INTO push."Notifications" VALUES ('efdfc68e-d6c3-487a-8374-7fef520fe11c', '<p>Testing!</p>
+', NULL, '2021-03-11 14:31:04.593', NULL, NULL, 'Test 1', NULL, NULL, 'NORMAL', '9367e33e-47df-4648-825e-e6b52d73b593');
+INSERT INTO push."Notifications" VALUES ('471a81e6-4e7e-4d12-bf77-3c7eda101214', '<p>123</p>
+', NULL, '2021-03-11 14:33:32.6', NULL, NULL, 'Test', NULL, NULL, 'NORMAL', '54f42ef2-8dc8-4dd1-986d-18025eb74b82');
+INSERT INTO push."Notifications" VALUES ('ebea768d-c3db-4f64-9438-e9650d29e0e1', '<p>when notif is created</p>
+', NULL, '2021-03-12 17:33:57.252', NULL, NULL, 'testing current redirection', NULL, NULL, 'NORMAL', 'ac47643d-0f6e-4c33-9d96-3fa3946215a8');
+INSERT INTO push."Notifications" VALUES ('711a7645-e224-40b3-bf0d-3a9734a6e919', '<p>test redirection to Notifications</p>
+', NULL, '2021-03-12 17:42:59.687', NULL, NULL, 'testing redirection', NULL, NULL, 'NORMAL', 'ac47643d-0f6e-4c33-9d96-3fa3946215a8');
+INSERT INTO push."Notifications" VALUES ('3fcfd4bc-4246-434e-a878-e01164e97f66', '<p>test</p>
+', NULL, '2021-03-12 17:44:29.805', NULL, NULL, 'test', NULL, NULL, 'NORMAL', 'ac47643d-0f6e-4c33-9d96-3fa3946215a8');
+INSERT INTO push."Notifications" VALUES ('88a71888-50f0-4bc0-8840-e1a63a43b5c2', '<p>test redirection</p>
+', NULL, '2021-03-12 17:45:03.358', NULL, NULL, 'test redirection', NULL, NULL, 'NORMAL', 'ac47643d-0f6e-4c33-9d96-3fa3946215a8');
+INSERT INTO push."Notifications" VALUES ('dc89d360-34fe-46f4-8b33-b0f541a1fa4b', '', NULL, '2021-03-12 17:51:13.78', NULL, NULL, 'testing red', NULL, NULL, 'NORMAL', 'ac47643d-0f6e-4c33-9d96-3fa3946215a8');
+INSERT INTO push."Notifications" VALUES ('b75e1e8a-e211-4f53-972b-ab0036410c85', '', NULL, '2021-03-12 17:53:05.954', NULL, NULL, 'test', NULL, NULL, 'NORMAL', 'ac47643d-0f6e-4c33-9d96-3fa3946215a8');
+INSERT INTO push."Notifications" VALUES ('83ba670b-e0fc-4c6e-8bfe-c6fb18cc4ee7', '', NULL, '2021-03-12 17:59:22.197', NULL, NULL, 'eeee', NULL, NULL, 'NORMAL', 'ac47643d-0f6e-4c33-9d96-3fa3946215a8');
+INSERT INTO push."Notifications" VALUES ('1f05fbc7-15bc-42d1-8240-a371f213a49f', '', NULL, '2021-03-12 18:00:12.575', NULL, NULL, 'hash test', NULL, NULL, 'NORMAL', 'ac47643d-0f6e-4c33-9d96-3fa3946215a8');
+INSERT INTO push."Notifications" VALUES ('ae65a2e9-ad31-40b2-9b0e-10d10bd52009', '', NULL, '2021-03-12 18:02:30.939', NULL, NULL, 'test hash', NULL, NULL, 'NORMAL', 'ac47643d-0f6e-4c33-9d96-3fa3946215a8');
+INSERT INTO push."Notifications" VALUES ('6217deee-1e0f-4688-a1c0-2fa94b93e13a', '', NULL, '2021-03-12 18:03:23.463', NULL, NULL, 'hs', NULL, NULL, 'NORMAL', 'ac47643d-0f6e-4c33-9d96-3fa3946215a8');
+INSERT INTO push."Notifications" VALUES ('b79eaf36-7202-4758-9c96-eef788055766', '', NULL, '2021-03-12 18:08:33.937', NULL, NULL, 'eee', NULL, NULL, 'NORMAL', 'ac47643d-0f6e-4c33-9d96-3fa3946215a8');
+INSERT INTO push."Notifications" VALUES ('f5df1c5f-b991-4523-8bb4-f4dcb637c3b9', '', NULL, '2021-03-12 18:09:56.17', NULL, NULL, 'dfd', NULL, NULL, 'NORMAL', 'ac47643d-0f6e-4c33-9d96-3fa3946215a8');
+INSERT INTO push."Notifications" VALUES ('eb2406e0-c4b8-4729-8c03-ab9b2569521e', '', NULL, '2021-03-12 18:11:34.026', NULL, NULL, 'rwer', NULL, NULL, 'NORMAL', 'ac47643d-0f6e-4c33-9d96-3fa3946215a8');
+INSERT INTO push."Notifications" VALUES ('26c74b24-535d-4639-9a77-65b447401700', '', NULL, '2021-03-12 18:12:21.312', NULL, NULL, 'location has', NULL, NULL, 'NORMAL', 'ac47643d-0f6e-4c33-9d96-3fa3946215a8');
+INSERT INTO push."Notifications" VALUES ('dd916adb-9ed2-49c7-8341-453a0a1b0d3e', '', NULL, '2021-03-12 18:12:55.802', NULL, NULL, 'asd', NULL, NULL, 'NORMAL', 'ac47643d-0f6e-4c33-9d96-3fa3946215a8');
+INSERT INTO push."Notifications" VALUES ('c42d5424-8017-42a1-8b69-2f5e7fc299c7', '', NULL, '2021-03-12 18:18:02.071', NULL, NULL, 'dsf', NULL, NULL, 'NORMAL', 'ac47643d-0f6e-4c33-9d96-3fa3946215a8');
+INSERT INTO push."Notifications" VALUES ('99749aa9-7405-4c0b-aa70-5c3e2a4e279b', '', NULL, '2021-03-12 18:19:48.182', NULL, NULL, 'sending', NULL, NULL, 'NORMAL', 'ac47643d-0f6e-4c33-9d96-3fa3946215a8');
+INSERT INTO push."Notifications" VALUES ('b7c82cf9-4fd5-44b6-82bd-6dc9f2a87954', '', NULL, '2021-03-12 18:21:43.817', NULL, NULL, 'tsting', NULL, NULL, 'NORMAL', 'ac47643d-0f6e-4c33-9d96-3fa3946215a8');
+INSERT INTO push."Notifications" VALUES ('1c178f2a-4482-4cdc-bede-04d0d6744d57', '', NULL, '2021-03-12 18:23:28.707', NULL, NULL, 'sdfsf', NULL, NULL, 'NORMAL', 'ac47643d-0f6e-4c33-9d96-3fa3946215a8');
+INSERT INTO push."Notifications" VALUES ('52b303ab-e172-40cc-b132-baec78768354', '', NULL, '2021-03-12 18:24:31.266', NULL, NULL, 'section', NULL, NULL, 'NORMAL', 'ac47643d-0f6e-4c33-9d96-3fa3946215a8');
+INSERT INTO push."Notifications" VALUES ('53b7a1f5-55fe-4c2b-958b-29531ae06716', '', NULL, '2021-03-12 18:25:36.174', NULL, NULL, 'eff', NULL, NULL, 'NORMAL', 'ac47643d-0f6e-4c33-9d96-3fa3946215a8');
+INSERT INTO push."Notifications" VALUES ('4d8070cf-fc1f-4ff4-b159-48caee4b43f6', '', NULL, '2021-03-12 18:27:36.829', NULL, NULL, 'setactive', NULL, NULL, 'NORMAL', 'ac47643d-0f6e-4c33-9d96-3fa3946215a8');
+INSERT INTO push."Notifications" VALUES ('07987972-7324-492a-a741-6843611e4bdf', '', NULL, '2021-03-12 18:37:58.755', NULL, NULL, 'sss', NULL, NULL, 'NORMAL', 'ac47643d-0f6e-4c33-9d96-3fa3946215a8');
+INSERT INTO push."Notifications" VALUES ('2fb0900a-d570-4592-b0e1-27559c80dd7a', '', NULL, '2021-03-12 18:48:00.23', NULL, NULL, 'ssss', NULL, NULL, 'NORMAL', 'ac47643d-0f6e-4c33-9d96-3fa3946215a8');
+INSERT INTO push."Notifications" VALUES ('d188c374-4559-4d73-a7ea-1374ecb65289', '', NULL, '2021-03-12 18:49:07.829', NULL, NULL, 'var null', NULL, NULL, 'NORMAL', 'ac47643d-0f6e-4c33-9d96-3fa3946215a8');
+INSERT INTO push."Notifications" VALUES ('a7e5ee53-a45b-40d3-a09f-d2efd5db999c', '', NULL, '2021-03-12 18:49:22.831', NULL, NULL, 'nnnn', NULL, NULL, 'NORMAL', 'ac47643d-0f6e-4c33-9d96-3fa3946215a8');
+INSERT INTO push."Notifications" VALUES ('d607e910-96c7-4fb8-80a8-0c8530677bae', '', NULL, '2021-03-12 18:49:38.281', NULL, NULL, 'another test', NULL, NULL, 'NORMAL', 'ac47643d-0f6e-4c33-9d96-3fa3946215a8');
+INSERT INTO push."Notifications" VALUES ('4ddb768c-1310-4aab-ba9c-8f584f04855a', '', NULL, '2021-03-12 19:25:49.073', NULL, NULL, 'sddsd', NULL, NULL, 'NORMAL', 'ac47643d-0f6e-4c33-9d96-3fa3946215a8');
+INSERT INTO push."Notifications" VALUES ('dd6f4afd-d3a9-4c26-afa6-b6420be778fe', '', NULL, '2021-03-12 19:37:23.975', NULL, NULL, 'no hash', NULL, NULL, 'NORMAL', 'ac47643d-0f6e-4c33-9d96-3fa3946215a8');
+INSERT INTO push."Notifications" VALUES ('86f483d4-db82-4f6c-9df6-16e37ed7cbea', '', NULL, '2021-03-12 19:39:12.144', NULL, NULL, 'no reducers', NULL, NULL, 'NORMAL', 'ac47643d-0f6e-4c33-9d96-3fa3946215a8');
+INSERT INTO push."Notifications" VALUES ('d12e114f-da62-4287-a748-a63b552a34a2', '', NULL, '2021-03-15 10:34:44.222', NULL, NULL, 'test send', NULL, NULL, 'NORMAL', 'ac47643d-0f6e-4c33-9d96-3fa3946215a8');
+INSERT INTO push."Notifications" VALUES ('db1a4e29-90de-4c9e-a7ce-349c191fc88a', '', NULL, '2021-03-15 10:34:57.986', NULL, NULL, 'test send consecutivo', NULL, NULL, 'NORMAL', 'ac47643d-0f6e-4c33-9d96-3fa3946215a8');
+INSERT INTO push."Notifications" VALUES ('08ed5bf1-2ff1-4f1b-83bf-16d88711d9df', '', NULL, '2021-03-15 10:36:31.357', NULL, NULL, 'test final', NULL, NULL, 'NORMAL', 'ac47643d-0f6e-4c33-9d96-3fa3946215a8');
+INSERT INTO push."Notifications" VALUES ('58339f4b-565b-4547-b25b-1a6ac1fac1ca', '', NULL, '2021-03-15 10:36:52.89', NULL, NULL, 'test final consecutivo', NULL, NULL, 'NORMAL', 'ac47643d-0f6e-4c33-9d96-3fa3946215a8');
+INSERT INTO push."Notifications" VALUES ('8b7efff5-af94-423d-bf1a-347aeb8c1cb3', '', NULL, '2021-03-15 10:37:01.359', NULL, NULL, 'e outro mais', NULL, NULL, 'NORMAL', 'ac47643d-0f6e-4c33-9d96-3fa3946215a8');
+INSERT INTO push."Notifications" VALUES ('23b32733-fefd-454a-abe5-4f878e22c4d0', '', NULL, '2021-03-15 10:40:39.281', NULL, NULL, 'test no id', NULL, NULL, 'NORMAL', 'ac47643d-0f6e-4c33-9d96-3fa3946215a8');
+INSERT INTO push."Notifications" VALUES ('9e181997-b149-4420-9f43-2d9cbf5ec058', '', NULL, '2021-03-15 10:40:47.75', NULL, NULL, 'no id cons', NULL, NULL, 'NORMAL', 'ac47643d-0f6e-4c33-9d96-3fa3946215a8');
+INSERT INTO push."Notifications" VALUES ('9b7107e9-6852-456d-85c7-41e7995dcbba', '', NULL, '2021-03-15 10:43:29.902', NULL, NULL, 'not null', NULL, NULL, 'NORMAL', 'ac47643d-0f6e-4c33-9d96-3fa3946215a8');
+INSERT INTO push."Notifications" VALUES ('fa7c441f-1e87-4125-b108-4bfd083428df', '', NULL, '2021-03-15 10:43:46.905', NULL, NULL, 'yes', NULL, NULL, 'NORMAL', 'ac47643d-0f6e-4c33-9d96-3fa3946215a8');
+INSERT INTO push."Notifications" VALUES ('0c2364b9-5bd1-4765-931f-aa7ae272495e', '<p>Testing</p>
+', NULL, '2021-03-18 17:55:52.296', NULL, NULL, 'Low Test', NULL, NULL, 'LOW', '54f42ef2-8dc8-4dd1-986d-18025eb74b82');
 
 
 --
 -- Data for Name: Preferences; Type: TABLE DATA; Schema: push; Owner: admin
 --
 
-INSERT INTO push."Preferences" VALUES ('f3cf5209-8678-4516-93da-c01a4f9f1f88', 'Default Daily Low', 'DAILY', 'low', NULL, NULL, 'edeebd44-29db-43f6-98d5-a3852b0fcbe7', NULL);
-INSERT INTO push."Preferences" VALUES ('4d73e456-c151-45d6-bc4c-edbc6fb77462', 'Default Normal', 'LIVE', 'important', NULL, NULL, 'edeebd44-29db-43f6-98d5-a3852b0fcbe7', NULL);
-INSERT INTO push."Preferences" VALUES ('d43886dd-d6fd-486f-969b-65a4c6f229f7', 'Default', 'LIVE', 'normal', NULL, NULL, 'edeebd44-29db-43f6-98d5-a3852b0fcbe7', NULL);
-INSERT INTO push."Preferences" VALUES ('7639f452-ea92-4049-ab9f-7f07ae9be8b7', 'Default preference', 'LIVE', 'Low,Normal,Important', NULL, NULL, 'a7fc13ae-f38c-4501-83f3-e37a35661fa1', NULL);
 INSERT INTO push."Preferences" VALUES ('e9e07557-22c5-42ee-9c50-33d8a6c17901', 'Default preference', 'LIVE', 'Low,Normal,Important', NULL, NULL, '598d151c-f850-451e-9eac-1f6a3d987a5c', NULL);
 INSERT INTO push."Preferences" VALUES ('b0b013a0-c07e-43fb-b651-2f386376ac1a', 'Default preference', 'LIVE', 'Low,Normal,Important', NULL, NULL, '60a5b86e-345e-47bc-915f-2a8af500485b', NULL);
+INSERT INTO push."Preferences" VALUES ('73765185-205b-4258-8416-783b53aaba7d', 'Default preference', 'LIVE', 'Low,Normal,Important', NULL, NULL, '0cbbcb15-e43c-4eab-b08f-99bf256ce6c0', NULL);
+INSERT INTO push."Preferences" VALUES ('d913d0c8-6771-4bc0-a1ec-2f2ed9c31a30', 'Default preference', 'LIVE', 'Low,Normal,Important', NULL, NULL, '3eacfc35-42bd-49e8-9f2c-1e552c447ff3', NULL);
+INSERT INTO push."Preferences" VALUES ('06013cb8-e6b2-47d4-a3ca-8b9120b19e44', 'Default preference', 'LIVE', 'Low,Normal,Important', NULL, NULL, 'dbf92a91-553f-4d7d-9ac5-d19ddfcf9c6e', NULL);
+INSERT INTO push."Preferences" VALUES ('630b0458-6c37-45cc-9b16-9b426e154141', 'Default preference', 'LIVE', 'Low,Normal,Important', NULL, NULL, '88733d47-5c15-4503-b5be-3ad194c137fb', NULL);
+INSERT INTO push."Preferences" VALUES ('8ca569db-aeea-458d-8163-a4fc78f2a794', 'test', 'LIVE', 'low,normal,important', NULL, NULL, 'edeebd44-29db-43f6-98d5-a3852b0fcbe7', 'ef46aca0-e73b-4794-8043-ffe974247cc8');
+INSERT INTO push."Preferences" VALUES ('e23a9f02-bcfd-4a60-9c72-ad5b609c06d8', 'lll', 'LIVE', 'low,normal,important', NULL, NULL, 'a7fc13ae-f38c-4501-83f3-e37a35661fa1', 'ac47643d-0f6e-4c33-9d96-3fa3946215a8');
+INSERT INTO push."Preferences" VALUES ('cde778fc-15fc-4569-8938-e2efafbf14ae', 'other', 'LIVE', 'low,normal,important', NULL, NULL, 'a7fc13ae-f38c-4501-83f3-e37a35661fa1', 'ac47643d-0f6e-4c33-9d96-3fa3946215a8');
+INSERT INTO push."Preferences" VALUES ('270bbfd2-15af-4435-a9f1-cc7c7599e704', 'lll', 'LIVE', 'low,normal,important', NULL, NULL, 'a7fc13ae-f38c-4501-83f3-e37a35661fa1', NULL);
+INSERT INTO push."Preferences" VALUES ('836d1c2d-7723-4e67-92d1-2c37a0456b17', 'invalid id', 'LIVE', 'low,normal,important', NULL, NULL, 'a7fc13ae-f38c-4501-83f3-e37a35661fa1', 'ac47643d-0f6e-4c33-9d96-3fa3946215a8');
+INSERT INTO push."Preferences" VALUES ('436cccf8-3f9e-4862-a40e-9b9eb9e02173', 'dsfd', 'LIVE', 'low,normal,important', NULL, NULL, 'a7fc13ae-f38c-4501-83f3-e37a35661fa1', NULL);
+INSERT INTO push."Preferences" VALUES ('7e00fd7a-7dbb-4c01-9661-22770f38c92f', 'test', 'LIVE', 'low,normal,important', NULL, NULL, 'a7fc13ae-f38c-4501-83f3-e37a35661fa1', 'ac47643d-0f6e-4c33-9d96-3fa3946215a8');
+INSERT INTO push."Preferences" VALUES ('79b8537b-d678-4792-930d-b423957c1afc', 'test', 'LIVE', 'low,normal,important', NULL, NULL, 'a7fc13ae-f38c-4501-83f3-e37a35661fa1', 'ac47643d-0f6e-4c33-9d96-3fa3946215a8');
+INSERT INTO push."Preferences" VALUES ('58d48a33-7799-46c4-a08b-84f444e90b45', 'test', 'LIVE', 'low,normal,important', NULL, NULL, 'a7fc13ae-f38c-4501-83f3-e37a35661fa1', NULL);
+INSERT INTO push."Preferences" VALUES ('6969cb2c-c663-4ee8-9763-5eebd5818747', 'ewerew', 'LIVE', 'low,normal,important', NULL, NULL, 'a7fc13ae-f38c-4501-83f3-e37a35661fa1', NULL);
+INSERT INTO push."Preferences" VALUES ('51405ba2-c7bd-4b14-9528-a9361bfa4a08', 'Default Low', 'DAILY', 'low', NULL, NULL, 'edeebd44-29db-43f6-98d5-a3852b0fcbe7', NULL);
+INSERT INTO push."Preferences" VALUES ('ccaefbf0-b42d-4e09-9cc3-771972101398', 'Default Important', 'LIVE', 'important', NULL, NULL, 'edeebd44-29db-43f6-98d5-a3852b0fcbe7', NULL);
+INSERT INTO push."Preferences" VALUES ('8f354c79-d74d-455d-8b8e-75ffbdcde81b', 'Default Normal', 'LIVE', 'normal', NULL, NULL, 'edeebd44-29db-43f6-98d5-a3852b0fcbe7', NULL);
+INSERT INTO push."Preferences" VALUES ('032cec6a-6281-43c7-8536-4d2c89af8a93', 'Public', 'LIVE', 'LOW,NORMAL,IMPORTANT', NULL, NULL, 'edeebd44-29db-43f6-98d5-a3852b0fcbe7', '9367e33e-47df-4648-825e-e6b52d73b593');
 
 
 --
@@ -1091,6 +1238,27 @@ INSERT INTO push."Preferences" VALUES ('b0b013a0-c07e-43fb-b651-2f386376ac1a', '
 -- Data for Name: UserDailyNotifications; Type: TABLE DATA; Schema: push; Owner: admin
 --
 
+INSERT INTO push."UserDailyNotifications" VALUES ('edeebd44-29db-43f6-98d5-a3852b0fcbe7', 'bd19eea4-9dca-48d9-a577-5de9d2bf374a', '2021-03-02', '13:00:00');
+INSERT INTO push."UserDailyNotifications" VALUES ('edeebd44-29db-43f6-98d5-a3852b0fcbe7', 'bd19eea4-9dca-48d9-a577-5de9d2bf374a', '2021-03-05', '13:00:00');
+INSERT INTO push."UserDailyNotifications" VALUES ('edeebd44-29db-43f6-98d5-a3852b0fcbe7', 'bd19eea4-9dca-48d9-a577-5de9d2bf374a', '2021-03-04', '17:56:00');
+INSERT INTO push."UserDailyNotifications" VALUES ('edeebd44-29db-43f6-98d5-a3852b0fcbe7', 'bd19eea4-9dca-48d9-a577-5de9d2bf374a', '2021-03-04', '17:57:00');
+INSERT INTO push."UserDailyNotifications" VALUES ('edeebd44-29db-43f6-98d5-a3852b0fcbe7', 'bd19eea4-9dca-48d9-a577-5de9d2bf374a', '2021-03-04', '17:58:00');
+INSERT INTO push."UserDailyNotifications" VALUES ('edeebd44-29db-43f6-98d5-a3852b0fcbe7', 'bd19eea4-9dca-48d9-a577-5de9d2bf374a', '2021-03-04', '17:33:00');
+INSERT INTO push."UserDailyNotifications" VALUES ('edeebd44-29db-43f6-98d5-a3852b0fcbe7', 'bd19eea4-9dca-48d9-a577-5de9d2bf374a', '2021-03-04', '19:08:00');
+INSERT INTO push."UserDailyNotifications" VALUES ('edeebd44-29db-43f6-98d5-a3852b0fcbe7', 'bd19eea4-9dca-48d9-a577-5de9d2bf374a', '2021-03-04', '19:10:00');
+INSERT INTO push."UserDailyNotifications" VALUES ('edeebd44-29db-43f6-98d5-a3852b0fcbe7', 'bd19eea4-9dca-48d9-a577-5de9d2bf374a', '2021-03-05', '16:38:00');
+INSERT INTO push."UserDailyNotifications" VALUES ('edeebd44-29db-43f6-98d5-a3852b0fcbe7', 'bd19eea4-9dca-48d9-a577-5de9d2bf374a', '2021-03-05', '16:53:00');
+INSERT INTO push."UserDailyNotifications" VALUES ('edeebd44-29db-43f6-98d5-a3852b0fcbe7', 'bd19eea4-9dca-48d9-a577-5de9d2bf374a', '2021-03-05', '11:11:00');
+INSERT INTO push."UserDailyNotifications" VALUES ('edeebd44-29db-43f6-98d5-a3852b0fcbe7', 'bd19eea4-9dca-48d9-a577-5de9d2bf374a', '2021-03-05', '11:15:00');
+INSERT INTO push."UserDailyNotifications" VALUES ('edeebd44-29db-43f6-98d5-a3852b0fcbe7', 'bd19eea4-9dca-48d9-a577-5de9d2bf374a', '2021-03-05', '11:29:00');
+INSERT INTO push."UserDailyNotifications" VALUES ('edeebd44-29db-43f6-98d5-a3852b0fcbe7', 'bd19eea4-9dca-48d9-a577-5de9d2bf374a', '2021-03-05', '07:22:00');
+INSERT INTO push."UserDailyNotifications" VALUES ('edeebd44-29db-43f6-98d5-a3852b0fcbe7', 'bd19eea4-9dca-48d9-a577-5de9d2bf374a', '2021-03-06', '07:22:00');
+INSERT INTO push."UserDailyNotifications" VALUES ('edeebd44-29db-43f6-98d5-a3852b0fcbe7', 'bd19eea4-9dca-48d9-a577-5de9d2bf374a', '2021-03-06', '07:26:00');
+INSERT INTO push."UserDailyNotifications" VALUES ('edeebd44-29db-43f6-98d5-a3852b0fcbe7', 'bd19eea4-9dca-48d9-a577-5de9d2bf374a', '2021-03-06', '00:00:00');
+INSERT INTO push."UserDailyNotifications" VALUES ('edeebd44-29db-43f6-98d5-a3852b0fcbe7', 'bd19eea4-9dca-48d9-a577-5de9d2bf374a', '2021-03-06', '00:01:00');
+INSERT INTO push."UserDailyNotifications" VALUES ('edeebd44-29db-43f6-98d5-a3852b0fcbe7', 'bd19eea4-9dca-48d9-a577-5de9d2bf374a', '2021-03-06', '00:02:00');
+INSERT INTO push."UserDailyNotifications" VALUES ('edeebd44-29db-43f6-98d5-a3852b0fcbe7', 'bd19eea4-9dca-48d9-a577-5de9d2bf374a', '2021-03-05', '17:13:00');
+INSERT INTO push."UserDailyNotifications" VALUES ('edeebd44-29db-43f6-98d5-a3852b0fcbe7', '0c2364b9-5bd1-4765-931f-aa7ae272495e', '2021-03-19', '09:00:00');
 
 
 --
@@ -1103,10 +1271,15 @@ INSERT INTO push."Preferences" VALUES ('b0b013a0-c07e-43fb-b651-2f386376ac1a', '
 -- Data for Name: Users; Type: TABLE DATA; Schema: push; Owner: admin
 --
 
-INSERT INTO push."Users" VALUES ('edeebd44-29db-43f6-98d5-a3852b0fcbe7', 'crdeoliv', 'carina.oliveira.antunes@cern.ch', true);
-INSERT INTO push."Users" VALUES ('a7fc13ae-f38c-4501-83f3-e37a35661fa1', 'ctojeiro', 'caetan.tojeiro.carpente@cern.ch', true);
-INSERT INTO push."Users" VALUES ('598d151c-f850-451e-9eac-1f6a3d987a5c', 'ijakovlj', 'igor.jakovljevic@cern.ch', true);
-INSERT INTO push."Users" VALUES ('60a5b86e-345e-47bc-915f-2a8af500485b', 'ormancey', 'emmanuel.ormancey@cern.ch', true);
+INSERT INTO push."Users" VALUES ('598d151c-f850-451e-9eac-1f6a3d987a5c', 'ijakovlj', 'igor.jakovljevic@cern.ch', true, '2021-03-18 18:16:17.255977+01', NULL);
+INSERT INTO push."Users" VALUES ('60a5b86e-345e-47bc-915f-2a8af500485b', 'ormancey', 'emmanuel.ormancey@cern.ch', true, '2021-03-18 18:16:17.255977+01', NULL);
+INSERT INTO push."Users" VALUES ('0cbbcb15-e43c-4eab-b08f-99bf256ce6c0', 'eduardoa', 'eduardo.alvarez.fernandez@cern.ch', true, '2021-03-18 18:16:17.255977+01', NULL);
+INSERT INTO push."Users" VALUES ('3eacfc35-42bd-49e8-9f2c-1e552c447ff3', 'admalva', 'admalva@cern.ch', true, '2021-03-18 18:16:17.255977+01', NULL);
+INSERT INTO push."Users" VALUES ('3855058d-a287-4cf8-974e-502fc568af78', 'dchatzic', 'dimitra.chatzichrysou@cern.ch', true, '2021-03-18 18:16:17.255977+01', NULL);
+INSERT INTO push."Users" VALUES ('dbf92a91-553f-4d7d-9ac5-d19ddfcf9c6e', 'admca', 'admca@cern.ch', true, '2021-03-18 18:16:17.255977+01', NULL);
+INSERT INTO push."Users" VALUES ('88733d47-5c15-4503-b5be-3ad194c137fb', 'test', 'sjdfnksjfjksdf.fsdfsdfsd@cern.ch', true, '2021-03-18 18:16:17.255977+01', NULL);
+INSERT INTO push."Users" VALUES ('a7fc13ae-f38c-4501-83f3-e37a35661fa1', 'ctojeiro', 'caetan.tojeiro.carpente@cern.ch', true, '2021-03-18 18:16:17.255977+01', '2021-03-19 09:43:03.712+01');
+INSERT INTO push."Users" VALUES ('edeebd44-29db-43f6-98d5-a3852b0fcbe7', 'crdeoliv', 'carina.oliveira.antunes@cern.ch', true, '2021-03-18 18:16:17.255977+01', '2021-03-19 09:47:34.028+01');
 
 
 --
@@ -1115,6 +1288,8 @@ INSERT INTO push."Users" VALUES ('60a5b86e-345e-47bc-915f-2a8af500485b', 'ormanc
 
 INSERT INTO push.channels_groups__groups VALUES ('a8b1b6db-2543-4549-b143-442735739fed', '186d8dfc-2774-43a8-91b5-a887fcb6ba4a');
 INSERT INTO push.channels_groups__groups VALUES ('a8b1b6db-2543-4549-b143-442735739fed', '08d82a52-7972-4fed-8135-bf603f002247');
+INSERT INTO push.channels_groups__groups VALUES ('c3ccc15b-298f-4dc7-877f-2c8970331caf', '186d8dfc-2774-43a8-91b5-a887fcb6ba4a');
+INSERT INTO push.channels_groups__groups VALUES ('ef46aca0-e73b-4794-8043-ffe974247cc8', '186d8dfc-2774-43a8-91b5-a887fcb6ba4a');
 
 
 --
@@ -1126,24 +1301,57 @@ INSERT INTO push.channels_members__users VALUES ('9367e33e-47df-4648-825e-e6b52d
 INSERT INTO push.channels_members__users VALUES ('e4aa1f94-9eba-43cc-ad3e-9d9d49b03891', '598d151c-f850-451e-9eac-1f6a3d987a5c');
 INSERT INTO push.channels_members__users VALUES ('ef46aca0-e73b-4794-8043-ffe974247cc8', 'edeebd44-29db-43f6-98d5-a3852b0fcbe7');
 INSERT INTO push.channels_members__users VALUES ('fbd18055-a847-40b9-9a98-d9f400ebd08b', 'edeebd44-29db-43f6-98d5-a3852b0fcbe7');
+INSERT INTO push.channels_members__users VALUES ('23ada92a-e7dd-4c19-90b0-a9493f95f1e4', '0cbbcb15-e43c-4eab-b08f-99bf256ce6c0');
+INSERT INTO push.channels_members__users VALUES ('533788d4-2fb2-48bf-854b-60d0fd814406', '0cbbcb15-e43c-4eab-b08f-99bf256ce6c0');
+INSERT INTO push.channels_members__users VALUES ('a155ee5a-fcc4-4b0c-8cf7-e1ad11a78fce', '0cbbcb15-e43c-4eab-b08f-99bf256ce6c0');
+INSERT INTO push.channels_members__users VALUES ('c3ccc15b-298f-4dc7-877f-2c8970331caf', '3eacfc35-42bd-49e8-9f2c-1e552c447ff3');
+INSERT INTO push.channels_members__users VALUES ('ef46aca0-e73b-4794-8043-ffe974247cc8', '88733d47-5c15-4503-b5be-3ad194c137fb');
+INSERT INTO push.channels_members__users VALUES ('ef46aca0-e73b-4794-8043-ffe974247cc8', 'dbf92a91-553f-4d7d-9ac5-d19ddfcf9c6e');
+INSERT INTO push.channels_members__users VALUES ('431d3f39-2df7-4b22-b63e-ad40670a7091', '88733d47-5c15-4503-b5be-3ad194c137fb');
+INSERT INTO push.channels_members__users VALUES ('54f42ef2-8dc8-4dd1-986d-18025eb74b82', 'edeebd44-29db-43f6-98d5-a3852b0fcbe7');
+INSERT INTO push.channels_members__users VALUES ('44a197e8-2fdc-4a7f-a9a5-4d02c050ebf1', 'a7fc13ae-f38c-4501-83f3-e37a35661fa1');
+INSERT INTO push.channels_members__users VALUES ('a8b1b6db-2543-4549-b143-442735739fed', 'a7fc13ae-f38c-4501-83f3-e37a35661fa1');
+INSERT INTO push.channels_members__users VALUES ('ac47643d-0f6e-4c33-9d96-3fa3946215a8', 'a7fc13ae-f38c-4501-83f3-e37a35661fa1');
+INSERT INTO push.channels_members__users VALUES ('a155ee5a-fcc4-4b0c-8cf7-e1ad11a78fce', 'a7fc13ae-f38c-4501-83f3-e37a35661fa1');
 
 
 --
 -- Data for Name: channels_unsubscribed__users; Type: TABLE DATA; Schema: push; Owner: admin
 --
 
+INSERT INTO push.channels_unsubscribed__users VALUES ('c3ccc15b-298f-4dc7-877f-2c8970331caf', '0cbbcb15-e43c-4eab-b08f-99bf256ce6c0');
+INSERT INTO push.channels_unsubscribed__users VALUES ('ef46aca0-e73b-4794-8043-ffe974247cc8', 'dbf92a91-553f-4d7d-9ac5-d19ddfcf9c6e');
+INSERT INTO push.channels_unsubscribed__users VALUES ('ef46aca0-e73b-4794-8043-ffe974247cc8', '88733d47-5c15-4503-b5be-3ad194c137fb');
+INSERT INTO push.channels_unsubscribed__users VALUES ('a8b1b6db-2543-4549-b143-442735739fed', 'edeebd44-29db-43f6-98d5-a3852b0fcbe7');
+INSERT INTO push.channels_unsubscribed__users VALUES ('431d3f39-2df7-4b22-b63e-ad40670a7091', 'edeebd44-29db-43f6-98d5-a3852b0fcbe7');
+INSERT INTO push.channels_unsubscribed__users VALUES ('54f42ef2-8dc8-4dd1-986d-18025eb74b82', '88733d47-5c15-4503-b5be-3ad194c137fb');
 
 
 --
 -- Data for Name: preferences_devices__devices; Type: TABLE DATA; Schema: push; Owner: admin
 --
 
-INSERT INTO push.preferences_devices__devices VALUES ('f3cf5209-8678-4516-93da-c01a4f9f1f88', 'd4e15d11-a56e-4568-9e9f-497110426a72');
-INSERT INTO push.preferences_devices__devices VALUES ('4d73e456-c151-45d6-bc4c-edbc6fb77462', 'd4e15d11-a56e-4568-9e9f-497110426a72');
-INSERT INTO push.preferences_devices__devices VALUES ('d43886dd-d6fd-486f-969b-65a4c6f229f7', 'd4e15d11-a56e-4568-9e9f-497110426a72');
-INSERT INTO push.preferences_devices__devices VALUES ('7639f452-ea92-4049-ab9f-7f07ae9be8b7', 'c14467fd-acd5-446a-b2e8-31f4eb601a37');
 INSERT INTO push.preferences_devices__devices VALUES ('e9e07557-22c5-42ee-9c50-33d8a6c17901', '5b2d3c49-e4dc-4827-ae75-0ab48e1b5ac6');
 INSERT INTO push.preferences_devices__devices VALUES ('b0b013a0-c07e-43fb-b651-2f386376ac1a', 'fa69dcc7-8c71-41af-9886-8993c124c8de');
+INSERT INTO push.preferences_devices__devices VALUES ('73765185-205b-4258-8416-783b53aaba7d', '26d0fb3e-5d1c-4a19-a624-c1893dcd9a10');
+INSERT INTO push.preferences_devices__devices VALUES ('06013cb8-e6b2-47d4-a3ca-8b9120b19e44', '0f2958d8-c386-4b32-a9b3-669caf3cd296');
+INSERT INTO push.preferences_devices__devices VALUES ('630b0458-6c37-45cc-9b16-9b426e154141', '8d515b7f-5f2c-4d1c-8c31-592d1c795fc9');
+INSERT INTO push.preferences_devices__devices VALUES ('8ca569db-aeea-458d-8163-a4fc78f2a794', 'd4e15d11-a56e-4568-9e9f-497110426a72');
+INSERT INTO push.preferences_devices__devices VALUES ('e23a9f02-bcfd-4a60-9c72-ad5b609c06d8', 'c14467fd-acd5-446a-b2e8-31f4eb601a37');
+INSERT INTO push.preferences_devices__devices VALUES ('cde778fc-15fc-4569-8938-e2efafbf14ae', 'c14467fd-acd5-446a-b2e8-31f4eb601a37');
+INSERT INTO push.preferences_devices__devices VALUES ('270bbfd2-15af-4435-a9f1-cc7c7599e704', 'c14467fd-acd5-446a-b2e8-31f4eb601a37');
+INSERT INTO push.preferences_devices__devices VALUES ('836d1c2d-7723-4e67-92d1-2c37a0456b17', 'c14467fd-acd5-446a-b2e8-31f4eb601a37');
+INSERT INTO push.preferences_devices__devices VALUES ('436cccf8-3f9e-4862-a40e-9b9eb9e02173', 'c14467fd-acd5-446a-b2e8-31f4eb601a37');
+INSERT INTO push.preferences_devices__devices VALUES ('7e00fd7a-7dbb-4c01-9661-22770f38c92f', 'c14467fd-acd5-446a-b2e8-31f4eb601a37');
+INSERT INTO push.preferences_devices__devices VALUES ('79b8537b-d678-4792-930d-b423957c1afc', 'c14467fd-acd5-446a-b2e8-31f4eb601a37');
+INSERT INTO push.preferences_devices__devices VALUES ('58d48a33-7799-46c4-a08b-84f444e90b45', 'c14467fd-acd5-446a-b2e8-31f4eb601a37');
+INSERT INTO push.preferences_devices__devices VALUES ('6969cb2c-c663-4ee8-9763-5eebd5818747', 'c14467fd-acd5-446a-b2e8-31f4eb601a37');
+INSERT INTO push.preferences_devices__devices VALUES ('51405ba2-c7bd-4b14-9528-a9361bfa4a08', 'd4e15d11-a56e-4568-9e9f-497110426a72');
+INSERT INTO push.preferences_devices__devices VALUES ('ccaefbf0-b42d-4e09-9cc3-771972101398', 'd4e15d11-a56e-4568-9e9f-497110426a72');
+INSERT INTO push.preferences_devices__devices VALUES ('ccaefbf0-b42d-4e09-9cc3-771972101398', '11ce2a6c-418d-48c5-bb10-537bf99164a1');
+INSERT INTO push.preferences_devices__devices VALUES ('8f354c79-d74d-455d-8b8e-75ffbdcde81b', 'd4e15d11-a56e-4568-9e9f-497110426a72');
+INSERT INTO push.preferences_devices__devices VALUES ('032cec6a-6281-43c7-8536-4d2c89af8a93', 'd4e15d11-a56e-4568-9e9f-497110426a72');
+INSERT INTO push.preferences_devices__devices VALUES ('032cec6a-6281-43c7-8536-4d2c89af8a93', '11ce2a6c-418d-48c5-bb10-537bf99164a1');
 
 
 --
-- 
GitLab