<?php

namespace Models;

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

	protected
		$fieldConf = array(
		'keyword' => array(
			'type' => 'VARCHAR256',
			'nullable' => false,
			'required'=>true,
			'default' => '',
		),
		'last_updated' => array(
			'type' => 'INT4',
		),
		'ads' => array(
			'has-many' => array('\Models\Ad','keywords'),
		),
		'groups' => array(
			'has-many' => array('\Models\Group','keywords'),
		),
	),
		$table = 'keywords';

}
