54 lines
937 B
PHP
54 lines
937 B
PHP
<?php
|
|
|
|
/**
|
|
* Created by Reliese Model.
|
|
*/
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
/**
|
|
* Class PayingNetwork
|
|
*
|
|
* @property int $id
|
|
* @property int $id_network
|
|
* @property float $taux_partage
|
|
* @property float $balance_com
|
|
* @property int $id_configWallet
|
|
*
|
|
* @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',
|
|
'id_configWallet' => 'int'
|
|
];
|
|
|
|
protected $fillable = [
|
|
'id_network',
|
|
'taux_partage',
|
|
'balance_com',
|
|
'id_configWallet'
|
|
];
|
|
|
|
public function network()
|
|
{
|
|
return $this->belongsTo(Network::class, 'id_network');
|
|
}
|
|
|
|
public function config_wallet()
|
|
{
|
|
return $this->belongsTo(ConfigWallet::class, 'id_configWallet');
|
|
}
|
|
}
|