feat: add notification UI

showPopup was also refactored to be better
This commit is contained in:
Jordan Knott
2020-08-12 20:54:14 -05:00
parent feea209507
commit 0caa803d27
34 changed files with 2516 additions and 104 deletions

View File

@ -0,0 +1,15 @@
CREATE TABLE notification_object (
notification_object_id uuid PRIMARY KEY DEFAULT uuid_generate_v4(),
entity_id uuid NOT NULL,
action_type int NOT NULL,
actor_id uuid NOT NULL,
entity_type int NOT NULL,
created_on timestamptz NOT NULL
);
CREATE TABLE notification (
notification_id uuid PRIMARY KEY DEFAULT uuid_generate_v4(),
notification_object_id uuid REFERENCES notification_object(notification_object_id) ON DELETE CASCADE,
notifier_id uuid NOT NULL REFERENCES user_account(user_id) ON DELETE CASCADE,
read boolean NOT NULL DEFAULT false
);