CREATE TABLE assessment_events (
	assessment_event_id int NOT NULL ,
	result_id int,
	mark decimal(6,3),
	CONSTRAINT PK_assessment_events PRIMARY KEY
	(
		assessment_event_id
	),
	CONSTRAINT FK_assessment_events_to_events FOREIGN KEY
	(
		assessment_event_id
	) REFERENCES events (
		event_id
	)
)
GO


INSERT INTO classes (type, super_type, db_name, table_name, java_class)
	VALUES(20,	14, 'building2', 'assessment_events', 'org.bodington.server.events.AssessmentEvent')
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(20, 1, 'assessment_event_id', 'setAssessmentEventId', 'getAssessmentEventId', '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(20, 2, 'result_id', 'setResultId', 'getResultId', 'java.lang.Integer', 'java.lang.Integer', 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(20, 3, 'mark', 'setMark', 'getMark', 'java.math.BigDecimal', 'java.math.BigDecimal', 0, null, null, null )
GO

