]> git.mxchange.org Git - friendica.git/blob - doc/database/db_post-media.md
Merge remote-tracking branch 'upstream/2021.06-rc' into public-timeline
[friendica.git] / doc / database / db_post-media.md
1 Table post-media
2 ===========
3
4 Attached media
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             | Media URL                                                 | varbinary(511)    | NO   |     | NULL    |                |
14 | type            | Media type                                                | tinyint unsigned  | NO   |     | 0       |                |
15 | mimetype        |                                                           | varchar(60)       | YES  |     | NULL    |                |
16 | height          | Height of the media                                       | smallint unsigned | YES  |     | NULL    |                |
17 | width           | Width of the media                                        | smallint unsigned | YES  |     | NULL    |                |
18 | size            | Media size                                                | int unsigned      | YES  |     | NULL    |                |
19 | preview         | Preview URL                                               | varbinary(255)    | YES  |     | NULL    |                |
20 | preview-height  | Height of the preview picture                             | smallint unsigned | YES  |     | NULL    |                |
21 | preview-width   | Width of the preview picture                              | smallint unsigned | YES  |     | NULL    |                |
22 | description     |                                                           | text              | YES  |     | NULL    |                |
23 | name            | Name of the media                                         | varchar(255)      | YES  |     | NULL    |                |
24 | author-url      | URL of the author of the media                            | varbinary(255)    | YES  |     | NULL    |                |
25 | author-name     | Name of the author of the media                           | varchar(255)      | YES  |     | NULL    |                |
26 | author-image    | Image of the author of the media                          | varbinary(255)    | YES  |     | NULL    |                |
27 | publisher-url   | URL of the publisher of the media                         | varbinary(255)    | YES  |     | NULL    |                |
28 | publisher-name  | Name of the publisher of the media                        | varchar(255)      | YES  |     | NULL    |                |
29 | publisher-image | Image of the publisher of the media                       | varbinary(255)    | YES  |     | NULL    |                |
30
31 Indexes
32 ------------
33
34 | Name       | Fields              |
35 | ---------- | ------------------- |
36 | PRIMARY    | id                  |
37 | uri-id-url | UNIQUE, uri-id, url |
38
39 Foreign Keys
40 ------------
41
42 | Field | Target Table | Target Field |
43 |-------|--------------|--------------|
44 | uri-id | [item-uri](help/database/db_item-uri) | id |
45
46 Return to [database documentation](help/database)