This commit is contained in:
张成
2026-02-28 17:58:03 +08:00
parent a40219c7e4
commit 8a953eb769
2 changed files with 33 additions and 9 deletions

View File

@@ -29,6 +29,11 @@ module.exports = (db) => {
allowNull: true,
defaultValue: ''
},
security_id: {
comment: 'HR 消息唯一 id用于去重同一消息只调用一次 AI',
type: Sequelize.STRING(500),
allowNull: true
},
hr_message_text: {
comment: 'HR 最新消息原文AI 入参)',
type: Sequelize.TEXT,
@@ -70,12 +75,13 @@ module.exports = (db) => {
}, {
timestamps: false,
indexes: [
{ unique: true, fields: ['security_id'], name: 'uk_security_id' },
{ unique: false, fields: ['sn_code', 'platform', 'friendId'] },
{ unique: false, fields: ['create_time'] }
]
});
// chat_reply_intent_log.sync({ force: true });
// chat_reply_intent_log.sync({ force: true });
return chat_reply_intent_log;
};