| 
									
										
										
										
											2020-06-21 21:49:24 +00:00
										 |  |  | <?php | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | /** | 
					
						
							|  |  |  |  * Created by Reliese Model. | 
					
						
							|  |  |  |  */ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | namespace App\Models; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | use Illuminate\Database\Eloquent\Model; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | /** | 
					
						
							|  |  |  |  * Class PayingNetwork | 
					
						
							| 
									
										
										
										
											2020-07-25 18:02:54 +00:00
										 |  |  |  * | 
					
						
							| 
									
										
										
										
											2020-06-21 21:49:24 +00:00
										 |  |  |  * @property int $id | 
					
						
							|  |  |  |  * @property int $id_network | 
					
						
							|  |  |  |  * @property float $taux_partage | 
					
						
							|  |  |  |  * @property float $balance_com | 
					
						
							| 
									
										
										
										
											2020-07-25 18:02:54 +00:00
										 |  |  |  * @property float balance_compensation | 
					
						
							| 
									
										
										
										
											2020-06-21 21:49:24 +00:00
										 |  |  |  * @property int $id_configWallet | 
					
						
							| 
									
										
										
										
											2020-07-25 18:02:54 +00:00
										 |  |  |  * | 
					
						
							| 
									
										
										
										
											2020-06-21 21:49:24 +00:00
										 |  |  |  * @property Network $network | 
					
						
							|  |  |  |  * @property ConfigWallet $config_wallet | 
					
						
							|  |  |  |  * | 
					
						
							|  |  |  |  * @package App\Models | 
					
						
							|  |  |  |  */ | 
					
						
							|  |  |  | class PayingNetwork extends Model | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  | 	protected $table = 'paying_networks'; | 
					
						
							|  |  |  | 	public $timestamps = false; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	protected $casts = [ | 
					
						
							|  |  |  | 		'id_network' => 'int', | 
					
						
							|  |  |  | 		'taux_partage' => 'float', | 
					
						
							|  |  |  | 		'balance_com' => 'float', | 
					
						
							| 
									
										
										
										
											2020-07-25 18:02:54 +00:00
										 |  |  |         'balance_compensation'=>'float', | 
					
						
							| 
									
										
										
										
											2020-06-21 21:49:24 +00:00
										 |  |  | 		'id_configWallet' => 'int' | 
					
						
							|  |  |  | 	]; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	protected $fillable = [ | 
					
						
							|  |  |  | 		'id_network', | 
					
						
							|  |  |  | 		'taux_partage', | 
					
						
							|  |  |  | 		'balance_com', | 
					
						
							| 
									
										
										
										
											2020-07-25 18:02:54 +00:00
										 |  |  |         'balance_compensation', | 
					
						
							| 
									
										
										
										
											2020-06-21 21:49:24 +00:00
										 |  |  | 		'id_configWallet' | 
					
						
							|  |  |  | 	]; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	public function network() | 
					
						
							|  |  |  | 	{ | 
					
						
							|  |  |  | 		return $this->belongsTo(Network::class, 'id_network'); | 
					
						
							|  |  |  | 	} | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	public function config_wallet() | 
					
						
							|  |  |  | 	{ | 
					
						
							|  |  |  | 		return $this->belongsTo(ConfigWallet::class, 'id_configWallet'); | 
					
						
							|  |  |  | 	} | 
					
						
							|  |  |  | } |