summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-05-22 14:34:21 -0400
committerEvan Prodromou <evan@prodromou.name>2008-05-22 14:34:21 -0400
commiteecd611f678febabe1d62d5cf9b0bc152caf7596 (patch)
tree72c75722a2ceb82ba6418187ad90353dc4121542 /db
parent41f013578024a1ce558bde4030a0171e2895ed09 (diff)
tags and XRDS
Starting the process of remote subscriptions. First, add the capacity to mint tags. May in the future want to allow some kind of UUID or URL for unique URIs. New config options for tag authority and date, and a function for minting tags. Store URIs in the DB. If the admin changes his/her tag config, this shouldn't change the URIs in the DB. Unless they really want to make that happen. Generate an XRDS document with the appropriate URLs for microblogging. Also, redefined some stuff in openmicroblogging.txt. And moved the file. darcs-hash:20080522183421-84dde-fe46f32e4050f2c4b6c850334103007ed7feabf7.gz
Diffstat (limited to 'db')
-rw-r--r--db/stoica.sql6
1 files changed, 5 insertions, 1 deletions
diff --git a/db/stoica.sql b/db/stoica.sql
index 6f43cd221..e9aa1f998 100644
--- a/db/stoica.sql
+++ b/db/stoica.sql
@@ -36,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'
);
@@ -44,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'
);
@@ -64,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)',