<?php

$this->arrMeta = array
(
	'engine' => 'MyISAM',
	'charset' => 'utf8',
);

$this->arrFields = array
(
	'id' => "int(10) unsigned NOT NULL auto_increment",
	'pid' => "int(10) unsigned NOT NULL default '0'",
	'tstamp' => "int(10) unsigned NOT NULL default '0'",
	'name' => "varchar(255) NOT NULL default ''",
	'headline' => "varchar(255) NOT NULL default ''",
	'type' => "varchar(64) NOT NULL default ''",
	'levelOffset' => "smallint(5) unsigned NOT NULL default '0'",
	'showLevel' => "smallint(5) unsigned NOT NULL default '0'",
	'hardLimit' => "char(1) NOT NULL default ''",
	'showProtected' => "char(1) NOT NULL default ''",
	'defineRoot' => "char(1) NOT NULL default ''",
	'rootPage' => "int(10) unsigned NOT NULL default '0'",
	'navigationTpl' => "varchar(64) NOT NULL default ''",
	'customTpl' => "varchar(64) NOT NULL default ''",
	'pages' => "blob NULL",
	'orderPages' => "blob NULL",
	'showHidden' => "char(1) NOT NULL default ''",
	'customLabel' => "varchar(64) NOT NULL default ''",
	'autologin' => "char(1) NOT NULL default ''",
	'jumpTo' => "int(10) unsigned NOT NULL default '0'",
	'redirectBack' => "char(1) NOT NULL default ''",
	'cols' => "varchar(32) NOT NULL default ''",
	'editable' => "blob NULL",
	'memberTpl' => "varchar(64) NOT NULL default ''",
	'tableless' => "char(1) NOT NULL default ''",
	'form' => "int(10) unsigned NOT NULL default '0'",
	'queryType' => "varchar(32) NOT NULL default ''",
	'fuzzy' => "char(1) NOT NULL default ''",
	'contextLength' => "smallint(5) unsigned NOT NULL default '0'",
	'totalLength' => "smallint(5) unsigned NOT NULL default '0'",
	'perPage' => "smallint(5) unsigned NOT NULL default '0'",
	'searchType' => "varchar(32) NOT NULL default ''",
	'searchTpl' => "varchar(64) NOT NULL default ''",
	'inColumn' => "varchar(32) NOT NULL default ''",
	'skipFirst' => "smallint(5) unsigned NOT NULL default '0'",
	'loadFirst' => "char(1) NOT NULL default ''",
	'size' => "varchar(64) NOT NULL default ''",
	'transparent' => "char(1) NOT NULL default ''",
	'flashvars' => "varchar(255) NOT NULL default ''",
	'altContent' => "text NULL",
	'source' => "varchar(32) NOT NULL default ''",
	'singleSRC' => "binary(16) NULL",
	'url' => "varchar(255) NOT NULL default ''",
	'interactive' => "char(1) NOT NULL default ''",
	'flashID' => "varchar(64) NOT NULL default ''",
	'flashJS' => "text NULL",
	'imgSize' => "varchar(64) NOT NULL default ''",
	'useCaption' => "char(1) NOT NULL default ''",
	'fullsize' => "char(1) NOT NULL default ''",
	'multiSRC' => "blob NULL",
	'orderSRC' => "blob NULL",
	'html' => "text NULL",
	'rss_cache' => "int(10) unsigned NOT NULL default '0'",
	'rss_feed' => "text NULL",
	'rss_template' => "varchar(32) NOT NULL default ''",
	'numberOfItems' => "smallint(5) unsigned NOT NULL default '0'",
	'disableCaptcha' => "char(1) NOT NULL default ''",
	'reg_groups' => "blob NULL",
	'reg_allowLogin' => "char(1) NOT NULL default ''",
	'reg_skipName' => "char(1) NOT NULL default ''",
	'reg_close' => "varchar(32) NOT NULL default ''",
	'reg_assignDir' => "char(1) NOT NULL default ''",
	'reg_homeDir' => "binary(16) NULL",
	'reg_activate' => "char(1) NOT NULL default ''",
	'reg_jumpTo' => "int(10) unsigned NOT NULL default '0'",
	'reg_text' => "text NULL",
	'reg_password' => "text NULL",
	'protected' => "char(1) NOT NULL default ''",
	'groups' => "blob NULL",
	'guests' => "char(1) NOT NULL default ''",
	'cssID' => "varchar(255) NOT NULL default ''",
	'space' => "varchar(64) NOT NULL default ''",
	'cal_calendar' => "blob NULL",
	'cal_noSpan' => "char(1) NOT NULL default ''",
	'cal_startDay' => "smallint(5) unsigned NOT NULL default '1'",
	'cal_format' => "varchar(32) NOT NULL default ''",
	'cal_ignoreDynamic' => "char(1) NOT NULL default ''",
	'cal_order' => "varchar(32) NOT NULL default ''",
	'cal_readerModule' => "int(10) unsigned NOT NULL default '0'",
	'cal_limit' => "smallint(5) unsigned NOT NULL default '0'",
	'cal_template' => "varchar(32) NOT NULL default ''",
	'cal_ctemplate' => "varchar(32) NOT NULL default ''",
	'cal_showQuantity' => "char(1) NOT NULL default ''",
	'com_order' => "varchar(32) NOT NULL default ''",
	'com_moderate' => "char(1) NOT NULL default ''",
	'com_bbcode' => "char(1) NOT NULL default ''",
	'com_requireLogin' => "char(1) NOT NULL default ''",
	'com_disableCaptcha' => "char(1) NOT NULL default ''",
	'com_template' => "varchar(32) NOT NULL default ''",
	'faq_categories' => "blob NULL",
	'faq_readerModule' => "int(10) unsigned NOT NULL default '0'",
	'list_table' => "varchar(64) NOT NULL default ''",
	'list_fields' => "varchar(255) NOT NULL default ''",
	'list_where' => "varchar(255) NOT NULL default ''",
	'list_search' => "varchar(255) NOT NULL default ''",
	'list_sort' => "varchar(255) NOT NULL default ''",
	'list_info' => "varchar(255) NOT NULL default ''",
	'list_info_where' => "varchar(255) NOT NULL default ''",
	'list_layout' => "varchar(32) NOT NULL default ''",
	'list_info_layout' => "varchar(32) NOT NULL default ''",
	'lit_categories' => "blob NULL",
	'lit_listtitle' => "varchar(100) NOT NULL default ''",
	'lit_showsort' => "char(1) NOT NULL default ''",
	'lit_template' => "varchar(32) NOT NULL default ''",
	'lit_sort' => "varchar(30) NOT NULL default ''",
	'lit_sortorder' => "varchar(4) NOT NULL default ''",
	'lit_tags' => "blob NULL",
	'ml_groups' => "blob NULL",
	'ml_fields' => "blob NULL",
	'news_archives' => "blob NULL",
	'news_featured' => "varchar(16) NOT NULL default ''",
	'news_jumpToCurrent' => "varchar(16) NOT NULL default ''",
	'news_readerModule' => "int(10) unsigned NOT NULL default '0'",
	'news_metaFields' => "varchar(255) NOT NULL default ''",
	'news_template' => "varchar(32) NOT NULL default ''",
	'news_format' => "varchar(32) NOT NULL default ''",
	'news_startDay' => "smallint(5) unsigned NOT NULL default '0'",
	'news_order' => "varchar(255) NOT NULL default ''",
	'news_showQuantity' => "char(1) NOT NULL default ''",
	'newsletters' => "blob NULL",
	'nl_channels' => "blob NULL",
	'nl_hideChannels' => "char(1) NOT NULL default ''",
	'nl_subscribe' => "text NULL",
	'nl_unsubscribe' => "text NULL",
	'nl_template' => "varchar(32) NOT NULL default ''",
	'rateit_title' => "varchar(255) NOT NULL default ''",
	'rateit_active' => "char(1) NOT NULL default ''",
	'rateit_types' => "varchar(255) NOT NULL default ''",
	'rateit_toptype' => "varchar(10) NOT NULL default ''",
	'rateit_count' => "varchar(3) NOT NULL default ''",
	'rateit_template' => "varchar(255) NOT NULL default ''",
	'reg_notifyAdmin' => "char(1) NOT NULL default ''",
	'tag_sourcetables' => "blob NULL",
	'hide_on_empty' => "char(1) NOT NULL default '1'",
	'tag_tagtable' => "varchar(100) NOT NULL default ''",
	'tag_filter' => "varchar(255) NOT NULL default ''",
	'tag_tagfield' => "varchar(100) NOT NULL default ''",
	'tag_maxtags' => "smallint(5) unsigned NOT NULL default '0'",
	'tag_buckets' => "smallint(5) unsigned NOT NULL default '4'",
	'tag_named_class' => "char(1) NOT NULL default ''",
	'tag_on_page_class' => "char(1) NOT NULL default ''",
	'keep_url_params' => "char(1) NOT NULL default ''",
	'tag_topten' => "char(1) NOT NULL default ''",
	'tag_related' => "char(1) NOT NULL default ''",
	'tag_topten_expanded' => "char(1) NOT NULL default ''",
	'tag_all_expanded' => "char(1) NOT NULL default ''",
	'news_showtags' => "char(1) NOT NULL default ''",
	'tag_jumpTo' => "smallint(5) unsigned NOT NULL default '0'",
	'tag_ignore' => "char(1) NOT NULL default ''",
	'objecttype' => "varchar(100) NOT NULL default ''",
	'tagsource' => "varchar(100) NOT NULL default ''",
	'pagesource' => "blob NULL",
	'articlelist_template' => "varchar(32) NOT NULL default ''",
	'cloud_template' => "varchar(32) NOT NULL default ''",
	'scope_template' => "varchar(32) NOT NULL default ''",
	'clear_text' => "varchar(128) NOT NULL default ''",
	'show_empty_scope' => "char(1) NOT NULL default ''",
	'tag_show_reset' => "char(1) NOT NULL default ''",
);

