'subscribe_policy' => array('type' => 'int', 'size' => 'tiny', 'default' => 0, 'description' => '0 = anybody can subscribe; 1 = require approval'),
'urlshorteningservice' => array('type' => 'varchar', 'length' => 50, 'default' => 'internal', 'description' => 'service to use for auto-shortening URLs'),
'inboxed' => array('type' => 'int', 'size' => 'tiny', 'default' => 0, 'description' => 'has an inbox been created for this user?'),
- 'design_id' => array('type' => 'int', 'description' => 'id of a design'),
- 'viewdesigns' => array('type' => 'int', 'size' => 'tiny', 'default' => 1, 'description' => 'whether to view user-provided designs'),
'private_stream' => array('type' => 'int', 'size' => 'tiny', 'default' => 0, 'description' => 'whether to limit all notices to followers only'),
'created' => array('type' => 'datetime', 'not null' => true, 'description' => 'date this record was created'),
'foreign keys' => array(
'user_id_fkey' => array('profile', array('id' => 'id')),
'user_carrier_fkey' => array('sms_carrier', array('carrier' => 'id')),
- 'user_design_id_fkey' => array('design', array('design_id' => 'id')),
),
'indexes' => array(
'user_smsemail_idx' => array('smsemail'),
'address' => array('type' => 'varchar', 'length' => 255, 'not null' => true, 'description' => 'invitation sent to'),
'address_type' => array('type' => 'varchar', 'length' => 8, 'not null' => true, 'description' => 'address type ("email", "xmpp", "sms")'),
'created' => array('type' => 'datetime', 'not null' => true, 'description' => 'date this record was created'),
- 'registered_user_id' => array('type' => 'int', 'not null' => true, 'description' => 'if the invitation is converted, who the new user is'),
+ 'registered_user_id' => array('type' => 'int', 'not null' => false, 'description' => 'if the invitation is converted, who the new user is'),
),
'primary key' => array('code'),
'foreign keys' => array(
'homepage_logo' => array('type' => 'varchar', 'length' => 255, 'description' => 'homepage (profile) size logo'),
'stream_logo' => array('type' => 'varchar', 'length' => 255, 'description' => 'stream-sized logo'),
'mini_logo' => array('type' => 'varchar', 'length' => 255, 'description' => 'mini logo'),
- 'design_id' => array('type' => 'int', 'description' => 'id of a design'),
'created' => array('type' => 'datetime', 'not null' => true, 'description' => 'date this record was created'),
'modified' => array('type' => 'timestamp', 'not null' => true, 'description' => 'date this record was modified'),
'unique keys' => array(
'user_group_uri_key' => array('uri'),
),
- 'foreign keys' => array(
- 'user_group_design_id_fkey' => array('design', array('design_id' => 'id')),
- ),
'indexes' => array(
'user_group_nickname_idx' => array('nickname'),
),
),
);
-$schema['design'] = array(
- 'fields' => array(
- 'id' => array('type' => 'serial', 'not null' => true, 'description' => 'design ID'),
- 'backgroundcolor' => array('type' => 'int', 'description' => 'main background color'),
- 'contentcolor' => array('type' => 'int', 'description' => 'content area background color'),
- 'sidebarcolor' => array('type' => 'int', 'description' => 'sidebar background color'),
- 'textcolor' => array('type' => 'int', 'description' => 'text color'),
- 'linkcolor' => array('type' => 'int', 'description' => 'link color'),
- 'backgroundimage' => array('type' => 'varchar', 'length' => 255, 'description' => 'background image, if any'),
- 'disposition' => array('type' => 'int', 'size' => 'tiny', 'default' => 1, 'description' => 'bit 1 = hide background image, bit 2 = display background image, bit 4 = tile background image'),
- ),
- 'primary key' => array('id'),
-);
-
$schema['group_block'] = array(
'fields' => array(
'group_id' => array('type' => 'int', 'not null' => true, 'description' => 'group profile is blocked from'),
$schema['group_join_queue'] = Group_join_queue::schemaDef();
$schema['subscription_queue'] = Subscription_queue::schemaDef();
+
+$schema['oauth_token_association'] = Oauth_token_association::schemaDef();