TLDR;
You can store a UUID safely as a “Binary 16”, instead of a “Varchar 36”.
If you still require a human-readable column, its possible to use a “generated” column (from MySQL 5.7 and up):
Source: https://mysqlserverteam.com/storing-uuid-values-in-mysql-tables/
additional info for MySQL 8.0 – https://mysqlserverteam.com/mysql-8-0-uuid-support/