function shoutbox_user_schema in Shoutbox 7.2
Same name and namespace in other branches
- 6.2 shoutbox_user/shoutbox_user.install \shoutbox_user_schema()
- 7 shoutbox_user/shoutbox_user.install \shoutbox_user_schema()
Implements hook_schema().
File
- shoutbox_user/
shoutbox_user.install, line 11 - Install, update and uninstall functions for the shoutbox_user module.
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;
}