Note that lithium\util\String
has a uuid() generator:
https://github.com/UnionOfRAD/lithium/blob/master/util/String.php#L61
(I'm afraid my lithium-fu is a bit too rusty to remember how to use an sql expression, but I'm pretty certain that is possible too.)