function insight_schema in Insight 7
Implementation of hook_schema()
File
- ./
insight.install, line 25 - Install include file. Implements database schema.
Code
function insight_schema() {
$schema['insight_report'] = array(
'description' => 'TODO: please describe this table!',
'fields' => array(
'irid' => array(
'description' => 'TODO: please describe this field!',
'type' => 'serial',
'unsigned' => TRUE,
'not null' => TRUE,
),
'name' => array(
'description' => 'TODO: please describe this field!',
'type' => 'varchar',
'length' => '64',
'not null' => TRUE,
),
'nid' => array(
'description' => 'TODO: please describe this field!',
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
),
'path' => array(
'description' => 'TODO: please describe this field!',
'type' => 'varchar',
'length' => '255',
'not null' => TRUE,
),
'created' => array(
'description' => 'TODO: please describe this field!',
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
),
'active' => array(
'description' => 'TODO: please describe this field!',
'type' => 'int',
'size' => 'tiny',
'not null' => TRUE,
),
'status' => array(
'description' => 'TODO: please describe this field!',
'type' => 'int',
'size' => 'tiny',
'not null' => FALSE,
),
'score' => array(
'description' => 'TODO: please describe this field!',
'type' => 'float',
'not null' => FALSE,
),
'help' => array(
'description' => 'TODO: please describe this field!',
'type' => 'text',
'not null' => FALSE,
),
'report' => array(
'description' => 'TODO: please describe this field!',
'type' => 'blob',
'size' => 'big',
'not null' => TRUE,
),
'data' => array(
'description' => 'TODO: please describe this field!',
'type' => 'blob',
'size' => 'big',
'not null' => FALSE,
),
),
'primary key' => array(
'irid',
),
'indexes' => array(
'name' => array(
'name',
),
'nid' => array(
'nid',
'path',
),
'path' => array(
'path',
),
),
);
$schema['insight_alert'] = array(
'description' => 'TODO: please describe this table!',
'fields' => array(
'iaid' => array(
'description' => 'TODO: please describe this field!',
'type' => 'serial',
'unsigned' => TRUE,
'not null' => TRUE,
),
'name' => array(
'description' => 'TODO: please describe this field!',
'type' => 'varchar',
'length' => '128',
'not null' => TRUE,
),
'report' => array(
'description' => 'TODO: please describe this field!',
'type' => 'varchar',
'length' => '64',
'not null' => TRUE,
),
'nid' => array(
'description' => 'TODO: please describe this field!',
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
),
'path' => array(
'description' => 'TODO: please describe this field!',
'type' => 'varchar',
'length' => '255',
'not null' => TRUE,
),
'created' => array(
'description' => 'TODO: please describe this field!',
'type' => 'int',
'not null' => TRUE,
),
'active' => array(
'description' => 'TODO: please describe this field!',
'type' => 'int',
'size' => 'tiny',
'not null' => TRUE,
),
'irid' => array(
'description' => 'TODO: please describe this field!',
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
),
'status' => array(
'description' => 'TODO: please describe this field!',
'type' => 'int',
'size' => 'tiny',
'not null' => TRUE,
),
'message' => array(
'description' => 'TODO: please describe this field!',
'type' => 'text',
'not null' => TRUE,
),
),
'primary key' => array(
'iaid',
),
'indexes' => array(
'name' => array(
'name',
),
'nid' => array(
'nid',
),
'path' => array(
'path',
),
'report' => array(
'report',
),
),
);
return $schema;
}