Skip to content

Instantly share code, notes, and snippets.

@jakelacey2012
Last active June 27, 2016 08:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jakelacey2012/ec2c6dd3dc6f59ab26bdd8fcd7b4e343 to your computer and use it in GitHub Desktop.
Save jakelacey2012/ec2c6dd3dc6f59ab26bdd8fcd7b4e343 to your computer and use it in GitHub Desktop.
<?php
/**
* Implements hook_schema().
*/
function JwLanalytics_schema() {
$schema = array();
// this has been moveed to the communications manager
$schema['users_logins_data'] = array(
'description' => 'This is where we hold the users login data',
'fields' => array(
'lid' => array(
'description' => 'login id',
'type' => 'serial',
'unsigned' => TRUE,
'not null' => TRUE,
),
'uid' => array(
'description' => 'The primary identifier for a user',
'type' => 'int',
'not null' => TRUE
),
'timestamp' => array(
'description' => 'timestamp of login',
'type' => 'text',
'not null' => TRUE,
),
),
'primary key' => array('lid')
);
return $schema;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment