38 lines
703 B
PHP
38 lines
703 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
|
|
|
class UserNegativeSignal extends Model
|
|
{
|
|
use HasFactory;
|
|
|
|
protected $table = 'user_negative_signals';
|
|
|
|
protected $guarded = [];
|
|
|
|
protected $casts = [
|
|
'meta' => 'array',
|
|
];
|
|
|
|
public function user(): BelongsTo
|
|
{
|
|
return $this->belongsTo(User::class);
|
|
}
|
|
|
|
public function artwork(): BelongsTo
|
|
{
|
|
return $this->belongsTo(Artwork::class);
|
|
}
|
|
|
|
public function tag(): BelongsTo
|
|
{
|
|
return $this->belongsTo(Tag::class);
|
|
}
|
|
}
|