function pmperson_schema in Drupal PM (Project Management) 7
Implements hook_schema().
File
- pmperson/
pmperson.install, line 46
Code
function pmperson_schema() {
$schema['pmperson'] = 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' => 150,
),
'prefix' => array(
'type' => 'varchar',
'length' => 100,
),
'email' => array(
'type' => 'varchar',
'length' => 50,
),
'www' => array(
'type' => 'varchar',
'length' => 100,
),
'phone' => array(
'type' => 'varchar',
'length' => 100,
),
'im' => array(
'type' => 'varchar',
'length' => 100,
),
'user_uid' => array(
'type' => 'int',
),
),
'primary key' => array(
'vid',
),
'indexes' => array(
'nid' => array(
'nid',
),
'organization_nid' => array(
'organization_nid',
),
'user_uid' => array(
'user_uid',
),
),
);
return $schema;
}