diff --git a/src/models/class.ts b/src/models/class.ts index 87a6093..c9b94df 100644 --- a/src/models/class.ts +++ b/src/models/class.ts @@ -69,7 +69,7 @@ export function initializeClassModel(sequelize: Sequelize) { allowNull: false, }, small_class: { - type: "tinyint(1) GENERATED ALWAYS AS (expected_size < 10) VIRTUAL", + type: "tinyint(1) GENERATED ALWAYS AS (expected_size < 15) VIRTUAL", }, }, { sequelize, diff --git a/src/sql/create_class_table.sql b/src/sql/create_class_table.sql index 3e40bf1..463ab5f 100644 --- a/src/sql/create_class_table.sql +++ b/src/sql/create_class_table.sql @@ -9,7 +9,7 @@ CREATE TABLE Classes ( test tinyint(1) NOT NULL DEFAULT 0, updated datetime DEFAULT NULL, expected_size int(11) UNSIGNED NOT NULL, - small_class tinyint(1) GENERATED ALWAYS AS (expected_size < 12) VIRTUAL, + small_class tinyint(1) GENERATED ALWAYS AS (expected_size < 15) VIRTUAL, PRIMARY KEY(id), INDEX(educator_id),