You are here

function hybridauth_schema in HybridAuth Social Login 7

Same name and namespace in other branches
  1. 6.2 hybridauth.install \hybridauth_schema()
  2. 7.2 hybridauth.install \hybridauth_schema()

Implementation of hook_schema().

File

./hybridauth.install, line 46

Code

function hybridauth_schema() {
  $schema = array();
  $schema['hybridauth_account'] = array(
    'description' => 'Stores linked account information to be used with views, stats, etc.',
    'fields' => array(
      'aid' => array(
        'type' => 'int',
        'unsigned' => TRUE,
        'not null' => TRUE,
        'description' => 'Authmap ID from the authmap table.',
      ),
      'provider_id' => array(
        'type' => 'varchar',
        'length' => 30,
        'not null' => TRUE,
        'description' => 'The provider\'s ID.',
      ),
      'created' => array(
        'description' => 'The last time this entry was updated',
        'type' => 'int',
        'length' => 10,
        'not null' => TRUE,
      ),
    ),
    'primary key' => array(
      'aid',
    ),
  );
  return $schema;
}