🆙 Add fixed cms 🆙

This commit is contained in:
Remco
2026-02-02 19:30:21 +01:00
parent b1a2cab62d
commit b67e0ec2b9
3982 changed files with 193682 additions and 0 deletions
+35
View File
@@ -0,0 +1,35 @@
<?php
namespace App\Models;
use App\Models\Game\Room;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class ChatlogRoom extends Model
{
use HasFactory;
protected $table = 'chatlogs_room';
protected $guarded = [];
public $timestamps = false;
protected $primaryKey = 'timestamp';
public function room()
{
return $this->belongsTo(Room::class);
}
public function sender()
{
return $this->belongsTo(User::class, 'user_from_id');
}
public function receiver()
{
return $this->belongsTo(User::class, 'user_to_id');
}
}