You are here

function fb_user_app_schema in Drupal for Facebook 6.3

Same name and namespace in other branches
  1. 7.3 contrib/fb_user_app.install \fb_user_app_schema()
1 call to fb_user_app_schema()
fb_user_app_update_6006 in contrib/fb_user_app.install

File

contrib/fb_user_app.install, line 31
Install file for fb_user.module.

Code

function fb_user_app_schema() {
  $schema['fb_user_app'] = array(
    'fields' => array(
      'apikey' => array(
        // @TODO use app id instead of apikey.
        'type' => 'varchar',
        'length' => 128,
        'not null' => TRUE,
      ),
      'fbu' => array(
        'type' => 'int',
        'size' => 'big',
        'not null' => TRUE,
      ),
      'user_type' => array(
        'type' => 'varchar',
        'length' => 64,
        'not null' => TRUE,
        'default' => '',
      ),
      '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,
        'description' => 'Historically this was a session key, now an access token.',
      ),
      'session_key_expires' => array(
        'type' => 'int',
        'unsigned' => TRUE,
        'not null' => FALSE,
      ),
    ),
    'primary key' => array(
      'apikey',
      'fbu',
    ),
    'indexes' => array(
      'time_cron' => array(
        'time_cron',
      ),
    ),
  );
  return $schema;
}