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.
 
 
 

124 lines
3.0 KiB

/* eslint-disable*/
'use strict';
module.exports = dc => {
const DataTypes = dc.ORM;
const sequelize = dc.orm;
const PlagiarismCheckFiles = sequelize.define('plagiarismCheckFiles', {
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'
}
},
docTypeId: {
type: DataTypes.BIGINT,
allowNull: true,
field: 'doc_type_id',
references: {
key: 'id',
model: 'plagiarism_check_doc_types'
}
},
clientFileId: {
type: DataTypes.STRING(128),
allowNull: true,
field: 'client_file_id'
},
originalName: {
type: DataTypes.STRING(512),
allowNull: false,
field: 'original_name'
},
fileExt: {
type: DataTypes.STRING(32),
allowNull: false,
field: 'file_ext'
},
mimeType: {
type: DataTypes.STRING(128),
allowNull: true,
field: 'mime_type'
},
fileSize: {
type: DataTypes.BIGINT,
allowNull: false,
field: 'file_size'
},
qiniuKey: {
type: DataTypes.TEXT,
allowNull: true,
field: 'qiniu_key'
},
fileUrl: {
type: DataTypes.TEXT,
allowNull: true,
field: 'file_url'
},
parseStatus: {
type: DataTypes.STRING(32),
allowNull: false,
defaultValue: 'pending',
field: 'parse_status'
},
parseError: {
type: DataTypes.TEXT,
allowNull: true,
field: 'parse_error'
},
blockCount: {
type: DataTypes.INTEGER,
allowNull: false,
defaultValue: 0,
field: 'block_count'
},
textLength: {
type: DataTypes.INTEGER,
allowNull: false,
defaultValue: 0,
field: 'text_length'
},
sortOrder: {
type: DataTypes.INTEGER,
allowNull: false,
defaultValue: 0,
field: 'sort_order'
},
metadata: {
type: DataTypes.JSONB,
allowNull: true,
field: 'metadata'
},
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_files',
comment: '文档查重文件表',
timestamps: false,
indexes: []
});
dc.models.PlagiarismCheckFiles = PlagiarismCheckFiles;
return PlagiarismCheckFiles;
};