| 
									
										
										
										
											2020-08-14 16:14:49 +00:00
										 |  |  | <?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 | 
					
						
							| 
									
										
										
										
											2020-09-28 15:39:57 +00:00
										 |  |  |  * @property float $montant_rembourse | 
					
						
							|  |  |  |  * @property bool partiellement_rembourse; | 
					
						
							| 
									
										
										
										
											2020-08-14 16:14:49 +00:00
										 |  |  |  * @property int $duree_mois | 
					
						
							|  |  |  |  * @property string $type_caution | 
					
						
							|  |  |  |  * @property string $etat | 
					
						
							| 
									
										
										
										
											2020-08-31 13:54:10 +00:00
										 |  |  |  * @property float $interet | 
					
						
							| 
									
										
										
										
											2020-08-14 16:14:49 +00:00
										 |  |  |  * @property float $taxe | 
					
						
							| 
									
										
										
										
											2020-10-05 16:32:31 +00:00
										 |  |  |  * @property Carbon $date_validation | 
					
						
							| 
									
										
										
										
											2020-08-18 14:10:03 +00:00
										 |  |  |  * @property Carbon $date_remboursement_prevu | 
					
						
							|  |  |  |  * @property Carbon $date_remboursement | 
					
						
							| 
									
										
										
										
											2020-08-14 16:14:49 +00:00
										 |  |  |  * @property int $id_user | 
					
						
							| 
									
										
										
										
											2020-08-18 14:10:03 +00:00
										 |  |  |  * @property int $id_wallet_agent | 
					
						
							| 
									
										
										
										
											2020-08-24 16:29:50 +00:00
										 |  |  |  * @property bool $retrait_cash | 
					
						
							| 
									
										
										
										
											2020-08-26 18:31:51 +00:00
										 |  |  |  * @property int id_network | 
					
						
							| 
									
										
										
										
											2020-08-24 16:29:50 +00:00
										 |  |  |  * @property Carbon $date_creation | 
					
						
							| 
									
										
										
										
											2020-08-14 16:14:49 +00:00
										 |  |  |  * | 
					
						
							|  |  |  |  * @package App\Models | 
					
						
							|  |  |  |  */ | 
					
						
							|  |  |  | class UsersDemandesCredit extends Model | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  |     protected $table = 'users_demandes_credits'; | 
					
						
							|  |  |  |     public $timestamps = false; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     protected $casts = [ | 
					
						
							|  |  |  |         'montant' => 'float', | 
					
						
							| 
									
										
										
										
											2020-09-28 15:39:57 +00:00
										 |  |  |         'montant_rembourse' => 'float', | 
					
						
							|  |  |  |         'partiellement_rembourse' => 'bool', | 
					
						
							| 
									
										
										
										
											2020-08-14 16:14:49 +00:00
										 |  |  |         'duree_mois' => 'int', | 
					
						
							| 
									
										
										
										
											2020-08-31 13:54:10 +00:00
										 |  |  |         'interet' => 'float', | 
					
						
							| 
									
										
										
										
											2020-08-14 16:14:49 +00:00
										 |  |  |         'taxe' => 'float', | 
					
						
							|  |  |  |         'id_user' => 'int', | 
					
						
							| 
									
										
										
										
											2020-08-24 16:29:50 +00:00
										 |  |  |         'id_wallet_agent' => 'int', | 
					
						
							| 
									
										
										
										
											2020-08-26 18:31:51 +00:00
										 |  |  |         'retrait_cash' => 'bool', | 
					
						
							|  |  |  |         'id_network' => 'int' | 
					
						
							| 
									
										
										
										
											2020-08-14 16:14:49 +00:00
										 |  |  |     ]; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     protected $dates = [ | 
					
						
							| 
									
										
										
										
											2020-10-05 16:32:31 +00:00
										 |  |  |         'date_validation', | 
					
						
							| 
									
										
										
										
											2020-08-18 14:10:03 +00:00
										 |  |  |         'date_remboursement_prevu', | 
					
						
							| 
									
										
										
										
											2020-08-24 16:29:50 +00:00
										 |  |  |         'date_remboursement', | 
					
						
							|  |  |  |         'date_creation' | 
					
						
							| 
									
										
										
										
											2020-08-14 16:14:49 +00:00
										 |  |  |     ]; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     protected $fillable = [ | 
					
						
							|  |  |  |         'id_demande', | 
					
						
							|  |  |  |         'montant', | 
					
						
							| 
									
										
										
										
											2020-09-28 15:39:57 +00:00
										 |  |  |         'montant_rembourse', | 
					
						
							|  |  |  |         'partiellement_rembourse', | 
					
						
							| 
									
										
										
										
											2020-08-14 16:14:49 +00:00
										 |  |  |         'duree_mois', | 
					
						
							|  |  |  |         'type_caution', | 
					
						
							|  |  |  |         'etat', | 
					
						
							| 
									
										
										
										
											2020-08-31 13:54:10 +00:00
										 |  |  |         'interet', | 
					
						
							| 
									
										
										
										
											2020-08-14 16:14:49 +00:00
										 |  |  |         'taxe', | 
					
						
							| 
									
										
										
										
											2020-10-05 16:32:31 +00:00
										 |  |  |         'date_validation', | 
					
						
							| 
									
										
										
										
											2020-08-18 14:10:03 +00:00
										 |  |  |         'date_remboursement_prevu', | 
					
						
							|  |  |  |         'date_remboursement', | 
					
						
							| 
									
										
										
										
											2020-08-14 16:14:49 +00:00
										 |  |  |         'id_user', | 
					
						
							| 
									
										
										
										
											2020-08-24 16:29:50 +00:00
										 |  |  |         'id_wallet_agent', | 
					
						
							|  |  |  |         'retrait_cash', | 
					
						
							| 
									
										
										
										
											2020-08-26 18:31:51 +00:00
										 |  |  |         'id_network', | 
					
						
							| 
									
										
										
										
											2020-08-24 16:29:50 +00:00
										 |  |  |         'date_creation' | 
					
						
							| 
									
										
										
										
											2020-08-14 16:14:49 +00:00
										 |  |  |     ]; | 
					
						
							|  |  |  | } |