View source
<?php
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;
}