docs/poweradmin-mysql-db-structure.sql
author Peter Gervai <grin@grin.hu>
Fri, 14 Nov 2008 14:43:52 +0100
changeset 199 bb95eaab943d
parent 101 9eb37dbe5388
permissions -rw-r--r--
Added tag release_2.1.0 for changeset 0345d21f21b0
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
82
c255196bc447 [feladat @ 182]
rejo
parents:
diff changeset
     1
DROP TABLE IF EXISTS `users`;
c255196bc447 [feladat @ 182]
rejo
parents:
diff changeset
     2
CREATE TABLE `users` (
c255196bc447 [feladat @ 182]
rejo
parents:
diff changeset
     3
  `id` int(11) NOT NULL auto_increment,
c255196bc447 [feladat @ 182]
rejo
parents:
diff changeset
     4
  `username` varchar(16) NOT NULL default '',
c255196bc447 [feladat @ 182]
rejo
parents:
diff changeset
     5
  `password` varchar(34) NOT NULL default '',
c255196bc447 [feladat @ 182]
rejo
parents:
diff changeset
     6
  `fullname` varchar(255) NOT NULL default '',
c255196bc447 [feladat @ 182]
rejo
parents:
diff changeset
     7
  `email` varchar(255) NOT NULL default '',
c255196bc447 [feladat @ 182]
rejo
parents:
diff changeset
     8
  `description` text NOT NULL,
c255196bc447 [feladat @ 182]
rejo
parents:
diff changeset
     9
  `perm_templ` tinyint(11) NOT NULL default '0',
c255196bc447 [feladat @ 182]
rejo
parents:
diff changeset
    10
  `active` tinyint(1) NOT NULL default '0',
c255196bc447 [feladat @ 182]
rejo
parents:
diff changeset
    11
  PRIMARY KEY  (`id`)
c255196bc447 [feladat @ 182]
rejo
parents:
diff changeset
    12
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
c255196bc447 [feladat @ 182]
rejo
parents:
diff changeset
    13
c255196bc447 [feladat @ 182]
rejo
parents:
diff changeset
    14
LOCK TABLES `users` WRITE;
c255196bc447 [feladat @ 182]
rejo
parents:
diff changeset
    15
INSERT INTO `users` VALUES (1,'admin','21232f297a57a5a743894a0e4a801fc3','Administrator','admin@example.net','Administrator with full rights.',1,1);
c255196bc447 [feladat @ 182]
rejo
parents:
diff changeset
    16
UNLOCK TABLES;
c255196bc447 [feladat @ 182]
rejo
parents:
diff changeset
    17
c255196bc447 [feladat @ 182]
rejo
parents:
diff changeset
    18
DROP TABLE IF EXISTS `perm_items`;
c255196bc447 [feladat @ 182]
rejo
parents:
diff changeset
    19
CREATE TABLE `perm_items` (
c255196bc447 [feladat @ 182]
rejo
parents:
diff changeset
    20
  `id` int(11) NOT NULL auto_increment,
c255196bc447 [feladat @ 182]
rejo
parents:
diff changeset
    21
  `name` varchar(64) NOT NULL,
c255196bc447 [feladat @ 182]
rejo
parents:
diff changeset
    22
  `descr` text NOT NULL,
c255196bc447 [feladat @ 182]
rejo
parents:
diff changeset
    23
  PRIMARY KEY  (`id`)
c255196bc447 [feladat @ 182]
rejo
parents:
diff changeset
    24
) ENGINE=MyISAM AUTO_INCREMENT=62 DEFAULT CHARSET=latin1;
c255196bc447 [feladat @ 182]
rejo
parents:
diff changeset
    25
c255196bc447 [feladat @ 182]
rejo
parents:
diff changeset
    26
LOCK TABLES `perm_items` WRITE;
101
9eb37dbe5388 [feladat @ 201]
rejo
parents: 100
diff changeset
    27
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_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 user.'),(60,'templ_perm_add','User is allowed to add new permission templates.'),(61,'templ_perm_edit','User is allowed to edit existing permission templates.');
82
c255196bc447 [feladat @ 182]
rejo
parents:
diff changeset
    28
UNLOCK TABLES;
c255196bc447 [feladat @ 182]
rejo
parents:
diff changeset
    29
c255196bc447 [feladat @ 182]
rejo
parents:
diff changeset
    30
DROP TABLE IF EXISTS `perm_templ`;
c255196bc447 [feladat @ 182]
rejo
parents:
diff changeset
    31
CREATE TABLE `perm_templ` (
c255196bc447 [feladat @ 182]
rejo
parents:
diff changeset
    32
  `id` int(11) NOT NULL auto_increment,
c255196bc447 [feladat @ 182]
rejo
parents:
diff changeset
    33
  `name` varchar(128) NOT NULL,
c255196bc447 [feladat @ 182]
rejo
parents:
diff changeset
    34
  `descr` text NOT NULL,
c255196bc447 [feladat @ 182]
rejo
parents:
diff changeset
    35
  PRIMARY KEY  (`id`)
c255196bc447 [feladat @ 182]
rejo
parents:
diff changeset
    36
) ENGINE=MyISAM AUTO_INCREMENT=5 DEFAULT CHARSET=latin1;
c255196bc447 [feladat @ 182]
rejo
parents:
diff changeset
    37
c255196bc447 [feladat @ 182]
rejo
parents:
diff changeset
    38
LOCK TABLES `perm_templ` WRITE;
c255196bc447 [feladat @ 182]
rejo
parents:
diff changeset
    39
INSERT INTO `perm_templ` VALUES (1,'Administrator','Administrator template with full rights.');
c255196bc447 [feladat @ 182]
rejo
parents:
diff changeset
    40
UNLOCK TABLES;
c255196bc447 [feladat @ 182]
rejo
parents:
diff changeset
    41
c255196bc447 [feladat @ 182]
rejo
parents:
diff changeset
    42
DROP TABLE IF EXISTS `perm_templ_items`;
c255196bc447 [feladat @ 182]
rejo
parents:
diff changeset
    43
CREATE TABLE `perm_templ_items` (
c255196bc447 [feladat @ 182]
rejo
parents:
diff changeset
    44
  `id` int(11) NOT NULL auto_increment,
c255196bc447 [feladat @ 182]
rejo
parents:
diff changeset
    45
  `templ_id` int(11) NOT NULL,
c255196bc447 [feladat @ 182]
rejo
parents:
diff changeset
    46
  `perm_id` int(11) NOT NULL,
c255196bc447 [feladat @ 182]
rejo
parents:
diff changeset
    47
  PRIMARY KEY  (`id`)
c255196bc447 [feladat @ 182]
rejo
parents:
diff changeset
    48
) ENGINE=MyISAM AUTO_INCREMENT=269 DEFAULT CHARSET=latin1;
c255196bc447 [feladat @ 182]
rejo
parents:
diff changeset
    49
c255196bc447 [feladat @ 182]
rejo
parents:
diff changeset
    50
LOCK TABLES `perm_templ_items` WRITE;
100
6e46a6454952 [feladat @ 200]
rejo
parents: 84
diff changeset
    51
INSERT INTO `perm_templ_items` VALUES (249,1,53);
82
c255196bc447 [feladat @ 182]
rejo
parents:
diff changeset
    52
UNLOCK TABLES;
c255196bc447 [feladat @ 182]
rejo
parents:
diff changeset
    53
c255196bc447 [feladat @ 182]
rejo
parents:
diff changeset
    54
DROP TABLE IF EXISTS `zones`;
c255196bc447 [feladat @ 182]
rejo
parents:
diff changeset
    55
CREATE TABLE `zones` (
c255196bc447 [feladat @ 182]
rejo
parents:
diff changeset
    56
  `id` int(11) NOT NULL auto_increment,
c255196bc447 [feladat @ 182]
rejo
parents:
diff changeset
    57
  `domain_id` int(11) NOT NULL default '0',
c255196bc447 [feladat @ 182]
rejo
parents:
diff changeset
    58
  `owner` int(11) NOT NULL default '0',
c255196bc447 [feladat @ 182]
rejo
parents:
diff changeset
    59
  `comment` text,
c255196bc447 [feladat @ 182]
rejo
parents:
diff changeset
    60
  PRIMARY KEY  (`id`),
c255196bc447 [feladat @ 182]
rejo
parents:
diff changeset
    61
  KEY `owner` (`owner`)
c255196bc447 [feladat @ 182]
rejo
parents:
diff changeset
    62
) ENGINE=MyISAM AUTO_INCREMENT=22001 DEFAULT CHARSET=latin1;