CREATE TABLE user_management_events (
	user_management_event_id int NOT NULL ,
	big_string_id int ,
	field VARCHAR(16) ,
	old_value VARCHAR(64) ,
	value VARCHAR(64) ,
	CONSTRAINT PK_user_management_events PRIMARY KEY
	(
		user_management_event_id
	),
	CONSTRAINT FK_user_man_events_to_events FOREIGN KEY
	(
		user_management_event_id
	) REFERENCES events (
		event_id
	)
)
GO


INSERT INTO classes (type, super_type, db_name, table_name, java_class)
	VALUES(24,	14, 'building2', 'user_management_events', 'org.bodington.server.events.UserManagementEvent')
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(24, 1, 'user_management_event_id', 'setUserManagementEventId', 'getUserManagementEventId', '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(24, 2, 'big_string_id', 'setBigStringId', 'getBigStringId', 'org.bodington.database.PrimaryKey', 'org.bodington.database.PrimaryKey', 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(24, 3, 'field', 'setField', 'getField', 'java.lang.String', 'java.lang.String', 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(24, 4, 'old_value', 'setOldValue', 'getOldValue', 'java.lang.String', 'java.lang.String', 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(24, 5, 'value', 'setValue', 'getValue', 'java.lang.String', 'java.lang.String', 0, null, null, null )
GO

