CREATE TABLE quick_links (
	quick_link_id int NOT NULL ,
	link_flags smallint NOT NULL ,
	url varchar (255) NULL,
	resource_id_link int NULL, 
	CONSTRAINT PK_quick_links PRIMARY KEY
	(
		quick_link_id
	),
	CONSTRAINT FK_quick_links_to_resources FOREIGN KEY
	(
		quick_link_id
	) REFERENCES resources (
		resource_id
	)
)
GO 

INSERT INTO classes (type, super_type, db_name, table_name, java_class)
	VALUES(56, 10, null, 'quick_links', 'org.bodington.server.resources.QuickLink')
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(56, 1, 'quick_link_id', 'setQuickLinkId', 'getQuickLinkId', '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(56, 2, 'link_flags', 'setLinkFlags', 'getLinkFlags', 'byte', 'byte', 0, null, null, null)
GO

/* NOTE: these accessors setUrl(...) / getUrl() have been deprecated. */
/* Bodington v2.6.0+ uses the new versions setURL(...) / getURL(). */
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(56, 3, 'url', 'setUrl', 'getUrl', '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(56, 4, 'resource_id_link', 'setResourceIdLink', 'getResourceIdLink', 'org.bodington.database.PrimaryKey', 'org.bodington.database.PrimaryKey', 0, null, null, null)
GO

