first commit

This commit is contained in:
Stefanescu Mihai
2026-03-19 19:25:51 +02:00
commit 70c3270a45
116 changed files with 15866 additions and 0 deletions
+62
View File
@@ -0,0 +1,62 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Concerns\HasUlids;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
class Event extends Model
{
use HasUlids;
const UPDATED_AT = null;
protected $fillable = [
'issue_id',
'project_id',
'event_id',
'level',
'message',
'platform',
'timestamp',
'server_name',
'release',
'environment',
'exception',
'breadcrumbs',
'contexts',
'tags',
'extra',
'user_context',
'request_context',
'sdk',
'raw_payload',
];
protected function casts(): array
{
return [
'timestamp' => 'datetime',
'exception' => 'array',
'breadcrumbs' => 'array',
'contexts' => 'array',
'tags' => 'array',
'extra' => 'array',
'user_context' => 'array',
'request_context' => 'array',
'sdk' => 'array',
'raw_payload' => 'array',
];
}
public function issue(): BelongsTo
{
return $this->belongsTo(Issue::class);
}
public function project(): BelongsTo
{
return $this->belongsTo(Project::class);
}
}