/* eslint-disable*/ 'use strict'; module.exports = dc => { const DataTypes = dc.ORM; const sequelize = dc.orm; const PlagiarismCheckFileSummaries = sequelize.define('plagiarismCheckFileSummaries', { id: { type: DataTypes.BIGINT, allowNull: false, primaryKey: true, autoIncrement: true, field: 'id' }, taskId: { type: DataTypes.BIGINT, allowNull: false, field: 'task_id' }, fileId: { type: DataTypes.BIGINT, allowNull: false, field: 'file_id' }, totalChars: { type: DataTypes.INTEGER, allowNull: false, defaultValue: 0, field: 'total_chars' }, repeatedChars: { type: DataTypes.INTEGER, allowNull: false, defaultValue: 0, field: 'repeated_chars' }, repeatedBlockCount: { type: DataTypes.INTEGER, allowNull: false, defaultValue: 0, field: 'repeated_block_count' }, matchCount: { type: DataTypes.INTEGER, allowNull: false, defaultValue: 0, field: 'match_count' }, sameTypeMatchCount: { type: DataTypes.INTEGER, allowNull: false, defaultValue: 0, field: 'same_type_match_count' }, crossTypeMatchCount: { type: DataTypes.INTEGER, allowNull: false, defaultValue: 0, field: 'cross_type_match_count' }, similarityPercent: { type: DataTypes.DECIMAL(8, 2), allowNull: false, defaultValue: 0, field: 'similarity_percent' }, 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_file_summaries', comment: '文档查重文件统计表', timestamps: false, indexes: [] }); dc.models.PlagiarismCheckFileSummaries = PlagiarismCheckFileSummaries; return PlagiarismCheckFileSummaries; };