mocean_sms_login-8.x-1.x-dev/mocean_sms_login.install
mocean_sms_login.install
<?php
function mocean_sms_login_schema() {
$schema['mocean_sms_login'] = array(
'description' => 'Stores opted-in users',
'fields' => array(
'pid' => array(
'type' => 'serial',
'not null' => TRUE,
'description' => 'Primary Key: Unique id for each opted-in users',
),
'id' => array(
'type' => 'int',
'length' => 10,
'not null' => TRUE,
'description' => 'Opted-in user id',
),
'phone' => array(
'type' => 'varchar',
'length' => 15,
'not null' => TRUE,
'description' => 'Opted-in user phone number',
),
'verified' => array(
'type' => 'int',
'size' => 'tiny',
'not null' => TRUE,
'default' => 0,
'description' => 'Is opted-in user session verified',
),
),
'primary key' => array('pid'),
);
return $schema;
}