function legal_schema in Legal 6.7
Same name and namespace in other branches
- 6.8 legal.install \legal_schema()
- 7.2 legal.install \legal_schema()
- 7 legal.install \legal_schema()
Implementation of hook_schema().
File
- ./
legal.install, line 22
Code
function legal_schema() {
$schema['legal_accepted'] = array(
'fields' => array(
'legal_id' => array(
'type' => 'serial',
'unsigned' => FALSE,
'not null' => TRUE,
'disp-width' => 10,
),
'uid' => array(
'type' => 'int',
'unsigned' => FALSE,
'not null' => TRUE,
'default' => 0,
'disp-width' => 10,
),
'tc_id' => array(
'type' => 'int',
'unsigned' => FALSE,
'not null' => TRUE,
'default' => 0,
'disp-width' => 10,
),
'accepted' => array(
'type' => 'int',
'unsigned' => FALSE,
'not null' => TRUE,
'default' => 0,
'disp-width' => 11,
),
),
'indexes' => array(
'uid' => array(
'uid',
),
),
'primary key' => array(
'legal_id',
),
);
$schema['legal_conditions'] = array(
'fields' => array(
'tc_id' => array(
'type' => 'serial',
'unsigned' => FALSE,
'not null' => TRUE,
'disp-width' => 10,
),
'conditions' => array(
'type' => 'text',
'size' => 'big',
'not null' => TRUE,
),
'date' => array(
'type' => 'int',
'unsigned' => FALSE,
'not null' => TRUE,
'default' => 0,
'disp-width' => 11,
),
'extras' => array(
'type' => 'text',
),
'changes' => array(
'type' => 'text',
),
),
'primary key' => array(
'tc_id',
),
);
return $schema;
}