summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorsostler <sbostler@gmail.com>2009-12-18 21:56:51 -0500
committersostler <sbostler@gmail.com>2009-12-18 21:56:51 -0500
commit704efb06cd424de7411f198bc4c6ce6b99a9dcbe (patch)
tree076c19e5c97264948f4d94f32b6869c5dd396f60 /db
parent5a8312ca25868679df1acb3b3fc208482460ee0e (diff)
Checkin before leaving
Diffstat (limited to 'db')
-rwxr-xr-xdb/0-create.psql4
1 files changed, 3 insertions, 1 deletions
diff --git a/db/0-create.psql b/db/0-create.psql
index 35278c7..5bd8622 100755
--- a/db/0-create.psql
+++ b/db/0-create.psql
@@ -4,6 +4,7 @@ CREATE TABLE users (
hash text NOT NULL,
email text NOT NULL,
created_on timestamp NOT NULL DEFAULT now(),
+ avatar text,
contact text,
bio text
);
@@ -19,7 +20,8 @@ CREATE TABLE messages (
user_id integer NOT NULL REFERENCES users,
room_id integer NOT NULL REFERENCES rooms,
content text NOT NULL,
- created_on timestamp NOT NULL DEFAULT now()
+ created_on timestamp NOT NULL DEFAULT now(),
+ is_image bool
);
CREATE TABLE user_session (