]> git.mxchange.org Git - friendica.git/blobdiff - doc/database/db_conv.md
Merge remote-tracking branch 'origin/2022.12-rc' into fixes
[friendica.git] / doc / database / db_conv.md
index 8cf835b7e3866689728f08340d132fcf8cbb59c7..69815fae7db6e11408b9b464f21406975700f539 100644 (file)
@@ -1,16 +1,35 @@
 Table conv
 ===========
+
 private messages
 
-| Field   | Description                               | Type               | Null | Key | Default             | Extra          |    
-| ------- | ----------------------------------------- | ------------------ | ---- | --- | ------------------- | -------------- |    
-| id      | sequential ID                             | int unsigned       | NO   | PRI | NULL                | auto_increment |    
-| guid    | A unique identifier for this conversation | varchar(255)       | NO   |     |                     |                |    
-| recips  | sender_handle;recipient_handle            | text               | YES  |     | NULL                |                |    
-| uid     | Owner User id                             | mediumint unsigned | NO   |     | 0                   |                |    
-| creator | handle of creator                         | varchar(255)       | NO   |     |                     |                |    
-| created | creation timestamp                        | datetime           | NO   |     | 0001-01-01 00:00:00 |                |    
-| updated | edited timestamp                          | datetime           | NO   |     | 0001-01-01 00:00:00 |                |    
-| subject | subject of initial message                | text               | YES  |     | NULL                |                |    
+Fields
+------
+
+| Field   | Description                               | Type               | Null | Key | Default             | Extra          |
+| ------- | ----------------------------------------- | ------------------ | ---- | --- | ------------------- | -------------- |
+| id      | sequential ID                             | int unsigned       | NO   | PRI | NULL                | auto_increment |
+| guid    | A unique identifier for this conversation | varbinary(255)     | NO   |     |                     |                |
+| recips  | sender_handle;recipient_handle            | text               | YES  |     | NULL                |                |
+| uid     | Owner User id                             | mediumint unsigned | NO   |     | 0                   |                |
+| creator | handle of creator                         | varchar(255)       | NO   |     |                     |                |
+| created | creation timestamp                        | datetime           | NO   |     | 0001-01-01 00:00:00 |                |
+| updated | edited timestamp                          | datetime           | NO   |     | 0001-01-01 00:00:00 |                |
+| subject | subject of initial message                | text               | YES  |     | NULL                |                |
+
+Indexes
+------------
+
+| Name    | Fields |
+| ------- | ------ |
+| PRIMARY | id     |
+| uid     | uid    |
+
+Foreign Keys
+------------
+
+| Field | Target Table | Target Field |
+|-------|--------------|--------------|
+| uid | [user](help/database/db_user) | uid |
 
 Return to [database documentation](help/database)