]> git.mxchange.org Git - friendica.git/blobdiff - doc/database/db_post-media.md
Merge pull request #11273 from MrPetovan/task/4639-soapbox-intro-notification
[friendica.git] / doc / database / db_post-media.md
index e1e299f02e686442ca5ab7eac735d76f3b8d447c..e17a04e5fbb8d7421a4a414f070cdb3a0d982658 100644 (file)
@@ -3,6 +3,9 @@ Table post-media
 
 Attached media
 
+Fields
+------
+
 | Field           | Description                                               | Type              | Null | Key | Default | Extra          |
 | --------------- | --------------------------------------------------------- | ----------------- | ---- | --- | ------- | -------------- |
 | id              | sequential ID                                             | int unsigned      | NO   | PRI | NULL    | auto_increment |
@@ -25,4 +28,19 @@ Attached media
 | publisher-name  | Name of the publisher of the media                        | varchar(255)      | YES  |     | NULL    |                |
 | publisher-image | Image of the publisher of the media                       | varbinary(255)    | YES  |     | NULL    |                |
 
+Indexes
+------------
+
+| Name       | Fields              |
+| ---------- | ------------------- |
+| PRIMARY    | id                  |
+| uri-id-url | UNIQUE, uri-id, url |
+
+Foreign Keys
+------------
+
+| Field | Target Table | Target Field |
+|-------|--------------|--------------|
+| uri-id | [item-uri](help/database/db_item-uri) | id |
+
 Return to [database documentation](help/database)