friendica-github/view/templates/structure.tpl

32 lines
812 B
Smarty
Raw Normal View History

2021-06-14 12:38:42 +00:00
Table {{$name nofilter}}
===========
2021-06-14 06:10:11 +00:00
2021-06-14 12:38:42 +00:00
{{$comment nofilter}}
2021-06-14 08:53:37 +00:00
Fields
------
{{foreach $fields as $field}}
2021-06-14 12:38:42 +00: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 08:53:37 +00:00
Indexes
------------
{{foreach $indexes as $index}}
2021-06-14 12:38:42 +00:00
| {{$index.name nofilter}} | {{$index.fields nofilter}} |
2021-06-14 08:53:37 +00:00
{{/foreach}}
{{if $foreign}}
Foreign Keys
------------
| Field | Target Table | Target Field |
|-------|--------------|--------------|
{{foreach $foreign as $key}}
2021-06-14 12:38:42 +00:00
| {{$key.field nofilter}} | [{{$key.targettable nofilter}}](help/database/db_{{$key.targettable nofilter}}) | {{$key.targetfield nofilter}} |
2021-06-14 08:53:37 +00:00
{{/foreach}}
{{/if}}
Return to [database documentation](help/database)