bark icon indicating copy to clipboard operation
bark copied to clipboard

Must ID be an autoincrementing integer? Can it be a cuid/uuid?

Open canadaduane opened this issue 1 year ago • 1 comments

I notice that the documentation is slightly ambiguous about this point, and I'm curious if there is a way around it. As far as I can tell, the path column follows a zero-padded representation of the id column based on the current node and its ancestors. However, our tables use cuid for the primary key. Does this mean we cannot use bark for these tables?

canadaduane avatar Oct 02 '24 00:10 canadaduane

Good point! IDs can be of any type as long as they're unique of course ;)

adamjkb avatar Oct 02 '24 06:10 adamjkb