-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
this SQL file contains the necessary database structure for the appli…
…cation, not use before importing this to your MySQL/MariaDB database
- Loading branch information
Showing
1 changed file
with
92 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
-- phpMyAdmin SQL Dump | ||
-- version 4.0.10.15 | ||
-- http://www.phpmyadmin.net | ||
-- | ||
-- Host: localhost | ||
-- Generation Time: Oct 10, 2018 at 07:31 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_medicalrecord` | ||
-- | ||
|
||
-- -------------------------------------------------------- | ||
|
||
-- | ||
-- Table structure for table `doctors` | ||
-- | ||
|
||
CREATE TABLE IF NOT EXISTS `doctors` ( | ||
`id` int(100) NOT NULL AUTO_INCREMENT, | ||
`doctor_name` varchar(1000) COLLATE utf8_unicode_ci NOT NULL, | ||
`doctor_type` varchar(1000) COLLATE utf8_unicode_ci NOT NULL, | ||
`address` varchar(1000) COLLATE utf8_unicode_ci NOT NULL, | ||
`phone` varchar(1000) COLLATE utf8_unicode_ci NOT NULL, | ||
`email` varchar(1000) COLLATE utf8_unicode_ci NOT NULL, | ||
`treatment_period` varchar(1000) COLLATE utf8_unicode_ci NOT NULL, | ||
PRIMARY KEY (`id`) | ||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=2 ; | ||
|
||
-- -------------------------------------------------------- | ||
|
||
-- | ||
-- 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` varchar(50) COLLATE utf8_unicode_ci NOT NULL, | ||
`responsive_doctor` varchar(50) COLLATE utf8_unicode_ci NOT NULL, | ||
`issue_description` mediumtext COLLATE utf8_unicode_ci NOT NULL, | ||
`diagnosis` mediumtext COLLATE utf8_unicode_ci NOT NULL, | ||
`prescribed_solution` varchar(5000) COLLATE utf8_unicode_ci NOT NULL, | ||
PRIMARY KEY (`id`) | ||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=13 ; | ||
|
||
-- -------------------------------------------------------- | ||
|
||
-- | ||
-- 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` varchar(1000) COLLATE utf8_unicode_ci NOT NULL, | ||
`medication_dosis` varchar(1000) COLLATE utf8_unicode_ci NOT NULL, | ||
`medication_time` varchar(500) COLLATE utf8_unicode_ci NOT NULL, | ||
`medication_period` varchar(100) COLLATE utf8_unicode_ci NOT NULL, | ||
`medication_link` varchar(500) COLLATE utf8_unicode_ci NOT NULL, | ||
`medication_warnings` varchar(5000) COLLATE utf8_unicode_ci NOT NULL, | ||
PRIMARY KEY (`id`) | ||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=3 ; | ||
|
||
-- -------------------------------------------------------- | ||
|
||
-- | ||
-- 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=3 ; | ||
|
||
/*!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 */; |