You are here

function linkedin_schema in LinkedIn Integration 6

Same name and namespace in other branches
  1. 7 linkedin.install \linkedin_schema()

Implementation of hook_schema().

File

./linkedin.install, line 17

Code

function linkedin_schema() {
  $schema['linkedin_token'] = array(
    'description' => t('Tokens for request and services accesses.'),
    'fields' => array(
      'uid' => array(
        'description' => t('User ID from {user}.uid.'),
        'type' => 'int',
        'unsigned' => TRUE,
        'not null' => TRUE,
      ),
      'token_key' => array(
        'description' => t('Tokens for request and services accesses.'),
        'type' => 'varchar',
        'length' => 100,
        'not null' => TRUE,
      ),
      'token_secret' => array(
        'description' => t('Token "password".'),
        'type' => 'varchar',
        'length' => 100,
        'not null' => TRUE,
      ),
      'type' => array(
        'description' => t('Type of the token: request or access.'),
        'type' => 'varchar',
        'length' => 7,
        'not null' => TRUE,
      ),
    ),
    'primary key' => array(
      'uid',
    ),
    'indexes' => array(
      'token_key_type' => array(
        'token_key',
      ),
    ),
  );
  return $schema;
}