]> git.mxchange.org Git - friendica.git/blob - doc/database/db_report.md
Merge remote-tracking branch 'upstream/develop' into api-edit
[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 | category    | Category of the report (spam, violation, other) | varchar(20)        | YES  |     | NULL                |                |
17 | rules       | Violated rules                                  | text               | YES  |     | NULL                |                |
18 | forward     | Forward the report to the remote server         | boolean            | YES  |     | NULL                |                |
19 | created     |                                                 | datetime           | NO   |     | 0001-01-01 00:00:00 |                |
20 | status      | Status of the report                            | tinyint unsigned   | YES  |     | NULL                |                |
21
22 Indexes
23 ------------
24
25 | Name        | Fields      |
26 | ----------- | ----------- |
27 | PRIMARY     | id          |
28 | uid         | uid         |
29 | cid         | cid         |
30 | reporter-id | reporter-id |
31
32 Foreign Keys
33 ------------
34
35 | Field | Target Table | Target Field |
36 |-------|--------------|--------------|
37 | uid | [user](help/database/db_user) | uid |
38 | reporter-id | [contact](help/database/db_contact) | id |
39 | cid | [contact](help/database/db_contact) | id |
40
41 Return to [database documentation](help/database)