-
Notifications
You must be signed in to change notification settings - Fork 25
/
event_schema.php
40 lines (37 loc) · 1.59 KB
/
event_schema.php
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
<?php
$schema['event_settings'] = array(
'userid' => array('type' => 'int(11)'),
'smtpserver' => array('type' => 'varchar(60)'),
'smtpuser' => array('type' => 'varchar(60)'),
'smtppassword' => array('type' => 'varchar(128)'),
'smtpport' => array('type' => 'varchar(3)'),
'consumerkey' => array('type' => 'varchar(60)'),
'consumersecret' => array('type' => 'varchar(60)'),
'usertoken' => array('type' => 'varchar(60)'),
'usersecret' => array('type' => 'varchar(60)'),
'prowlkey' => array('type' => 'varchar(60)'),
'nmakey' => array('type' => 'varchar(60)'),
'mqttbrokerip' => array('type' => 'varchar(60)'),
'mqttbrokerport' => array('type' => 'varchar(5)'),
'mqttusername' => array('type' => 'varchar(60)'),
'mqttpassword' => array('type' => 'varchar(128)')
);
$schema['event'] = array(
'id' => array('type' => 'int(11)', 'Null'=>'NO', 'Key'=>'PRI', 'Extra'=>'auto_increment'),
'userid' => array('type' => 'int(11)'),
'eventfeed' => array('type' => 'int(11)'),
'eventtype' => array('type' => 'int(11)'),
'eventvalue' => array('type' => 'float'),
'action' => array('type' => 'int(11)'),
'setfeed' => array('type' => 'int(11)'),
'setemail' => array('type' => 'text'),
'setvalue' => array('type' => 'float'),
'callcurl' => array('type' => 'text'),
'lasttime' => array('type' => 'int(11)'),
'mutetime' => array('type' => 'int(11)'),
'priority' => array('type' => 'int(3)', 'default'=>0),
'message' => array('type' => 'text'),
'disabled' => array('type' => 'int(1)'),
'mqtttopic' => array('type' => 'text'),
'mqttqos' => array('type' => 'int(3)', 'default'=>0)
);