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