-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dental-Clinicexit
170 lines (144 loc) · 8.38 KB
/
Dental-Clinicexit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
-- MySQL dump 10.13 Distrib 5.7.21, for Win64 (x86_64)
--
-- Host: localhost Database: dentist
-- ------------------------------------------------------
-- Server version 5.7.21-log
/*!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 */;
--
-- Current Database: `dentist`
--
CREATE DATABASE /*!32312 IF NOT EXISTS*/ `dentist` /*!40100 DEFAULT CHARACTER SET utf8 */;
USE `dentist`;
--
-- Table structure for table `invoices`
--
DROP TABLE IF EXISTS `invoices`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `invoices` (
`invoiceId` int(11) NOT NULL AUTO_INCREMENT,
`patientId` int(11) NOT NULL,
`amount` float NOT NULL DEFAULT '0',
`amountPaid` float NOT NULL DEFAULT '0',
`invoiceDate` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`invoiceId`),
KEY `patientId_idx` (`patientId`),
CONSTRAINT `patientId` FOREIGN KEY (`patientId`) REFERENCES `patients` (`patientId`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `invoices`
--
LOCK TABLES `invoices` WRITE;
/*!40000 ALTER TABLE `invoices` DISABLE KEYS */;
INSERT INTO `invoices` VALUES (1,2,0,0,'2018-05-21 18:08:34');
/*!40000 ALTER TABLE `invoices` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `patients`
--
DROP TABLE IF EXISTS `patients`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `patients` (
`patientId` int(11) NOT NULL AUTO_INCREMENT,
`firstName` varchar(45) DEFAULT NULL,
`lastName` varchar(45) DEFAULT NULL,
`email` varchar(45) DEFAULT NULL,
`address` varchar(200) DEFAULT NULL,
`phone` varchar(45) DEFAULT NULL,
PRIMARY KEY (`patientId`)
) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `patients`
--
LOCK TABLES `patients` WRITE;
/*!40000 ALTER TABLE `patients` DISABLE KEYS */;
INSERT INTO `patients` VALUES (1,'Cathrynn','Butlerens','Cathryn.Butler@gmail.com','131 Neptune Court - Hall (2952 Nevada)','+1 (995) 555-2432'),(2,'David','Coffey','Coffey.David@gmail.com','110 Schermerhorn Street - Greer (5615 Oklahoma)','+1 (898) 482-3496'),(3,'Cathryn','Butler','Cathryn.Butler@gmail.com','131 Neptune Court - Hall (2952 Nevada)','+1 (995) 555-2432'),(4,'John','Kerry','Kerry.Rich@gmail.com','149 Roosevelt Court - Kidder (6603 Northern Mariana Islands)','+1 (853) 457-3218'),(5,'Grace','Velasquez','Grace.Velasquez@gmail.com','175 Kings Hwy - Loveland (8520 South Carolina)','+1 (909) 411-3328'),(7,'Isaac','Sanchez','issan@lalala.com','Somewhere in cork','555-555'),(10,'Alala','Belele','a@lala.be','','555'),(11,'test','another','asd@sdfsdf','addddddsdfsdf','777');
/*!40000 ALTER TABLE `patients` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `payments`
--
DROP TABLE IF EXISTS `payments`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `payments` (
`paymentId` int(11) NOT NULL AUTO_INCREMENT,
`invoiceId` int(11) NOT NULL,
`amount` double NOT NULL DEFAULT '0',
`date` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`paymentId`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `payments`
--
LOCK TABLES `payments` WRITE;
/*!40000 ALTER TABLE `payments` DISABLE KEYS */;
INSERT INTO `payments` VALUES (1,1,100,'2018-05-16 00:00:00');
/*!40000 ALTER TABLE `payments` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `procedures`
--
DROP TABLE IF EXISTS `procedures`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `procedures` (
`procedureId` int(11) NOT NULL AUTO_INCREMENT,
`invoiceId` int(11) NOT NULL,
`procedureType` int(11) NOT NULL,
PRIMARY KEY (`procedureId`),
CONSTRAINT `procedureType` FOREIGN KEY (`procedureId`) REFERENCES `proceduretypes` (`procedureTypeId`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `procedures`
--
LOCK TABLES `procedures` WRITE;
/*!40000 ALTER TABLE `procedures` DISABLE KEYS */;
INSERT INTO `procedures` VALUES (1,1,1);
/*!40000 ALTER TABLE `procedures` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `proceduretypes`
--
DROP TABLE IF EXISTS `proceduretypes`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `proceduretypes` (
`procedureTypeId` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(45) NOT NULL,
`description` varchar(200) DEFAULT NULL,
`price` double NOT NULL DEFAULT '0',
PRIMARY KEY (`procedureTypeId`)
) ENGINE=InnoDB AUTO_INCREMENT=36 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `proceduretypes`
--
LOCK TABLES `proceduretypes` WRITE;
/*!40000 ALTER TABLE `proceduretypes` DISABLE KEYS */;
INSERT INTO `proceduretypes` VALUES (1,'Crowns ','Core/Post (if needed) ',230),(2,'Crowns ','Core/Post (if needed) ',230),(3,'Crowns ','Porcelain crown (fused to metal) ',570),(4,'Crowns ','Zirconia crown ',650),(5,'Dental Hygiene ','Dentist (per visit) ',55),(6,'Dental Hygiene ','Hygienist (per visit) ',55),(7,'Dental Implants ','Consultation ',65),(8,'Dental Implants ','Implant crown from ',1100),(9,'Dental Implants ','Single implant fixture ',1200),(10,'Fillings ','Gold or ceramic restoration/inlay/onlay ',425),(11,'Nervous Patient Consultation','Consultation with Dr Nuck Chorris ',110),(12,'Oral Surgery ','Consultation ',150),(13,'Oral Surgery ','Surgical extraction with specialist (Your health insurer may partially cover this treatment) ',370),(14,'Orthodontics ','Fixed braces (adults) ',3200),(15,'Orthodontics ','Fixed braces (kids) ',2850),(16,'Prescription','Without exam',25),(17,'Re-treatment Root Canal','Incisors and canines ',410),(18,'Re-treatment Root Canal','Molar ',520),(19,'Re-treatment Root Canal','Pre-molar ',460),(20,'Root Canal Treatment ','Front tooth ',330),(21,'Root Canal Treatment ','Molar ',475),(22,'Root Canal Treatment ','Pre-molar ',425),(23,'Routine Exam','(Exam, diagnosis and treatment plan)',40),(24,'Teeth Whitening ','Enlighten Whitening ',720),(25,'Teeth Whitening ','Smiles At Home Whitening Kit ',260),(26,'Teeth Whitening ','Smiles At Home Whitening Kit Refills ',85),(27,'Teeth Whitening ','Zoom Whitening ',475),(28,'Tooth Extraction ','Routine extraction ',85),(29,'Tooth Extraction ','Surgical extraction ',160),(30,'Veneers ','Single veneer ',530),(31,'X-Rays ','Small ',15),(32,'X-Rays','Ceph X-Rays ',50),(33,'X-Rays','Large (OPG) ',35),(34,'X-Rays','Referral X-rays ',55),(35,'test proc','test desc',300);
/*!40000 ALTER TABLE `proceduretypes` 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 */;
-- Dump completed on 2018-05-21 18:21:59