forked from emoncms/app
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp_schema.php
More file actions
24 lines (21 loc) · 803 Bytes
/
app_schema.php
File metadata and controls
24 lines (21 loc) · 803 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?php
$schema['app'] = array(
// unique id for the app
'id' => array('type' => 'int(11)', 'Null'=>false, 'Key'=>'PRI', 'Extra'=>'auto_increment'),
// app name
'app' => array('type' => 'varchar(255)'),
// userid of the owner of the app
'userid' => array('type' => 'int(11)'),
// name of the app
'name' => array('type' => 'varchar(255)'),
// public flag
'public' => array('type' => 'tinyint(1)', 'default'=>0),
// config json
'config' => array('type' => 'text')
);
$schema['app_config'] = array(
'userid' => array('type' => 'int(11)'),
'data' => array('type' => 'text')
);
// Include app schema
require_once "apps/OpenEnergyMonitor/myheatpump/myheatpump_schema.php";