]> git.mxchange.org Git - friendica.git/blobdiff - doc/database/db_application-token.md
Category added
[friendica.git] / doc / database / db_application-token.md
index e37bce6c9f5d7d26cadb6d048ac25ff5e0e28907..9899a5e8b31cad46b9b23fcef5e52a913616f370 100644 (file)
@@ -3,6 +3,9 @@ Table application-token
 
 OAuth user token
 
+Fields
+------
+
 | Field          | Description   | Type               | Null | Key | Default | Extra |
 | -------------- | ------------- | ------------------ | ---- | --- | ------- | ----- |
 | application-id |               | int unsigned       | NO   | PRI | NULL    |       |
@@ -16,4 +19,20 @@ OAuth user token
 | 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)