src/models/files.js
Function exports
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = function(sequelize, DataTypes) {
const files = sequelize.define('files', {
id: { type: DataTypes.UUID, primaryKey: true, defaultValue: DataTypes.UUIDV4 },
applicationId: { type: DataTypes.UUID, field: 'application_id' },
fileType: { type: DataTypes.STRING(10), field: 'file_type' },