]> git.mxchange.org Git - friendica.git/blob - doc/database/db_post-media.md
HTML-escape notification contact names
[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(1024)   | NO   |     | NULL    |                |
14 | media-uri-id    | Id of the item-uri table entry that contains the activities uri-id | int unsigned      | YES  |     | NULL    |                |
15 | type            | Media type                                                         | tinyint unsigned  | NO   |     | 0       |                |
16 | mimetype        |                                                                    | varchar(60)       | YES  |     | NULL    |                |
17 | height          | Height of the media                                                | smallint unsigned | YES  |     | NULL    |                |
18 | width           | Width of the media                                                 | smallint unsigned | YES  |     | NULL    |                |
19 | size            | Media size                                                         | bigint unsigned   | YES  |     | NULL    |                |
20 | blurhash        | BlurHash representation of the image                               | varbinary(255)    | YES  |     | NULL    |                |
21 | preview         | Preview URL                                                        | varbinary(512)    | YES  |     | NULL    |                |
22 | preview-height  | Height of the preview picture                                      | smallint unsigned | YES  |     | NULL    |                |
23 | preview-width   | Width of the preview picture                                       | smallint unsigned | YES  |     | NULL    |                |
24 | description     |                                                                    | text              | YES  |     | NULL    |                |
25 | name            | Name of the media                                                  | varchar(255)      | YES  |     | NULL    |                |
26 | author-url      | URL of the author of the media                                     | varbinary(383)    | YES  |     | NULL    |                |
27 | author-name     | Name of the author of the media                                    | varchar(255)      | YES  |     | NULL    |                |
28 | author-image    | Image of the author of the media                                   | varbinary(383)    | YES  |     | NULL    |                |
29 | publisher-url   | URL of the publisher of the media                                  | varbinary(383)    | YES  |     | NULL    |                |
30 | publisher-name  | Name of the publisher of the media                                 | varchar(255)      | YES  |     | NULL    |                |
31 | publisher-image | Image of the publisher of the media                                | varbinary(383)    | YES  |     | NULL    |                |
32
33 Indexes
34 ------------
35
36 | Name         | Fields                   |
37 | ------------ | ------------------------ |
38 | PRIMARY      | id                       |
39 | uri-id-url   | UNIQUE, uri-id, url(512) |
40 | uri-id-id    | uri-id, id               |
41 | media-uri-id | media-uri-id             |
42
43 Foreign Keys
44 ------------
45
46 | Field | Target Table | Target Field |
47 |-------|--------------|--------------|
48 | uri-id | [item-uri](help/database/db_item-uri) | id |
49 | media-uri-id | [item-uri](help/database/db_item-uri) | id |
50
51 Return to [database documentation](help/database)