You are here

function sms_user_schema in SMS Framework 6.2

Same name and namespace in other branches
  1. 6 modules/sms_user/sms_user.install \sms_user_schema()
  2. 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,
      ),
      '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(
      'number',
    ),
    'indexes' => array(
      'uid' => array(
        'uid',
      ),
    ),
  );
  return $schema;
}