/* 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; };