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

30 lines
720 B
PHP

<?php
namespace App\Models;
/** One portable-backup restore, either independent or migration-internal. */
final class CloudBackupRestore extends Model
{
protected $connection = 'default';
protected $table = 'cloud_backup_restores';
protected $casts = [
'id' => 'int',
'backup_id' => 'int',
'target_host_id' => 'int',
'target_instance_id' => 'int',
'reservation_id' => 'int',
'job_id' => 'int',
'ready_at' => 'int',
'created_at' => 'int',
'updated_at' => 'int',
];
public function attempts()
{
return $this->hasMany(
CloudBackupRestoreAttempt::class,
'backup_restore_id'
);
}
}