You are here

function miniorange_2fa_schema in Google Authenticator / 2 Factor Authentication - 2FA 8

Same name and namespace in other branches
  1. 8.2 miniorange_2fa.install \miniorange_2fa_schema()

File

./miniorange_2fa.install, line 15

Code

function miniorange_2fa_schema() {
  $schema['UserAuthenticationType'] = array(
    'description' => 'Stores example user ID and his authentication type.',
    'fields' => array(
      'uid' => array(
        'type' => 'int',
        'not null' => TRUE,
        'default' => 0,
        'description' => " user's id",
      ),
      'configured_auth_methods' => array(
        'type' => 'varchar',
        'length' => 255,
        'not null' => TRUE,
        'default' => '',
        'description' => 'authentication type of user.',
      ),
      'miniorange_registered_email' => array(
        'type' => 'varchar',
        'length' => 255,
        'not null' => TRUE,
        'default' => '',
        'description' => 'miniorange registered email.',
      ),
      'activated_auth_methods' => array(
        'type' => 'varchar',
        'length' => 255,
        'not null' => TRUE,
        'default' => 'OUT OF BAND EMAIL',
        'description' => 'activated authentication type of user.',
      ),
    ),
  );
  return $schema;
}