feat: 小程序与管理端迭代(神仙AI、了解自己CRM、AI测试入口、报表与分润等)
Made-with: Cursor
This commit is contained in:
23
api/app/model/AiMessage.php
Normal file
23
api/app/model/AiMessage.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
namespace app\model;
|
||||
|
||||
use think\Model;
|
||||
|
||||
/**
|
||||
* 神仙 AI 消息流
|
||||
*/
|
||||
class AiMessage extends Model
|
||||
{
|
||||
protected $name = 'ai_messages';
|
||||
|
||||
/** 避免因库表字段与模型缓存不一致导致写入抛错 */
|
||||
protected $strict = false;
|
||||
|
||||
protected $autoWriteTimestamp = false;
|
||||
|
||||
protected $type = [
|
||||
'createdAt' => 'integer',
|
||||
'tokensIn' => 'integer',
|
||||
'tokensOut' => 'integer',
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user