<?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'",
	'title' => "varchar(255) NOT NULL default ''",
	'alias' => "varchar(128) COLLATE utf8_bin NOT NULL default ''",
	'author' => "int(10) unsigned NOT NULL default '0'",
	'addTime' => "char(1) NOT NULL default ''",
	'startTime' => "int(10) unsigned NULL",
	'endTime' => "int(10) unsigned NULL",
	'startDate' => "int(10) unsigned NULL",
	'endDate' => "int(10) unsigned NULL",
	'location' => "varchar(255) NOT NULL default ''",
	'teaser' => "text NULL",
	'addImage' => "char(1) NOT NULL default ''",
	'singleSRC' => "binary(16) NULL",
	'alt' => "varchar(255) NOT NULL default ''",
	'size' => "varchar(64) NOT NULL default ''",
	'imagemargin' => "varchar(128) NOT NULL default ''",
	'imageUrl' => "varchar(255) NOT NULL default ''",
	'fullsize' => "char(1) NOT NULL default ''",
	'caption' => "varchar(255) NOT NULL default ''",
	'floating' => "varchar(32) NOT NULL default ''",
	'recurring' => "char(1) NOT NULL default ''",
	'repeatEach' => "varchar(64) NOT NULL default ''",
	'repeatEnd' => "int(10) unsigned NOT NULL default '0'",
	'recurrences' => "smallint(5) unsigned NOT NULL default '0'",
	'addEnclosure' => "char(1) NOT NULL default ''",
	'enclosure' => "blob NULL",
	'source' => "varchar(32) NOT NULL default ''",
	'jumpTo' => "int(10) unsigned NOT NULL default '0'",
	'articleId' => "int(10) unsigned NOT NULL default '0'",
	'url' => "varchar(255) NOT NULL default ''",
	'target' => "char(1) NOT NULL default ''",
	'cssClass' => "varchar(255) NOT NULL default ''",
	'noComments' => "char(1) NOT NULL default ''",
	'published' => "char(1) NOT NULL default ''",
	'start' => "varchar(10) NOT NULL default ''",
	'stop' => "varchar(10) NOT NULL default ''",
	'tags' => "char(1) NOT NULL default ''",
);

$this->arrOrderFields = array
(
);

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

$this->arrRelations = array
(
	'pid' => array
	(
		'table' => 'tl_calendar',
		'field' => 'id',
		'type' => 'belongsTo',
		'load' => 'eager',
	),
	'author' => array
	(
		'table' => 'tl_user',
		'field' => 'id',
		'type' => 'hasOne',
		'load' => 'eager',
	),
	'jumpTo' => array
	(
		'table' => 'tl_page',
		'field' => 'id',
		'type' => 'belongsTo',
		'load' => 'lazy',
	),
);

$this->blnIsDbTable = true;
