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.
31 lines
761 B
PHP
31 lines
761 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',
|
|
'requested_by_user_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'
|
|
);
|
|
}
|
|
}
|