X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=doc%2Fdatabase%2Fdb_profile_field.md;h=56e8e3d0b6623b6aaebe12499f235bcbdcec006f;hb=721c065a4478ed3b68382d33283c36fb9a5e1883;hp=9a0b9fda11faab4c8a1416021057291b3e47fd8a;hpb=84ab5d61594ed92e0e28415d6c33df267a3636c5;p=friendica.git diff --git a/doc/database/db_profile_field.md b/doc/database/db_profile_field.md index 9a0b9fda11..56e8e3d0b6 100644 --- a/doc/database/db_profile_field.md +++ b/doc/database/db_profile_field.md @@ -1,16 +1,38 @@ Table profile_field =========== + Custom profile fields -| Field | Description | Type | Null | Key | Default | Extra | -| ----- | ----------- | ---- | ---- | --- | ------- | ----- | -| id | sequential ID | int unsigned | YES | PRI | | auto_increment | -| uid | Owner user id | mediumint unsigned | YES | | 0 | | -| order | Field ordering per user | mediumint unsigned | YES | | 1 | | -| psid | ID of the permission set of this profile field - 0 = public | int unsigned | NO | | | | -| label | Label of the field | varchar(255) | YES | | | | -| value | Value of the field | text | NO | | | | -| created | creation time | datetime | YES | | 0001-01-01 00:00:00 | | -| edited | last edit time | datetime | YES | | 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)