Reorder authors and consolidate them in one point (AUTHORS). Add link from main POD
[dbsrgits/SQL-Translator.git] / share / DiaUml / schema.tt2
1 [%# vim:ft=tt2 -%]
2 [% WRAPPER diagram.tt2 %]
3     [% WRAPPER layer.tt2 name="Background" %]
4         [% FOREACH table IN schema.get_tables %]
5             [% INCLUDE 'uml-class-start.tt2'
6                 name       = table.name
7                 stereotype = 'Table'
8                 visible_operations = 'false'
9             %]
10               <dia:attribute name="attributes">
11               [% FOREACH field IN table.get_fields;
12                 SET type = field.data_type;
13                 SET type = "$type($field.size)" IF field.size;
14                 INCLUDE "uml-attribute.tt2"
15                     name       = field.name
16                     stereotype = 'Field'
17                     type       = type
18                     value      = field.default_value
19                 ;
20               END %]
21               </dia:attribute>
22               <dia:attribute name="operations"/>
23               <dia:attribute name="template">
24                 <dia:boolean val="false"/>
25               </dia:attribute>
26               <dia:attribute name="templates"/>
27             [% INCLUDE 'uml-class-end.tt2' %]
28         [% END %]
29     [% END %]
30 [% END %]