<?php

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

$this->arrFields = array
(
	'id' => "int(10) unsigned NOT NULL auto_increment",
	'tstamp' => "int(10) unsigned NOT NULL default '0'",
	'pid' => "int(10) unsigned NOT NULL default '0'",
	'ip_address' => "varchar(50) NULL",
	'memberid' => "int(10) unsigned NULL",
	'rating' => "int(10) unsigned NOT NULL default '0'",
	'createdat' => "int(10) NOT NULL default '0'",
);

$this->arrOrderFields = array
(
);

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

$this->arrRelations = array
(
	'pid' => array
	(
		'table' => 'tl_rateit_items',
		'field' => 'id',
		'type' => 'belongsTo',
		'load' => 'lazy',
	),
);

$this->blnIsDbTable = true;
