You are here

function seochecklist_schema in SEO Checklist 7.3

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

Implementation of hook_schema().

File

./seochecklist.install, line 12
Install, update and uninstall functions for the seochecklist module.

Code

function seochecklist_schema() {
  $schema['seo_checklist'] = array(
    'description' => 'seo_checklist',
    'fields' => array(
      'id' => array(
        'type' => 'serial',
        'size' => 'tiny',
        'not null' => TRUE,
        'description' => 'id',
      ),
      'completed' => array(
        'type' => 'int',
        'unsigned' => TRUE,
        'not null' => TRUE,
        'default' => 0,
        'description' => 'UNIX timestamp of when this task was completed, or 0 if the task has not yet been completed.',
      ),
      'uid' => array(
        'type' => 'int',
        'unsigned' => TRUE,
        'not null' => TRUE,
        'default' => 0,
        'description' => 'The {user}.uid of the account that completed this task.',
      ),
    ),
    'primary key' => array(
      'id',
    ),
  );
  return $schema;
}