]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - db/stoica.sql
use notice URIs in RSS feeds
[quix0rs-gnu-social.git] / db / stoica.sql
index 1f2b28d95bbbb81f2412c190151df19609c81ff2..e9aa1f998e0c1eca91472e33e03ddc7f6f346f83 100644 (file)
@@ -22,9 +22,11 @@ create table avatar (
     mediatype varchar(32) not null comment 'file type',
     filename varchar(255) null comment 'local filename, if local',
     url varchar(255) unique key comment 'avatar location',
+    created datetime not null comment 'date this record was created',
+    modified timestamp comment 'date this record was modified',
     
     constraint primary key (profile_id, width, height),
-    index avatar_profile_id_idx (profile_id),
+    index avatar_profile_id_idx (profile_id)
 );
 
 /* local users */
@@ -34,6 +36,7 @@ create table user (
     nickname varchar(64) unique key comment 'nickname or username, duped in profile',
     password varchar(255) comment 'salted password, can be null for OpenID users',
     email varchar(255) unique key comment 'email address for password recovery etc.',
+    uri varchar(255) unique key comment 'universally unique identifier, usually a tag URI',
     created datetime not null comment 'date this record was created',
     modified timestamp comment 'date this record was modified'
 );
@@ -42,7 +45,9 @@ create table user (
 
 create table remote_profile (
     id integer primary key comment 'foreign key to profile table' references profile (id),
-    url varchar(255) unique key comment 'URL we use for updates from this profile (distinct from "home page" url)',
+    uri varchar(255) unique key comment 'universally unique identifier, usually a tag URI',
+    postnoticeurl varchar(255) comment 'URL we use for posting notices',
+    updateprofileurl varchar(255) comment 'URL we use for updates to this profile',
     created datetime not null comment 'date this record was created',
     modified timestamp comment 'date this record was modified'
 );
@@ -62,6 +67,7 @@ create table subscription (
 create table notice (
     id integer auto_increment primary key comment 'unique identifier',
     profile_id integer not null comment 'who made the update' references profile (id),
+    uri varchar(255) unique key comment 'universally unique identifier, usually a tag URI',
     content varchar(140) comment 'update content',
     /* XXX: cache rendered content. */
     url varchar(255) comment 'URL of any attachment (image, video, bookmark, whatever)',