You are here

function user_relationship_defaults_schema in User Relationships 7

Same name and namespace in other branches
  1. 6 user_relationship_defaults/user_relationship_defaults.install \user_relationship_defaults_schema()

Implements hook_schema().

File

user_relationship_defaults/user_relationship_defaults.install, line 10
User Relationships Defaults installation script

Code

function user_relationship_defaults_schema() {
  $schema['user_relationship_defaults'] = array(
    'fields' => array(
      'rdid' => array(
        'type' => 'serial',
        'unsigned' => TRUE,
        'not null' => TRUE,
      ),
      'uid' => array(
        'type' => 'int',
        'unsigned' => TRUE,
        'not null' => TRUE,
        'default' => 0,
      ),
      'rtid' => array(
        'type' => 'int',
        'unsigned' => TRUE,
        'not null' => TRUE,
        'default' => 0,
      ),
    ),
    'indexes' => array(
      'uid' => array(
        'uid',
      ),
      'rtid' => array(
        'rtid',
      ),
    ),
    'primary key' => array(
      'rdid',
    ),
  );
  return $schema;
}