add: ver()

Signed-off-by: Kenneth Obsequio <k80308392@gmail.com>
This commit is contained in:
2026-07-08 11:31:40 +08:00
parent 0e4cd86119
commit bb7e8fde08
29 changed files with 2234 additions and 780 deletions
+1 -1
View File
@@ -28,7 +28,7 @@ const UnitReadingProgress = sequelize.define('UnitReadingProgress', {
},
course_id: {
type: DataTypes.BIGINT,
allowNull: false,
allowNull: true, // NULL when the unit is read standalone (outside any course)
references: { model: 'courses', key: 'course_id' },
onDelete: 'CASCADE',
},