Last active
June 27, 2016 08:01
-
-
Save jakelacey2012/ec2c6dd3dc6f59ab26bdd8fcd7b4e343 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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