mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-11 18:42:54 +00:00
42 lines
1.7 KiB
PHP
42 lines
1.7 KiB
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
/**
|
|
* App\Models\WebSocketDialogMsgRead
|
|
*
|
|
* @property int $id
|
|
* @property int|null $dialog_id 对话ID
|
|
* @property int|null $msg_id 消息ID
|
|
* @property int|null $userid 发送会员ID
|
|
* @property int|null $after 在阅读之后才添加的记录
|
|
* @property string|null $read_at 阅读时间
|
|
* @property-read \App\Models\WebSocketDialogMsg|null $webSocketDialogMsg
|
|
* @method static \Illuminate\Database\Eloquent\Builder|WebSocketDialogMsgRead newModelQuery()
|
|
* @method static \Illuminate\Database\Eloquent\Builder|WebSocketDialogMsgRead newQuery()
|
|
* @method static \Illuminate\Database\Eloquent\Builder|WebSocketDialogMsgRead query()
|
|
* @method static \Illuminate\Database\Eloquent\Builder|WebSocketDialogMsgRead whereAfter($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|WebSocketDialogMsgRead whereDialogId($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|WebSocketDialogMsgRead whereId($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|WebSocketDialogMsgRead whereMsgId($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|WebSocketDialogMsgRead whereReadAt($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|WebSocketDialogMsgRead whereUserid($value)
|
|
* @mixin \Eloquent
|
|
*/
|
|
class WebSocketDialogMsgRead extends AbstractModel
|
|
{
|
|
function __construct(array $attributes = [])
|
|
{
|
|
parent::__construct($attributes);
|
|
$this->timestamps = false;
|
|
}
|
|
|
|
/**
|
|
* @return \Illuminate\Database\Eloquent\Relations\HasOne
|
|
*/
|
|
public function webSocketDialogMsg(): \Illuminate\Database\Eloquent\Relations\HasOne
|
|
{
|
|
return $this->hasOne(WebSocketDialogMsg::class, 'id', 'msg_id');
|
|
}
|
|
}
|