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

56 lines
1.5 KiB
PHP
Raw Normal View History

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
* @property int $file_source 文件上传来源
* @property int $file_type 文件类型
* @property int $save_type 文件保存类型
2020-11-13 23:09:56 +08:00
* @property string $original_name 文件原始名称
2021-04-20 16:30:57 +08:00
* @property string $file_suffix 文件后缀名
* @property int $file_size 文件大小
* @property string $save_dir 文件保存路径
* @property int $is_delete 是否已删除
* @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',
'file_source',
'file_type',
'save_type',
'original_name',
'file_suffix',
'file_size',
'save_dir',
'is_delete',
'created_at'
];
2021-04-20 16:30:57 +08:00
2020-11-21 19:53:01 +08:00
protected $casts = [
2021-04-20 16:30:57 +08:00
'id' => 'integer',
'record_id' => 'integer',
'user_id' => 'integer',
2020-11-21 19:53:01 +08:00
'file_source' => 'integer',
2021-04-20 16:30:57 +08:00
'file_type' => 'integer',
'save_type' => 'integer',
'file_size' => 'integer',
'is_delete' => 'integer',
'created_at' => 'datetime'
2020-11-21 19:53:01 +08:00
];
2020-11-04 17:36:52 +08:00
}