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.
 
 
 

87 lines
2.1 KiB

/* eslint-disable*/
'use strict';
module.exports = dc => {
const DataTypes = dc.ORM;
const sequelize = dc.orm;
const PlagiarismCheckFileBlocks = sequelize.define('plagiarismCheckFileBlocks', {
id: {
type: DataTypes.BIGINT,
allowNull: false,
primaryKey: true,
autoIncrement: true,
field: 'id'
},
taskId: {
type: DataTypes.BIGINT,
allowNull: false,
field: 'task_id',
references: {
key: 'id',
model: 'plagiarism_check_tasks'
}
},
fileId: {
type: DataTypes.BIGINT,
allowNull: false,
field: 'file_id',
references: {
key: 'id',
model: 'plagiarism_check_files'
}
},
blockIndex: {
type: DataTypes.INTEGER,
allowNull: false,
field: 'block_index'
},
blockType: {
type: DataTypes.STRING(32),
allowNull: false,
defaultValue: 'paragraph',
field: 'block_type'
},
htmlContent: {
type: DataTypes.TEXT,
allowNull: false,
field: 'html_content'
},
plainText: {
type: DataTypes.TEXT,
allowNull: false,
field: 'plain_text'
},
textLength: {
type: DataTypes.INTEGER,
allowNull: false,
defaultValue: 0,
field: 'text_length'
},
structureInfo: {
type: DataTypes.JSONB,
allowNull: true,
field: 'structure_info'
},
createdAt: {
type: DataTypes.DATE,
allowNull: false,
defaultValue: sequelize.literal('CURRENT_TIMESTAMP'),
field: 'created_at'
},
updatedAt: {
type: DataTypes.DATE,
allowNull: false,
defaultValue: sequelize.literal('CURRENT_TIMESTAMP'),
field: 'updated_at'
}
}, {
tableName: 'plagiarism_check_file_blocks',
comment: '文档查重解析块表',
timestamps: false,
indexes: []
});
dc.models.PlagiarismCheckFileBlocks = PlagiarismCheckFileBlocks;
return PlagiarismCheckFileBlocks;
};