add profile block data object

darcs-hash:20081203222619-5ed1f-b313092893c67a3ec1dc92a79aa7fed4ab583729.gz
This commit is contained in:
Evan Prodromou 2008-12-03 17:26:19 -05:00
parent 2670324ca8
commit cb93e214f8
3 changed files with 40 additions and 0 deletions

22
classes/Profile_block.php Normal file
View File

@ -0,0 +1,22 @@
<?php
/**
* Table Definition for profile_block
*/
require_once 'classes/Memcached_DataObject';
class Profile_block extends Memcached_DataObject
{
###START_AUTOCODE
/* the code below is auto generated do not remove the above tag */
public $__table = 'profile_block'; // table name
public $blocker; // int(4) primary_key not_null
public $blocked; // int(4) primary_key not_null
public $modified; // timestamp() not_null default_CURRENT_TIMESTAMP
/* Static get */
function staticGet($k,$v=NULL) { return Memcached_DataObject::staticGet('Profile_block',$k,$v); }
/* the code above is auto generated do not remove the tag below */
###END_AUTOCODE
}

View File

@ -195,6 +195,15 @@ modified = 384
[profile__keys] [profile__keys]
id = N id = N
[profile_block]
blocker = 129
blocked = 129
modified = 384
[profile_block__keys]
blocker = K
blocked = K
[profile_tag] [profile_tag]
tagger = 129 tagger = 129
tagged = 129 tagged = 129

View File

@ -357,3 +357,12 @@ create table profile_tag (
index profile_tag_tagger_tag_idx (tagger, tag) index profile_tag_tagger_tag_idx (tagger, tag)
) ENGINE=InnoDB CHARACTER SET utf8 COLLATE utf8_bin; ) ENGINE=InnoDB CHARACTER SET utf8 COLLATE utf8_bin;
create table profile_block (
blocker integer not null comment 'user making the block' references user (id),
blocked integer not null comment 'profile that is blocked' references profile (id),
modified timestamp comment 'date of blocking',
constraint primary key (blocker, blocked)
) ENGINE=InnoDB CHARACTER SET utf8 COLLATE utf8_bin;