You are here

function basic_cart_order_schema in Basic cart 7.3

Same name and namespace in other branches
  1. 7.2 basic_cart_order/basic_cart_order.install \basic_cart_order_schema()

Implements hook_schema().

File

basic_cart_order/basic_cart_order.install, line 11
Basic Cart Order install file

Code

function basic_cart_order_schema() {
  $schema['basic_cart_order_node'] = array(
    'description' => 'Basic cart order registration table.',
    'fields' => array(
      'oid' => array(
        'description' => 'The primary identifier for an order.',
        'type' => 'int',
        'unsigned' => TRUE,
        'not null' => TRUE,
      ),
      'nid' => array(
        'description' => 'Order node.',
        'type' => 'int',
        'unsigned' => TRUE,
        'not null' => TRUE,
      ),
      'quantity' => array(
        'description' => 'Order node quantity.',
        'type' => 'int',
        'unsigned' => TRUE,
        'not null' => TRUE,
      ),
    ),
    'primary key' => array(
      'oid',
      'nid',
    ),
  );
  return $schema;
}