<?php
namespace Apimodels;


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

	protected
			$fieldConf = array(
			'date' => array(
					'type' => 'INT4'
			),
			'sale_id' => array(
					'belongs-to-one' => '\Models\Sale',
			),
			'clicks' => array(
					'type' => 'INT4',
					'default' => 0,
			),
			'sales' => array(
					'type' => 'INT4',
					'default' => 0,
			),
	),
			$table = 'stats_sales';

}