]> git.mxchange.org Git - friendica.git/blob - doc/database/db_report.md
[Database version 1489] Add new report database tables
[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 | NO   |     | NULL                |                |
13 | cid     | Reported contact                        | int unsigned       | NO   |     | NULL                |                |
14 | comment | Report                                  | text               | YES  |     | NULL                |                |
15 | forward | Forward the report to the remote server | boolean            | YES  |     | NULL                |                |
16 | created |                                         | datetime           | NO   |     | 0001-01-01 00:00:00 |                |
17
18 Indexes
19 ------------
20
21 | Name    | Fields |
22 | ------- | ------ |
23 | PRIMARY | id     |
24 | uid     | uid    |
25 | cid     | cid    |
26
27 Foreign Keys
28 ------------
29
30 | Field | Target Table | Target Field |
31 |-------|--------------|--------------|
32 | uid | [user](help/database/db_user) | uid |
33 | cid | [contact](help/database/db_contact) | id |
34
35 Return to [database documentation](help/database)