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.
24 lines
595 B
PHP
24 lines
595 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
/** Panel-side record of one host's requested and confirmed storage layout. */
|
|
final class CloudHostStorageConfiguration extends Model
|
|
{
|
|
protected $connection = 'default';
|
|
protected $table = 'cloud_host_storage_configurations';
|
|
protected $primaryKey = 'host_id';
|
|
public $incrementing = false;
|
|
protected $casts = [
|
|
'host_id' => 'int',
|
|
'revision' => 'int',
|
|
'created_at' => 'int',
|
|
'updated_at' => 'int',
|
|
];
|
|
|
|
public function isApplied(): bool
|
|
{
|
|
return (string) $this->state === 'applied';
|
|
}
|
|
}
|