]> git.mxchange.org Git - friendica.git/blobdiff - doc/database/db_post-user-notification.md
Merge remote-tracking branch 'origin/2022.12-rc' into fixes
[friendica.git] / doc / database / db_post-user-notification.md
index 4ceea2a6832da6d35af01d5d1d9c0e1e99e94a8a..8f9925b19c54d52c1b1a841c5785e3d7e85b9bf4 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 | YES | PRI |  |  |    
-| uid | Owner id which owns this copy of the item | mediumint unsigned | YES | PRI |  |  |    
-| notification-type |  | tinyint unsigned | YES |  | 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 |                                                           | smallint 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)