/* eslint-disable*/ 'use strict'; module.exports = dc => { const DataTypes = dc.ORM; const sequelize = dc.orm; const PatentReviewFiles = sequelize.define('patentReviewFiles', { 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: 'patent_review_tasks' } }, fileRole: { type: DataTypes.STRING(32), allowNull: false, field: 'file_role' }, originalName: { type: DataTypes.STRING(512), allowNull: false, field: 'original_name' }, fileUrl: { type: DataTypes.TEXT, allowNull: true, field: 'file_url' }, storageKey: { type: DataTypes.TEXT, allowNull: true, field: 'storage_key' }, fileSize: { type: DataTypes.BIGINT, allowNull: true, field: 'file_size' }, fileExt: { type: DataTypes.STRING(32), allowNull: true, field: 'file_ext' }, mimeType: { type: DataTypes.STRING(128), allowNull: true, field: 'mime_type' }, sortOrder: { type: DataTypes.INTEGER, allowNull: true, defaultValue: 0, field: 'sort_order' }, metadata: { type: DataTypes.JSONB, allowNull: true, field: 'metadata' }, createAt: { type: DataTypes.DATE, allowNull: false, defaultValue: sequelize.literal('CURRENT_TIMESTAMP'), field: 'create_at' } }, { tableName: 'patent_review_files', comment: '专利智能审查文件表', timestamps: false, indexes: [] }); dc.models.PatentReviewFiles = PatentReviewFiles; return PatentReviewFiles; };