function payment_webform_schema in Payment for Webform 7
Implements hook_schema().
File
- ./
payment_webform.install, line 11 - Installation and uninstallation functions.
Code
function payment_webform_schema() {
$schema['payment_webform'] = array(
'fields' => array(
'cid' => array(
'type' => 'int',
'not null' => TRUE,
'default' => 0,
),
'pid' => array(
'type' => 'int',
'not null' => TRUE,
'default' => 0,
),
),
'primary key' => array(
'pid',
),
'foreign keys' => array(
'pid' => array(
'table' => 'payment',
'columns' => array(
'pid' => 'pid',
),
),
'cid' => array(
'table' => 'webform_component',
'columns' => array(
'cid' => 'cid',
),
),
),
'indexes' => array(
'cid' => array(
'cid',
),
),
);
return $schema;
}