summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-11-20 15:55:06 -0500
committerEvan Prodromou <evan@prodromou.name>2008-11-20 15:55:06 -0500
commit8a0c438aedebaa0282e4f23c83dbe0d7d2635f33 (patch)
tree9d3c870e22f732b2e69bdf28733570dff978de72 /db
parent3b4db8f5e1b10c6b8bd09916490843bfd1d7455c (diff)
add profile tags to DB
darcs-hash:20081120205506-84dde-e9aa0a70d3529f91909dbe29f03a46b40ef18fff.gz
Diffstat (limited to 'db')
-rw-r--r--db/laconica.sql12
1 files changed, 12 insertions, 0 deletions
diff --git a/db/laconica.sql b/db/laconica.sql
index 4f4c37bd6..3417ef254 100644
--- a/db/laconica.sql
+++ b/db/laconica.sql
@@ -345,3 +345,15 @@ create table notice_inbox (
constraint primary key (user_id, notice_id),
index notice_inbox_notice_id_idx (notice_id)
) ENGINE=InnoDB CHARACTER SET utf8 COLLATE utf8_bin;
+
+create table profile_tag (
+ tagger integer not null comment 'user making the tag' references user (id),
+ tagged integer not null comment 'profile tagged' references profile (id),
+ tag varchar(64) not null comment 'hash tag associated with this notice',
+ modified timestamp comment 'date the tag was added',
+
+ constraint primary key (tagger, tagged, tag),
+ index profile_tag_modified_idx (modified),
+ index profile_tag_tagger_tag_idx (tagger, tag)
+) ENGINE=InnoDB CHARACTER SET utf8 COLLATE utf8_bin;
+