-
Notifications
You must be signed in to change notification settings - Fork 25
/
database_structure.sql
104 lines (84 loc) · 3.13 KB
/
database_structure.sql
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
-- phpMyAdmin SQL Dump
-- version 4.0.10.15
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Nov 10, 2018 at 04:42 PM
-- Server version: 5.1.73-log
-- PHP Version: 5.6.2
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!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 */;
--
-- Database: `petrk_ohrtest`
--
-- --------------------------------------------------------
--
-- Table structure for table `doctors`
--
CREATE TABLE IF NOT EXISTS `doctors` (
`id` int(100) NOT NULL AUTO_INCREMENT,
`doctor_name` varbinary(1000) NOT NULL,
`doctor_type` varbinary(1000) NOT NULL,
`address` varbinary(1000) NOT NULL,
`phone` varbinary(1000) NOT NULL,
`email` varbinary(1000) NOT NULL,
`treatment_period` varbinary(1000) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=16 ;
-- --------------------------------------------------------
--
-- Table structure for table `login_attempts`
--
CREATE TABLE IF NOT EXISTS `login_attempts` (
`user_id` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
`time` time NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `medicalrecords`
--
CREATE TABLE IF NOT EXISTS `medicalrecords` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`location` varbinary(50) NOT NULL,
`responsive_doctor` varbinary(50) NOT NULL,
`issue_description` varbinary(1000) NOT NULL,
`diagnosis` varbinary(1000) NOT NULL,
`prescribed_solution` varbinary(5000) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=17 ;
-- --------------------------------------------------------
--
-- Table structure for table `medicine`
--
CREATE TABLE IF NOT EXISTS `medicine` (
`id` int(100) NOT NULL AUTO_INCREMENT,
`date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`medication_name` varbinary(1000) NOT NULL,
`medication_dose` varbinary(1000) NOT NULL,
`medication_frequency` varbinary(100) NOT NULL,
`prescription_begin` varbinary(100) NOT NULL,
`prescription_end` varbinary(100) NOT NULL,
`medication_link` varbinary(500) NOT NULL,
`medication_warnings` varbinary(5000) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=5 ;
-- --------------------------------------------------------
--
-- Table structure for table `user`
--
CREATE TABLE IF NOT EXISTS `user` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`username` varchar(30) NOT NULL,
`email` varchar(50) NOT NULL,
`password` char(128) NOT NULL,
`salt` char(128) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=4 ;
/*!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 */;