
----------------------------------------------------------------
--
-- Table creation scripts for class rrna
--

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


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

----------------------------------------------------------------
--
-- Multivalue field - rrna_function
--
CREATE TABLE rrna_function
	(
		id                               	VARCHAR(32)	NOT NULL,
		function                         	VARCHAR(255)
	)
;
CREATE INDEX rrna_function_id_index ON rrna_function (id);
GRANT select ON rrna_function TO amaze;

----------------------------------------------------------------
--
-- Multivalue field - rrna_names
--
CREATE TABLE rrna_names
	(
		id                               	VARCHAR(32)	NOT NULL,
		names                            	VARCHAR(255),
		qualifier                        	VARCHAR(20)
	)
;
CREATE INDEX rrna_names_id_index ON rrna_names (id);
GRANT select ON rrna_names TO amaze;

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

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