Files
MBTI_wang/api/app/model/AiMessage.php
卡若 ce55c48c64 feat: 同步今日小程序与后台迭代版本
集中提交今日 API、管理端、小程序与部署文档调整,确保 Gitea 主分支与本地最新开发版本一致。

Made-with: Cursor
2026-04-20 11:07:55 +08:00

27 lines
568 B
PHP
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
namespace app\model;
use think\Model;
/**
* 神仙 AI 消息流
*/
class AiMessage extends Model
{
protected $name = 'ai_messages';
/**
* 须为 true库表列为 conversationId / isDegraded 等驼峰。
* strict=false 时会转成 conversation_id 写入 → conversationId 恒为 0上下文与异步任务错乱。
*/
protected $strict = true;
protected $autoWriteTimestamp = false;
protected $type = [
'createdAt' => 'integer',
'tokensIn' => 'integer',
'tokensOut' => 'integer',
];
}