function opigno_in_house_training_app_schema in Opigno in house training app 7
Implements hook_schema().
File
- ./
opigno_in_house_training_app.install, line 496 - Contains install instructions and logic @ Carrard Cédric
Code
function opigno_in_house_training_app_schema() {
return array(
'opigno_in_house_training_results' => array(
'fields' => array(
'in_house_training_nid' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
),
'score' => array(
'type' => 'int',
'not null' => TRUE,
'default' => '0',
),
'status' => array(
'type' => 'int',
'not null' => TRUE,
'default' => '0',
),
'uid' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
),
),
'indexes' => array(
'in_house_training_id' => array(
'in_house_training_nid',
),
'user_id' => array(
'uid',
),
),
),
);
}