Ecto.ERD.Node (Ecto ERD v0.6.3)
View SourceNode struct
- If
source
isnil
, thenschema_module
cannot benil
and node describes embedded schema. - If
source
is notnil
andschema_module
is notnil
, then node describes regular schema. - If
schema_module
isnil
, thensource
cannot benil
and node describes a source (table) which was automatically inferred from many-to-many relations. - If
cluster
isnil
, then the node will be rendered outside any cluster..
Summary
Functions
Set a cluster
for a given node
.
Types
@type t() :: %Ecto.ERD.Node{ cluster: nil | String.t(), fields: [Ecto.ERD.Field.t()], schema_module: nil | module(), source: nil | String.t() }