Current section
Files
Jump to
Current section
Files
lib/deciduex/schema/command_log.ex
defmodule Deciduex.Schema.CommandLog do
use Ecto.Schema
@primary_key {:id, :id, autogenerate: false}
@timestamps_opts false
@derive {Jason.Encoder,
only: [
:id,
:command,
:description,
:working_dir,
:exit_code,
:stdout,
:stderr,
:started_at,
:completed_at,
:duration_ms,
:decision_node_id
]}
schema "command_log" do
field(:command, :string)
field(:description, :string)
field(:working_dir, :string)
field(:exit_code, :integer)
field(:stdout, :string)
field(:stderr, :string)
field(:started_at, :string)
field(:completed_at, :string)
field(:duration_ms, :integer)
field(:decision_node_id, :integer)
end
end