]> git.mxchange.org Git - friendica.git/blob - doc/database/db_pconfig.md
Merge remote-tracking branch 'upstream/2021.06-rc' into public-timeline
[friendica.git] / doc / database / db_pconfig.md
1 Table pconfig
2 ===========
3
4 personal (per user) configuration storage
5
6 Fields
7 ------
8
9 | Field | Description | Type               | Null | Key | Default | Extra          |
10 | ----- | ----------- | ------------------ | ---- | --- | ------- | -------------- |
11 | id    | Primary key | int unsigned       | NO   | PRI | NULL    | auto_increment |
12 | uid   | User id     | mediumint unsigned | NO   |     | 0       |                |
13 | cat   | Category    | varchar(50)        | NO   |     |         |                |
14 | k     | Key         | varchar(100)       | NO   |     |         |                |
15 | v     | Value       | mediumtext         | YES  |     | NULL    |                |
16
17 Indexes
18 ------------
19
20 | Name      | Fields              |
21 | --------- | ------------------- |
22 | PRIMARY   | id                  |
23 | uid_cat_k | UNIQUE, uid, cat, k |
24
25 Foreign Keys
26 ------------
27
28 | Field | Target Table | Target Field |
29 |-------|--------------|--------------|
30 | uid | [user](help/database/db_user) | uid |
31
32 Return to [database documentation](help/database)