summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordumpfmprod <dumpfmprod@ubuntu.(none)>2010-04-11 15:21:30 -0400
committerdumpfmprod <dumpfmprod@ubuntu.(none)>2010-04-11 15:21:30 -0400
commitde9fa0540ba222f410e85ed9dfa0a932e9b5a0ea (patch)
treeaa239c6e4b12399fe2c36808a74071f6c51ad15a
parentd301fdd6af6b672427622f8a367c4c324c98244d (diff)
parent8011da4e04a44d6245f7f5e1750c0c627b41e182 (diff)
Merge branch 'master' of /pichat/repo
-rw-r--r--db/0-create.psql13
1 files changed, 0 insertions, 13 deletions
diff --git a/db/0-create.psql b/db/0-create.psql
index 3ab384c..e0c5443 100644
--- a/db/0-create.psql
+++ b/db/0-create.psql
@@ -37,19 +37,6 @@ CREATE INDEX messages_created_on_idx ON messages (created_on);
CREATE INDEX messages_is_image_idx ON messages (is_image);
-- Queries to support:
--- 1) What are my favorite images? (By room, time, or author)
--- 2) Who favorited me? (By user, image, or time)
--- 3) What are the most favorited images? (By room, time, or author)
-CREATE TABLE favorites (
- favorite_id SERIAL PRIMARY KEY,
- src_user_id integer NOT NULL REFERENCES users,
- message_id integer NOT NULL REFERENCES messages,
- created_on timestamp NOT NULL DEFAULT now()
-);
-CREATE INDEX src_user_id_idx ON favorites (src_user_id);
-CREATE INDEX favorites_created_on_idx on favorites (created_on);
-
--- Queries to support:
-- 1) What messages are tagged x? (ordered by time, popularity)
-- 2) What did I tag x?
-- 3) Which of my things are tagged x?