Line 0
Link Here
|
|
|
1 |
--- docs/poweradmin-mysql-db-structure.sql.orig 2008-03-27 22:38:03.000000000 +0200 |
2 |
+++ docs/poweradmin-mysql-db-structure.sql 2010-03-24 13:05:07.000000000 +0200 |
3 |
@@ -1,4 +1,3 @@ |
4 |
-DROP TABLE IF EXISTS `users`; |
5 |
CREATE TABLE `users` ( |
6 |
`id` int(11) NOT NULL auto_increment, |
7 |
`username` varchar(16) NOT NULL default '', |
8 |
@@ -15,43 +14,39 @@ |
9 |
INSERT INTO `users` VALUES (1,'admin','21232f297a57a5a743894a0e4a801fc3','Administrator','admin@example.net','Administrator with full rights.',1,1); |
10 |
UNLOCK TABLES; |
11 |
|
12 |
-DROP TABLE IF EXISTS `perm_items`; |
13 |
CREATE TABLE `perm_items` ( |
14 |
`id` int(11) NOT NULL auto_increment, |
15 |
`name` varchar(64) NOT NULL, |
16 |
`descr` text NOT NULL, |
17 |
PRIMARY KEY (`id`) |
18 |
-) ENGINE=MyISAM AUTO_INCREMENT=62 DEFAULT CHARSET=latin1; |
19 |
+) ENGINE=MyISAM DEFAULT CHARSET=latin1; |
20 |
|
21 |
LOCK TABLES `perm_items` WRITE; |
22 |
INSERT INTO `perm_items` VALUES (41,'zone_master_add','User is allowed to add new master zones.'),(42,'zone_slave_add','User is allowed to add new slave zones.'),(43,'zone_content_view_own','User is allowed to see the content and meta data of zones he owns.'),(44,'zone_content_edit_own','User is allowed to edit the content of zones he owns.'),(45,'zone_meta_edit_own','User is allowed to edit the meta data of zones he owns.'),(46,'zone_content_view_others','User is allowed to see the content and meta data of zones he does not own.'),(47,'zone_content_edit_others','User is allowed to edit the content of zones he does not own.'),(48,'zone_meta_edit_others','User is allowed to edit the meta data of zones he does not own.'),(49,'search','User is allowed to perform searches.'),(50,'supermaster_view','User is allowed to view supermasters.'),(51,'supermaster_add','User is allowed to add new supermasters.'),(52,'supermaster_edit','User is allowed to edit supermasters.'),(53,'user_is |
0 |
_ueberuser','User has full access. God-like. Redeemer.'),(54,'user_view_others','User is allowed to see other users and their details.'),(55,'user_add_new','User is allowed to add new users.'),(56,'user_edit_own','User is allowed to edit their own details.'),(57,'user_edit_others','User is allowed to edit other users.'),(58,'user_passwd_edit_others','User is allowed to edit the password of other users.'),(59,'user_edit_templ_perm','User is allowed to change the permission template that is assigned to a us er.'),(60,'templ_perm_add','User is allowed to add new permission templates.'),(61,'templ_perm_edit','User is allowed to edit existing permission templates.'); |
23 |
_ueberuser','User has full access. God-like. Redeemer.'),(54,'user_view_others','User is allowed to see other users and their details.'),(55,'user_add_new','User is allowed to add new users.'),(56,'user_edit_own','User is allowed to edit their own details.'),(57,'user_edit_others','User is allowed to edit other users.'),(58,'user_passwd_edit_others','User is allowed to edit the password of other users.'),(59,'user_edit_templ_perm','User is allowed to change the permission template that is assigned to a us er.'),(60,'templ_perm_add','User is allowed to add new permission templates.'),(61,'templ_perm_edit','User is allowed to edit existing permission templates.'); |
|
|
24 |
UNLOCK TABLES; |
25 |
|
26 |
-DROP TABLE IF EXISTS `perm_templ`; |
27 |
CREATE TABLE `perm_templ` ( |
28 |
`id` int(11) NOT NULL auto_increment, |
29 |
`name` varchar(128) NOT NULL, |
30 |
`descr` text NOT NULL, |
31 |
PRIMARY KEY (`id`) |
32 |
-) ENGINE=MyISAM AUTO_INCREMENT=5 DEFAULT CHARSET=latin1; |
33 |
+) ENGINE=MyISAM DEFAULT CHARSET=latin1; |
34 |
|
35 |
LOCK TABLES `perm_templ` WRITE; |
36 |
INSERT INTO `perm_templ` VALUES (1,'Administrator','Administrator template with full rights.'); |
37 |
UNLOCK TABLES; |
38 |
|
39 |
-DROP TABLE IF EXISTS `perm_templ_items`; |
40 |
CREATE TABLE `perm_templ_items` ( |
41 |
`id` int(11) NOT NULL auto_increment, |
42 |
`templ_id` int(11) NOT NULL, |
43 |
`perm_id` int(11) NOT NULL, |
44 |
PRIMARY KEY (`id`) |
45 |
-) ENGINE=MyISAM AUTO_INCREMENT=269 DEFAULT CHARSET=latin1; |
46 |
+) ENGINE=MyISAM DEFAULT CHARSET=latin1; |
47 |
|
48 |
LOCK TABLES `perm_templ_items` WRITE; |
49 |
-INSERT INTO `perm_templ_items` VALUES (249,1,53); |
50 |
+INSERT INTO `perm_templ_items` VALUES (1,1,53); |
51 |
UNLOCK TABLES; |
52 |
|
53 |
-DROP TABLE IF EXISTS `zones`; |
54 |
CREATE TABLE `zones` ( |
55 |
`id` int(11) NOT NULL auto_increment, |
56 |
`domain_id` int(11) NOT NULL default '0', |
57 |
@@ -59,4 +54,23 @@ |
58 |
`comment` text, |
59 |
PRIMARY KEY (`id`), |
60 |
KEY `owner` (`owner`) |
61 |
-) ENGINE=MyISAM AUTO_INCREMENT=22001 DEFAULT CHARSET=latin1; |
62 |
+) ENGINE=MyISAM DEFAULT CHARSET=latin1; |
63 |
+ |
64 |
+CREATE TABLE zone_templ ( |
65 |
+ `id` int(11) NOT NULL auto_increment, |
66 |
+ `name` varchar(128) NOT NULL, |
67 |
+ `descr` text NOT NULL, |
68 |
+ `owner` int(11) NOT NULL, |
69 |
+ PRIMARY KEY (id) |
70 |
+) ENGINE=MyISAM DEFAULT CHARSET=latin1; |
71 |
+ |
72 |
+CREATE TABLE zone_templ_records ( |
73 |
+ `id` int(11) NOT NULL auto_increment, |
74 |
+ `zone_templ_id` int(11) NOT NULL, |
75 |
+ `name` varchar(255) NOT NULL, |
76 |
+ `type` varchar(6) NOT NULL, |
77 |
+ `content` varchar(255) NOT NULL, |
78 |
+ `ttl` int(11) NOT NULL, |
79 |
+ `prio` int(11) NOT NULL, |
80 |
+ PRIMARY KEY (id) |
81 |
+) ENGINE=MyISAM DEFAULT CHARSET=latin1; |