In the database of mariadb or MySQL, all the related tables have to have the same ENGINE, otherwise it will raise `errno: 150 "Foreign key constraint is incorrectly formed"`