You are here

function support_reference_schema in Support Ticketing System 6

Same name and namespace in other branches
  1. 7 support_reference/support_reference.install \support_reference_schema()

Support Reference database schema.

File

support_reference/support_reference.install, line 14
Support Reference database schema.

Code

function support_reference_schema() {
  $schema['support_reference'] = array(
    'description' => 'Allow tickets to reference each other.',
    'fields' => array(
      'nid' => array(
        'type' => 'int',
        'unsigned' => TRUE,
        'not null' => TRUE,
        'default' => 0,
        'description' => 'Node id of the current ticket.',
      ),
      'rnid' => array(
        'type' => 'int',
        'unsigned' => TRUE,
        'not null' => TRUE,
        'default' => 0,
        'description' => 'Node id of the referenced ticket.',
      ),
    ),
    'primary key' => array(
      'nid',
      'rnid',
    ),
  );
  return $schema;
}