1
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user