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

52 lines
1.4 KiB
PHP
Raw Normal View History

2021-07-12 23:19:58 +08:00
<?php
declare (strict_types=1);
namespace App\Model\Talk;
use App\Model\BaseModel;
/**
* 聊天记录(入群/退群消息)数据表模型
*
* @property int $id
* @property int $record_id 消息记录ID
* @property int $user_id 通知类型[1:入群通知;2:自动退群;3:管理员踢群]
* @property string $title 投票标题
* @property int $answer_mode 投票模式
* @property string $answer_option 投票选项
* @property int $answer_num 应答人数
* @property int $answered_num 已答人数
* @property int $status 投票状态
* @property string $created_at 创建时间
* @property string $updated_at 更新时间
* @package App\Model\Chat
*/
class TalkRecordsVote extends BaseModel
{
protected $table = 'talk_records_vote';
protected $fillable = [
'record_id',
'user_id',
'title',
'answer_mode',
'answer_option',
'answer_num',
'answered_num',
'status',
'created_at',
'updated_at',
];
protected $casts = [
2021-07-17 21:27:48 +08:00
'record_id' => 'integer',
'user_id' => 'integer',
'answer_mode' => 'integer',
'answer_num' => 'integer',
'answered_num' => 'integer',
'status' => 'integer',
'answer_option' => 'array',
2021-07-12 23:19:58 +08:00
];
}