go-rest-api
go-rest-api copied to clipboard
About using UUID v.4 instead v.1
I think not a good solution to use UUID v.4, instead v.1. What do you think about this?
And what type is better golang string mysql char(36) or golang uuid.UUID mysql binary(16)?
And how to store it in MySQL properly by ozzo-dbx? Can we store uuid.UUID to binary(16) directly?
Thanks!
https://mysqlserverteam.com/mysql-8-0-uuid-support/
https://stackoverflow.com/questions/28251144/inserting-and-selecting-uuids-as-binary16