Current section
Files
Jump to
Current section
Files
priv/resources/table.eex
<h<%= heading_level %>><a href="<%= stringify(schema.module) %>.html"><%= stringify(schema.module) %></a></h<%= heading_level %>>
<ul>
<li>Source: <%= schema.source %></li>
<li>Primary Key(s): <%= inspect(schema.primary_key) %></li>
</ul>
<table class="inspecto_schema">
<thead>
<tr>
<th>Field</th>
<th>Type</th>
<th>Default</th>
</tr>
</thead>
<tbody>
<%= for field <- schema.fields do %>
<tr>
<td><%= field.name %></td>
<td><%= String.trim(inspect(field.type), "\"") %></td>
<td><%= inspect(field.default) %></td>
</tr>
<% end %>
</tbody>
</table>