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/CloudInstanceMigration.php

42 lines
1.2 KiB
PHP

<?php
namespace App\Models;
/** Durable orchestration ledger for one cold, same-service VM migration. */
final class CloudInstanceMigration extends Model
{
protected $connection = 'default';
protected $table = 'cloud_instance_migrations';
protected $casts = [
'id' => 'int',
'instance_id' => 'int',
'vpc_port_id' => 'int',
'restore_id' => 'int',
'source_host_id' => 'int',
'source_reservation_id' => 'int',
'target_host_id' => 'int',
'target_reservation_id' => 'int',
'source_prepare_job_id' => 'int',
'target_receive_job_id' => 'int',
'firewall_job_id' => 'int',
'activate_job_id' => 'int',
'rollback_job_id' => 'int',
'cleanup_job_id' => 'int',
'retry_generation' => 'int',
'source_was_running' => 'bool',
'source_autostart_enabled' => 'bool',
'cutover_at' => 'int',
'completed_at' => 'int',
'created_at' => 'int',
'updated_at' => 'int',
];
public function sourceDebt()
{
return $this->hasOne(
CloudInstanceMigrationSourceDebt::class,
'migration_id'
);
}
}