PhoenixKitManufacturing.Schemas.MachineType (PhoenixKitManufacturing v0.2.0)

Copy Markdown View Source

Schema for machine types (e.g., CNC, Milling, Press, Laser cutter).

Summary

Functions

Builds a changeset for a machine type.

The list of valid status values.

Types

t()

@type t() :: %PhoenixKitManufacturing.Schemas.MachineType{
  __meta__: term(),
  data: term(),
  description: term(),
  inserted_at: term(),
  machine_type_assignments: term(),
  machines: term(),
  name: term(),
  status: term(),
  updated_at: term(),
  uuid: term()
}

Functions

changeset(machine_type, attrs)

@spec changeset(t(), map()) :: Ecto.Changeset.t()

Builds a changeset for a machine type.

statuses()

@spec statuses() :: [String.t()]

The list of valid status values.