View Source ExToolkit.Ecto.SlugID (ExToolkit v0.8.0)
A Ecto type that facilitates the generation of prefixed base62 encoded UUIDv7 for use as primary and foreign keys in Ecto schemas.
Examples
@primary_key {:id, ExToolkit.Ecto.SlugID, autogenerate: true}
@foreign_key_type ExToolkit.Ecto.SlugID