mirror of
https://github.com/brian8544/turtle-wow.git
synced 2025-01-03 13:24:35 +00:00
31 lines
608 B
PHP
31 lines
608 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use App\Models\auth\Account;
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class BanAppealMessage extends Model
|
|
{
|
|
use HasFactory;
|
|
|
|
protected $fillable = [
|
|
'ban_appeal_id',
|
|
'account_id',
|
|
'message',
|
|
'seen',
|
|
'support'
|
|
];
|
|
|
|
public function account()
|
|
{
|
|
return $this->setConnection('mysql2')->belongsTo(Account::class, 'account_id', 'id');
|
|
}
|
|
|
|
public function banAppeal()
|
|
{
|
|
return $this->belongsTo(BanAppeal::class, 'id', 'ban_appeal_id');
|
|
}
|
|
}
|