Packages

WebSocket-first Elixir framework with auto-generated HTTP MCP APIs

Current section

Files

Jump to
dialup priv templates dialup.gen.aggregate projection.ex.eex
Raw

priv/templates/dialup.gen.aggregate/projection.ex.eex

defmodule <%= context_mod %>.Projections.<%= agg_name %>Summary do
@moduledoc false
use Ecto.Schema
schema "<%= table_name %>" do
<%= for field <- all_unique_fields do %> field :<%= field.name %>, :<%= Mix.Tasks.Dialup.Gen.Aggregate.ecto_type(field.type) %>
<% end %> field :status, :string
timestamps()
end
end