54 lines
1.1 KiB
PHP
54 lines
1.1 KiB
PHP
<?php
|
|
|
|
/**
|
|
* Created by Reliese Model.
|
|
*/
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
/**
|
|
* Class TransmittingNetwork
|
|
*
|
|
* @property int $id
|
|
* @property int|null $id_network
|
|
* @property float $balance_compensation
|
|
* @property float|null $balance_com
|
|
* @property int|null $id_configWallet
|
|
*
|
|
* @property Network $network
|
|
* @property ConfigWallet $config_wallet
|
|
*
|
|
* @package App\Models
|
|
*/
|
|
class TransmittingNetwork extends Model
|
|
{
|
|
protected $table = 'transmitting_networks';
|
|
public $timestamps = false;
|
|
|
|
protected $casts = [
|
|
'id_network' => 'int',
|
|
'balance_compensation' => 'float',
|
|
'balance_com' => 'float',
|
|
'id_configWallet' => 'int'
|
|
];
|
|
|
|
protected $fillable = [
|
|
'id_network',
|
|
'balance_compensation',
|
|
'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');
|
|
}
|
|
}
|