Svelixir.Inline.Schema (svelixir v0.2.0)

Copy Markdown

Inline base Ecto.Schema wrapper template.

Summary

Functions

Renders {Module}.Schema -- every schema use-ing it gets a UUIDv7 primary key (via Uniq.UUID, stored as a native Postgres uuid column) and :utc_datetime_usec timestamps.

Functions

template(schema_module)

@spec template(module()) :: String.t()

Renders {Module}.Schema -- every schema use-ing it gets a UUIDv7 primary key (via Uniq.UUID, stored as a native Postgres uuid column) and :utc_datetime_usec timestamps.