]> git.mxchange.org Git - friendica.git/blob - doc/database/db_group.md
Merge remote-tracking branch 'origin/2022.12-rc' into fixes
[friendica.git] / doc / database / db_group.md
1 Table group
2 ===========
3
4 privacy groups, group info
5
6 Fields
7 ------
8
9 | Field   | Description                                                                               | Type               | Null | Key | Default | Extra          |
10 | ------- | ----------------------------------------------------------------------------------------- | ------------------ | ---- | --- | ------- | -------------- |
11 | id      | sequential ID                                                                             | int unsigned       | NO   | PRI | NULL    | auto_increment |
12 | uid     | Owner User id                                                                             | mediumint unsigned | NO   |     | 0       |                |
13 | visible | 1 indicates the member list is not private                                                | boolean            | NO   |     | 0       |                |
14 | deleted | 1 indicates the group has been deleted                                                    | boolean            | NO   |     | 0       |                |
15 | cid     | Contact id of forum. When this field is filled then the members are synced automatically. | int unsigned       | YES  |     | NULL    |                |
16 | name    | human readable name of group                                                              | varchar(255)       | NO   |     |         |                |
17
18 Indexes
19 ------------
20
21 | Name    | Fields |
22 | ------- | ------ |
23 | PRIMARY | id     |
24 | uid     | uid    |
25 | cid     | cid    |
26
27 Foreign Keys
28 ------------
29
30 | Field | Target Table | Target Field |
31 |-------|--------------|--------------|
32 | uid | [user](help/database/db_user) | uid |
33 | cid | [contact](help/database/db_contact) | id |
34
35 Return to [database documentation](help/database)