function user_badges_products_schema in User Badges 6.2
Same name and namespace in other branches
- 6 user_badges_products.install \user_badges_products_schema()
Implements hook_schema().
File
- ./
user_badges_products.install, line 20 - @brief User Badges Product install file
Code
function user_badges_products_schema() {
$schema['user_badges_product'] = array(
'description' => 'Stores which products grant which badges.',
'fields' => array(
'bid' => array(
'description' => t('Badge ID'),
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
),
'nid' => array(
'description' => t('Node ID'),
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
),
),
'primary key' => array(
'bid',
'nid',
),
);
return $schema;
}