]> git.mxchange.org Git - friendica.git/blobdiff - doc/database/db_conv.md
Merge pull request #12407 from HankG/friendica-api-photo-endpoint-updates
[friendica.git] / doc / database / db_conv.md
index d3e40ebbec45a04d4ede0a4d0fe9c9d48a9ee8b1..69815fae7db6e11408b9b464f21406975700f539 100644 (file)
@@ -1,16 +1,35 @@
 Table conv
 ===========
+
 private messages
 
-| Field | Description | Type | Null | Key | Default | Extra |
-| ----- | ----------- | ---- | ---- | --- | ------- | ----- |
-| id | sequential ID | int unsigned | YES | PRI | NULL | auto_increment |    
-| guid | A unique identifier for this conversation | varchar(255) | YES |  |  |  |    
-| recips | sender_handle;recipient_handle | text | NO |  | NULL |  |    
-| uid | Owner User id | mediumint unsigned | YES |  | 0 |  |    
-| creator | handle of creator | varchar(255) | YES |  |  |  |    
-| created | creation timestamp | datetime | YES |  | 0001-01-01 00:00:00 |  |    
-| updated | edited timestamp | datetime | YES |  | 0001-01-01 00:00:00 |  |    
-| subject | subject of initial message | text | NO |  | 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)