]> git.mxchange.org Git - friendica.git/blob - doc/database/db_inbox-entry.md
We now store the conversation as well
[friendica.git] / doc / database / db_inbox-entry.md
1 Table inbox-entry
2 ===========
3
4 Incoming activity
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 | activity-id        | id of the incoming activity          | varbinary(255) | YES  |     | NULL    |                |
13 | object-id          |                                      | varbinary(255) | YES  |     | NULL    |                |
14 | in-reply-to-id     |                                      | varbinary(255) | YES  |     | NULL    |                |
15 | conversation       |                                      | varbinary(255) | YES  |     | NULL    |                |
16 | type               | Type of the activity                 | varchar(64)    | YES  |     | NULL    |                |
17 | object-type        | Type of the object activity          | varchar(64)    | YES  |     | NULL    |                |
18 | object-object-type | Type of the object's object activity | varchar(64)    | YES  |     | NULL    |                |
19 | received           | Receiving date                       | datetime       | YES  |     | NULL    |                |
20 | activity           | The JSON activity                    | mediumtext     | YES  |     | NULL    |                |
21 | signer             |                                      | varchar(255)   | YES  |     | NULL    |                |
22 | push               |                                      | boolean        | NO   |     | 0       |                |
23 | wid                | Workerqueue id                       | int unsigned   | YES  |     | NULL    |                |
24
25 Indexes
26 ------------
27
28 | Name        | Fields              |
29 | ----------- | ------------------- |
30 | PRIMARY     | id                  |
31 | activity-id | UNIQUE, activity-id |
32 | object-id   | object-id           |
33 | received    | received            |
34 | wid         | wid                 |
35
36 Foreign Keys
37 ------------
38
39 | Field | Target Table | Target Field |
40 |-------|--------------|--------------|
41 | wid | [workerqueue](help/database/db_workerqueue) | id |
42
43 Return to [database documentation](help/database)