hyperf-chat/app/Model/Talk/TalkRecordsInvite.php

37 lines
941 B
PHP
Raw Normal View History

2020-11-05 17:40:51 +08:00
<?php
declare (strict_types=1);
2021-07-09 22:57:19 +08:00
namespace App\Model\Talk;
2020-11-05 17:40:51 +08:00
use App\Model\BaseModel;
/**
* 聊天记录(入群/退群消息)数据表模型
*
2021-04-20 16:30:57 +08:00
* @property int $id 入群或退群通知ID
* @property int $record_id 消息记录ID
* @property int $type 通知类型[1:入群通知;2:自动退群;3:管理员踢群]
* @property int $operate_user_id 操作人的用户ID[邀请人OR管理员ID]
* @property string $user_ids 用户ID(多个用 , 分割)
2020-11-05 17:40:51 +08:00
* @package App\Model\Chat
*/
2021-07-05 21:52:44 +08:00
class TalkRecordsInvite extends BaseModel
2020-11-05 17:40:51 +08:00
{
2021-07-05 21:52:44 +08:00
protected $table = 'talk_records_invite';
2020-11-05 17:40:51 +08:00
protected $fillable = [
'record_id',
'type',
'operate_user_id',
'user_ids',
];
protected $casts = [
2021-04-20 16:30:57 +08:00
'id' => 'integer',
'record_id' => 'integer',
'type' => 'integer',
2020-11-05 17:40:51 +08:00
'operate_user_id' => 'integer'
];
}