/*!40000 ALTER TABLE `system_config` DISABLE KEYS */;
INSERT INTO `system_config` VALUES (588,'log.file.name','/tmp/ca_mgr.log'),(589,'log.file.enabled','0'),(590,'log.syslog.facility','128'),(591,'log.syslog.enabled','1'),(592,'log.priority','7');
/*!40000 ALTER TABLE `system_config` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `system_resource`
--
DROP TABLE IF EXISTS `system_resource`;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `system_resource` (
`id` bigint(20) NOT NULL auto_increment,
`resource` varchar(45) collate utf8_unicode_ci NOT NULL COMMENT 'Name of the resource',
`inherit_resource` varchar(45) collate utf8_unicode_ci default NULL COMMENT 'Resource inherits from another resource',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='resources to which access can be granted (see system_roles)';
SET character_set_client = @saved_cs_client;
--
-- Dumping data for table `system_resource`
--
LOCK TABLES `system_resource` WRITE;
/*!40000 ALTER TABLE `system_resource` DISABLE KEYS */;
/*!40000 ALTER TABLE `system_resource` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `system_role`
--
DROP TABLE IF EXISTS `system_role`;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `system_role` (
`id` bigint(20) NOT NULL auto_increment,
`role` varchar(45) collate utf8_unicode_ci NOT NULL COMMENT 'Name of an role, these roles can then be assigned to users.',
`inherit_role` varchar(45) collate utf8_unicode_ci default NULL COMMENT 'Role inherits from another role',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Define the roles, never assign permissions directly';
SET character_set_client = @saved_cs_client;
--
-- Dumping data for table `system_role`
--
LOCK TABLES `system_role` WRITE;
/*!40000 ALTER TABLE `system_role` DISABLE KEYS */;
INSERT INTO `system_role` VALUES (1,'User',''),(2,'Admin','User');
/*!40000 ALTER TABLE `system_role` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `system_role_has_system_resource`
--
DROP TABLE IF EXISTS `system_role_has_system_resource`;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `system_role_has_system_resource` (
`system_role_id` bigint(20) NOT NULL,
`system_resource_id` bigint(20) NOT NULL,
`priority` int(10) unsigned NOT NULL default '1' COMMENT 'Allow and deny statements can be piled, which makes the order of statements important.',
`permission` enum('allow','deny') collate utf8_unicode_ci NOT NULL default 'allow' COMMENT 'Grant permission or deny, defaults to grant',
`privilege` set('view','edit','administrate') collate utf8_unicode_ci NOT NULL default 'view' COMMENT 'Privilege to grant or deny',
CONSTRAINT `fk_system_role_has_system_resource_system_resource1` FOREIGN KEY (`system_resource_id`) REFERENCES `system_resource` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
CONSTRAINT `fk_system_role_has_system_resource_system_role1` FOREIGN KEY (`system_role_id`) REFERENCES `system_role` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION