\r
create table invitation (\r
code varchar(32) not null primary key /* comment 'random code for an invitation' */,\r
- user_id int not null /* comment 'who sent the invitation' */ references user (id),\r
+ user_id int not null /* comment 'who sent the invitation' */ references "user" (id),\r
address varchar(255) not null /* comment 'invitation sent to' */,\r
address_type varchar(8) not null /* comment 'address type ("email", "jabber", "sms") '*/,\r
created timestamp not null /* comment 'date this record was created' */\r
create table message (\r
\r
id serial primary key /* comment 'unique identifier' */,\r
- uri varchar(255) unique key /* comment 'universally unique identifier' */,\r
+ uri varchar(255) unique /* comment 'universally unique identifier' */,\r
from_profile integer not null /* comment 'who the message is from' */ references profile (id),\r
to_profile integer not null /* comment 'who the message is to' */ references profile (id),\r
content varchar(140) /* comment 'message content' */,\r