friendica/view/templates/structure.tpl

32 lines
812 B
Smarty
Raw Normal View History

2021-06-14 08:38:42 -04:00
Table {{$name nofilter}}
===========
2021-06-14 02:10:11 -04:00
2021-06-14 08:38:42 -04:00
{{$comment nofilter}}
2021-06-14 04:53:37 -04:00
Fields
------
{{foreach $fields as $field}}
2021-06-14 08:38:42 -04:00
| {{$field.name nofilter}} | {{$field.comment nofilter}} | {{$field.type nofilter}} | {{$field.null nofilter}} | {{$field.primary nofilter}} | {{$field.default nofilter}} | {{$field.extra nofilter}} |
{{/foreach}}
2021-06-14 04:53:37 -04:00
Indexes
------------
{{foreach $indexes as $index}}
2021-06-14 08:38:42 -04:00
| {{$index.name nofilter}} | {{$index.fields nofilter}} |
2021-06-14 04:53:37 -04:00
{{/foreach}}
{{if $foreign}}
Foreign Keys
------------
| Field | Target Table | Target Field |
|-------|--------------|--------------|
{{foreach $foreign as $key}}
2021-06-14 08:38:42 -04:00
| {{$key.field nofilter}} | [{{$key.targettable nofilter}}](help/database/db_{{$key.targettable nofilter}}) | {{$key.targetfield nofilter}} |
2021-06-14 04:53:37 -04:00
{{/foreach}}
{{/if}}
Return to [database documentation](help/database)