function pmtimetracking_schema in Drupal PM (Project Management) 7
Implements hook_schema().
File
- pmtimetracking/
pmtimetracking.install, line 122 - Install functions for PM Timetracking.
Code
function pmtimetracking_schema() {
$schema['pmtimetracking'] = array(
'fields' => array(
'vid' => array(
'type' => 'int',
'not null' => TRUE,
'default' => 0,
),
'nid' => array(
'type' => 'int',
'not null' => TRUE,
'default' => 0,
),
'organization_nid' => array(
'type' => 'int',
),
'organization_title' => array(
'type' => 'varchar',
'length' => 128,
),
'project_nid' => array(
'type' => 'int',
),
'project_title' => array(
'type' => 'varchar',
'length' => 128,
),
'task_nid' => array(
'type' => 'int',
),
'task_stepno' => array(
'type' => 'varchar',
'length' => 128,
),
'task_title' => array(
'type' => 'varchar',
'length' => 128,
),
'ticket_nid' => array(
'type' => 'int',
),
'ticket_title' => array(
'type' => 'varchar',
'length' => 128,
),
'duration' => array(
'type' => 'float',
),
'billing_duration' => array(
'type' => 'float',
),
),
'primary key' => array(
'vid',
),
'indexes' => array(
'nid' => array(
'nid',
),
'organization_nid' => array(
'organization_nid',
),
'project_nid' => array(
'project_nid',
),
'task_nid' => array(
'task_nid',
),
'ticket_nid' => array(
'ticket_nid',
),
),
);
return $schema;
}