]> git.mxchange.org Git - friendica.git/blobdiff - doc/database/db_group_member.md
Merge pull request #13390 from annando/channel
[friendica.git] / doc / database / db_group_member.md
index a4ecfdf7db34e13d9edecd1ad1db314d84049b56..efe83e4aed4690b72db6f69c908e623813977dd0 100644 (file)
@@ -1,11 +1,32 @@
 Table group_member
 ===========
-privacy groups, member info
 
-| Field | Description | Type | Null | Key | Default | Extra |
-| ----- | ----------- | ---- | ---- | --- | ------- | ----- |
-| id | sequential ID | int unsigned | YES | PRI |  | auto_increment |    
-| gid | groups.id of the associated group | int unsigned | YES |  | 0 |  |    
-| contact-id | contact.id of the member assigned to the associated group | int unsigned | YES |  | 0 |  |    
+privacy circles, member info
+
+Fields
+------
+
+| Field      | Description                                                | Type         | Null | Key | Default | Extra          |
+| ---------- | ---------------------------------------------------------- | ------------ | ---- | --- | ------- | -------------- |
+| id         | sequential ID                                              | int unsigned | NO   | PRI | NULL    | auto_increment |
+| gid        | group.id of the associated circle                          | int unsigned | NO   |     | 0       |                |
+| contact-id | contact.id of the member assigned to the associated circle | int unsigned | NO   |     | 0       |                |
+
+Indexes
+------------
+
+| Name          | Fields                  |
+| ------------- | ----------------------- |
+| PRIMARY       | id                      |
+| contactid     | contact-id              |
+| gid_contactid | UNIQUE, gid, contact-id |
+
+Foreign Keys
+------------
+
+| Field | Target Table | Target Field |
+|-------|--------------|--------------|
+| gid | [group](help/database/db_group) | id |
+| contact-id | [contact](help/database/db_contact) | id |
 
 Return to [database documentation](help/database)