diff --git a/database/migrations/20241014063413-create-report.cjs b/database/migrations/20241014063413-create-report.cjs index 5198046..7b1f7c1 100644 --- a/database/migrations/20241014063413-create-report.cjs +++ b/database/migrations/20241014063413-create-report.cjs @@ -14,7 +14,7 @@ module.exports = { allowNull: false, }, REPORTS: { - type: Sequelize.STRING(256), + type: Sequelize.STRING(1024), allowNull: false, }, TIME_REPORT: { diff --git a/database/migrations/20241014080340-create-student-learning.cjs b/database/migrations/20241014080340-create-student-learning.cjs index 6ee482e..bd60908 100644 --- a/database/migrations/20241014080340-create-student-learning.cjs +++ b/database/migrations/20241014080340-create-student-learning.cjs @@ -43,7 +43,7 @@ module.exports = { defaultValue: null, }, FEEDBACK_STUDENT: { - type: Sequelize.STRING(200), + type: Sequelize.STRING(1024), allowNull: true, defaultValue: null, }, diff --git a/database/migrations/20241014082006-create-student-exercise.cjs b/database/migrations/20241014082006-create-student-exercise.cjs index ba40871..c7fe650 100644 --- a/database/migrations/20241014082006-create-student-exercise.cjs +++ b/database/migrations/20241014082006-create-student-exercise.cjs @@ -18,7 +18,7 @@ module.exports = { allowNull: false, }, ANSWER_STUDENT: { - type: Sequelize.STRING(256), + type: Sequelize.STRING(1024), allowNull: false, }, IS_CORRECT: { diff --git a/database/migrations/20241014082720-create-monitoring.cjs b/database/migrations/20241014082720-create-monitoring.cjs index 99b4812..6022483 100644 --- a/database/migrations/20241014082720-create-monitoring.cjs +++ b/database/migrations/20241014082720-create-monitoring.cjs @@ -22,7 +22,7 @@ module.exports = { allowNull: true, }, FEEDBACK_GURU: { - type: Sequelize.STRING(200), + type: Sequelize.STRING(1024), allowNull: true, }, TIME_MONITORING: { diff --git a/models/contentModels/exerciseModel.js b/models/contentModels/exerciseModel.js index 9077dff..6d53202 100644 --- a/models/contentModels/exerciseModel.js +++ b/models/contentModels/exerciseModel.js @@ -47,7 +47,7 @@ const ExerciseModel = (DataTypes) => { }, }, QUESTION_TYPE: { - type: DataTypes.STRING(100), + type: DataTypes.TEXT, allowNull: false, validate: { notEmpty: true, diff --git a/models/contentModels/sectionModel.js b/models/contentModels/sectionModel.js index 34c4ec9..a7f7aaa 100644 --- a/models/contentModels/sectionModel.js +++ b/models/contentModels/sectionModel.js @@ -20,7 +20,7 @@ const SectionModel = (DataTypes) => { }, }, DESCRIPTION_SECTION: { - type: DataTypes.STRING(1024), + type: DataTypes.TEXT, allowNull: false, validate: { notEmpty: true, diff --git a/models/contentModels/topicModel.js b/models/contentModels/topicModel.js index 466162d..2f4b691 100644 --- a/models/contentModels/topicModel.js +++ b/models/contentModels/topicModel.js @@ -31,7 +31,7 @@ const TopicModel = (DataTypes) => { }, }, DESCRIPTION_TOPIC: { - type: DataTypes.STRING(1024), + type: DataTypes.TEXT, allowNull: false, validate: { notEmpty: true, diff --git a/models/learningModels/stdExerciseModel.js b/models/learningModels/stdExerciseModel.js index 9c9e4db..a1ef76d 100644 --- a/models/learningModels/stdExerciseModel.js +++ b/models/learningModels/stdExerciseModel.js @@ -36,7 +36,7 @@ const StdExerciseModel = (DataTypes) => { }, }, ANSWER_STUDENT: { - type: DataTypes.STRING(256), + type: DataTypes.TEXT, allowNull: false, validate: { notEmpty: true, diff --git a/models/learningModels/stdLearningModel.js b/models/learningModels/stdLearningModel.js index ae07d4c..362099d 100644 --- a/models/learningModels/stdLearningModel.js +++ b/models/learningModels/stdLearningModel.js @@ -69,7 +69,7 @@ const StdLearningModel = (DataTypes) => { }, }, FEEDBACK_STUDENT: { - type: DataTypes.STRING(200), + type: DataTypes.TEXT, allowNull: true, defaultValue: null, }, diff --git a/models/monitoringModels/monitoringModel.js b/models/monitoringModels/monitoringModel.js index 7f2d3c0..a4b1fd7 100644 --- a/models/monitoringModels/monitoringModel.js +++ b/models/monitoringModels/monitoringModel.js @@ -41,7 +41,7 @@ const MonitoringModel = (DataTypes) => { }, }, FEEDBACK_GURU: { - type: DataTypes.STRING(200), + type: DataTypes.TEXT, allowNull: true, }, TIME_MONITORING: { diff --git a/models/usersModels/reportModel.js b/models/usersModels/reportModel.js index a0c0024..6704436 100644 --- a/models/usersModels/reportModel.js +++ b/models/usersModels/reportModel.js @@ -25,7 +25,7 @@ const ReportModel = (DataTypes) => { }, }, REPORTS: { - type: DataTypes.STRING(256), + type: DataTypes.TEXT, allowNull: false, validate: { notEmpty: true,