Returns a delimiter string based on the current environment. This delimiter is used in constructing the entity IDs. The delimiter is ':dev:' for development environments, :stage:' for staging environments and ':' for other environments.
This allows for better differentiation and traceability of entities across various environments.
Generates unique id for entity
entity id prefix in database (e.g. 'u' for users)
Optionalapp: stringapp shortname (e.g. 'js')
id in format 'jsu:xxxxxxxxxxx' or 'jsu:stage:xxxxxxxxxxx' for staging environment
Generates unique id with length 11
Optionalsize: numberid in format 'xxxxxxxxxxx'
An IdService is a service within your application that provides methods to generate unique IDs for entities and other data objects.