CREATE TABLE navigation_events (
	navigation_event_id int NOT NULL ,
	url VARCHAR(128) NOT NULL ,
	CONSTRAINT PK_navigation_events PRIMARY KEY
	(
		navigation_event_id
	),
	CONSTRAINT FK_navigation_events_to_events FOREIGN KEY
	(
		navigation_event_id
	) REFERENCES events (
		event_id
	)
)
GO


INSERT INTO classes (type, super_type, db_name, table_name, java_class)
	VALUES(15,	14, 'building2', 'navigation_events', 'org.bodington.server.events.NavigationEvent')
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(15, 1, 'navigation_event_id', 'setNavigationEventId', 'getNavigationEventId', '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(15, 2, 'url', 'setUrl', 'getUrl', 'java.lang.String', 'java.lang.String', 0, null, null, null )
GO

