mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
añadido cliente id a users
This commit is contained in:
@ -6,36 +6,23 @@ use CodeIgniter\Entity;
|
||||
class UserEntity extends \CodeIgniter\Entity\Entity
|
||||
{
|
||||
protected $attributes = [
|
||||
"id_user" => null,
|
||||
"id" => null,
|
||||
"first_name" => null,
|
||||
"last_name" => null,
|
||||
"date_birth" => null,
|
||||
"address" => "",
|
||||
"city" => "",
|
||||
"state" => "",
|
||||
"country" => "",
|
||||
"zip_code" => "",
|
||||
"mobile" => null,
|
||||
"email" => null,
|
||||
"password" => null,
|
||||
"last_ip" => null,
|
||||
"last_access" => null,
|
||||
"picture" => "/assets/img/default-user.png",
|
||||
"language" => null,
|
||||
"tfa" => false,
|
||||
"tfa_secret" => "",
|
||||
"tfa_code" => "",
|
||||
"blocked" => null,
|
||||
"email_confirmed" => 0,
|
||||
"token" => null,
|
||||
"status" => false,
|
||||
"cliente_id" => null,
|
||||
"status" => null,
|
||||
"status_message" => null,
|
||||
'active' => null,
|
||||
"last_active" => null,
|
||||
"created_at" => null,
|
||||
"updated_at" => null,
|
||||
"deleted_at" => null,
|
||||
|
||||
];
|
||||
protected $casts = [
|
||||
"tfa" => "boolean",
|
||||
"email_confirmed" => "int",
|
||||
"status" => "boolean",
|
||||
"id" => "int",
|
||||
"cliente_id" => "int",
|
||||
"active" => "boolean",
|
||||
];
|
||||
/**
|
||||
* Returns a full name: "first last"
|
||||
|
||||
Reference in New Issue
Block a user