feat: add app and database modules

This commit is contained in:
2026-05-21 16:05:11 +07:00
parent 37b7e783f5
commit fad70d096b
212 changed files with 23901 additions and 0 deletions
+34
View File
@@ -0,0 +1,34 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Prunable;
class AiHealingLog extends Model
{
use \Illuminate\Database\Eloquent\Factories\HasFactory, Prunable;
protected $fillable = [
'error_type',
'error_message',
'stack_trace',
'ai_diagnosis',
'original_code',
'fixed_code',
'action_taken',
'status',
];
protected $casts = [
'stack_trace' => 'encrypted',
'original_code' => 'encrypted',
'fixed_code' => 'encrypted',
];
public function prunable(): Builder
{
return self::query()->where('created_at', '<=', now()->subDays(90));
}
}