Implement creator studio and upload updates

This commit is contained in:
2026-04-04 10:12:02 +02:00
parent 1da7d3bf88
commit 0b216b7ecd
15107 changed files with 31206 additions and 626514 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');
}
}