Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 26 additions & 2 deletions SQL/0000-00-00-schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -971,7 +971,7 @@ CREATE TABLE `permissions` (
`permID` int(10) unsigned NOT NULL auto_increment,
`code` varchar(255) NOT NULL default '',
`description` varchar(255) NOT NULL default '',
`type` enum('role','permission') NOT NULL default 'permission',
`categoryID` int(10) DEFAULT NULL,
PRIMARY KEY (`permID`)
) ENGINE=InnoDB AUTO_INCREMENT=17 DEFAULT CHARSET=latin1;

Expand All @@ -981,10 +981,34 @@ CREATE TABLE `permissions` (

LOCK TABLES `permissions` WRITE;
/*!40000 ALTER TABLE `permissions` DISABLE KEYS */;
INSERT INTO `permissions` VALUES (1,'superuser','There can be only one Highlander','role'),(2,'user_accounts','User management','permission'),(3,'user_accounts_multisite','Across all sites create and edit users','permission'),(4,'context_help','Edit help documentation','permission'),(5,'bvl_feedback','Behavioural QC','role'),(6,'mri_feedback','Edit MRI feedback threads','permission'),(7,'mri_efax','Edit MRI Efax files','permission'),(8,'send_to_dcc','Send to DCC','permission'),(9,'unsend_to_dcc','Reverse Send from DCC','permission'),(10,'access_all_profiles','Across all sites access candidate profiles','permission'),(11,'data_entry','Data entry','role'),(12,'certification','Certify examiners','permission'),(13,'certification_multisite','Across all sites certify examiners','permission'),(14,'timepoint_flag','Edit exclusion flags','permission'),(15,'timepoint_flag_evaluate','Evaluate overall exclusionary criteria for the timepoint','permission'),(16,'mri_safety','Review MRI safety form for accidental findings','permission');
INSERT INTO `permissions` VALUES (1,'superuser','There can be only one Highlander','1'),(2,'user_accounts','User management','2'),(3,'user_accounts_multisite','Across all sites create and edit users','2'),(4,'context_help','Edit help documentation','2'),(5,'bvl_feedback','Behavioural QC','1'),(6,'mri_feedback','Edit MRI feedback threads','2'),(7,'mri_efax','Edit MRI Efax files','2'),(8,'send_to_dcc','Send to DCC','2'),(9,'unsend_to_dcc','Reverse Send from DCC','2'),(10,'access_all_profiles','Across all sites access candidate profiles','2'),(11,'data_entry','Data entry','1'),(12,'certification','Certify examiners','2'),(13,'certification_multisite','Across all sites certify examiners','2'),(14,'timepoint_flag','Edit exclusion flags','2'),(15,'timepoint_flag_evaluate','Evaluate overall exclusionary criteria for the timepoint','2'),(16,'mri_safety','Review MRI safety form for accidental findings','2');
/*!40000 ALTER TABLE `permissions` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `permissions_category`
--

DROP TABLE IF EXISTS `permissions_category`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `permissions_category` (
`ID` int(10) NOT NULL AUTO_INCREMENT,
`Description` varchar(255) NOT NULL,
PRIMARY KEY (`ID`)
) ENGINE=MyISAM AUTO_INCREMENT=4 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `permissions_category`
--

LOCK TABLES `permissions_category` WRITE;
/*!40000 ALTER TABLE `permissions_category` DISABLE KEYS */;
INSERT INTO `permissions_category` VALUES (1,'Roles'),(2,'Permission');
/*!40000 ALTER TABLE `permissions_category` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `psc`
--
Expand Down
Loading