0: 用户ID] * @property int $receive_id 接收者ID[用户ID 或 群ID] * @property string $content 文本消息 * @property int $is_revoke 是否撤回消息[0:否;1:是] * @property string $created_at 创建时间 * @package App\Model\Chat */ class ChatRecord extends BaseModel { protected $table = 'chat_records'; protected $fillable = [ 'source', 'msg_type', 'user_id', 'receive_id', 'content', 'is_revoke', 'created_at', ]; protected $casts = [ 'id' => 'integer', 'source' => 'integer', 'msg_type' => 'integer', 'user_id' => 'integer', 'receive_id' => 'integer', 'is_revoke' => 'integer' ]; }