You are here

function janrain_capture_schema in Janrain Registration 7

Same name and namespace in other branches
  1. 7.4 janrain_capture.install \janrain_capture_schema()
  2. 7.2 janrain_capture.install \janrain_capture_schema()
  3. 7.3 janrain_capture.install \janrain_capture_schema()

Implements hook_schema().

File

./janrain_capture.install, line 11
Uninstall functions for the janrain_capture module

Code

function janrain_capture_schema() {
  $schema['janrain_capture_photos'] = array(
    'description' => 'Maps users to previously saved photo from Capture.',
    'fields' => array(
      'uid' => array(
        'type' => 'int',
        'unsigned' => TRUE,
        'not null' => TRUE,
        'default' => 0,
        'description' => 'Primary Key: {users}.uid for user.',
      ),
      'uri' => array(
        'description' => 'The URI used to fetch the file.',
        'type' => 'varchar',
        'length' => 255,
        'not null' => TRUE,
        'default' => '',
        'binary' => TRUE,
      ),
    ),
    'primary key' => array(
      'uid',
    ),
    'foreign keys' => array(
      'user' => array(
        'table' => 'users',
        'columns' => array(
          'uid' => 'uid',
        ),
      ),
    ),
  );
  return $schema;
}