]> git.mxchange.org Git - friendica.git/blob - doc/database/db_application-token.md
Merge pull request #12593 from nupplaphil/feat/node.config.php
[friendica.git] / doc / database / db_application-token.md
1 Table application-token
2 ===========
3
4 OAuth user token
5
6 Fields
7 ------
8
9 | Field          | Description   | Type               | Null | Key | Default | Extra |
10 | -------------- | ------------- | ------------------ | ---- | --- | ------- | ----- |
11 | application-id |               | int unsigned       | NO   | PRI | NULL    |       |
12 | uid            | Owner User id | mediumint unsigned | NO   | PRI | NULL    |       |
13 | code           |               | varchar(64)        | NO   |     | NULL    |       |
14 | access_token   |               | varchar(64)        | NO   |     | NULL    |       |
15 | created_at     | creation time | datetime           | NO   |     | NULL    |       |
16 | scopes         |               | varchar(255)       | YES  |     | NULL    |       |
17 | read           | Read scope    | boolean            | YES  |     | NULL    |       |
18 | write          | Write scope   | boolean            | YES  |     | NULL    |       |
19 | follow         | Follow scope  | boolean            | YES  |     | NULL    |       |
20 | push           | Push scope    | boolean            | YES  |     | NULL    |       |
21
22 Indexes
23 ------------
24
25 | Name    | Fields              |
26 | ------- | ------------------- |
27 | PRIMARY | application-id, uid |
28 | uid_id  | uid, application-id |
29
30 Foreign Keys
31 ------------
32
33 | Field | Target Table | Target Field |
34 |-------|--------------|--------------|
35 | application-id | [application](help/database/db_application) | id |
36 | uid | [user](help/database/db_user) | uid |
37
38 Return to [database documentation](help/database)