]> git.mxchange.org Git - friendica.git/blob - doc/database/db_post-link.md
Merge branch 'friendica:2022.12-rc' into new_image_presentation
[friendica.git] / doc / database / db_post-link.md
1 Table post-link
2 ===========
3
4 Post related external links
5
6 Fields
7 ------
8
9 | Field    | Description                                               | Type              | Null | Key | Default | Extra          |
10 | -------- | --------------------------------------------------------- | ----------------- | ---- | --- | ------- | -------------- |
11 | id       | sequential ID                                             | int unsigned      | NO   | PRI | NULL    | auto_increment |
12 | uri-id   | Id of the item-uri table entry that contains the item uri | int unsigned      | NO   |     | NULL    |                |
13 | url      | External URL                                              | varbinary(511)    | NO   |     | NULL    |                |
14 | mimetype |                                                           | varchar(60)       | YES  |     | NULL    |                |
15 | height   | Height of the media                                       | smallint unsigned | YES  |     | NULL    |                |
16 | width    | Width of the media                                        | smallint unsigned | YES  |     | NULL    |                |
17 | blurhash | BlurHash representation of the link                       | varbinary(255)    | YES  |     | NULL    |                |
18
19 Indexes
20 ------------
21
22 | Name       | Fields              |
23 | ---------- | ------------------- |
24 | PRIMARY    | id                  |
25 | uri-id-url | UNIQUE, uri-id, url |
26
27 Foreign Keys
28 ------------
29
30 | Field | Target Table | Target Field |
31 |-------|--------------|--------------|
32 | uri-id | [item-uri](help/database/db_item-uri) | id |
33
34 Return to [database documentation](help/database)