You are here

function node_authlink_schema in Node authorize link 8

Same name and namespace in other branches
  1. 7 node_authlink.install \node_authlink_schema()

Implementation of hook_schema().

File

./node_authlink.install, line 6

Code

function node_authlink_schema() {
  $schema['node_authlink_nodes'] = [
    'description' => 'Table for store authorization keys.',
    'fields' => [
      'nid' => [
        'type' => 'serial',
        'unsigned' => TRUE,
        'not null' => TRUE,
      ],
      'authkey' => [
        'type' => 'varchar',
        'length' => 64,
        'not null' => TRUE,
      ],
      'created' => [
        'type' => 'int',
        'not null' => TRUE,
        'default' => 0,
      ],
    ],
    'primary key' => [
      'nid',
    ],
  ];
  return $schema;
}