Thanks for the response. Here is the simplified table schema before the new 'question' table and media tables are added:
CREATE TABLE oral_question (
oral_question_id integer NOT NULL,
audio_prompt_file_path character varying(250) NOT NULL,
text_prompt text NOT NULL,
);
CREATE TABLE essay_question (
essay_question_id integer NOT NULL,
text_prompt text NOT NULL,
);
CREATE TABLE oral_question_response (
oral_question_response_id integer NOT NULL,
audio_response_file_path character varying(250) NOT NULL,
oral_question_id integer NOT NULL,
);
CREATE TABLE essay_question_response (
essay_question_response_id integer NOT NULL,
response_text text NOT NULL,
essay_question_id integer NOT NULL,
);
And after the 'question' table is added:
CREATE TABLE question (
question_id integer NOT NULL,
);
Then same as above except this new field is on the essay_question and oral_question tables:
question_id integer NOT NULL,
Thanks -Jon