/* eslint-disable*/ 'use strict'; module.exports = dc => { const DataTypes = dc.ORM; const sequelize = dc.orm; const PlagiarismCheckMatches = sequelize.define('plagiarismCheckMatches', { id: { type: DataTypes.BIGINT, allowNull: false, primaryKey: true, autoIncrement: true, field: 'id' }, taskId: { type: DataTypes.BIGINT, allowNull: false, field: 'task_id' }, leftFileId: { type: DataTypes.BIGINT, allowNull: false, field: 'left_file_id' }, rightFileId: { type: DataTypes.BIGINT, allowNull: false, field: 'right_file_id' }, leftBlockId: { type: DataTypes.BIGINT, allowNull: false, field: 'left_block_id' }, rightBlockId: { type: DataTypes.BIGINT, allowNull: false, field: 'right_block_id' }, leftBlockIndex: { type: DataTypes.INTEGER, allowNull: false, field: 'left_block_index' }, rightBlockIndex: { type: DataTypes.INTEGER, allowNull: false, field: 'right_block_index' }, leftStart: { type: DataTypes.INTEGER, allowNull: false, defaultValue: 0, field: 'left_start' }, leftEnd: { type: DataTypes.INTEGER, allowNull: false, defaultValue: 0, field: 'left_end' }, rightStart: { type: DataTypes.INTEGER, allowNull: false, defaultValue: 0, field: 'right_start' }, rightEnd: { type: DataTypes.INTEGER, allowNull: false, defaultValue: 0, field: 'right_end' }, leftRawStart: { type: DataTypes.INTEGER, allowNull: false, defaultValue: 0, field: 'left_raw_start' }, leftRawEnd: { type: DataTypes.INTEGER, allowNull: false, defaultValue: 0, field: 'left_raw_end' }, rightRawStart: { type: DataTypes.INTEGER, allowNull: false, defaultValue: 0, field: 'right_raw_start' }, rightRawEnd: { type: DataTypes.INTEGER, allowNull: false, defaultValue: 0, field: 'right_raw_end' }, matchText: { type: DataTypes.TEXT, allowNull: false, field: 'match_text' }, matchLength: { type: DataTypes.INTEGER, allowNull: false, defaultValue: 0, field: 'match_length' }, matchType: { type: DataTypes.STRING(32), allowNull: false, field: 'match_type' }, color: { type: DataTypes.STRING(32), allowNull: false, field: 'color' }, 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_matches', comment: '文档查重匹配结果表', timestamps: false, indexes: [] }); dc.models.PlagiarismCheckMatches = PlagiarismCheckMatches; return PlagiarismCheckMatches; };