<?php
namespace Models;


/**
 * Class Statq
 * @param $f3 \Base
 * @package Models
 */
class Statq extends DB_Resource {

	protected
			$fieldConf = array(
			'dt' => array(
					'type' => 'INT4',
			),
			'ad_id' => array(
					'belongs-to-one' => '\Models\Ad',
			),
			'group_id' => array(
					'belongs-to-one' => '\Models\Group',
			),
			'keyword_id' => array(
					'belongs-to-one' => '\Models\Keyword',
			),
			'site_key' => array(
					'type' => 'VARCHAR128',
			),
			'sale_id' => array(
					'belongs-to-one' => '\Models\Sale',
			),
			'u' => array(
					'type' => 'BOOLEAN',
					'default' => 0,
			),
			'i' => array(
					'type' => 'BOOLEAN',
					'default' => 0,
			),
			'c' => array(
					'type' => 'BOOLEAN',
					'default' => 0,
			),
			'ip' => array(
					'type' => 'INT8',
			),
			'hostname' => array(
					'type' => 'VARCHAR256',
			),
			'referer' => array(
					'type' => 'VARCHAR256',
			),
			'agent' => array(
					'type' => 'VARCHAR256',
			),
	),
			$table = 'stats_q';
}
