2020-11-04 17:36:52 +08:00
|
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
declare (strict_types=1);
|
|
|
|
|
|
2020-11-05 17:40:51 +08:00
|
|
|
|
namespace App\Model\Chat;
|
|
|
|
|
|
|
|
|
|
use App\Model\BaseModel;
|
2020-11-04 17:36:52 +08:00
|
|
|
|
|
|
|
|
|
/**
|
2020-11-13 23:09:56 +08:00
|
|
|
|
* 聊天记录(转发消息)数据表模型
|
|
|
|
|
*
|
2021-04-20 16:30:57 +08:00
|
|
|
|
* @property int $id 转发ID
|
|
|
|
|
* @property int $record_id 聊天记录ID
|
|
|
|
|
* @property int $user_id 用户ID
|
2020-11-13 23:09:56 +08:00
|
|
|
|
* @property string $records_id 聊天记录ID,多个用英文','拼接
|
2021-04-20 16:30:57 +08:00
|
|
|
|
* @property string $text 缓存信息
|
|
|
|
|
* @property int $created_at 转发时间
|
2020-11-13 23:09:56 +08:00
|
|
|
|
* @package App\Model\Chat
|
2020-11-04 17:36:52 +08:00
|
|
|
|
*/
|
2020-11-05 17:40:51 +08:00
|
|
|
|
class ChatRecordsForward extends BaseModel
|
2020-11-04 17:36:52 +08:00
|
|
|
|
{
|
|
|
|
|
protected $table = 'chat_records_forward';
|
|
|
|
|
|
2020-11-05 17:40:51 +08:00
|
|
|
|
protected $fillable = [
|
2021-04-22 16:14:34 +08:00
|
|
|
|
'record_id',
|
|
|
|
|
'user_id',
|
|
|
|
|
'records_id',
|
|
|
|
|
'text',
|
|
|
|
|
'created_at'
|
2020-11-05 17:40:51 +08:00
|
|
|
|
];
|
2020-11-04 17:36:52 +08:00
|
|
|
|
|
2020-11-13 23:09:56 +08:00
|
|
|
|
protected $casts = [
|
2021-04-20 16:30:57 +08:00
|
|
|
|
'id' => 'integer',
|
2020-11-13 23:09:56 +08:00
|
|
|
|
'record_id' => 'integer',
|
2021-04-20 16:30:57 +08:00
|
|
|
|
'user_id' => 'integer',
|
2020-11-13 23:09:56 +08:00
|
|
|
|
];
|
2020-11-04 17:36:52 +08:00
|
|
|
|
}
|