66 lines
1.2 KiB
PHP
66 lines
1.2 KiB
PHP
<?php
|
|
|
|
/**
|
|
* Created by Reliese Model.
|
|
*/
|
|
|
|
namespace App\Models;
|
|
|
|
use Carbon\Carbon;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
/**
|
|
* Class UsersEpargne
|
|
*
|
|
* @property int $id
|
|
* @property string $id_epargne
|
|
* @property string $type
|
|
* @property float $montant
|
|
* @property int $duree_mois
|
|
* @property float $interet
|
|
* @property float $taxe
|
|
* @property Carbon $date_creation
|
|
* @property Carbon $date_fin
|
|
* @property Carbon $date_cassation
|
|
* @property string $etat
|
|
* @property int $id_user
|
|
* @property int $id_network
|
|
*
|
|
* @package App\Models
|
|
*/
|
|
class UsersEpargne extends Model
|
|
{
|
|
protected $table = 'users_epargnes';
|
|
public $timestamps = false;
|
|
|
|
protected $casts = [
|
|
'montant' => 'float',
|
|
'duree_mois' => 'int',
|
|
'interet' => 'float',
|
|
'taxe' => 'float',
|
|
'id_user' => 'int',
|
|
'id_network' => 'int'
|
|
];
|
|
|
|
protected $dates = [
|
|
'date_creation',
|
|
'date_fin',
|
|
'date_cassation'
|
|
];
|
|
|
|
protected $fillable = [
|
|
'id_epargne',
|
|
'type',
|
|
'montant',
|
|
'duree_mois',
|
|
'interet',
|
|
'taxe',
|
|
'date_creation',
|
|
'date_fin',
|
|
'date_cassation',
|
|
'etat',
|
|
'id_user',
|
|
'id_network'
|
|
];
|
|
}
|