kaffy
kaffy copied to clipboard
[FEATURE-REQUEST] Configurable ID field
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.
I also use schema's that don't have an id field
This would be nice to have. A better generic default might be to reflect on the schema's @primary_key
field, as well.