]> git.mxchange.org Git - friendica.git/blob - doc/database/db_user.md
Pad the header
[friendica.git] / doc / database / db_user.md
1 Table user
2 ===========
3 The local users
4
5 | Field                    | Description                                               | Type               | Null | Key | Default             | Extra          |    
6 | ------------------------ | --------------------------------------------------------- | ------------------ | ---- | --- | ------------------- | -------------- |    
7 | uid                      | sequential ID                                             | mediumint unsigned | NO   | PRI | NULL                | auto_increment |    
8 | parent-uid               | The parent user that has full control about this user     | mediumint unsigned | YES  |     | NULL                |                |    
9 | guid                     | A unique identifier for this user                         | varchar(64)        | NO   |     |                     |                |    
10 | username                 | Name that this user is known by                           | varchar(255)       | NO   |     |                     |                |    
11 | password                 | encrypted password                                        | varchar(255)       | NO   |     |                     |                |    
12 | legacy_password          | Is the password hash double-hashed?                       | boolean            | NO   |     | 0                   |                |    
13 | nickname                 | nick- and user name                                       | varchar(255)       | NO   |     |                     |                |    
14 | email                    | the users email address                                   | varchar(255)       | NO   |     |                     |                |    
15 | openid                   |                                                           | varchar(255)       | NO   |     |                     |                |    
16 | timezone                 | PHP-legal timezone                                        | varchar(128)       | NO   |     |                     |                |    
17 | language                 | default language                                          | varchar(32)        | NO   |     | en                  |                |    
18 | register_date            | timestamp of registration                                 | datetime           | NO   |     | 0001-01-01 00:00:00 |                |    
19 | login_date               | timestamp of last login                                   | datetime           | NO   |     | 0001-01-01 00:00:00 |                |    
20 | default-location         | Default for item.location                                 | varchar(255)       | NO   |     |                     |                |    
21 | allow_location           | 1 allows to display the location                          | boolean            | NO   |     | 0                   |                |    
22 | theme                    | user theme preference                                     | varchar(255)       | NO   |     |                     |                |    
23 | pubkey                   | RSA public key 4096 bit                                   | text               | YES  |     | NULL                |                |    
24 | prvkey                   | RSA private key 4096 bit                                  | text               | YES  |     | NULL                |                |    
25 | spubkey                  |                                                           | text               | YES  |     | NULL                |                |    
26 | sprvkey                  |                                                           | text               | YES  |     | NULL                |                |    
27 | verified                 | user is verified through email                            | boolean            | NO   |     | 0                   |                |    
28 | blocked                  | 1 for user is blocked                                     | boolean            | NO   |     | 0                   |                |    
29 | blockwall                | Prohibit contacts to post to the profile page of the user | boolean            | NO   |     | 0                   |                |    
30 | hidewall                 | Hide profile details from unkown viewers                  | boolean            | NO   |     | 0                   |                |    
31 | blocktags                | Prohibit contacts to tag the post of this user            | boolean            | NO   |     | 0                   |                |    
32 | unkmail                  | Permit unknown people to send private mails to this user  | boolean            | NO   |     | 0                   |                |    
33 | cntunkmail               |                                                           | int unsigned       | NO   |     | 10                  |                |    
34 | notify-flags             | email notification options                                | smallint unsigned  | NO   |     | 65535               |                |    
35 | page-flags               | page/profile type                                         | tinyint unsigned   | NO   |     | 0                   |                |    
36 | account-type             |                                                           | tinyint unsigned   | NO   |     | 0                   |                |    
37 | prvnets                  |                                                           | boolean            | NO   |     | 0                   |                |    
38 | pwdreset                 | Password reset request token                              | varchar(255)       | YES  |     | NULL                |                |    
39 | pwdreset_time            | Timestamp of the last password reset request              | datetime           | YES  |     | NULL                |                |    
40 | maxreq                   |                                                           | int unsigned       | NO   |     | 10                  |                |    
41 | expire                   |                                                           | int unsigned       | NO   |     | 0                   |                |    
42 | account_removed          | if 1 the account is removed                               | boolean            | NO   |     | 0                   |                |    
43 | account_expired          |                                                           | boolean            | NO   |     | 0                   |                |    
44 | account_expires_on       | timestamp when account expires and will be deleted        | datetime           | NO   |     | 0001-01-01 00:00:00 |                |    
45 | expire_notification_sent | timestamp of last warning of account expiration           | datetime           | NO   |     | 0001-01-01 00:00:00 |                |    
46 | def_gid                  |                                                           | int unsigned       | NO   |     | 0                   |                |    
47 | allow_cid                | default permission for this user                          | mediumtext         | YES  |     | NULL                |                |    
48 | allow_gid                | default permission for this user                          | mediumtext         | YES  |     | NULL                |                |    
49 | deny_cid                 | default permission for this user                          | mediumtext         | YES  |     | NULL                |                |    
50 | deny_gid                 | default permission for this user                          | mediumtext         | YES  |     | NULL                |                |    
51 | openidserver             |                                                           | text               | YES  |     | NULL                |                |    
52
53 Return to [database documentation](help/database)