function inactive_user_schema in Inactive User 6
Same name and namespace in other branches
- 7 inactive_user.install \inactive_user_schema()
File
- ./
inactive_user.install, line 18 - The inactive user module controls inactive users.
Code
function inactive_user_schema() {
$schema['inactive_users'] = array(
'description' => t('The base table for inactive_users.'),
'fields' => array(
'uid' => array(
'description' => t('The primary identifier for a user.'),
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
),
'notified_admin' => array(
'description' => t('Admin notifier.'),
'type' => 'int',
'size' => 'tiny',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
),
'notified_user' => array(
'description' => t('User notifier.'),
'type' => 'int',
'size' => 'tiny',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
),
'warned_user_block_timestamp' => array(
'description' => t('Timestamp warning.'),
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
),
'notified_user_block' => array(
'description' => t('User block warning.'),
'type' => 'int',
'size' => 'tiny',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
),
'notified_admin_block' => array(
'description' => t('Timestamp warning.'),
'type' => 'int',
'size' => 'tiny',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
),
'warned_user_delete_timestamp' => array(
'description' => t('Timestamp warning.'),
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
),
'protected' => array(
'description' => t('Timestamp warning.'),
'type' => 'int',
'size' => 'tiny',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
),
),
'primary key' => array(
'uid',
),
);
return $schema;
}