48 lines
787 B
PHP
48 lines
787 B
PHP
|
<?php
|
||
|
|
||
|
/**
|
||
|
* Created by Reliese Model.
|
||
|
*/
|
||
|
|
||
|
namespace App\Models;
|
||
|
|
||
|
use Illuminate\Database\Eloquent\Collection;
|
||
|
use Illuminate\Database\Eloquent\Model;
|
||
|
|
||
|
/**
|
||
|
* Class Network
|
||
|
*
|
||
|
* @property int $id
|
||
|
* @property int $country_id
|
||
|
* @property string $name
|
||
|
* @property int $id_networkAgent
|
||
|
* @property int $status
|
||
|
*
|
||
|
* @property Collection|ConfigWallet[] $config_wallets
|
||
|
*
|
||
|
* @package App\Models
|
||
|
*/
|
||
|
class Network extends Model
|
||
|
{
|
||
|
protected $table = 'networks';
|
||
|
public $timestamps = false;
|
||
|
|
||
|
protected $casts = [
|
||
|
'country_id' => 'int',
|
||
|
'id_networkAgent' => 'int',
|
||
|
'status' => 'int'
|
||
|
];
|
||
|
|
||
|
protected $fillable = [
|
||
|
'country_id',
|
||
|
'name',
|
||
|
'id_networkAgent',
|
||
|
'status'
|
||
|
];
|
||
|
|
||
|
public function config_wallets()
|
||
|
{
|
||
|
return $this->hasMany(ConfigWallet::class, 'id_network');
|
||
|
}
|
||
|
}
|