acquia_vwo-1.0.x-dev/modules/acquia_vwo_content/acquia_vwo_content.install
modules/acquia_vwo_content/acquia_vwo_content.install
<?php
/**
* @file
* Acquia VWO Content - install file.
*/
/**
* Implements hook_schema().
*/
function acquia_vwo_content_schema() {
$schema['acquia_vwo_content_storage'] = [
'description' => 'Table to store acquia vwo content storage.',
'fields' => [
'id' => [
'type' => 'serial',
'unsigned' => TRUE,
'not null' => TRUE,
'description' => 'Primary ID.',
],
'entity_uuid' => [
'type' => 'varchar',
'length' => 128,
'not null' => TRUE,
'description' => 'UUID of the entity.',
],
'entity_type_id' => [
'type' => 'varchar',
'length' => 128,
'not null' => TRUE,
'description' => 'Type ID of the entity.',
],
'entity_id' => [
'type' => 'int',
'unsigned' => TRUE,
'description' => 'ID of the entity.',
],
'view_mode' => [
'type' => 'varchar',
'length' => 128,
'not null' => TRUE,
'default' => 'default',
'description' => 'View Mode the entity.',
],
'vwo_id' => [
'type' => 'varchar',
'length' => 128,
'description' => 'VWO_ID returned by the API.',
],
'export_to_vwo' => [
'type' => 'varchar',
'length' => 128,
'description' => 'Entity is available to export.',
],
'export_status' => [
'type' => 'varchar',
'length' => 128,
'description' => 'Export status of the entity (Exported, Failed, Pending).',
],
'created' => [
'type' => 'int',
'not null' => TRUE,
'default' => \Drupal::time()->getRequestTime(),
'description' => 'Timestamp of when the mapping was created.',
],
'modified' => [
'type' => 'int',
'default' => 0,
'description' => 'Timestamp of when the mapping was updated.',
],
],
'primary key' => ['id', 'entity_uuid'],
];
return $schema;
}
