shurly_service.install in ShURLy 8
File
shurly_service/shurly_service.install
View source
<?php
function shurly_service_schema() {
$schema['shurly_keys'] = [
'description' => 'API keys for use with the Shurly module',
'fields' => [
'uid' => [
'description' => 'User ID',
'type' => 'int',
'not null' => TRUE,
],
'apikey' => [
'description' => 'API key for user',
'type' => 'varchar',
'length' => '35',
'not null' => TRUE,
],
],
'primary key' => [
'apikey',
],
'indexes' => [
'uid' => [
'uid',
],
],
];
return $schema;
}