]> git.mxchange.org Git - friendica.git/blob - doc/database/db_mail.md
dbdacb6d316821bf75b256b0efdb794205cd2dcc
[friendica.git] / doc / database / db_mail.md
1 Table mail
2 ===========
3
4 private messages
5
6 | Field         | Description                                                    | Type               | Null | Key | Default             | Extra          |
7 | ------------- | -------------------------------------------------------------- | ------------------ | ---- | --- | ------------------- | -------------- |
8 | id            | sequential ID                                                  | int unsigned       | NO   | PRI | NULL                | auto_increment |
9 | uid           | Owner User id                                                  | mediumint unsigned | NO   |     | 0                   |                |
10 | guid          | A unique identifier for this private message                   | varchar(255)       | NO   |     |                     |                |
11 | from-name     | name of the sender                                             | varchar(255)       | NO   |     |                     |                |
12 | from-photo    | contact photo link of the sender                               | varchar(255)       | NO   |     |                     |                |
13 | from-url      | profile linke of the sender                                    | varchar(255)       | NO   |     |                     |                |
14 | contact-id    | contact.id                                                     | varchar(255)       | YES  |     | NULL                |                |
15 | author-id     | Link to the contact table with uid=0 of the author of the mail | int unsigned       | YES  |     | NULL                |                |
16 | convid        | conv.id                                                        | int unsigned       | YES  |     | NULL                |                |
17 | title         |                                                                | varchar(255)       | NO   |     |                     |                |
18 | body          |                                                                | mediumtext         | YES  |     | NULL                |                |
19 | seen          | if message visited it is 1                                     | boolean            | NO   |     | 0                   |                |
20 | reply         |                                                                | boolean            | NO   |     | 0                   |                |
21 | replied       |                                                                | boolean            | NO   |     | 0                   |                |
22 | unknown       | if sender not in the contact table this is 1                   | boolean            | NO   |     | 0                   |                |
23 | uri           |                                                                | varchar(255)       | NO   |     |                     |                |
24 | uri-id        | Item-uri id of the related mail                                | int unsigned       | YES  |     | NULL                |                |
25 | parent-uri    |                                                                | varchar(255)       | NO   |     |                     |                |
26 | parent-uri-id | Item-uri id of the parent of the related mail                  | int unsigned       | YES  |     | NULL                |                |
27 | thr-parent    |                                                                | varchar(255)       | YES  |     | NULL                |                |
28 | thr-parent-id | Id of the item-uri table that contains the thread parent uri   | int unsigned       | YES  |     | NULL                |                |
29 | created       | creation time of the private message                           | datetime           | NO   |     | 0001-01-01 00:00:00 |                |
30
31 Return to [database documentation](help/database)