How do correctly create a uuid for a new database entry?

I created a table in the database whose entries contain the uuid field (type of varchar field). But I can’t create a record uuid when creating it not on the database side, not by using the server action when inserting the record. I’m trying to use the uuid() function for this. Tell me how to do this correctly?

Community Page
Last updated: