]> git.mxchange.org Git - friendica.git/blobdiff - doc/database/db_profile_field.md
Merge pull request #12407 from HankG/friendica-api-photo-endpoint-updates
[friendica.git] / doc / database / db_profile_field.md
index 34a683cfbad50cb7bce12bf416c6fb0b716f70f5..56e8e3d0b6623b6aaebe12499f235bcbdcec006f 100644 (file)
@@ -1,16 +1,38 @@
 Table profile_field
 ===========
+
 Custom profile fields
 
-| 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 |  |    
-| order | Field ordering per user | mediumint unsigned | NO |  | 1 |  |    
-| psid | ID of the permission set of this profile field - 0 = public | int unsigned | YES |  | NULL |  |    
-| label | Label of the field | varchar(255) | NO |  |  |  |    
-| value | Value of the field | text | YES |  | NULL |  |    
-| created | creation time | datetime | NO |  | 0001-01-01 00:00:00 |  |    
-| edited | last edit time | datetime | NO |  | 0001-01-01 00:00:00 |  |    
+Fields
+------
+
+| 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                   |                |
+| order   | Field ordering per user                                     | mediumint unsigned | NO   |     | 1                   |                |
+| psid    | ID of the permission set of this profile field - 0 = public | int unsigned       | YES  |     | NULL                |                |
+| label   | Label of the field                                          | varchar(255)       | NO   |     |                     |                |
+| value   | Value of the field                                          | text               | YES  |     | NULL                |                |
+| created | creation time                                               | datetime           | NO   |     | 0001-01-01 00:00:00 |                |
+| edited  | last edit time                                              | datetime           | NO   |     | 0001-01-01 00:00:00 |                |
+
+Indexes
+------------
+
+| Name    | Fields |
+| ------- | ------ |
+| PRIMARY | id     |
+| uid     | uid    |
+| order   | order  |
+| psid    | psid   |
+
+Foreign Keys
+------------
+
+| Field | Target Table | Target Field |
+|-------|--------------|--------------|
+| uid | [user](help/database/db_user) | uid |
+| psid | [permissionset](help/database/db_permissionset) | id |
 
 Return to [database documentation](help/database)