function user_relationship_invites_schema in User Relationships 6
Same name and namespace in other branches
- 7 user_relationship_invites/user_relationship_invites.install \user_relationship_invites_schema()
Implementation of hook_install().
File
- user_relationship_invites/
user_relationship_invites.install, line 6
Code
function user_relationship_invites_schema() {
$schema['user_relationship_invites'] = array(
'fields' => array(
'inviter_uid' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
),
'rtid' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
),
'invite_code' => array(
'type' => 'varchar',
'length' => 64,
'not null' => TRUE,
'default' => '',
),
),
'indexes' => array(
'invite_code' => array(
'invite_code',
),
),
);
return $schema;
}