Skip to content

How to replace default primary key? #251

Closed
@oren-twigo

Description

@oren-twigo

I have two use cases in which I would like to replace the default pk field with another field:

  1. I would like to define that a string field named "uuid" to be my primary key field, instead of the default "pk".
    I do want to keep the ULID key generator, but just to set it into a field named "uuid" instead of "pk".

  2. same as Bump actions/checkout from 2.3.4 to 2.3.5 #1, just skipping the ULID key generator, allowing me to set the primary key manually.

Is it possible to achieve?
I would like to achieve it for both Json and Hash models.
The documentation on that aspect is not clear enough.

Thanks in advance for anyone who will help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions