Newer
Older
framework / _support / Models / UserModel.php
@Jim Parry Jim Parry on 6 May 2019 384 bytes Release 4.0.0-beta.3
<?php namespace Tests\Support\Models;

use CodeIgniter\Model;

class UserModel extends Model
{
	protected $table = 'user';

	protected $allowedFields = [
		'name',
		'email',
		'country',
		'deleted',
	];

	protected $returnType = 'object';

	protected $useSoftDeletes = true;

	protected $dateFormat = 'datetime';

	public $name = '';

	public $email = '';

	public $country = '';
}