Save workspace changes

This commit is contained in:
2026-04-18 17:02:56 +02:00
parent f02ea9a711
commit 87d60af5a9
4220 changed files with 1388603 additions and 1554 deletions

View File

@@ -0,0 +1,32 @@
<?php
namespace App\Models;
use App\Enums\ModerationRuleType;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
class ContentModerationRule extends Model
{
protected $table = 'content_moderation_rules';
protected $fillable = [
'type',
'value',
'enabled',
'weight',
'notes',
'created_by',
];
protected $casts = [
'type' => ModerationRuleType::class,
'enabled' => 'boolean',
'weight' => 'integer',
];
public function creator(): BelongsTo
{
return $this->belongsTo(User::class, 'created_by');
}
}