You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
983 B
PHP
45 lines
983 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
final class CloudPublicNetworkTransitionIp extends Model
|
|
{
|
|
protected $connection = 'default';
|
|
protected $table = 'cloud_public_network_transition_ips';
|
|
|
|
protected $casts = [
|
|
'id' => 'int',
|
|
'transition_id' => 'int',
|
|
'address_family' => 'int',
|
|
'source_claim_id' => 'int',
|
|
'target_claim_id' => 'int',
|
|
'changed' => 'bool',
|
|
'created_at' => 'int',
|
|
'updated_at' => 'int',
|
|
];
|
|
|
|
public function transition()
|
|
{
|
|
return $this->belongsTo(
|
|
CloudPublicNetworkTransition::class,
|
|
'transition_id'
|
|
);
|
|
}
|
|
|
|
public function sourceClaim()
|
|
{
|
|
return $this->belongsTo(
|
|
CloudResourceReservationIp::class,
|
|
'source_claim_id'
|
|
);
|
|
}
|
|
|
|
public function targetClaim()
|
|
{
|
|
return $this->belongsTo(
|
|
CloudResourceReservationIp::class,
|
|
'target_claim_id'
|
|
);
|
|
}
|
|
}
|