walletservice/app/Models/UsersEpargne.php

69 lines
1.3 KiB
PHP
Raw Permalink Normal View History

2020-08-31 13:54:10 +00:00
<?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
2020-11-18 11:35:11 +00:00
* @property float montant_retire
2020-08-31 13:54:10 +00:00
* @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',
2020-11-18 11:35:11 +00:00
'montant_retire' => 'float',
2020-08-31 13:54:10 +00:00
'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',
2020-11-18 11:35:11 +00:00
'montant_retire',
2020-08-31 13:54:10 +00:00
'duree_mois',
'interet',
'taxe',
'date_creation',
'date_fin',
'date_cassation',
'etat',
'id_user',
'id_network'
];
}