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.
37 lines
900 B
PHP
37 lines
900 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
/**
|
|
* Greenfield Go Agent operation journal row.
|
|
*
|
|
* This model maps only the new cloud_agent_operations table. It deliberately
|
|
* does not expose the plaintext desired/result payloads or lease owner through
|
|
* normal model serialization; the repository performs the typed projection.
|
|
*/
|
|
final class CloudAgentOperation extends Model
|
|
{
|
|
protected $connection = 'default';
|
|
|
|
protected $table = 'cloud_agent_operations';
|
|
|
|
protected $hidden = [
|
|
'desired_json',
|
|
'result_json',
|
|
'error_detail',
|
|
'lease_owner',
|
|
];
|
|
|
|
protected $casts = [
|
|
'id' => 'int',
|
|
'host_id' => 'int',
|
|
'instance_id' => 'int',
|
|
'version' => 'int',
|
|
'attempt_count' => 'int',
|
|
'lease_expires_at' => 'int',
|
|
'created_at' => 'int',
|
|
'updated_at' => 'int',
|
|
'completed_at' => 'int',
|
|
];
|
|
}
|