refactor: redesign notification table design

This commit is contained in:
Jordan Knott
2021-10-26 21:29:49 -05:00
parent d5d85c5e30
commit 54553cfbdd
8 changed files with 153 additions and 274 deletions

View File

@ -3,8 +3,8 @@ DROP TABLE notification CASCADE;
CREATE TABLE notification (
notification_id uuid PRIMARY KEY DEFAULT uuid_generate_v4(),
actor_id uuid,
action_type int NOT NULL,
caused_by uuid NOT NULL,
action_type text NOT NULL,
data jsonb,
created_on timestamptz NOT NULL
);