View Source Utilx.EctoUtils.ObjectID (Utilx v0.5.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, Utilx.EctoUtils.ObjectID, prefix: "user", autogenerate: true}
@foreign_key_type Utilx.EctoUtils.ObjectID