feat(vm): hoàn tiền khi cấp VM lỗi, theo dõi job queue, uuid dịch vụ cho ticket, chuẩn hoá RAM addon
- VmProvisionException/VmProvisionRefund xử lý lỗi cấp phát VM - QueueJobInspector + QueueMonitorController xem chi tiết job - Thêm service uuid cho ticket, thời lượng cho activity_logs - Migration chuẩn hoá RAM addon sang MB, trạng thái deleting cho snapshot Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 5.5
parent
7136bec265
commit
62596d9063
@@ -23,19 +23,23 @@ class ActivityLog extends Model
|
||||
'new_values',
|
||||
'ip_address',
|
||||
'user_agent',
|
||||
'started_at',
|
||||
'finished_at',
|
||||
'created_at',
|
||||
];
|
||||
|
||||
protected $casts = [
|
||||
'old_values' => 'array',
|
||||
'new_values' => 'array',
|
||||
'started_at' => 'datetime:Y-m-d\TH:i:s.v\Z',
|
||||
'finished_at' => 'datetime:Y-m-d\TH:i:s.v\Z',
|
||||
'created_at' => 'datetime',
|
||||
];
|
||||
|
||||
protected static function booting(): void
|
||||
{
|
||||
static::creating(function (self $model) {
|
||||
$model->created_at = now();
|
||||
$model->created_at ??= now();
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user