You are here

function shoutbox_user_schema in Shoutbox 6.2

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

Implementation of hook_schema

File

shoutbox_user/shoutbox_user.install, line 6

Code

function shoutbox_user_schema() {
  $schema['shoutbox_user'] = array(
    'description' => 'Link shouts to a user',
    'fields' => array(
      'shout_id' => array(
        'type' => 'int',
        'unsigned' => TRUE,
        'not null' => TRUE,
        'description' => 'The shout id',
      ),
      'uid' => array(
        'type' => 'int',
        'unsigned' => TRUE,
        'not null' => TRUE,
        'description' => 'The user id',
      ),
    ),
    'primary key' => array(
      'shout_id',
    ),
  );
  return $schema;
}