turtle-wow-source-kinda/Dumps/Source Code/8 - Development_website/develop/app/Models/BugTrackerMessageStatus.php
Brian Oost a1d5bb70b2 Init
2024-08-06 18:06:40 +02:00

31 lines
631 B
PHP

<?php
namespace App\Models;
use App\Models\auth\Account;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class BugTrackerMessageStatus extends Model
{
use HasFactory;
protected $table = 'bug_tracker_message_status';
protected $fillable = [
'message_id',
'account_id',
'seen'
];
public function account()
{
return $this->setConnection('mysql2')->belongsTo(Account::class, 'account_id', 'id');
}
public function message()
{
return $this->belongsTo(BugTrackerMessage::class, 'id', 'message_id');
}
}