]> git.mxchange.org Git - friendica.git/blob - view/templates/structure.tpl
Indexes and foreign keys added
[friendica.git] / view / templates / structure.tpl
1 Table {{$name}}
2 ===========
3
4 {{$comment}}
5
6 Fields
7 ------
8
9 {{foreach $fields as $field}}
10 | {{$field.name}} | {{$field.comment}} | {{$field.type}} | {{$field.null}} | {{$field.primary}} | {{$field.default}} | {{$field.extra}} |
11 {{/foreach}}
12
13 Indexes
14 ------------
15
16 | Name | Fields |
17 |------|---------|
18 {{foreach $indexes as $index}}
19 | {{$index.name}} | {{$index.fields}} |
20 {{/foreach}}
21
22 {{if $foreign}}
23 Foreign Keys
24 ------------
25
26 | Field | Target Table | Target Field |
27 |-------|--------------|--------------|
28 {{foreach $foreign as $key}}
29 | {{$key.field}} | [{{$key.targettable}}](help/database/db_{{$key.targettable}}) | {{$key.targetfield}} |
30 {{/foreach}}
31 {{/if}}
32
33 Return to [database documentation](help/database)