mirror of
https://github.com/friendica/friendica
synced 2024-11-18 23:03:40 +00:00
41 lines
2.2 KiB
Markdown
41 lines
2.2 KiB
Markdown
Table report
|
|
===========
|
|
|
|
|
|
|
|
Fields
|
|
------
|
|
|
|
| Field | Description | Type | Null | Key | Default | Extra |
|
|
| ----------- | ----------------------------------------------- | ------------------ | ---- | --- | ------------------- | -------------- |
|
|
| id | sequential ID | int unsigned | NO | PRI | NULL | auto_increment |
|
|
| uid | Reporting user | mediumint unsigned | YES | | NULL | |
|
|
| reporter-id | Reporting contact | int unsigned | YES | | NULL | |
|
|
| cid | Reported contact | int unsigned | NO | | NULL | |
|
|
| comment | Report | text | YES | | NULL | |
|
|
| category | Category of the report (spam, violation, other) | varchar(20) | YES | | NULL | |
|
|
| rules | Violated rules | text | YES | | NULL | |
|
|
| forward | Forward the report to the remote server | boolean | YES | | NULL | |
|
|
| created | | datetime | NO | | 0001-01-01 00:00:00 | |
|
|
| status | Status of the report | tinyint unsigned | YES | | NULL | |
|
|
|
|
Indexes
|
|
------------
|
|
|
|
| Name | Fields |
|
|
| ----------- | ----------- |
|
|
| PRIMARY | id |
|
|
| uid | uid |
|
|
| cid | cid |
|
|
| reporter-id | reporter-id |
|
|
|
|
Foreign Keys
|
|
------------
|
|
|
|
| Field | Target Table | Target Field |
|
|
|-------|--------------|--------------|
|
|
| uid | [user](help/database/db_user) | uid |
|
|
| reporter-id | [contact](help/database/db_contact) | id |
|
|
| cid | [contact](help/database/db_contact) | id |
|
|
|
|
Return to [database documentation](help/database)
|