Initial commit

This commit is contained in:
root
2026-05-09 17:28:23 +02:00
commit 9d73f82529
5575 changed files with 281989 additions and 0 deletions
+31
View File
@@ -0,0 +1,31 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
class ChatlogPrivate extends Model
{
use HasFactory;
#[\Override]
protected $table = 'chatlogs_private';
#[\Override]
protected $guarded = ['timestamp', 'user_from_id', 'user_to_id'];
#[\Override]
public $timestamps = false;
public function sender(): BelongsTo
{
return $this->belongsTo(User::class, 'user_from_id');
}
public function receiver(): BelongsTo
{
return $this->belongsTo(User::class, 'user_to_id');
}
}