
----------------------------------------------------------------
--
-- Table creation scripts for class mrna
--

----------------------------------------------------------------
--
-- Schema
--
alter session set current_schema=rsat;


----------------------------------------------------------------
--
-- Main table - mrna
--
CREATE TABLE mrna
	(
		id                               	VARCHAR(32)	NOT NULL PRIMARY KEY,
		chrom_position                   	VARCHAR(255),
		gene                             	VARCHAR(255),
		gene_id                          	VARCHAR(255),
		product                          	VARCHAR(255),
		transcript_id                    	VARCHAR(255)
	)
;
GRANT select ON mrna TO amaze;

----------------------------------------------------------------
--
-- Multivalue field - mrna_db_xref
--
CREATE TABLE mrna_db_xref
	(
		id                               	VARCHAR(32)	NOT NULL,
		db_xref                          	VARCHAR(255)
	)
;
CREATE INDEX mrna_db_xref_id_index ON mrna_db_xref (id);
GRANT select ON mrna_db_xref TO amaze;

----------------------------------------------------------------
--
-- Multivalue field - mrna_note
--
CREATE TABLE mrna_note
	(
		id                               	VARCHAR(32)	NOT NULL,
		note                             	VARCHAR(255)
	)
;
CREATE INDEX mrna_note_id_index ON mrna_note (id);
GRANT select ON mrna_note TO amaze;

----------------------------------------------------------------
--
-- Quit
--
quit;