]> git.mxchange.org Git - friendica.git/blob - doc/database/db_channel.md
Channels can now be created by users
[friendica.git] / doc / database / db_channel.md
1 Table channel
2 ===========
3
4 User defined Channels
5
6 Fields
7 ------
8
9 | Field            | Description                                                                                       | Type               | Null | Key | Default | Extra          |
10 | ---------------- | ------------------------------------------------------------------------------------------------- | ------------------ | ---- | --- | ------- | -------------- |
11 | id               |                                                                                                   | int unsigned       | NO   | PRI | NULL    | auto_increment |
12 | uid              | User id                                                                                           | mediumint unsigned | NO   |     | NULL    |                |
13 | label            | Channel label                                                                                     | varchar(64)        | NO   |     | NULL    |                |
14 | description      | Channel description                                                                               | varchar(64)        | YES  |     | NULL    |                |
15 | access-key       | Access key                                                                                        | varchar(1)         | YES  |     | NULL    |                |
16 | include-tags     | Comma separated list of tags that will be included in the channel                                 | varchar(255)       | YES  |     | NULL    |                |
17 | exclude-tags     | Comma separated list of tags that aren't allowed in the channel                                   | varchar(255)       | YES  |     | NULL    |                |
18 | full-text-search | Full text search pattern, see https://mariadb.com/kb/en/full-text-index-overview/#in-boolean-mode | varchar(255)       | YES  |     | NULL    |                |
19 | media-type       | Filtered media types                                                                              | smallint unsigned  | YES  |     | NULL    |                |
20
21 Indexes
22 ------------
23
24 | Name    | Fields |
25 | ------- | ------ |
26 | PRIMARY | id     |
27 | uid     | uid    |
28
29 Foreign Keys
30 ------------
31
32 | Field | Target Table | Target Field |
33 |-------|--------------|--------------|
34 | uid | [user](help/database/db_user) | uid |
35
36 Return to [database documentation](help/database)