Merge branch 'testing' into 'master'

refactor: models data types

See merge request profile-image/kedaireka/polinema-adapative-learning/backend-adaptive-learning!2
This commit is contained in:
elangptra 2024-11-06 06:07:56 +00:00
commit 849475e1d3
11 changed files with 11 additions and 11 deletions

View File

@ -14,7 +14,7 @@ module.exports = {
allowNull: false, allowNull: false,
}, },
REPORTS: { REPORTS: {
type: Sequelize.STRING(256), type: Sequelize.STRING(1024),
allowNull: false, allowNull: false,
}, },
TIME_REPORT: { TIME_REPORT: {

View File

@ -43,7 +43,7 @@ module.exports = {
defaultValue: null, defaultValue: null,
}, },
FEEDBACK_STUDENT: { FEEDBACK_STUDENT: {
type: Sequelize.STRING(200), type: Sequelize.STRING(1024),
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
}, },

View File

@ -18,7 +18,7 @@ module.exports = {
allowNull: false, allowNull: false,
}, },
ANSWER_STUDENT: { ANSWER_STUDENT: {
type: Sequelize.STRING(256), type: Sequelize.STRING(1024),
allowNull: false, allowNull: false,
}, },
IS_CORRECT: { IS_CORRECT: {

View File

@ -22,7 +22,7 @@ module.exports = {
allowNull: true, allowNull: true,
}, },
FEEDBACK_GURU: { FEEDBACK_GURU: {
type: Sequelize.STRING(200), type: Sequelize.STRING(1024),
allowNull: true, allowNull: true,
}, },
TIME_MONITORING: { TIME_MONITORING: {

View File

@ -47,7 +47,7 @@ const ExerciseModel = (DataTypes) => {
}, },
}, },
QUESTION_TYPE: { QUESTION_TYPE: {
type: DataTypes.STRING(100), type: DataTypes.TEXT,
allowNull: false, allowNull: false,
validate: { validate: {
notEmpty: true, notEmpty: true,

View File

@ -20,7 +20,7 @@ const SectionModel = (DataTypes) => {
}, },
}, },
DESCRIPTION_SECTION: { DESCRIPTION_SECTION: {
type: DataTypes.STRING(1024), type: DataTypes.TEXT,
allowNull: false, allowNull: false,
validate: { validate: {
notEmpty: true, notEmpty: true,

View File

@ -31,7 +31,7 @@ const TopicModel = (DataTypes) => {
}, },
}, },
DESCRIPTION_TOPIC: { DESCRIPTION_TOPIC: {
type: DataTypes.STRING(1024), type: DataTypes.TEXT,
allowNull: false, allowNull: false,
validate: { validate: {
notEmpty: true, notEmpty: true,

View File

@ -36,7 +36,7 @@ const StdExerciseModel = (DataTypes) => {
}, },
}, },
ANSWER_STUDENT: { ANSWER_STUDENT: {
type: DataTypes.STRING(256), type: DataTypes.TEXT,
allowNull: false, allowNull: false,
validate: { validate: {
notEmpty: true, notEmpty: true,

View File

@ -69,7 +69,7 @@ const StdLearningModel = (DataTypes) => {
}, },
}, },
FEEDBACK_STUDENT: { FEEDBACK_STUDENT: {
type: DataTypes.STRING(200), type: DataTypes.TEXT,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
}, },

View File

@ -41,7 +41,7 @@ const MonitoringModel = (DataTypes) => {
}, },
}, },
FEEDBACK_GURU: { FEEDBACK_GURU: {
type: DataTypes.STRING(200), type: DataTypes.TEXT,
allowNull: true, allowNull: true,
}, },
TIME_MONITORING: { TIME_MONITORING: {

View File

@ -25,7 +25,7 @@ const ReportModel = (DataTypes) => {
}, },
}, },
REPORTS: { REPORTS: {
type: DataTypes.STRING(256), type: DataTypes.TEXT,
allowNull: false, allowNull: false,
validate: { validate: {
notEmpty: true, notEmpty: true,