Skip to content

[REQ] Add Support for an id prefix or post fix #100

@koddek

Description

@koddek

Add support for adding a prefix and or postfix to the resulting guid ids.
There are some usecases where this would be useful for example, when dealing with json you could quickly identify what the id is for. In debugging an error message with an id or maybe you are trying to find a specific id of some type, having the prefix or postfix on the id would speed that up.

Possible resulting id strings (the final syntax don't have to be an underbar to separate the fix from the guid):

// ids with prefix for different usecases
"person_12345678-BBBb-cCCCC-0000-123456789012"
"user_12345678-BBBb-cCCCC-0000-123456789012"
"reciept_12345678-BBBb-cCCCC-0000-123456789012"
"used_12345678-BBBb-cCCCC-0000-123456789012"
"new_12345678-BBBb-cCCCC-0000-123456789012"
"[enter needed prefix]_12345678-BBBb-cCCCC-0000-123456789012"
etc...

// ids with postfix for different usecases
"12345678-BBBb-cCCCC-0000-123456789012_user"
"12345678-BBBb-cCCCC-0000-123456789012_admin"
"12345678-BBBb-cCCCC-0000-123456789012_order"
"12345678-BBBb-cCCCC-0000-123456789012_customer"
"12345678-BBBb-cCCCC-0000-123456789012_[enter needed postfix]"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions