friendica-github/view/templates/structure.tpl

38 lines
984 B
Smarty
Raw Normal View History

2024-08-24 18:23:27 +00:00
{{*
* Copyright (C) 2010-2024, the Friendica project
* SPDX-FileCopyrightText: 2010-2024 the Friendica project
*
* SPDX-License-Identifier: AGPL-3.0-or-later
*}}
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)