function fb_user_schema in Drupal for Facebook 6.2
Same name and namespace in other branches
- 6.3 fb_user.install \fb_user_schema()
- 7.4 fb_user.install \fb_user_schema()
- 7.3 fb_user.install \fb_user_schema()
File
- ./
fb_user.install, line 25 - Install file for fb_user.module.
Code
function fb_user_schema() {
$schema['fb_user_app'] = array(
'fields' => array(
'apikey' => array(
'type' => 'varchar',
'length' => 128,
'not null' => TRUE,
),
'fbu' => array(
'type' => 'int',
'size' => 'big',
'not null' => TRUE,
),
'uid' => array(
'type' => 'int',
'size' => 'normal',
'not null' => TRUE,
),
'added' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
),
'proxied_email' => array(
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
),
'time_cron' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
),
'time_access' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
),
'session_key' => array(
'type' => 'varchar',
'length' => 255,
'not null' => FALSE,
),
'session_key_expires' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => FALSE,
),
),
'primary key' => array(
'apikey',
'fbu',
),
);
return $schema;
}