
----------------------------------------------------------------
--
-- Table creation scripts for class organism
--

----------------------------------------------------------------
--
-- Schema
--
use genbank;


----------------------------------------------------------------
--
-- Main table - organism
--
CREATE TABLE genbank.organism
	(
		id                               	VARCHAR(32)	NOT NULL PRIMARY KEY,
		taxonomy                         	VARCHAR(255)
	) TYPE=INNODB
;

----------------------------------------------------------------
--
-- Multivalue field - organism_names
--
CREATE TABLE genbank.organism_names
	(
		id                               	VARCHAR(32)	NOT NULL,
		names                            	VARCHAR(255),
		qualifier                        	VARCHAR(20)
	) TYPE=INNODB
;
CREATE INDEX organism_names_id_index ON genbank.organism_names (id);
