function nodejs_schema in Node.js integration 6
Same name and namespace in other branches
- 8 nodejs.install \nodejs_schema()
- 7 nodejs.install \nodejs_schema()
Implements hook_schema().
File
- ./
nodejs.install, line 27 - Install, update and uninstall functions for the nodejs module.
Code
function nodejs_schema() {
return array(
'nodejs_presence' => array(
'description' => 'List of currently online users on a node.js server.',
'fields' => array(
'uid' => array(
'description' => 'The uid of the user.',
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
),
'login_time' => array(
'description' => 'The timestamp of when the user came online.',
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
),
),
'indexes' => array(
'login_time' => array(
'login_time',
),
),
'unique keys' => array(
'uid' => array(
'uid',
),
),
),
);
}