diff --git a/src/models/projects/projects.modeltypes.cjs b/src/models/projects/projects.modeltypes.cjs index ed6f6429..c8ce0db0 100644 --- a/src/models/projects/projects.modeltypes.cjs +++ b/src/models/projects/projects.modeltypes.cjs @@ -89,7 +89,7 @@ module.exports = { type: Sequelize.STRING, }, description: { - type: Sequelize.STRING, + type: Sequelize.TEXT, allowNull: true, }, createdAt: { diff --git a/src/validations/projects.validations.js b/src/validations/projects.validations.js index 14a2aa2c..edec4887 100644 --- a/src/validations/projects.validations.js +++ b/src/validations/projects.validations.js @@ -19,8 +19,8 @@ import { pickListValidation } from '../utils/validation-utils'; export const baseSchema = { // warehouseProjectId - derived upon creation // orgUid - derived upon creation - projectId: Joi.alternatives().try(Joi.string(), Joi.number()).required(), currentRegistry: Joi.string().allow(null).optional(), + projectId: Joi.alternatives().try(Joi.string(), Joi.number()).required(), originProjectId: Joi.alternatives() .try(Joi.string(), Joi.number()) .required(),