chrschu
07/28/2023, 1:06 PMname (or user input, however you call it). looks sound to us. our first approach/the one also suggested by @EvanCorkrean was to include the hierarchy in the id, which would cause db lookups we don't want. like "org.1.doc.1" as the document id.
I should add that the namespace is known from the context and the entity id is always given via the request/persistence layer response.vroldanbet
07/28/2023, 1:30 PMchrschu
07/28/2023, 1:51 PMnamespace.1.unit.2.document.3.vroldanbet
07/28/2023, 2:16 PMchrschu
07/28/2023, 2:39 PMvroldanbet
07/28/2023, 2:50 PMchrschu
07/28/2023, 2:56 PMname of the uuidv5 is the samechrschu
07/28/2023, 2:58 PMdocument-1, but I think the id is sufficient because in spicedb you'd combine it with document:$id anyways