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.
 
 
 

94 lines
2.1 KiB

/* eslint-disable*/
'use strict';
module.exports = dc => {
const DataTypes = dc.ORM;
const sequelize = dc.orm;
const PatentSolutionBaseFields = sequelize.define('patentSolutionBaseFields', {
id: {
type: DataTypes.BIGINT,
allowNull: false,
primaryKey: true,
autoIncrement: true,
field: 'id'
},
solutionId: {
type: DataTypes.BIGINT,
allowNull: false,
field: 'solution_id',
references: {
key: 'id',
model: 'patent_solutions'
}
},
fieldKey: {
type: DataTypes.STRING,
allowNull: false,
field: 'field_key'
},
fieldTitle: {
type: DataTypes.TEXT,
allowNull: false,
field: 'field_title'
},
fieldDesc: {
type: DataTypes.TEXT,
allowNull: true,
field: 'field_desc'
},
fieldValue: {
type: DataTypes.TEXT,
allowNull: true,
field: 'field_value'
},
sortOrder: {
type: DataTypes.INTEGER,
allowNull: false,
defaultValue: 0,
field: 'sort_order'
},
isSelected: {
type: DataTypes.BOOLEAN,
allowNull: false,
defaultValue: true,
field: 'is_selected'
},
isRequired: {
type: DataTypes.BOOLEAN,
allowNull: false,
defaultValue: false,
field: 'is_required'
},
sourceType: {
type: DataTypes.STRING,
allowNull: false,
defaultValue: 'manual',
field: 'source_type'
},
sourceChatId: {
type: DataTypes.BIGINT,
allowNull: true,
field: 'source_chat_id'
},
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_solution_base_fields',
comment: '专利方案基础信息项',
indexes: []
});
dc.models.PatentSolutionBaseFields = PatentSolutionBaseFields;
return PatentSolutionBaseFields;
};