2015-12-28 01:50:25 +00:00
|
|
|
Table mail
|
2021-06-13 20:33:50 +00:00
|
|
|
===========
|
2021-06-14 06:10:11 +00:00
|
|
|
|
2021-06-13 20:33:50 +00:00
|
|
|
private messages
|
2015-12-28 01:50:25 +00:00
|
|
|
|
2021-06-14 08:53:37 +00:00
|
|
|
Fields
|
|
|
|
------
|
|
|
|
|
2021-06-14 06:10:11 +00:00
|
|
|
| Field | Description | Type | Null | Key | Default | Extra |
|
|
|
|
| ------------- | -------------------------------------------------------------- | ------------------ | ---- | --- | ------------------- | -------------- |
|
|
|
|
| id | sequential ID | int unsigned | NO | PRI | NULL | auto_increment |
|
|
|
|
| uid | Owner User id | mediumint unsigned | NO | | 0 | |
|
2022-09-04 07:54:01 +00:00
|
|
|
| guid | A unique identifier for this private message | varbinary(255) | NO | | | |
|
2021-06-14 06:10:11 +00:00
|
|
|
| from-name | name of the sender | varchar(255) | NO | | | |
|
2022-09-04 07:54:01 +00:00
|
|
|
| from-photo | contact photo link of the sender | varbinary(383) | NO | | | |
|
2023-03-26 22:29:58 +00:00
|
|
|
| from-url | profile link of the sender | varbinary(383) | NO | | | |
|
2022-09-04 07:54:01 +00:00
|
|
|
| contact-id | contact.id | varbinary(255) | YES | | NULL | |
|
2021-06-14 06:10:11 +00:00
|
|
|
| author-id | Link to the contact table with uid=0 of the author of the mail | int unsigned | YES | | NULL | |
|
|
|
|
| convid | conv.id | int unsigned | YES | | NULL | |
|
|
|
|
| title | | varchar(255) | NO | | | |
|
|
|
|
| body | | mediumtext | YES | | NULL | |
|
|
|
|
| seen | if message visited it is 1 | boolean | NO | | 0 | |
|
|
|
|
| reply | | boolean | NO | | 0 | |
|
|
|
|
| replied | | boolean | NO | | 0 | |
|
|
|
|
| unknown | if sender not in the contact table this is 1 | boolean | NO | | 0 | |
|
2022-09-04 07:54:01 +00:00
|
|
|
| uri | | varbinary(383) | NO | | | |
|
2021-06-14 06:10:11 +00:00
|
|
|
| uri-id | Item-uri id of the related mail | int unsigned | YES | | NULL | |
|
2022-09-04 07:54:01 +00:00
|
|
|
| parent-uri | | varbinary(383) | NO | | | |
|
2021-06-14 06:10:11 +00:00
|
|
|
| parent-uri-id | Item-uri id of the parent of the related mail | int unsigned | YES | | NULL | |
|
2022-09-04 07:54:01 +00:00
|
|
|
| thr-parent | | varbinary(383) | YES | | NULL | |
|
2021-06-14 06:10:11 +00:00
|
|
|
| thr-parent-id | Id of the item-uri table that contains the thread parent uri | int unsigned | YES | | NULL | |
|
|
|
|
| created | creation time of the private message | datetime | NO | | 0001-01-01 00:00:00 | |
|
2015-12-28 01:50:25 +00:00
|
|
|
|
2021-06-14 08:53:37 +00:00
|
|
|
Indexes
|
|
|
|
------------
|
|
|
|
|
2021-06-14 12:15:10 +00:00
|
|
|
| Name | Fields |
|
|
|
|
| ------------- | -------------- |
|
|
|
|
| PRIMARY | id |
|
|
|
|
| uid_seen | uid, seen |
|
|
|
|
| convid | convid |
|
|
|
|
| uri | uri(64) |
|
|
|
|
| parent-uri | parent-uri(64) |
|
|
|
|
| contactid | contact-id(32) |
|
|
|
|
| author-id | author-id |
|
|
|
|
| uri-id | uri-id |
|
|
|
|
| parent-uri-id | parent-uri-id |
|
|
|
|
| thr-parent-id | thr-parent-id |
|
2021-06-14 08:53:37 +00:00
|
|
|
|
|
|
|
Foreign Keys
|
|
|
|
------------
|
|
|
|
|
|
|
|
| Field | Target Table | Target Field |
|
|
|
|
|-------|--------------|--------------|
|
|
|
|
| uid | [user](help/database/db_user) | uid |
|
|
|
|
| author-id | [contact](help/database/db_contact) | id |
|
|
|
|
| uri-id | [item-uri](help/database/db_item-uri) | id |
|
|
|
|
| parent-uri-id | [item-uri](help/database/db_item-uri) | id |
|
|
|
|
| thr-parent-id | [item-uri](help/database/db_item-uri) | id |
|
|
|
|
|
2015-12-28 01:50:25 +00:00
|
|
|
Return to [database documentation](help/database)
|