You are here

function mo_auth_schema in Google Authenticator / 2 Factor Authentication - 2FA 7

Implementation of hook_schema().

File

./mo_auth.install, line 196

Code

function mo_auth_schema() {
  $schema['mo_auth_user_track'] = array(
    'description' => t('User Storage'),
    'fields' => array(
      'id' => array(
        'description' => 'The primary identifier.',
        'type' => 'serial',
        'unsigned' => TRUE,
        'not null' => TRUE,
      ),
      'uid' => array(
        'type' => 'int',
        'not null' => FALSE,
        'description' => t('The {user}.uid of the user.'),
      ),
      'pass' => array(
        'description' => 'The mail of the user.',
        'type' => 'varchar',
        'length' => 128,
      ),
    ),
    'primary key' => array(
      'id',
    ),
  );
  return $schema;
}