function merci_restrictions_schema in MERCI (Manage Equipment Reservations, Checkout and Inventory) 7.3
Implements hook_schema().
File
- merci_restrictions/
merci_restrictions.install, line 6
Code
function merci_restrictions_schema() {
$schema = array();
$schema['merci_restrictions'] = array(
'description' => 'Stores merci restrictions.',
'fields' => array(
'id' => array(
'type' => 'serial',
'unsigned' => TRUE,
'not null' => TRUE,
'description' => 'Primary Key: Unique ID.',
),
'type' => array(
'description' => 'The {merci_reservation_type}.type of this merci_reservation.',
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
'default' => '',
),
'title' => array(
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
'default' => '',
'description' => 'The {taxonomy_term_data}.tid of the term.',
),
) + entity_exportable_schema_fields(),
'primary key' => array(
'id',
),
);
return $schema;
}