<?php
/**
 * Created by IntelliJ IDEA.
 * User: DennysO
 * Date: 6/3/2015
 * Time: 11:10 AM
 */
require_once "generic.php";

class States extends Generic
{
	protected $primaryKey = 'id';
    protected $table = 'states';
    protected $fillable = ['id', 'name', 'created', 'lastupdated'];

    public function users()
    {
        return $this->hasMany('Users', 'id', 'statesid');
    }
}