CREATE DEFINER=`root`@`%` FUNCTION `UUIDS`() RETURNS varchar(40) CHARSET utf8mb4 RETURN(SELECT REPLACE(UUID(),'-',''))
BEGIN SET new.id = UUIDS(); END