summaryrefslogtreecommitdiff
path: root/modules/contact/contact.schema
blob: f77f6a27cf385d65599d51b2f7929bf1d96b909a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?php
// $Id$

function contact_schema() {
  $schema['contact'] = array(
    'fields' => array(
      'cid'        => array('type' => 'serial', 'unsigned' => TRUE, 'not null' => TRUE),
      'category'   => array('type' => 'varchar', 'length' => 255, 'not null' => TRUE, 'default' => ''),
      'recipients' => array('type' => 'text', 'not null' => TRUE, 'size' => 'big'),
      'reply'      => array('type' => 'text', 'not null' => TRUE, 'size' => 'big'),
      'weight'     => array('type' => 'int', 'not null' => TRUE, 'default' => 0, 'size' => 'tiny'),
      'selected'   => array('type' => 'int', 'not null' => TRUE, 'default' => 0, 'size' => 'tiny')
    ),
    'unique keys' => array('category' => array('category')),
    'primary key' => array('cid'),
  );

  return $schema;
}