CREATE TABLE mcq_papers (
	mcq_paper_id int NOT NULL ,
	mcq_flags tinyint NOT NULL,
	deadline TIMESTAMP,
	CONSTRAINT PK_mcq_papers PRIMARY KEY
	(
		mcq_paper_id
	),
	CONSTRAINT FK_mcq_papers_to_resources FOREIGN KEY
	(
		mcq_paper_id
	) REFERENCES resources (
		resource_id
	)
)
GO


INSERT INTO classes (type, super_type, db_name, table_name, java_class)
	VALUES(29, 10, 'building2', 'mcq_papers', 'org.bodington.assessment.McqPaper')
GO

INSERT INTO fields (type, sequence, field, set_method_name, get_method_name, set_java_class, get_java_class, flags, foreign_type, set_method_name_foreign, get_method_name_foreign )
	VALUES(29, 1, 'mcq_paper_id', 'setMcqPaperId', 'getMcqPaperId', 'org.bodington.database.PrimaryKey', 'org.bodington.database.PrimaryKey', 1, null, null, null )
GO

INSERT INTO fields (type, sequence, field, set_method_name, get_method_name, set_java_class, get_java_class, flags, foreign_type, set_method_name_foreign, get_method_name_foreign )
	VALUES(29, 2, 'mcq_flags', 'setMcqFlags', 'getMcqFlags', 'byte', 'byte', 0, null, null, null )
GO

INSERT INTO fields (type, sequence, field, set_method_name, get_method_name, set_java_class, get_java_class, flags, foreign_type, set_method_name_foreign, get_method_name_foreign )
	VALUES(29, 3, 'deadline', 'setDeadline', 'getDeadline', 'java.sql.Timestamp', 'java.sql.Timestamp', 0, null, null, null )
GO



