]> git.mxchange.org Git - friendica.git/blob - doc/database/db_post-media.md
Merge pull request #11622 from Quix0r/fixes/switch-db-current-max-update
[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 | uri-id-id  | uri-id, id          |
39
40 Foreign Keys
41 ------------
42
43 | Field | Target Table | Target Field |
44 |-------|--------------|--------------|
45 | uri-id | [item-uri](help/database/db_item-uri) | id |
46
47 Return to [database documentation](help/database)