View Source ExToolkit.Ecto.SlugID (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.SlugID, autogenerate: true}
@foreign_key_type ExToolkit.Ecto.SlugID

Summary

Types

t()

@type t() :: binary()

Functions

generate()

@spec generate() :: t()