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