qtools_profiler-8.x-1.x-dev/modules/qtools_profiler_example/qtools_profiler_example.install
modules/qtools_profiler_example/qtools_profiler_example.install
<?php
/**
* @file
* Install hooks.
*/
/**
* Implements hook_schema().
*/
function qtools_profiler_example_schema() {
$schema['qtools_profiler_example_loads'] = [
'description' => 'Table for storing entity loads.',
'fields' => [
'id' => [
'description' => 'The primary identifier for call.',
'type' => 'serial',
'not null' => TRUE,
],
'rid' => [
'description' => 'The primary identifier for request.',
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
],
'count' => [
'description' => 'Amount of entity loads.',
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
],
],
'indexes' => [
'rid' => ['rid'],
],
'primary key' => ['id'],
];
return $schema;
}
