]> git.mxchange.org Git - friendica.git/blobdiff - doc/database/db_post-user-notification.md
Merge pull request #10895 from annando/index
[friendica.git] / doc / database / db_post-user-notification.md
index fc367ca750dbf1e9e0d58bef7e98033aa100c1c7..36edd4a289b590296d56c47cdf776dab67609a95 100644 (file)
@@ -1,11 +1,31 @@
 Table post-user-notification
 ===========
+
 User post notifications
 
-| Field             | Description                                               | Type               | Null | Key | Default | Extra |    
-| ----------------- | --------------------------------------------------------- | ------------------ | ---- | --- | ------- | ----- |    
-| uri-id            | Id of the item-uri table entry that contains the item uri | int unsigned       | NO   | PRI | NULL    |       |    
-| uid               | Owner id which owns this copy of the item                 | mediumint unsigned | NO   | PRI | NULL    |       |    
-| notification-type |                                                           | tinyint unsigned   | NO   |     | 0       |       |    
+Fields
+------
+
+| Field             | Description                                               | Type               | Null | Key | Default | Extra |
+| ----------------- | --------------------------------------------------------- | ------------------ | ---- | --- | ------- | ----- |
+| uri-id            | Id of the item-uri table entry that contains the item uri | int unsigned       | NO   | PRI | NULL    |       |
+| uid               | Owner id which owns this copy of the item                 | mediumint unsigned | NO   | PRI | NULL    |       |
+| notification-type |                                                           | tinyint unsigned   | NO   |     | 0       |       |
+
+Indexes
+------------
+
+| Name    | Fields      |
+| ------- | ----------- |
+| PRIMARY | uid, uri-id |
+| uri-id  | uri-id      |
+
+Foreign Keys
+------------
+
+| Field | Target Table | Target Field |
+|-------|--------------|--------------|
+| uri-id | [item-uri](help/database/db_item-uri) | id |
+| uid | [user](help/database/db_user) | uid |
 
 Return to [database documentation](help/database)