Skip to content

[FR] Use TypeId for all models #5208

Open

Description

@matmair

Please verify that this feature request has NOT been suggested before.

  • I checked and didn't find a similar feature request

Problem statement

Ids/PK between instances are not unique.

Suggested solution

Add TypeIds to all models to make Ids typesafe and unique between instances.

Describe alternatives you've considered

UUID4, GUIDs, there are multiple ways to go around this.

Examples of other systems

No response

Do you want to develop this?

  • I want to develop this.

Activity

  1. added
    enhancement
    on Jul 9, 2023
  2. changed the title [-][FR] Use TypeId[/-] [+][FR] Use TypeId for all models[/+] on Jul 9, 2023
  3. matmair commented on Jul 9, 2023

    @matmair
    MemberAuthor

    This would also be usable for:
    #4920 / @roman-dvorak
    #4562 / @p-fruck

  4. wolflu05 commented on Jul 9, 2023

    @wolflu05
    Member

    Typeid sounds pretty cool, learned something new, but how do you plan the migration for instances that already use numeric ids?

  5. matmair commented on Jul 9, 2023

    @matmair
    MemberAuthor

    This would be additional to the pk's we already have as all the database stuff is optimized for numeric pks.

  6. roman-dvorak commented on Jul 9, 2023

    @roman-dvorak

    Great!
    It looks enough like what I wanted in my FR-Issue. I think that one of the essential criteria of choosing such an identifier is how long the code is and how it can be encoded into different barcodes.

    TypeID looks like Interesting extension of UUID. I didn't know it. Thank you.

  7. matmair commented on Jul 9, 2023

    @matmair
    MemberAuthor

    This is currently just a proposal, implementation is not planned any time soon - at least by me.

  8. github-actions commented on Sep 8, 2023

    @github-actions
    Contributor

    This issue seems stale. Please react to show this is still important.

  9. added
    inactive
    on Sep 8, 2023
  10. wolflu05 commented on Sep 9, 2023

    @wolflu05
    Member

    Still an interesting idea.

  11. removed
    inactive
    on Sep 9, 2023
  12. github-actions commented on Nov 8, 2023

    @github-actions
    Contributor

    This issue seems stale. Please react to show this is still important.

  13. added
    inactive
    on Nov 8, 2023
  14. SchrodingersGat commented on Nov 8, 2023

    @SchrodingersGat
    Member

    not stale

  15. removed
    inactive
    on Nov 9, 2023
  16. 2 remaining items

  17. self-assigned this
    on Jan 9, 2024
  18. removed
    inactive
    on Jan 9, 2024
  19. matmair commented on Jan 9, 2024

    @matmair
    MemberAuthor

    not stale

  20. added this to the 1.0.0 milestone on Jan 9, 2024
  21. modified the milestones: 1.0.0, horizon on Feb 16, 2025
  22. modified the milestones: horizon, 1.2.0 on Jan 18, 2026
  23. modified the milestones: 1.2.0, 1.3.0 on Jan 27, 2026
  24. matmair commented on Feb 26, 2026

    @matmair
    MemberAuthor

    Starting work on this now

  25. modified the milestones: 1.3.0, 1.4.0 on Mar 18, 2026
  26. modified the milestones: 1.4.0, 2.0.0 on May 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancement

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions