View Source ExToolkit.Ecto.ObjectID (ExToolkit v0.9.13)
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.ObjectID, prefix: "user", autogenerate: true}
@foreign_key_type ExToolkit.Ecto.ObjectID