/* eslint-disable*/ 'use strict'; module.exports = dc => { const DataTypes = dc.ORM; const sequelize = dc.orm; const PatentCompareResults = sequelize.define('patentCompareResults', { 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' } }, targetFileName: { type: DataTypes.STRING(512), allowNull: true, field: 'target_file_name' }, conclusion: { type: DataTypes.TEXT, allowNull: true, field: 'conclusion' }, noveltyScore: { type: DataTypes.INTEGER, allowNull: true, field: 'novelty_score' }, inventiveScore: { type: DataTypes.INTEGER, allowNull: true, field: 'inventive_score' }, analysis: { type: DataTypes.TEXT, allowNull: true, field: 'analysis' }, referencesResult: { type: DataTypes.JSONB, allowNull: false, defaultValue: [], field: 'references_result' }, 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_compare_results', comment: '专利新颖性创造性对比结果表', timestamps: false, indexes: [] }); dc.models.PatentCompareResults = PatentCompareResults; return PatentCompareResults; };