111 lines
2.4 KiB
PHP
111 lines
2.4 KiB
PHP
<?php
|
|
|
|
/**
|
|
* Created by Reliese Model.
|
|
*/
|
|
|
|
namespace App\Models;
|
|
|
|
use Carbon\Carbon;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
/**
|
|
* Class AgentPlus
|
|
*
|
|
* @property int $id
|
|
* @property string $uid
|
|
* @property string|null $firstname
|
|
* @property string $adresse
|
|
* @property string|null $lastname
|
|
* @property string|null $email
|
|
* @property string|null $encrypted_password
|
|
* @property string|null $salt
|
|
* @property float|null $longitude
|
|
* @property float|null $latitude
|
|
* @property string|null $phone
|
|
* @property int|null $active
|
|
* @property Carbon|null $created
|
|
* @property Carbon|null $openHours
|
|
* @property Carbon|null $closeHours
|
|
* @property float|null $solde
|
|
* @property int|null $etat
|
|
* @property string $network
|
|
* @property string $country
|
|
* @property string $country_code
|
|
* @property int $id_country
|
|
* @property string|null $code_parrain
|
|
* @property string|null $category
|
|
* @property string|null $code_membre
|
|
* @property int|null $number_geoBysuper
|
|
* @property int|null $number_super
|
|
* @property int $network_id
|
|
* @property string $code_dial
|
|
* @property string|null $transactionNumber
|
|
* @property int $id_network_agent
|
|
*
|
|
* @package App\Models
|
|
*/
|
|
class AgentPlus extends Model
|
|
{
|
|
protected $table = 'agent_plus';
|
|
public $incrementing = false;
|
|
public $timestamps = false;
|
|
|
|
protected $casts = [
|
|
'id' => 'int',
|
|
'longitude' => 'float',
|
|
'latitude' => 'float',
|
|
'active' => 'int',
|
|
'solde' => 'float',
|
|
'etat' => 'int',
|
|
'id_country' => 'int',
|
|
'number_geoBysuper' => 'int',
|
|
'number_super' => 'int',
|
|
'network_id' => 'int',
|
|
'id_network_agent' => 'int'
|
|
];
|
|
|
|
protected $dates = [
|
|
'created',
|
|
'openHours',
|
|
'closeHours'
|
|
];
|
|
|
|
protected $hidden = [
|
|
'encrypted_password'
|
|
];
|
|
|
|
protected $fillable = [
|
|
'id',
|
|
'uid',
|
|
'firstname',
|
|
'adresse',
|
|
'lastname',
|
|
'email',
|
|
'encrypted_password',
|
|
'salt',
|
|
'longitude',
|
|
'latitude',
|
|
'phone',
|
|
'active',
|
|
'created',
|
|
'openHours',
|
|
'closeHours',
|
|
'solde',
|
|
'etat',
|
|
'network',
|
|
'country',
|
|
'country_code',
|
|
'id_country',
|
|
'code_parrain',
|
|
'category',
|
|
'code_membre',
|
|
'number_geoBysuper',
|
|
'number_super',
|
|
'network_id',
|
|
'code_dial',
|
|
'transactionNumber',
|
|
'id_network_agent'
|
|
];
|
|
}
|