Location: PHPKode > scripts > Spot > Spot-0.9.2/tests/Entity/User.php
<?php
/**
 * User
 *
 * @package Spot
 */
class Entity_User extends \Spot\Entity
{
    protected static $_datasource = 'test_users';

    public static function fields()
    {
        return array(
            'id' => array('type' => 'int', 'primary' => true, 'serial' => true),
            'email' => array('type' => 'string', 'required' => true, 'unique' => true), // Unique
            'password' => array('type' => 'text', 'required' => true),
            'is_admin' => array('type' => 'boolean', 'default' => false),
            'date_created' => array('type' => 'datetime', 'default' => new \DateTime())
        );
    }
}

Return current item: Spot