You are here

function multiple_registration_schema in Multiple Registration 3.x

Same name and namespace in other branches
  1. 8.2 multiple_registration.install \multiple_registration_schema()

Implements hook_schema().

File

./multiple_registration.install, line 16
multiple_registration.install

Code

function multiple_registration_schema() {
  $schema['multiple_registration'] = [
    'description' => 'Stores the correspondent rid for each user.',
    'fields' => [
      'uid' => [
        'description' => 'The User ID.',
        'type' => 'int',
        'unsigned' => TRUE,
        'not null' => TRUE,
        'default' => 0,
      ],
      'rid' => [
        'description' => 'The identifier of the multiple_registration page definition.',
        'type' => 'varchar',
        'length' => 128,
        'not null' => TRUE,
        'default' => '',
      ],
    ],
    'foreign keys' => [
      'uid' => [
        'users' => 'uid',
      ],
    ],
  ];
  return $schema;
}