]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - db/laconica.sql
fancier urls for tagged subscriptions/subscribers
[quix0rs-gnu-social.git] / db / laconica.sql
index 4f4c37bd6a3443308050c8adb9682d3af48b4d79..3417ef254d2a5f27e52f8e2c74ad28614428bfd7 100644 (file)
@@ -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;
+