]> git.mxchange.org Git - friendica.git/blobdiff - doc/database/db_auth_codes.md
Merge pull request #10508 from annando/loop-prevention
[friendica.git] / doc / database / db_auth_codes.md
index fef3f987c1034e4552cbcf1822643dc7bfd79397..a1d28e0965ff045528085bce17dad3c24d875f7b 100644 (file)
@@ -3,6 +3,9 @@ Table auth_codes
 
 OAuth usage
 
+Fields
+------
+
 | Field        | Description | Type         | Null | Key | Default | Extra |
 | ------------ | ----------- | ------------ | ---- | --- | ------- | ----- |
 | id           |             | varchar(40)  | NO   | PRI | NULL    |       |
@@ -11,4 +14,19 @@ OAuth usage
 | expires      |             | int          | NO   |     | 0       |       |
 | scope        |             | varchar(250) | NO   |     |         |       |
 
+Indexes
+------------
+
+| Name      | Fields    |
+| --------- | --------- |
+| PRIMARY   | id        |
+| client_id | client_id |
+
+Foreign Keys
+------------
+
+| Field | Target Table | Target Field |
+|-------|--------------|--------------|
+| client_id | [clients](help/database/db_clients) | client_id |
+
 Return to [database documentation](help/database)