Skip to content

Instantly share code, notes, and snippets.

@SleimanJneidi
Created June 17, 2014 13:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SleimanJneidi/77515664b0139d515401 to your computer and use it in GitHub Desktop.
Save SleimanJneidi/77515664b0139d515401 to your computer and use it in GitHub Desktop.
CREATE SEQUENCE notification_id_seq;
CREATE TABLE notification
(
id integer NOT NULL DEFAULT nextval('notification_id_seq'::regclass),
channels text[],
message json,
createdts timestamp without time zone,
user_id integer,
isread boolean DEFAULT false,
CONSTRAINT notification_pkey PRIMARY KEY (id)
);
CREATE INDEX user_id
ON notification
USING btree
(user_id);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment