I have a MariaDB and I would like to create a table where one of the columns is a random unique GUID generated by default when inserting a new row. For example, if we would use MySQL Server to create this column we would have:
GUID UNIQUEIDENTIFIER DEFAULT newsequentialid() NOT null
However, if we have MariaDB how can I do the same? I'm writing my app in python, if it is necessary to know.
I have seen that GUID can be stored as BINARY(16) instead of UNIQUEIDENTIFIER, but I'm not sure on how to replicate newsequentialid() and if it could be default too.