hyperf-chat/app/Model/Chat/ChatRecordsInvite.php

53 lines
1.2 KiB
PHP
Raw Normal View History

2020-11-05 17:40:51 +08:00
<?php
declare (strict_types=1);
namespace App\Model\Chat;
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
*/
class ChatRecordsInvite extends BaseModel
{
/**
* The table associated with the model.
*
* @var string
*/
protected $table = 'chat_records_invite';
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'record_id',
'type',
'operate_user_id',
'user_ids',
];
/**
* The attributes that should be cast to native types.
*
* @var array
*/
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'
];
}