function pay_node_schema in Pay 7
Same name and namespace in other branches
- 6 modules/pay_node/pay_node.install \pay_node_schema()
Implements hook_schema().
File
- modules/
pay_node/ pay_node.install, line 11 - Install, update and uninstall functions for the Pay Node module.
Code
function pay_node_schema() {
return array(
'pay_form_node' => array(
'fields' => array(
'pfid' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
),
'nid' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
),
'method' => array(
'type' => 'varchar',
'length' => 20,
),
),
'primary key' => array(
'pfid',
'nid',
),
),
'pay_transaction_node' => array(
'fields' => array(
'pxid' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
),
'nid' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
),
),
'primary key' => array(
'pxid',
'nid',
),
),
);
}