
----------------------------------------------------------------
--
-- Table creation scripts for class repeat_region
--

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

----------------------------------------------------------------
--
-- Main table - repeat_region
--
CREATE TABLE repeat_region
	(
		id                               	VARCHAR(32)	NOT NULL PRIMARY KEY,
		chrom_position                   	VARCHAR(255),
		chromosome                       	VARCHAR(255),
		contig                           	VARCHAR(255),
		end_pos                          	VARCHAR(255),
		organism                         	VARCHAR(255),
		start_pos                        	VARCHAR(255),
		strand                           	VARCHAR(255),
		taxid                            	VARCHAR(255),
		type                             	VARCHAR(255)
	)
;

----------------------------------------------------------------
--
-- Multivalue field - repeat_region_db_xref
--
CREATE TABLE repeat_region_db_xref
	(
		id                               	VARCHAR(32)	NOT NULL,
		db_xref                          	VARCHAR(255)
	)
;
CREATE INDEX repeat_region_db_xref_id_index ON repeat_region_db_xref (id);

----------------------------------------------------------------
--
-- Multivalue field - repeat_region_map
--
CREATE TABLE repeat_region_map
	(
		id                               	VARCHAR(32)	NOT NULL,
		map                              	VARCHAR(255)
	)
;
CREATE INDEX repeat_region_map_id_index ON repeat_region_map (id);

----------------------------------------------------------------
--
-- Multivalue field - repeat_region_mobile_element
--
CREATE TABLE repeat_region_mobile_element
	(
		id                               	VARCHAR(32)	NOT NULL,
		mobile_element                   	VARCHAR(255)
	)
;
CREATE INDEX repeat_region_mobile_element_id_index ON repeat_region_mobile_element (id);

----------------------------------------------------------------
--
-- Multivalue field - repeat_region_note="symbol
--
CREATE TABLE repeat_region_note="symbol
	(
		id                               	VARCHAR(32)	NOT NULL,
		note="symbol                     	VARCHAR(255)
	)
;
CREATE INDEX repeat_region_note="symbol_id_index ON repeat_region_note="symbol (id);

----------------------------------------------------------------
--
-- Multivalue field - repeat_region_old_locus_tag
--
CREATE TABLE repeat_region_old_locus_tag
	(
		id                               	VARCHAR(32)	NOT NULL,
		old_locus_tag                    	VARCHAR(255)
	)
;
CREATE INDEX repeat_region_old_locus_tag_id_index ON repeat_region_old_locus_tag (id);
