]> git.mxchange.org Git - friendica.git/blobdiff - doc/database/db_application-token.md
Revert "Rename contact table column to ffi_keyword_denylist"
[friendica.git] / doc / database / db_application-token.md
index 8b3d601ff7e052c54df16028efe3425fff5ffb09..9899a5e8b31cad46b9b23fcef5e52a913616f370 100644 (file)
@@ -1,18 +1,38 @@
 Table application-token
 ===========
+
 OAuth user token
 
-| Field | Description | Type | Null | Key | Default | Extra |
-| ----- | ----------- | ---- | ---- | --- | ------- | ----- |
-| application-id |  | int unsigned | YES | PRI |  |  |    
-| uid | Owner User id | mediumint unsigned | YES | PRI |  |  |    
-| code |  | varchar(64) | YES |  |  |  |    
-| access_token |  | varchar(64) | YES |  |  |  |    
-| created_at | creation time | datetime | YES |  |  |  |    
-| scopes |  | varchar(255) | NO |  |  |  |    
-| read | Read scope | boolean | NO |  |  |  |    
-| write | Write scope | boolean | NO |  |  |  |    
-| follow | Follow scope | boolean | NO |  |  |  |    
-| push | Push scope | boolean | NO |  |  |  |    
+Fields
+------
+
+| 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    |       |
+
+Indexes
+------------
+
+| Name    | Fields              |
+| ------- | ------------------- |
+| PRIMARY | application-id, uid |
+| uid_id  | uid, application-id |
+
+Foreign Keys
+------------
+
+| Field | Target Table | Target Field |
+|-------|--------------|--------------|
+| application-id | [application](help/database/db_application) | id |
+| uid | [user](help/database/db_user) | uid |
 
 Return to [database documentation](help/database)