You are using ‘latin1’ for your charset. We haven’t been using that for years. You should be using ‘utf8_unicode_ci’ or ‘utf8mb4_unicode_ci’. Yii2 advanced I think uses ‘utf8_unicode_ci’. However, ‘utf8mb4_unicode_ci’ offers full multi-language support for those having international users.
I don’t think ‘code’ or ‘sort_order’ should be int(11).
I encourage you to place your project on GitHub and Packagist so others can install your module with Composer, or at least view the code and see if it does what they want, without having to visit your site or download the file.