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.
virt/web/app/Models/CloudPublicNetworkTransitio...

43 lines
1.0 KiB
PHTML

<?php
namespace App\Models;
final class CloudPublicNetworkTransition extends Model
{
protected $connection = 'default';
protected $table = 'cloud_public_network_transitions';
protected $casts = [
'id' => 'int',
'instance_id' => 'int',
'host_id' => 'int',
'reservation_id' => 'int',
'invoice_id' => 'int',
'pool_replacement_batch_item_id' => 'int',
'requested_by_user_id' => 'int',
'source_network_attachment_id' => 'int',
'target_network_attachment_id' => 'int',
'active_transition' => 'int',
'effect_resolved_at' => 'int',
'terminal_at' => 'int',
'created_at' => 'int',
'updated_at' => 'int',
];
public function addressClaims()
{
return $this->hasMany(
CloudPublicNetworkTransitionIp::class,
'transition_id'
);
}
public function jobs()
{
return $this->hasMany(
CloudJob::class,
'public_network_transition_id'
);
}
}