ai-query对接新版freesun-agent接口的分支
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

96 lines
2.1 KiB

/* eslint-disable*/
'use strict';
module.exports = dc => {
const DataTypes = dc.ORM;
const sequelize = dc.orm;
const PatentGrantQueryResults = sequelize.define('patentGrantQueryResults', {
id: {
type: DataTypes.BIGINT,
allowNull: false,
primaryKey: true,
autoIncrement: true,
field: 'id'
},
taskId: {
type: DataTypes.BIGINT,
allowNull: false,
unique: true,
field: 'task_id',
references: {
key: 'id',
model: 'patent_review_tasks'
}
},
inputText: {
type: DataTypes.TEXT,
allowNull: false,
field: 'input_text'
},
totalCount: {
type: DataTypes.INTEGER,
allowNull: true,
defaultValue: 0,
field: 'total_count'
},
oneShotCount: {
type: DataTypes.INTEGER,
allowNull: true,
defaultValue: 0,
field: 'one_shot_count'
},
nonOneShotCount: {
type: DataTypes.INTEGER,
allowNull: true,
defaultValue: 0,
field: 'non_one_shot_count'
},
results: {
type: DataTypes.JSONB,
allowNull: false,
defaultValue: [],
field: 'results'
},
rawResult: {
type: DataTypes.JSONB,
allowNull: true,
field: 'raw_result'
},
startedAt: {
type: DataTypes.DATE,
allowNull: true,
field: 'started_at'
},
finishedAt: {
type: DataTypes.DATE,
allowNull: true,
field: 'finished_at'
},
errorMessage: {
type: DataTypes.TEXT,
allowNull: true,
field: 'error_message'
},
createAt: {
type: DataTypes.DATE,
allowNull: false,
defaultValue: sequelize.literal('CURRENT_TIMESTAMP'),
field: 'create_at'
},
updateAt: {
type: DataTypes.DATE,
allowNull: false,
defaultValue: sequelize.literal('CURRENT_TIMESTAMP'),
field: 'update_at'
}
}, {
tableName: 'patent_grant_query_results',
comment: '一次性授权查询结果表',
timestamps: false,
indexes: []
});
dc.models.PatentGrantQueryResults = PatentGrantQueryResults;
return PatentGrantQueryResults;
};