function sms_user_schema in SMS Framework 6
Same name and namespace in other branches
- 6.2 modules/sms_user/sms_user.install \sms_user_schema()
- 7 modules/sms_user/sms_user.install \sms_user_schema()
Implementation of hook_schema().
File
- modules/
sms_user/ sms_user.install, line 13
Code
function sms_user_schema() {
$schema['sms_user'] = array(
'fields' => array(
'uid' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
),
'delta' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
),
'number' => array(
'type' => 'varchar',
'not null' => TRUE,
'length' => 32,
),
'status' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
),
'code' => array(
'type' => 'varchar',
'not null' => TRUE,
'length' => 16,
),
'gateway' => array(
'type' => 'text',
),
),
'primary key' => array(
'uid',
'delta',
),
'unique key' => array(
'number',
),
);
return $schema;
}