Created
June 17, 2014 13:36
-
-
Save SleimanJneidi/77515664b0139d515401 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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