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

55 lines
1.0 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
* 聊天记录(代码块消息)数据表模型
*
* @property int $id 代码块ID
* @property int $record_id 聊天记录ID
* @property int $user_id 用户ID
* @property string $code_lang 代码语言
* @property string $code 代码详情
* @property string $created_at 创建时间
*
* @package App\Model\Chat
2020-11-04 17:36:52 +08:00
*/
2020-11-05 17:40:51 +08:00
class ChatRecordsCode extends BaseModel
2020-11-04 17:36:52 +08:00
{
/**
* The table associated with the model.
*
* @var string
*/
protected $table = 'chat_records_code';
/**
* The attributes that are mass assignable.
*
* @var array
*/
2020-11-21 19:53:01 +08:00
protected $fillable = [
'record_id',
'user_id',
'code_lang',
'code',
'created_at'
];
2020-11-04 17:36:52 +08:00
/**
* The attributes that should be cast to native types.
*
* @var array
*/
2020-11-13 23:09:56 +08:00
protected $casts = [
'id' => 'integer',
'record_id' => 'integer',
'user_id' => 'integer',
'created_at' => 'datetime'
];
2020-11-04 17:36:52 +08:00
}