diff options
author | Christian Hofmaier | 2017-03-28 11:23:24 +0200 |
---|---|---|
committer | Christian Hofmaier | 2017-03-28 11:23:24 +0200 |
commit | 7807e30a69ab39b3f2a7f20d2608ba6b46b456e8 (patch) | |
tree | 0c9054b307b72d2a891e4b5b0e0a389acd9716cd /modules-available/permissionmanager/install.inc.php | |
parent | [permission-manager] renamed module folder (diff) | |
download | slx-admin-7807e30a69ab39b3f2a7f20d2608ba6b46b456e8.tar.gz slx-admin-7807e30a69ab39b3f2a7f20d2608ba6b46b456e8.tar.xz slx-admin-7807e30a69ab39b3f2a7f20d2608ba6b46b456e8.zip |
[permission-manager] first part of UI, database table, sql queries and db methods
Diffstat (limited to 'modules-available/permissionmanager/install.inc.php')
-rw-r--r-- | modules-available/permissionmanager/install.inc.php | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/modules-available/permissionmanager/install.inc.php b/modules-available/permissionmanager/install.inc.php new file mode 100644 index 00000000..a873f2c0 --- /dev/null +++ b/modules-available/permissionmanager/install.inc.php @@ -0,0 +1,27 @@ +<?php + +$res = array(); + +$res[] = tableCreate('role', " + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `name` varchar(200) NOT NULL, + PRIMARY KEY (`id`) +"); + +$res[] = tableCreate('userXrole', " + `userid` int(10) unsigned NOT NULL, + `roleid` int(10) unsigned NOT NULL, + PRIMARY KEY (`userid`, `roleid`) +"); + +$res[] = tableCreate('roleXlocation', " + `roleid` int(10) unsigned NOT NULL, + `locid` int(10) unsigned NOT NULL, + PRIMARY KEY (`roleid`, `locid`) +"); + +$res[] = tableCreate('roleXpermission', " + `roleid` int(10) unsigned NOT NULL, + `permissionid`int(10) unsigned NOT NULL, + PRIMARY KEY (`roleid`, `permissionid`) +"); |