Closed kane-mason closed 3 years ago
Hmm, I do like the ability to have custom ids for some tables and this is already being done for the collection
and role
collections. I'm thinking we could have an option on the collection called something like useStringIds
which lets you use normal string ids instead of uuid for PostgreSQL or ObjectIDs for Mongo. What do you think?
I like that idea - not overthinking it and practical
This has been implemented
I know this is of my own doing, since i suggested there were benefits to using the
uuid
data type for theid
column. One of the negatives is, that you have to use a uuid, which is not ideal for smaller tables where you want the document id to be something simple and readable. I still like the use ofuuid
by default, but wouldn't mind the flexibility to choose. Can you think of an elegant solution?