first commit from hostslim

This commit is contained in:
2026-03-24 21:12:21 +01:00
commit 20fee7784c
252 changed files with 27385 additions and 0 deletions
+41
View File
@@ -0,0 +1,41 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
class Annotation extends Model
{
protected $fillable = [
'website_id',
'user_id',
'date',
'text',
'category',
];
protected function casts(): array
{
return [
'date' => 'date',
];
}
public function website(): BelongsTo
{
return $this->belongsTo(Website::class);
}
public function user(): BelongsTo
{
return $this->belongsTo(User::class);
}
public static array $categories = [
'general' => 'General',
'deployment' => 'Deployment',
'campaign' => 'Campaign',
'incident' => 'Incident',
];
}