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