You are here

function apigee_edge_schema in Apigee Edge 8

Implements hook_schema().

File

./apigee_edge.install, line 141
Copyright 2018 Google Inc.

Code

function apigee_edge_schema() {
  $schema = [];
  $schema['apigee_edge_job'] = [
    'fields' => [
      'id' => [
        'type' => 'varchar',
        'length' => 36,
        'not null' => TRUE,
      ],
      'status' => [
        'type' => 'int',
        'not null' => TRUE,
      ],
      'tag' => [
        'type' => 'varchar',
        'length' => 255,
        'not null' => TRUE,
        'default' => '',
      ],
      'job' => [
        'type' => 'blob',
        'not null' => TRUE,
      ],
      'created' => [
        'type' => 'int',
        'not null' => TRUE,
      ],
      'updated' => [
        'type' => 'int',
        'not null' => TRUE,
      ],
    ],
    'primary key' => [
      'id',
    ],
    'indexes' => [
      'updated_idx' => [
        'updated',
      ],
      'status_idx' => [
        'status',
      ],
      'tag_idx' => [
        'tag',
      ],
    ],
  ];
  return $schema;
}