hasTable('bbb_restrictions')) { $table = $schema->createTable('bbb_restrictions'); $table->addColumn('id', 'integer', [ 'autoincrement' => true, 'notnull' => true, ]); $table->addColumn('group_id', 'string', [ 'notnull' => true, 'length' => 200, ]); $table->addColumn('max_rooms', 'integer', [ 'notnull' => false, 'default' => -1, ]); $table->addColumn('room_types', 'string', [ 'notnull' => true, 'default' => '[]', ]); $table->addColumn('max_participants', 'integer', [ 'notnull' => false, 'default' => -1, ]); $table->addColumn('allow_recording', 'boolean', [ 'notnull' => false, 'default' => true, ]); $table->setPrimaryKey(['id']); $table->addIndex(['group_id'], 'restrictions_group_id_index'); } return $schema; } }