Stamps mailglass-wide schema conventions onto a module.
Three module attributes, no behaviour injection, no magic — consistent
with Phase 1's "pluggable behaviours over magic" DNA. Consumed by
Mailglass.Outbound.Delivery, Mailglass.Events.Event, and
Mailglass.Suppression.Entry (Plan 03).
Usage
defmodule Mailglass.MyThing do
use Mailglass.Schema
schema "mailglass_my_things" do
field :name, :string
timestamps(type: :utc_datetime_usec)
end
endStamped attributes per D-28:
@primary_key {:id, UUIDv7, autogenerate: true}@foreign_key_type :binary_id@timestamps_opts [type: :utc_datetime_usec]