]> git.mxchange.org Git - friendica.git/blob - doc/database/db_report.md
Reports: The reporting contact id is added
[friendica.git] / doc / database / db_report.md
1 Table report
2 ===========
3
4
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 | uid         | Reporting user                          | mediumint unsigned | YES  |     | NULL                |                |
13 | reporter-id | Reporting contact                       | int unsigned       | YES  |     | NULL                |                |
14 | cid         | Reported contact                        | int unsigned       | NO   |     | NULL                |                |
15 | comment     | Report                                  | text               | YES  |     | NULL                |                |
16 | forward     | Forward the report to the remote server | boolean            | YES  |     | NULL                |                |
17 | created     |                                         | datetime           | NO   |     | 0001-01-01 00:00:00 |                |
18 | status      | Status of the report                    | tinyint unsigned   | YES  |     | NULL                |                |
19
20 Indexes
21 ------------
22
23 | Name        | Fields      |
24 | ----------- | ----------- |
25 | PRIMARY     | id          |
26 | uid         | uid         |
27 | cid         | cid         |
28 | reporter-id | reporter-id |
29
30 Foreign Keys
31 ------------
32
33 | Field | Target Table | Target Field |
34 |-------|--------------|--------------|
35 | uid | [user](help/database/db_user) | uid |
36 | reporter-id | [contact](help/database/db_contact) | id |
37 | cid | [contact](help/database/db_contact) | id |
38
39 Return to [database documentation](help/database)