You are here

function pay_node_schema in Pay 6

Same name and namespace in other branches
  1. 7 modules/pay_node/pay_node.install \pay_node_schema()

Implementation of 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',
      ),
    ),
  );
}