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.
 
 
 

95 lines
2.0 KiB

/* eslint-disable*/
'use strict';
module.exports = dc => {
const DataTypes = dc.ORM;
const sequelize = dc.orm;
const PatentReviewTasks = sequelize.define('patentReviewTasks', {
id: {
type: DataTypes.BIGINT,
allowNull: false,
primaryKey: true,
autoIncrement: true,
field: 'id'
},
name: {
type: DataTypes.STRING(255),
allowNull: false,
field: 'name'
},
moduleKey: {
type: DataTypes.STRING(32),
allowNull: false,
field: 'module_key'
},
status: {
type: DataTypes.STRING(32),
allowNull: false,
defaultValue: 'created',
field: 'status'
},
statusText: {
type: DataTypes.STRING(64),
allowNull: false,
defaultValue: '待处理',
field: 'status_text'
},
userId: {
type: DataTypes.BIGINT,
allowNull: true,
field: 'user_id'
},
creator: {
type: DataTypes.STRING(128),
allowNull: true,
field: 'creator'
},
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'
},
extra: {
type: DataTypes.JSONB,
allowNull: true,
field: 'extra'
},
deleted: {
type: DataTypes.BOOLEAN,
allowNull: false,
defaultValue: false,
field: 'deleted'
},
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_review_tasks',
comment: '专利智能审查任务表',
timestamps: false,
indexes: []
});
dc.models.PatentReviewTasks = PatentReviewTasks;
return PatentReviewTasks;
};