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

38 lines
795 B
PHP
Raw Permalink Normal View History

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 string $lang 代码语言
2021-04-20 16:30:57 +08:00
* @property string $code 代码详情
2020-11-13 23:09:56 +08:00
* @property string $created_at 创建时间
* @package App\Model\Chat
2020-11-04 17:36:52 +08:00
*/
2021-07-05 21:52:44 +08:00
class TalkRecordsCode extends BaseModel
2020-11-04 17:36:52 +08:00
{
2021-07-05 21:52:44 +08:00
protected $table = 'talk_records_code';
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
'lang',
2020-11-21 19:53:01 +08:00
'code',
'created_at'
];
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
'record_id' => 'integer',
'user_id' => 'integer',
2020-11-13 23:09:56 +08:00
'created_at' => 'datetime'
];
2020-11-04 17:36:52 +08:00
}