Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
added db schema
- Loading branch information
joelsalisbury
committed
Nov 30, 2016
1 parent
ff0d428
commit 421c5b3
Showing
1 changed file
with
79 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,79 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- | ||
- phpMyAdmin XML Dump | ||
- version 4.0.10deb1 | ||
- http://www.phpmyadmin.net | ||
- | ||
- Host: localhost | ||
- Generation Time: Nov 30, 2016 at 05:53 PM | ||
- Server version: 5.5.53-0ubuntu0.14.04.1 | ||
- PHP Version: 5.5.9-1ubuntu4.20 | ||
--> | ||
|
||
<pma_xml_export version="1.0" xmlns:pma="http://www.phpmyadmin.net/some_doc_url/"> | ||
<!-- | ||
- Structure schemas | ||
--> | ||
<pma:structure_schemas> | ||
<pma:database name="ccmc_antibiotics" collation="latin1_swedish_ci" charset="latin1"> | ||
<pma:table name="antibiotic"> | ||
CREATE TABLE `antibiotic` ( | ||
`id` int(11) NOT NULL, | ||
`name` varchar(255) NOT NULL, | ||
`notes` text NOT NULL, | ||
PRIMARY KEY (`id`) | ||
) ENGINE=InnoDB DEFAULT CHARSET=latin1; | ||
</pma:table> | ||
<pma:table name="diagnosis"> | ||
CREATE TABLE `diagnosis` ( | ||
`id` int(11) NOT NULL AUTO_INCREMENT, | ||
`name` varchar(255) NOT NULL, | ||
`notes` text NOT NULL, | ||
PRIMARY KEY (`id`) | ||
) ENGINE=InnoDB DEFAULT CHARSET=latin1; | ||
</pma:table> | ||
<pma:table name="diagnosis_antibiotic"> | ||
CREATE TABLE `diagnosis_antibiotic` ( | ||
`id` int(11) NOT NULL, | ||
`diagnosis_id` int(11) NOT NULL, | ||
`antibiotic_id` int(11) NOT NULL, | ||
`rank` enum('1','2','3') NOT NULL, | ||
PRIMARY KEY (`id`), | ||
KEY `diagnosis_id` (`diagnosis_id`,`antibiotic_id`) | ||
) ENGINE=InnoDB DEFAULT CHARSET=latin1; | ||
</pma:table> | ||
<pma:table name="diagnosis_organism"> | ||
CREATE TABLE `diagnosis_organism` ( | ||
`id` int(11) NOT NULL, | ||
`diagnosis_id` int(11) NOT NULL, | ||
`organism_id` int(11) NOT NULL, | ||
`notes` int(11) NOT NULL, | ||
PRIMARY KEY (`id`), | ||
KEY `diagnosis_id` (`diagnosis_id`), | ||
KEY `organism_id` (`organism_id`), | ||
CONSTRAINT `diagnosis_organism_ibfk_1` FOREIGN KEY (`diagnosis_id`) REFERENCES `diagnosis` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, | ||
CONSTRAINT `diagnosis_organism_ibfk_2` FOREIGN KEY (`organism_id`) REFERENCES `organism` (`id`) ON DELETE CASCADE ON UPDATE CASCADE | ||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; | ||
</pma:table> | ||
<pma:table name="organism"> | ||
CREATE TABLE `organism` ( | ||
`id` int(11) NOT NULL AUTO_INCREMENT, | ||
`name` varchar(255) NOT NULL, | ||
`classification` enum('GP','GN','AE','') NOT NULL, | ||
PRIMARY KEY (`id`) | ||
) ENGINE=InnoDB DEFAULT CHARSET=latin1; | ||
</pma:table> | ||
</pma:database> | ||
</pma:structure_schemas> | ||
|
||
<!-- | ||
- Database: 'ccmc_antibiotics' | ||
--> | ||
<database name="ccmc_antibiotics"> | ||
<!-- Table antibiotic --> | ||
<!-- Table diagnosis --> | ||
<!-- Table diagnosis_antibiotic --> | ||
<!-- Table diagnosis_organism --> | ||
<!-- Table organism --> | ||
</database> | ||
</pma_xml_export> |