kaffy icon indicating copy to clipboard operation
kaffy copied to clipboard

[FEATURE-REQUEST] Configurable ID field

Open leifg opened this issue 3 years ago • 2 comments

Describe the problem you're proposing to solve

I have a couple of schemas that don't have the field id. Judging by looking at the templates it seems like this is not configurable.

Describe the solution you'd like

It would be great to configure the name of the id columns somewhere in the resources.

Describe alternatives you've considered

For now I can get by by aliasing the Ecto column like this:

field :id, :string, source: :uuid

I might consider just renaming my ID field, so it's not a high priority ticket.

Additional context Add any other context or screenshots about the feature request here.

leifg avatar Feb 24 '21 04:02 leifg

I also use schema's that don't have an id field

tadasajon avatar Oct 13 '21 19:10 tadasajon

This would be nice to have. A better generic default might be to reflect on the schema's @primary_key field, as well.

christhekeele avatar Apr 01 '22 04:04 christhekeele