You are here

function shoutbox_domain_schema in Shoutbox 6.2

Same name and namespace in other branches
  1. 7.2 shoutbox_domain/shoutbox_domain.install \shoutbox_domain_schema()
  2. 7 shoutbox_domain/shoutbox_domain.install \shoutbox_domain_schema()

Implementation of hook_schema()

File

shoutbox_domain/shoutbox_domain.install, line 6

Code

function shoutbox_domain_schema() {
  $schema['shoutbox_domain'] = array(
    'description' => 'Link shouts to their respected domains.',
    'fields' => array(
      'shout_id' => array(
        'type' => 'int',
        'unsigned' => TRUE,
        'not null' => TRUE,
        'description' => 'The shout id',
      ),
      'domain_id' => array(
        'type' => 'int',
        'unsigned' => TRUE,
        'not null' => TRUE,
        'description' => 'The domain id',
      ),
    ),
    'primary key' => array(
      'shout_id',
    ),
  );
  return $schema;
}