65 lines
1.3 KiB
PHP
65 lines
1.3 KiB
PHP
|
<?php
|
||
|
|
||
|
/**
|
||
|
* Created by Reliese Model.
|
||
|
*/
|
||
|
|
||
|
namespace App\Models;
|
||
|
|
||
|
use Carbon\Carbon;
|
||
|
use Illuminate\Database\Eloquent\Model;
|
||
|
|
||
|
/**
|
||
|
* Class UsersDemandesCredit
|
||
|
*
|
||
|
* @property int $id
|
||
|
* @property string $id_demande
|
||
|
* @property float $montant
|
||
|
* @property int $duree_mois
|
||
|
* @property string $type_caution
|
||
|
* @property string $etat
|
||
|
* @property float $frais
|
||
|
* @property float $taxe
|
||
|
* @property Carbon $date_demande
|
||
|
* @property Carbon $date_rembourssement
|
||
|
* @property int $id_user
|
||
|
* @property int $id_agent
|
||
|
*
|
||
|
* @package App\Models
|
||
|
*/
|
||
|
class UsersDemandesCredit extends Model
|
||
|
{
|
||
|
protected $table = 'users_demandes_credits';
|
||
|
public $incrementing = false;
|
||
|
public $timestamps = false;
|
||
|
|
||
|
protected $casts = [
|
||
|
'id' => 'int',
|
||
|
'montant' => 'float',
|
||
|
'duree_mois' => 'int',
|
||
|
'frais' => 'float',
|
||
|
'taxe' => 'float',
|
||
|
'id_user' => 'int',
|
||
|
'id_agent' => 'int'
|
||
|
];
|
||
|
|
||
|
protected $dates = [
|
||
|
'date_demande',
|
||
|
'date_rembourssement'
|
||
|
];
|
||
|
|
||
|
protected $fillable = [
|
||
|
'id_demande',
|
||
|
'montant',
|
||
|
'duree_mois',
|
||
|
'type_caution',
|
||
|
'etat',
|
||
|
'frais',
|
||
|
'taxe',
|
||
|
'date_demande',
|
||
|
'date_rembourssement',
|
||
|
'id_user',
|
||
|
'id_agent'
|
||
|
];
|
||
|
}
|