You are here

function user_field_privacy_schema in User Field Privacy 7

Implements hook_schema().

File

./user_field_privacy.install, line 11
Install, update and uninstall functions for the user_field_privacy module.

Code

function user_field_privacy_schema() {
  $schema['user_field_privacy_value'] = array(
    'fields' => array(
      'fid' => array(
        'type' => 'int',
        'unsigned' => TRUE,
        'not null' => TRUE,
        'default' => 0,
      ),
      'uid' => array(
        'type' => 'int',
        'unsigned' => TRUE,
        'not null' => TRUE,
        'default' => 0,
      ),
      'private' => array(
        'type' => 'int',
        'size' => 'tiny',
        'not null' => TRUE,
        'default' => 0,
      ),
    ),
    'primary key' => array(
      'fid',
      'uid',
    ),
    'indexes' => array(
      'fid' => array(
        'fid',
      ),
      'uid' => array(
        'uid',
      ),
    ),
  );
  return $schema;
}