walletservice/app/Models/PayingNetwork.php

57 lines
1.0 KiB
PHP
Raw Permalink Normal View History

2020-06-21 21:49:24 +00:00
<?php
/**
* Created by Reliese Model.
*/
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
/**
* Class PayingNetwork
*
2020-06-21 21:49:24 +00:00
* @property int $id
* @property int $id_network
* @property float $taux_partage
* @property float $balance_com
* @property float balance_compensation
2020-06-21 21:49:24 +00:00
* @property int $id_configWallet
*
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',
'balance_compensation'=>'float',
2020-06-21 21:49:24 +00:00
'id_configWallet' => 'int'
];
protected $fillable = [
'id_network',
'taux_partage',
'balance_com',
'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');
}
}