add profile block data object
darcs-hash:20081203222619-5ed1f-b313092893c67a3ec1dc92a79aa7fed4ab583729.gz
This commit is contained in:
parent
2670324ca8
commit
cb93e214f8
22
classes/Profile_block.php
Normal file
22
classes/Profile_block.php
Normal 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
|
||||
}
|
|
@ -195,6 +195,15 @@ modified = 384
|
|||
[profile__keys]
|
||||
id = N
|
||||
|
||||
[profile_block]
|
||||
blocker = 129
|
||||
blocked = 129
|
||||
modified = 384
|
||||
|
||||
[profile_block__keys]
|
||||
blocker = K
|
||||
blocked = K
|
||||
|
||||
[profile_tag]
|
||||
tagger = 129
|
||||
tagged = 129
|
||||
|
|
|
@ -357,3 +357,12 @@ create table profile_tag (
|
|||
index profile_tag_tagger_tag_idx (tagger, tag)
|
||||
) 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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user