mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
36 lines
754 B
PHP
36 lines
754 B
PHP
<?php
|
|
namespace App\Models;
|
|
|
|
class UserModel extends BaseModel
|
|
{
|
|
protected $table = 'auth_user';
|
|
protected $primaryKey = 'id_user';
|
|
protected $allowedFields = [
|
|
'group',
|
|
'first_name',
|
|
'last_name',
|
|
'date_birth',
|
|
'address',
|
|
'city',
|
|
'state',
|
|
'country',
|
|
'zip_code',
|
|
'mobile',
|
|
'email',
|
|
'password',
|
|
'last_ip',
|
|
'last_access',
|
|
'picture',
|
|
'language',
|
|
'tfa',
|
|
'tfa_secret',
|
|
'tfa_code',
|
|
'blocked',
|
|
'email_confirmed',
|
|
'token',
|
|
'status'
|
|
];
|
|
protected $useTimestamps = true;
|
|
protected $createdField = 'created_at';
|
|
protected $updatedField = 'updated_at';
|
|
} |