2022-11-12 21:50:28 +00:00
|
|
|
Table report
|
|
|
|
===========
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Fields
|
|
|
|
------
|
|
|
|
|
2023-09-10 03:47:06 +00:00
|
|
|
| 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 | |
|
|
|
|
| gsid | Reported contact server | int unsigned | YES | | NULL | |
|
|
|
|
| comment | Report | text | YES | | NULL | |
|
2023-09-16 04:21:59 +00:00
|
|
|
| category-id | Report category, one of Entity Report::CATEGORY_* | int unsigned | NO | | 1 | |
|
2023-09-10 03:47:06 +00:00
|
|
|
| forward | Forward the report to the remote server | boolean | YES | | NULL | |
|
|
|
|
| public-remarks | Remarks shared with the reporter | text | YES | | NULL | |
|
|
|
|
| private-remarks | Remarks shared with the moderation team | text | YES | | NULL | |
|
|
|
|
| last-editor-uid | Last editor user | mediumint unsigned | YES | | NULL | |
|
|
|
|
| assigned-uid | Assigned moderator user | mediumint unsigned | YES | | NULL | |
|
2023-09-16 04:21:59 +00:00
|
|
|
| status | Status of the report, one of Entity Report::STATUS_* | tinyint unsigned | NO | | NULL | |
|
|
|
|
| resolution | Resolution of the report, one of Entity Report::RESOLUTION_* | tinyint unsigned | YES | | NULL | |
|
2023-09-10 03:47:06 +00:00
|
|
|
| created | | datetime(6) | NO | | 0001-01-01 00:00:00.000000 | |
|
|
|
|
| edited | Last time the report has been edited | datetime(6) | YES | | NULL | |
|
2022-11-12 21:50:28 +00:00
|
|
|
|
|
|
|
Indexes
|
|
|
|
------------
|
|
|
|
|
2022-12-10 14:08:12 +00:00
|
|
|
| Name | Fields |
|
|
|
|
| ----------------- | ------------------ |
|
|
|
|
| PRIMARY | id |
|
|
|
|
| uid | uid |
|
|
|
|
| cid | cid |
|
|
|
|
| reporter-id | reporter-id |
|
|
|
|
| gsid | gsid |
|
2023-07-10 20:50:16 +00:00
|
|
|
| last-editor-uid | last-editor-uid |
|
2022-12-10 14:08:12 +00:00
|
|
|
| assigned-uid | assigned-uid |
|
|
|
|
| status-resolution | status, resolution |
|
|
|
|
| created | created |
|
|
|
|
| edited | edited |
|
2022-11-12 21:50:28 +00:00
|
|
|
|
|
|
|
Foreign Keys
|
|
|
|
------------
|
|
|
|
|
|
|
|
| Field | Target Table | Target Field |
|
|
|
|
|-------|--------------|--------------|
|
|
|
|
| uid | [user](help/database/db_user) | uid |
|
2022-12-24 08:03:37 +00:00
|
|
|
| reporter-id | [contact](help/database/db_contact) | id |
|
2022-11-12 21:50:28 +00:00
|
|
|
| cid | [contact](help/database/db_contact) | id |
|
2022-12-10 14:08:12 +00:00
|
|
|
| gsid | [gserver](help/database/db_gserver) | id |
|
|
|
|
| last-editor-uid | [user](help/database/db_user) | uid |
|
|
|
|
| assigned-uid | [user](help/database/db_user) | uid |
|
2022-11-12 21:50:28 +00:00
|
|
|
|
|
|
|
Return to [database documentation](help/database)
|