2021-06-13 16:33:50 -04:00
|
|
|
Table application-token
|
|
|
|
===========
|
2021-06-14 02:10:11 -04:00
|
|
|
|
2021-06-13 16:33:50 -04:00
|
|
|
OAuth user token
|
|
|
|
|
2021-06-14 04:53:37 -04:00
|
|
|
Fields
|
|
|
|
------
|
|
|
|
|
2021-06-14 02:10:11 -04:00
|
|
|
| Field | Description | Type | Null | Key | Default | Extra |
|
|
|
|
| -------------- | ------------- | ------------------ | ---- | --- | ------- | ----- |
|
|
|
|
| application-id | | int unsigned | NO | PRI | NULL | |
|
|
|
|
| uid | Owner User id | mediumint unsigned | NO | PRI | NULL | |
|
|
|
|
| code | | varchar(64) | NO | | NULL | |
|
|
|
|
| access_token | | varchar(64) | NO | | NULL | |
|
|
|
|
| created_at | creation time | datetime | NO | | NULL | |
|
|
|
|
| scopes | | varchar(255) | YES | | NULL | |
|
|
|
|
| read | Read scope | boolean | YES | | NULL | |
|
|
|
|
| write | Write scope | boolean | YES | | NULL | |
|
|
|
|
| follow | Follow scope | boolean | YES | | NULL | |
|
|
|
|
| push | Push scope | boolean | YES | | NULL | |
|
2021-06-13 16:33:50 -04:00
|
|
|
|
2021-06-14 04:53:37 -04:00
|
|
|
Indexes
|
|
|
|
------------
|
|
|
|
|
2021-06-14 08:15:10 -04:00
|
|
|
| Name | Fields |
|
|
|
|
| ------- | ------------------- |
|
2021-06-14 04:53:37 -04:00
|
|
|
| PRIMARY | application-id, uid |
|
2021-06-14 08:15:10 -04:00
|
|
|
| uid_id | uid, application-id |
|
2021-06-14 04:53:37 -04:00
|
|
|
|
|
|
|
Foreign Keys
|
|
|
|
------------
|
|
|
|
|
|
|
|
| Field | Target Table | Target Field |
|
|
|
|
|-------|--------------|--------------|
|
|
|
|
| application-id | [application](help/database/db_application) | id |
|
|
|
|
| uid | [user](help/database/db_user) | uid |
|
|
|
|
|
2021-06-13 16:33:50 -04:00
|
|
|
Return to [database documentation](help/database)
|