forked from saitanay/chat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
chat.install
44 lines (42 loc) · 998 Bytes
/
chat.install
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<?php
/**
* @file
* Installation and schema hooks for chat.module.
*/
/**
* Implements hook_schema().
*/
function chat_schema() {
$schema = array();
$schema['sms'] = array(
'description' => 'The base table for the sms entity',
'fields' => array(
'id' => array(
'description' => 'Primary key of the sms entity',
'type' => 'serial',
'unsigned' => TRUE,
'not null' => TRUE,
),
'mobile' => array(
'description' => 'Mobile Number',
'type' => 'varchar',
'length' => '255',
'not null' => TRUE,
),
'message' => array(
'description' => 'Message',
'type' => 'text',
'length' => '1023',
'not null' => TRUE,
),
'created_at' => array(
'description' => 'Date and time the sms was processed.',
'type' => 'int',
'length' => 10,
'not null' => FALSE,
),
),
'primary key' => array('id'),
);
return $schema;
}