<%inherit file="layout.html"/>

Columns in table `${data.name}` (${data.info.TABLE_TYPE})

    <% columns = [ c for c in data.columns() ] columns.sort( lambda x,y : x.ORDINAL_POSITION.__cmp__(y.ORDINAL_POSITION)) %> % for c in columns:
  1. ${c.COLUMN_NAME} : ${c.COLUMN_TYPE}
  2. % endfor

Primary key

% if len(data.pk) > 0: This table's primary key is ${",".join(data.pk)} % if data.auto_index: (autoindex) % endif . % else: No primary key. % endif

Foreign keys

% if len(data.fk) > 0: % else: No foreign keys. % endif

Referencing tables

% if len(data.children) > 0: % else: No referencing tables. % endif

Many-to-many relationships

% if len(data.mtm) > 0: % else: No many-to-many relationships. % endif

»Look at some data from `${data.name}`