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

----------------------------------------------------------------
--
-- Schema
--

----------------------------------------------------------------
--
-- Main table - organism
--
CREATE TABLE embl.organism
	(
		id                               	VARCHAR(32)	NOT NULL PRIMARY KEY,
		taxonomy                         	VARCHAR(255),
		name                             	VARCHAR(255)
	)
;

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