nzart-exam-generator/includes/fullDb.sql

138 lines
193 KiB
MySQL
Raw Permalink Normal View History

2016-12-31 07:28:37 +00:00
-- MySQL dump 10.16 Distrib 10.1.20-MariaDB, for Linux (x86_64)
--
-- Host: 127.0.0.1 Database: 127.0.0.1
-- ------------------------------------------------------
-- Server version 5.6.35
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
--
-- Table structure for table `answer`
--
DROP TABLE IF EXISTS `answer`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `answer` (
`answer_id` int(11) NOT NULL AUTO_INCREMENT,
`answer_time` int(11) NOT NULL,
`answerdata_question` int(11) NOT NULL,
`answerdata_content` mediumtext,
`answerdata_correct` int(1) DEFAULT '0',
PRIMARY KEY (`answer_id`),
UNIQUE KEY `answer_id_UNIQUE` (`answer_id`)
) ENGINE=InnoDB AUTO_INCREMENT=2401 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `answer`
--
LOCK TABLES `answer` WRITE;
/*!40000 ALTER TABLE `answer` DISABLE KEYS */;
INSERT INTO `answer` VALUES (1,1483169094,1,'a private radio service for personal gain and public benefit',0),(2,1483169094,1,'a public radio service used for public service communications',0),(3,1483169094,1,'a radiocommunication service for the purpose of self-training, intercommunication and technical investigation',1),(4,1483169094,1,'a private radio service intended only for emergency communications',0),(5,1483169094,2,'European Radiocommunications Office',0),(6,1483169094,2,'United Nations',0),(7,1483169094,2,'International Telecommunication Union',1),(8,1483169094,2,'European Telecommunication Standards Institute',0),(9,1483169094,3,'New Zealand Association of Radio Transmitters (NZART)',0),(10,1483169094,3,'Ministry of Business, Innovation, and Employment',1),(11,1483169094,3,'International Amateur Radio Union (IARU)',0),(12,1483169094,3,'Prime Minister\'s Office',0),(13,1483169094,4,'Region 1',0),(14,1483169094,4,'Region 2',0),(15,1483169094,4,'Region 3',1),(16,1483169094,4,'Region 4',0),(17,1483169094,5,'New Zealand Radiocommunications Regulations',1),(18,1483169094,5,'Broadcasting Act',0),(19,1483169094,5,'Radio Amateur\'s Handbook',0),(20,1483169094,5,'minutes of the International Telecommunication Union meetings',0),(21,1483169094,6,'Ministry of Business, Innovation, and Employment Radio Spectrum Management Group',1),(22,1483169094,6,'the Area Code administrators of New Zealand Post',0),(23,1483169094,6,'the Radio Communications Division of the Ministry of Police',0),(24,1483169094,6,'your local council public relations section',0),(25,1483169094,7,'in the public radio service',0),(26,1483169094,7,'using radiocommunications for a commercial purpose',0),(27,1483169094,7,'using equipment for training new radiocommunications operators',0),(28,1483169094,7,'in the Amateur Service',1),(29,1483169094,8,'at any time',1),(30,1483169094,8,'on any business day',0),(31,1483169094,8,'before 9 p.m.',0),(32,1483169094,8,'only on public holidays',0),(33,1483169094,9,'the International Radio Regulations from the ITU',1),(34,1483169094,9,'the Radio Amateur\'s Handbook',0),(35,1483169094,9,'the NZART Callbook',0),(36,1483169094,9,'on the packet radio bulletin-board',0),(37,1483169094,10,'transmit on public-service frequencies',0),(38,1483169094,10,'retransmit shortwave broadcasts',0),(39,1483169094,10,'repair radio equipment',0),(40,1483169094,10,'transmit in bands allocated to the Amateur Service',1),(41,1483169094,11,'anywhere in the world',0),(42,1483169094,11,'anywhere in New Zealand and in any other country that recognises the Certificate',1),(43,1483169094,11,'within 50 km of your home station location',0),(44,1483169094,11,'only at your home address',0),(45,1483169094,12,'one at a time',0),(46,1483169094,12,'one at a time, except for emergency communications',0),(47,1483169094,12,'any number at one time',1),(48,1483169094,12,'any number, so long as they are transmitting on different bands',0),(49,1483169094,13,'your General Amateur Operator Certificate of Competency',1),(50,1483169094,13,'a copy of the Rules and Regulations for the Amateur Service',0),(51,1483169094,13,'a copy of the Radio Amateur\'s Handbook for instant reference',0),(52,1483169094,13,'a chart showing the amateur radio bands',0),(53,1483169094,14,'operated by the holder of a General Amateur Operator Certificate of Competency on the amateur radio bands',1),(54,1483169094,14,'owned and operated by a person who is not engaged professionally in radio communications',0),(55,1483169094,14,'used exclusively to provide two-way communication in connection with activities of amateur sporting organisations',0),(56,1483169094,14,'used primarily for emergency communications during floods, earthquakes and similar disasters.',0),(57,1483169094,15,'any member of the immediate family to maintain contact with only the qualified operator',0),(58,1483169094,15,'any person with an appropriate General Amateur Operator Certificate of Competency',1),(59,1483169094,15,'the immediate family to communicate with any amateur radio operator',0),(60,1483169094,15,'the immediate fa
/*!40000 ALTER TABLE `answer` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `question`
--
DROP TABLE IF EXISTS `question`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `question` (
`question_id` int(11) NOT NULL AUTO_INCREMENT,
`question_time` int(11) NOT NULL,
`questiondata_number` varchar(10) DEFAULT NULL,
`questiondata_content` text,
`questiondata_image` text,
PRIMARY KEY (`question_id`),
UNIQUE KEY `question_id_UNIQUE` (`question_id`)
) ENGINE=InnoDB AUTO_INCREMENT=601 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `question`
--
LOCK TABLES `question` WRITE;
/*!40000 ALTER TABLE `question` DISABLE KEYS */;
2017-01-03 23:44:50 +00:00
INSERT INTO `question` VALUES (1,1483169094,'1.1','The Amateur Service may be briefly defined as:',''),(2,1483169094,'1.2','The organisation responsible for the International Radio Regulations is the:',''),(3,1483169094,'1.3','New Zealand\'s views on international radio regulatory matters are coordinated by the:',''),(4,1483169094,'1.4','For regulatory purposes the world is divided into regions each with different radio spectrum allocations. New Zealand is in:',''),(5,1483169094,'1.5','The prime document for the administration of the Amateur Service in New Zealand is the:',''),(6,1483169094,'1.6','The administration of the Amateur Service in New Zealand is by:',''),(7,1483169094,'1.7','An Amateur Station is a station:',''),(8,1483169094,'1.8','A General Amateur Operator Certificate of Competency can be inspected by an authorised officer from the Ministry of Business, Innovation, and Employment:',''),(9,1483169094,'1.9','The fundamental regulations controlling the Amateur Service are to be found in:',''),(10,1483169094,'1.10','You must have a General Amateur Operator Certificate of Competency to:',''),(11,1483169094,'1.11','A New Zealand General Amateur Operator Certificate of Competency allows you to operate:',''),(12,1483169094,'1.12','With a General Amateur Operator Certificate of Competency you may operate transmitters in your station:',''),(13,1483169094,'1.13','You must keep the following document at your amateur station:',''),(14,1483169094,'1.14','An Amateur Station is one which is:',''),(15,1483169094,'1.15','If the qualified operator of an amateur radio station is absent overseas, the home station may be used by:',''),(16,1483169094,'1.16','All amateur stations, regardless of the mode of transmission used, must be equipped with:',''),(17,1483169094,'1.17','An amateur station may transmit unidentified signals:',''),(18,1483169094,'1.18','You may operate your amateur radio station somewhere in New Zealand for short periods away from the location entered in the administration\'s database:',''),(19,1483169094,'1.19','Before operating an amateur station in a motor vehicle, you must:',''),(20,1483169094,'1.20','An applicant for a New Zealand General Amateur Operator Certificate of Competency must first qualify by meeting the appropriate examination requirements. Application may then be made by:',''),(21,1483169094,'1.21','An amateur radio operator must have current New Zealand postal and email addresses so the Ministry of Business, Innovation, and Employment:',''),(22,1483169094,'1.22','If you transmit from another amateur\'s station, the person responsible for its proper operation is:',''),(23,1483169094,'1.23','Your responsibility as a station operator is that you must:',''),(24,1483169094,'1.24','An amateur station must have a qualified operator:',''),(25,1483169094,'1.25','A log-book for recording stations worked:',''),(26,1483169094,'1.26','Unqualified persons in your family cannot transmit using your amateur station if they are alone with your equipment because they must:',''),(27,1483169094,'1.27','Amateur radio repeater equipment and frequencies in New Zealand are co-ordinated by:',''),(28,1483169094,'1.28','A qualified operator of an amateur radio station may permit anyone to:',''),(29,1483169094,'1.29','The minimum age for a person to hold a General Amateur Operator Certificate of Competency is:',''),(30,1483169095,'1.30','If you contact another station and your signal is strong and perfectly readable, you should:',''),(31,1483169095,'1.31','The age when an amateur radio operator is required to surrender the General Amateur Operator Certificate of Competency is:',''),(32,1483169095,'1.32','Peak envelope power (PEP) output is the:',''),(33,1483169095,'1.33','The maximum power output permitted from an amateur station is:',''),(34,1483169095,'1.34','The transmitter power output for amateur stations at all times is:',''),(35,1483169095,'1.35','You identify your amateur station by transmitting your:',''),(36,1483169095,'1.36','This callsign could be allocated to an amateur radio operator in New Zealand:',''),(37
2016-12-31 07:28:37 +00:00
/*!40000 ALTER TABLE `question` ENABLE KEYS */;
UNLOCK TABLES;
2017-01-01 22:12:27 +00:00
--
-- Table structure for table `result`
--
DROP TABLE IF EXISTS `result`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `result` (
`result_id` int(11) NOT NULL AUTO_INCREMENT,
`result_time` int(11) NOT NULL,
`resultdata_user` int(11) NOT NULL,
`resultdata_result` mediumtext,
`resultdata_score` varchar(255) DEFAULT NULL,
PRIMARY KEY (`result_id`),
UNIQUE KEY `result_id_UNIQUE` (`result_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `result`
--
LOCK TABLES `result` WRITE;
/*!40000 ALTER TABLE `result` DISABLE KEYS */;
/*!40000 ALTER TABLE `result` ENABLE KEYS */;
UNLOCK TABLES;
2016-12-31 07:28:37 +00:00
--
-- Table structure for table `user`
--
DROP TABLE IF EXISTS `user`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `user` (
`user_id` int(11) NOT NULL AUTO_INCREMENT,
`user_time` int(11) NOT NULL,
`userdata_username` varchar(256) NOT NULL,
`userdata_password` varchar(256) NOT NULL,
PRIMARY KEY (`user_id`),
UNIQUE KEY `user_id_UNIQUE` (`user_id`),
UNIQUE KEY `userdata_username_UNIQUE` (`userdata_username`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `user`
--
LOCK TABLES `user` WRITE;
/*!40000 ALTER TABLE `user` DISABLE KEYS */;
/*!40000 ALTER TABLE `user` ENABLE KEYS */;
UNLOCK TABLES;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
2017-01-01 22:12:27 +00:00
-- Dump completed on 2017-01-02 10:44:10