]> git.mxchange.org Git - friendica.git/blob - doc/database/db_profile_field.md
Formatted index list
[friendica.git] / doc / database / db_profile_field.md
1 Table profile_field
2 ===========
3
4 Custom profile fields
5
6 Fields
7 ------
8
9 | Field   | Description                                                 | Type               | Null | Key | Default             | Extra          |
10 | ------- | ----------------------------------------------------------- | ------------------ | ---- | --- | ------------------- | -------------- |
11 | id      | sequential ID                                               | int unsigned       | NO   | PRI | NULL                | auto_increment |
12 | uid     | Owner user id                                               | mediumint unsigned | NO   |     | 0                   |                |
13 | order   | Field ordering per user                                     | mediumint unsigned | NO   |     | 1                   |                |
14 | psid    | ID of the permission set of this profile field - 0 = public | int unsigned       | YES  |     | NULL                |                |
15 | label   | Label of the field                                          | varchar(255)       | NO   |     |                     |                |
16 | value   | Value of the field                                          | text               | YES  |     | NULL                |                |
17 | created | creation time                                               | datetime           | NO   |     | 0001-01-01 00:00:00 |                |
18 | edited  | last edit time                                              | datetime           | NO   |     | 0001-01-01 00:00:00 |                |
19
20 Indexes
21 ------------
22
23 | Name    | Fields |
24 | ------- | ------ |
25 | PRIMARY | id     |
26 | uid     | uid    |
27 | order   | order  |
28 | psid    | psid   |
29
30 Foreign Keys
31 ------------
32
33 | Field | Target Table | Target Field |
34 |-------|--------------|--------------|
35 | uid | [user](help/database/db_user) | uid |
36 | psid | [permissionset](help/database/db_permissionset) | id |
37
38 Return to [database documentation](help/database)