You are here

function pm_block_user_schema in Privatemsg 6

Same name and namespace in other branches
  1. 6.2 pm_block_user/pm_block_user.install \pm_block_user_schema()
  2. 7.2 pm_block_user/pm_block_user.install \pm_block_user_schema()
  3. 7 pm_block_user/pm_block_user.install \pm_block_user_schema()

Implements hook_schema().

File

pm_block_user/pm_block_user.install, line 10
Install file for pm_block_user.module

Code

function pm_block_user_schema() {
  $schema = array();
  $schema['pm_block_user'] = array(
    'description' => '{pm_block_user} holds data mapping which authors who cannot messages to which recipients ',
    'fields' => array(
      'author' => array(
        'description' => 'ID of the author',
        'type' => 'int',
        'not null' => TRUE,
        'unsigned' => TRUE,
      ),
      'recipient' => array(
        'description' => 'ID of the recipient',
        'type' => 'int',
        'not null' => TRUE,
        'unsigned' => TRUE,
      ),
    ),
    'primary key' => array(
      'author',
      'recipient',
    ),
  );
  return $schema;
}