]> git.mxchange.org Git - friendica.git/blobdiff - doc/database/db_search.md
Merge pull request #12288 from annando/api-tags
[friendica.git] / doc / database / db_search.md
index dc20ac42a5d0c3190c5ef7a7564db42ac47d71f6..157d09ecb85ae2e440498f4cd8540f7bedcf84c1 100644 (file)
@@ -3,10 +3,29 @@ Table search
 
 
 
+Fields
+------
+
 | Field | Description   | Type               | Null | Key | Default | Extra          |
 | ----- | ------------- | ------------------ | ---- | --- | ------- | -------------- |
 | id    | sequential ID | int unsigned       | NO   | PRI | NULL    | auto_increment |
 | uid   | User id       | mediumint unsigned | NO   |     | 0       |                |
 | term  |               | varchar(255)       | NO   |     |         |                |
 
+Indexes
+------------
+
+| Name     | Fields        |
+| -------- | ------------- |
+| PRIMARY  | id            |
+| uid_term | uid, term(64) |
+| term     | term(64)      |
+
+Foreign Keys
+------------
+
+| Field | Target Table | Target Field |
+|-------|--------------|--------------|
+| uid | [user](help/database/db_user) | uid |
+
 Return to [database documentation](help/database)