mediamosa_user_group_schema()Implements hook_schema().
sites/all/modules/mediamosa/core/user/group/mediamosa_user_group.install.inc, line 55
<?php
function mediamosa_user_group_schema() {
$a_schema[mediamosa_user_group_db::TABLE_NAME] = array(
'description' => t('The user group table.'),
'fields' => array(
mediamosa_user_group_db::APP_ID => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'description' => t('The application ID of the user.'),
),
mediamosa_user_group_db::ID => array(
'type' => 'varchar',
'length' => mediamosa_user_group_db::GROUP_ID_LENGTH,
'not null' => TRUE,
'description' => t('The name of group.'),
),
mediamosa_user_group_db::QUOTUM => array(
'type' => 'int',
'unsigned' => FALSE,
'not null' => TRUE,
'description' => t('The application ID of the asset.'),
),
mediamosa_user_group_db::CREATED => array(
'type' => 'datetime',
'not null' => TRUE,
'description' => t('The date and time when user was created.'),
),
mediamosa_user_group_db::CHANGED => array(
'type' => 'datetime',
'default' => NULL,
'description' => t('The date and time when user was changed last.'),
),
),
'primary key' => array(mediamosa_user_group_db::ID, mediamosa_user_group_db::APP_ID),
);
return $a_schema;
}
?>