$this->arrOrderFields = array
(
	'orderPages',
	'orderSRC',
);

$this->arrKeys = array
(
	'id' => 'primary',
);

$this->arrRelations = array
(
	'pid' => array
	(
		'table' => 'tl_theme',
		'field' => 'id',
		'type' => 'belongsTo',
		'load' => 'lazy',
	),
	'rootPage' => array
	(
		'table' => 'tl_page',
		'field' => 'id',
		'type' => 'hasOne',
		'load' => 'lazy',
	),
	'pages' => array
	(
		'table' => 'tl_page',
		'field' => 'id',
		'type' => 'hasMany',
		'load' => 'lazy',
	),
	'jumpTo' => array
	(
		'table' => 'tl_page',
		'field' => 'id',
		'type' => 'hasOne',
		'load' => 'eager',
	),
	'form' => array
	(
		'table' => 'tl_form',
		'field' => 'id',
		'type' => 'hasOne',
		'load' => 'lazy',
	),
	'reg_groups' => array
	(
		'table' => 'tl_member_group',
		'field' => 'id',
		'type' => 'hasMany',
		'load' => 'lazy',
	),
	'reg_jumpTo' => array
	(
		'table' => 'tl_page',
		'field' => 'id',
		'type' => 'hasOne',
		'load' => 'lazy',
	),
	'groups' => array
	(
		'table' => 'tl_member_group',
		'field' => 'id',
		'type' => 'hasMany',
		'load' => 'lazy',
	),
);

$this->blnIsDbTable = true;
