CREATE TABLE textblocks (
	textblock_id int NOT NULL,
	textblock_flags int NOT NULL,

	CONSTRAINT PK_textblocks PRIMARY KEY
	(
		textblock_id
	),
	CONSTRAINT FK_textblocks_to_resources FOREIGN KEY
	(
		textblock_id
	) REFERENCES resources (
		resource_id
	)
)
GO

INSERT INTO classes (type, super_type, db_name, table_name, java_class)
	VALUES(103, 10, null, 'textblocks', 'org.bodington.server.resources.TextBlockResource')
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(103, 1, 'textblock_id', 'setTextBlockId', 'getTextBlockId', '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(103, 2, 'textblock_flags', 'setTextBlockFlags', 'getTextBlockFlags', 'int', 'int', 0, null, null, null )
GO