Answer the question
In order to leave comments, you need to log in
UUID or Alias as ID?
Hello. There is a slight misunderstanding of how best to proceed with the formation of the ID. Let me explain with a simple example to make it clear.
There is a blog module. He has posts. Each post has a category.
At first, there were not many categories and we decided to make these categories constants:
const CATEGORY_BOOK = “book”;
const CATEGORY_EDUCATION = “education”;
Answer the question
In order to leave comments, you need to log in
The second option has no problems if directory management is controlled and there are no delete operations.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question