function pmorganization_schema in Drupal PM (Project Management) 7
Same name and namespace in other branches
- 8 pmorganization/pmorganization.install \pmorganization_schema()
- 7.3 pmorganization/pmorganization.install \pmorganization_schema()
Implements hook_schema().
File
- pmorganization/
pmorganization.install, line 324
Code
function pmorganization_schema() {
$schema['pmorganization'] = array(
'fields' => array(
'vid' => array(
'type' => 'int',
'not null' => TRUE,
'default' => 0,
),
'nid' => array(
'type' => 'int',
'not null' => TRUE,
'default' => 0,
),
'country' => array(
'type' => 'varchar',
'length' => 100,
),
'orglanguage' => array(
'type' => 'varchar',
'length' => 100,
),
'provstate' => array(
'type' => 'varchar',
'length' => 50,
),
'city' => array(
'type' => 'varchar',
'length' => 100,
),
'zip' => array(
'type' => 'varchar',
'length' => 10,
),
'address' => array(
'type' => 'varchar',
'length' => 100,
),
'taxid' => array(
'type' => 'varchar',
'length' => 50,
),
'email' => array(
'type' => 'varchar',
'length' => 50,
),
'www' => array(
'type' => 'varchar',
'length' => 100,
),
'phone' => array(
'type' => 'varchar',
'length' => 100,
),
'currency' => array(
'type' => 'varchar',
'length' => 100,
),
'iscustomer' => array(
'type' => 'int',
'default' => 1,
),
'isprovider' => array(
'type' => 'int',
'default' => 0,
),
'isactive' => array(
'type' => 'int',
'default' => 1,
),
'pricemode' => array(
'type' => 'varchar',
'length' => 20,
),
'price' => array(
'type' => 'float',
),
),
'primary key' => array(
'vid',
),
'indexes' => array(
'nid' => array(
'nid',
),
),
);
return $schema;
}