You are here

function domain_user_schema in Domain Access 6.2

Implement hook_schema()

File

domain_user/domain_user.install, line 18
Install file for the Domain User module

Code

function domain_user_schema() {
  $schema['domain_user'] = array(
    'fields' => array(
      'domain_id' => array(
        'type' => 'int',
        'not null' => TRUE,
        'default' => 0,
      ),
      'uid' => array(
        'type' => 'int',
        'not null' => TRUE,
        'default' => 0,
      ),
    ),
    'indexes' => array(
      'domain_id' => array(
        'domain_id',
      ),
      'uid' => array(
        'uid',
      ),
    ),
  );
  return $schema;
}