update Stories
All checks were successful
Deploy to Production / deploy (push) Successful in 20s

This commit is contained in:
silverpro89
2026-02-24 16:31:06 +07:00
parent d0f41920f7
commit 65820bb938
4 changed files with 207 additions and 16 deletions

View File

@@ -36,12 +36,24 @@ const Story = sequelize.define('stories', {
defaultValue: [],
comment: 'Array of story context objects with images, text, audio data'
},
type: {
type: DataTypes.TEXT,
allowNull: false,
defaultValue: 'story',
comment: 'Type of media content'
},
grade: {
type: DataTypes.JSON,
allowNull: true,
defaultValue: [],
comment: 'Array of grade levels (e.g., ["Grade 1", "Grade 2"])'
},
grade_number: {
type: DataTypes.INTEGER,
allowNull: true,
defaultValue: 0,
comment: 'Numeric representation of grade unit lesson as GG UU LL'
},
tag: {
type: DataTypes.JSON,
allowNull: true,