You are here

function seochecklist_schema in SEO Checklist 6.2

Same name and namespace in other branches
  1. 6.3 seochecklist.install \seochecklist_schema()
  2. 7.3 seochecklist.install \seochecklist_schema()

Implementation of hook_schema().

File

./seochecklist.install, line 10

Code

function seochecklist_schema() {
  $schema = array();
  $schema['seo_group'] = array(
    'fields' => array(
      'id' => array(
        'type' => 'serial',
        'size' => 'tiny',
        'not null' => TRUE,
        'description' => 'id',
        'disp-width' => '4',
      ),
      'name' => array(
        'type' => 'varchar',
        'length' => '255',
        'not null' => TRUE,
        'description' => 'name',
        'default' => '',
      ),
      'description' => array(
        'type' => 'varchar',
        'length' => '255',
        'not null' => TRUE,
        'description' => 'description',
        'default' => '',
      ),
    ),
    'primary key' => array(
      'id',
    ),
    'description' => 'seo_group',
  );
  $schema['seo_checklist'] = array(
    'fields' => array(
      'id' => array(
        'type' => 'serial',
        'size' => 'tiny',
        'not null' => TRUE,
        'description' => 'id',
        'disp-width' => '2',
      ),
      'group_id' => array(
        'type' => 'int',
        'size' => 'tiny',
        'not null' => TRUE,
        'default' => 0,
        'description' => 'group_id',
        'disp-width' => '4',
      ),
      'subgroup_id' => array(
        'type' => 'int',
        'size' => 'tiny',
        'not null' => TRUE,
        'default' => 0,
        'description' => 'subgroup_id',
        'disp-width' => '4',
      ),
      'name' => array(
        'type' => 'varchar',
        'length' => '255',
        'not null' => TRUE,
        'description' => 'name',
        'default' => '',
      ),
      'module' => array(
        'type' => 'varchar',
        'length' => '255',
        'not null' => TRUE,
        'description' => 'module',
        'default' => '',
      ),
      'option_checked' => array(
        'type' => 'int',
        'size' => 'tiny',
        'not null' => TRUE,
        'description' => 'option checked',
        'default' => 0,
        'disp-width' => '1',
      ),
      'date_changed' => array(
        'type' => 'datetime',
        'not null' => TRUE,
        'description' => 'date changed',
        'default' => '0000-00-00 00:00:00',
      ),
      'checked_module' => array(
        'type' => 'int',
        'size' => 'tiny',
        'not null' => TRUE,
        'description' => 'checked module',
        'default' => 0,
        'disp-width' => '1',
      ),
      'download' => array(
        'type' => 'varchar',
        'length' => '255',
        'not null' => TRUE,
        'description' => 'download',
        'default' => '',
      ),
      'enable' => array(
        'type' => 'varchar',
        'length' => '255',
        'not null' => TRUE,
        'description' => 'enable',
        'default' => '',
      ),
      'configure' => array(
        'type' => 'varchar',
        'length' => '255',
        'not null' => TRUE,
        'description' => 'configure',
        'default' => '',
      ),
      'order_id' => array(
        'type' => 'int',
        'size' => 'tiny',
        'not null' => TRUE,
        'description' => 'order id',
        'default' => 0,
        'disp-width' => '2',
      ),
    ),
    'primary key' => array(
      'id',
    ),
    'description' => 'seo_checklist',
  );
  return $schema;
}