2020-11-04 17:36:52 +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;
|
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
|
2022-01-17 21:06:27 +08:00
|
|
|
* @property int $source 文件上传来源
|
|
|
|
* @property int $type 文件类型
|
|
|
|
* @property int $drive 文件保存类型
|
2020-11-13 23:09:56 +08:00
|
|
|
* @property string $original_name 文件原始名称
|
2022-01-17 21:06:27 +08:00
|
|
|
* @property string $suffix 文件后缀名
|
|
|
|
* @property int $size 文件大小
|
|
|
|
* @property string $path 文件保存路径
|
2021-04-20 16:30:57 +08:00
|
|
|
* @property string $created_at 上传时间
|
2020-11-13 23:09:56 +08:00
|
|
|
* @package App\Model\Chat
|
2020-11-04 17:36:52 +08:00
|
|
|
*/
|
2021-07-05 21:52:44 +08:00
|
|
|
class TalkRecordsFile extends BaseModel
|
2020-11-04 17:36:52 +08:00
|
|
|
{
|
2021-07-05 21:52:44 +08:00
|
|
|
protected $table = 'talk_records_file';
|
2020-11-04 17:36:52 +08:00
|
|
|
|
2020-11-21 19:53:01 +08:00
|
|
|
protected $fillable = [
|
|
|
|
'record_id',
|
|
|
|
'user_id',
|
2022-01-17 21:06:27 +08:00
|
|
|
'source',
|
|
|
|
'type',
|
|
|
|
'drive',
|
2020-11-21 19:53:01 +08:00
|
|
|
'original_name',
|
2022-01-17 21:06:27 +08:00
|
|
|
'suffix',
|
|
|
|
'size',
|
|
|
|
'path',
|
2022-01-22 12:48:28 +08:00
|
|
|
'url',
|
2020-11-21 19:53:01 +08:00
|
|
|
'created_at'
|
|
|
|
];
|
2021-04-20 16:30:57 +08:00
|
|
|
|
2020-11-21 19:53:01 +08:00
|
|
|
protected $casts = [
|
2022-01-17 21:06:27 +08:00
|
|
|
'record_id' => 'integer',
|
|
|
|
'user_id' => 'integer',
|
|
|
|
'source' => 'integer',
|
|
|
|
'type' => 'integer',
|
|
|
|
'drive' => 'integer',
|
|
|
|
'size' => 'integer',
|
|
|
|
'created_at' => 'datetime'
|
2020-11-21 19:53:01 +08:00
|
|
|
];
|
2020-11-04 17:36:52 +08:00
|
|
|
}
|