|
| 1 | +-- MySQL dump 10.13 Distrib 8.0.18, for Win64 (x86_64) |
| 2 | +-- |
| 3 | +-- Host: 127.0.0.1 Database: efkadb |
| 4 | +-- ------------------------------------------------------ |
| 5 | +-- Server version 8.0.18 |
| 6 | + |
| 7 | +/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; |
| 8 | +/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; |
| 9 | +/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; |
| 10 | +/*!50503 SET NAMES utf8 */; |
| 11 | +/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; |
| 12 | +/*!40103 SET TIME_ZONE='+00:00' */; |
| 13 | +/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; |
| 14 | +/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; |
| 15 | +/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; |
| 16 | +/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; |
| 17 | + |
| 18 | +-- |
| 19 | +-- Table structure for table `appointment` |
| 20 | +-- |
| 21 | + |
| 22 | +DROP TABLE IF EXISTS `appointment`; |
| 23 | +/*!40101 SET @saved_cs_client = @@character_set_client */; |
| 24 | +/*!50503 SET character_set_client = utf8mb4 */; |
| 25 | +CREATE TABLE `appointment` ( |
| 26 | + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, |
| 27 | + `citizen_id` int(10) unsigned NOT NULL, |
| 28 | + `doctor_id` int(10) unsigned NOT NULL, |
| 29 | + `datetime` datetime NOT NULL, |
| 30 | + `description` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci, |
| 31 | + `notes` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci, |
| 32 | + PRIMARY KEY (`id`), |
| 33 | + KEY `cit_app_idx` (`citizen_id`), |
| 34 | + KEY `doc_app_idx` (`doctor_id`), |
| 35 | + CONSTRAINT `cit_app` FOREIGN KEY (`citizen_id`) REFERENCES `citizen` (`id`), |
| 36 | + CONSTRAINT `doc_app` FOREIGN KEY (`doctor_id`) REFERENCES `doctor` (`id`) |
| 37 | +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; |
| 38 | +/*!40101 SET character_set_client = @saved_cs_client */; |
| 39 | + |
| 40 | +-- |
| 41 | +-- Dumping data for table `appointment` |
| 42 | +-- |
| 43 | + |
| 44 | +LOCK TABLES `appointment` WRITE; |
| 45 | +/*!40000 ALTER TABLE `appointment` DISABLE KEYS */; |
| 46 | +/*!40000 ALTER TABLE `appointment` ENABLE KEYS */; |
| 47 | +UNLOCK TABLES; |
| 48 | + |
| 49 | +-- |
| 50 | +-- Table structure for table `citizen` |
| 51 | +-- |
| 52 | + |
| 53 | +DROP TABLE IF EXISTS `citizen`; |
| 54 | +/*!40101 SET @saved_cs_client = @@character_set_client */; |
| 55 | +/*!50503 SET character_set_client = utf8mb4 */; |
| 56 | +CREATE TABLE `citizen` ( |
| 57 | + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, |
| 58 | + `user_id` int(10) unsigned NOT NULL, |
| 59 | + `AMKA` int(11) unsigned NOT NULL, |
| 60 | + `first_name` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, |
| 61 | + `last_name` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, |
| 62 | + `email` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, |
| 63 | + `phone_number` varchar(15) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, |
| 64 | + PRIMARY KEY (`id`), |
| 65 | + UNIQUE KEY `AMKA_UNIQUE` (`AMKA`), |
| 66 | + UNIQUE KEY `user_id_UNIQUE` (`user_id`), |
| 67 | + CONSTRAINT `cit_user` FOREIGN KEY (`user_id`) REFERENCES `user` (`id`) |
| 68 | +) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; |
| 69 | +/*!40101 SET character_set_client = @saved_cs_client */; |
| 70 | + |
| 71 | +-- |
| 72 | +-- Dumping data for table `citizen` |
| 73 | +-- |
| 74 | + |
| 75 | +LOCK TABLES `citizen` WRITE; |
| 76 | +/*!40000 ALTER TABLE `citizen` DISABLE KEYS */; |
| 77 | +/*!40000 ALTER TABLE `citizen` ENABLE KEYS */; |
| 78 | +UNLOCK TABLES; |
| 79 | + |
| 80 | +-- |
| 81 | +-- Table structure for table `doctor` |
| 82 | +-- |
| 83 | + |
| 84 | +DROP TABLE IF EXISTS `doctor`; |
| 85 | +/*!40101 SET @saved_cs_client = @@character_set_client */; |
| 86 | +/*!50503 SET character_set_client = utf8mb4 */; |
| 87 | +CREATE TABLE `doctor` ( |
| 88 | + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, |
| 89 | + `user_id` int(10) unsigned NOT NULL, |
| 90 | + `first_name` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, |
| 91 | + `last_name` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, |
| 92 | + `specialty_id` int(10) unsigned DEFAULT NULL, |
| 93 | + PRIMARY KEY (`id`), |
| 94 | + UNIQUE KEY `user_id_UNIQUE` (`user_id`), |
| 95 | + KEY `fk_spec_idx` (`specialty_id`), |
| 96 | + CONSTRAINT `doc_user` FOREIGN KEY (`user_id`) REFERENCES `user` (`id`), |
| 97 | + CONSTRAINT `fk_spec` FOREIGN KEY (`specialty_id`) REFERENCES `specialty` (`id`) |
| 98 | +) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; |
| 99 | +/*!40101 SET character_set_client = @saved_cs_client */; |
| 100 | + |
| 101 | +-- |
| 102 | +-- Dumping data for table `doctor` |
| 103 | +-- |
| 104 | + |
| 105 | +LOCK TABLES `doctor` WRITE; |
| 106 | +/*!40000 ALTER TABLE `doctor` DISABLE KEYS */; |
| 107 | +/*!40000 ALTER TABLE `doctor` ENABLE KEYS */; |
| 108 | +UNLOCK TABLES; |
| 109 | + |
| 110 | +-- |
| 111 | +-- Table structure for table `specialty` |
| 112 | +-- |
| 113 | + |
| 114 | +DROP TABLE IF EXISTS `specialty`; |
| 115 | +/*!40101 SET @saved_cs_client = @@character_set_client */; |
| 116 | +/*!50503 SET character_set_client = utf8mb4 */; |
| 117 | +CREATE TABLE `specialty` ( |
| 118 | + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, |
| 119 | + `specialty` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, |
| 120 | + PRIMARY KEY (`id`) |
| 121 | +) ENGINE=InnoDB AUTO_INCREMENT=16 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; |
| 122 | +/*!40101 SET character_set_client = @saved_cs_client */; |
| 123 | + |
| 124 | +-- |
| 125 | +-- Dumping data for table `specialty` |
| 126 | +-- |
| 127 | + |
| 128 | +LOCK TABLES `specialty` WRITE; |
| 129 | +/*!40000 ALTER TABLE `specialty` DISABLE KEYS */; |
| 130 | +INSERT INTO `specialty` VALUES (7,'Ksematiasma'),(8,'Ksematiasma'),(9,'Ksematiasma'),(10,'Ksematiasma'),(11,'Ksematiasma'),(12,'Ksematiasma'),(13,'Ksematiasma'),(14,'Ksematiasma'),(15,'Ksematiasma'); |
| 131 | +/*!40000 ALTER TABLE `specialty` ENABLE KEYS */; |
| 132 | +UNLOCK TABLES; |
| 133 | + |
| 134 | +-- |
| 135 | +-- Table structure for table `user` |
| 136 | +-- |
| 137 | + |
| 138 | +DROP TABLE IF EXISTS `user`; |
| 139 | +/*!40101 SET @saved_cs_client = @@character_set_client */; |
| 140 | +/*!50503 SET character_set_client = utf8mb4 */; |
| 141 | +CREATE TABLE `user` ( |
| 142 | + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, |
| 143 | + `type` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL, |
| 144 | + `username` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, |
| 145 | + `pwd` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, |
| 146 | + PRIMARY KEY (`id`), |
| 147 | + UNIQUE KEY `username_UNIQUE` (`username`) |
| 148 | +) ENGINE=InnoDB AUTO_INCREMENT=27 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; |
| 149 | +/*!40101 SET character_set_client = @saved_cs_client */; |
| 150 | + |
| 151 | +-- |
| 152 | +-- Dumping data for table `user` |
| 153 | +-- |
| 154 | + |
| 155 | +LOCK TABLES `user` WRITE; |
| 156 | +/*!40000 ALTER TABLE `user` DISABLE KEYS */; |
| 157 | +INSERT INTO `user` VALUES (14,'d','username23j','password'),(16,'d','usernamess23j','password'),(17,'d','usernamess423j','password'),(18,'d','usernamwsess423j','password'),(19,'d','usernamwsejjss423j','password'),(21,'d','usernsedededmwsejjss423j','password'),(22,'d','usdedmwsejjss423j','password'),(24,'d','usdess423j','password'),(26,'d','usdesfdffs423j','password'); |
| 158 | +/*!40000 ALTER TABLE `user` ENABLE KEYS */; |
| 159 | +UNLOCK TABLES; |
| 160 | +/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; |
| 161 | + |
| 162 | +/*!40101 SET SQL_MODE=@OLD_SQL_MODE */; |
| 163 | +/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; |
| 164 | +/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; |
| 165 | +/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; |
| 166 | +/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; |
| 167 | +/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; |
| 168 | +/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; |
| 169 | + |
| 170 | +-- Dump completed on 2019-12-09 18:39:33 |
0 commit comments