Search
Star
Feedback
Setup for Free
ยฉ 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Primary key as string (not UUID) - Ash Framework
AF
Ash Framework
โข
3y ago
โข
5 replies
moxley
Primary key as string (not UUID)
I have an existing table with a string key
. In Ecto
, this was generated in the changeset function
. In the Ash documentation
, there is only
integer_primary_key()
integer_primary_key()
, and
uuid_primary_key()
uuid_primary_key()
. If I try leaving either of those out
, it returns an error that says I need to specify a primary key
. How can this be made to work
?
Ash Framework
Join
The Elixir backend framework for unparalleled productivity. Declarative tools that let you stop wasting time. Use with Phoenix LiveView or build APIs in minutes for your front-end of choice.
2,193
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
Primary key not counting as identity key for magic link auth
AF
Ash Framework / support
3y ago
Primary key not guaranteed unique?
AF
Ash Framework / support
6mo ago
Prefixed base62 UUIDv7 primary key implementation with Ash
AF
Ash Framework / support
3y ago
Resources without primary key not supported
AF
Ash Framework / support
3y ago