]> git.mxchange.org Git - friendica.git/blob - doc/database/db_post-delivery.md
Merge remote-tracking branch 'upstream/2022.05-rc' into bulk-delivery
[friendica.git] / doc / database / db_post-delivery.md
1 Table post-delivery
2 ===========
3
4 Delivery data for posts for the batch processing
5
6 Fields
7 ------
8
9 | Field     | Description                                               | Type               | Null | Key | Default             | Extra |
10 | --------- | --------------------------------------------------------- | ------------------ | ---- | --- | ------------------- | ----- |
11 | uri-id    | Id of the item-uri table entry that contains the item uri | int unsigned       | NO   | PRI | NULL                |       |
12 | inbox-id  | Item-uri id of inbox url                                  | int unsigned       | NO   | PRI | NULL                |       |
13 | uid       | Delivering user                                           | mediumint unsigned | YES  |     | NULL                |       |
14 | created   |                                                           | datetime           | YES  |     | 0001-01-01 00:00:00 |       |
15 | command   |                                                           | varbinary(32)      | YES  |     | NULL                |       |
16 | failed    | Number of times the delivery has failed                   | tinyint            | YES  |     | 0                   |       |
17 | receivers | JSON encoded array with the receiving contacts            | mediumtext         | YES  |     | NULL                |       |
18
19 Indexes
20 ------------
21
22 | Name             | Fields            |
23 | ---------------- | ----------------- |
24 | PRIMARY          | uri-id, inbox-id  |
25 | inbox-id_created | inbox-id, created |
26 | uid              | uid               |
27
28 Foreign Keys
29 ------------
30
31 | Field | Target Table | Target Field |
32 |-------|--------------|--------------|
33 | uri-id | [item-uri](help/database/db_item-uri) | id |
34 | inbox-id | [item-uri](help/database/db_item-uri) | id |
35 | uid | [user](help/database/db_user) | uid |
36
37 Return to [database documentation](help/database)