function shurly_service_schema in ShURLy 8
Same name and namespace in other branches
- 6 shurly_service/shurly_service.install \shurly_service_schema()
- 7 shurly_service/shurly_service.install \shurly_service_schema()
Implements hook_schema().
File
- shurly_service/
shurly_service.install, line 10
Code
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;
}