friendica/doc/database/db_channel.md

43 lines
3.4 KiB
Markdown
Raw Permalink Normal View History

2023-09-19 11:05:28 +02:00
Table channel
===========
User defined Channels
Fields
------
| Field | Description | Type | Null | Key | Default | Extra |
| ---------------- | ------------------------------------------------------------------------------------------------- | ------------------ | ---- | --- | ------- | -------------- |
| id | | int unsigned | NO | PRI | NULL | auto_increment |
| uid | User id | mediumint unsigned | NO | | NULL | |
| label | Channel label | varchar(64) | NO | | NULL | |
| description | Channel description | varchar(64) | YES | | NULL | |
| circle | Circle or channel that this channel is based on | int | YES | | NULL | |
2023-09-19 11:05:28 +02:00
| access-key | Access key | varchar(1) | YES | | NULL | |
| include-tags | Comma separated list of tags that will be included in the channel | varchar(1023) | YES | | NULL | |
| exclude-tags | Comma separated list of tags that aren't allowed in the channel | varchar(1023) | YES | | NULL | |
2024-01-30 11:05:05 +01:00
| min-size | Minimum post size | int unsigned | YES | | NULL | |
| max-size | Maximum post size | int unsigned | YES | | NULL | |
| full-text-search | Full text search pattern, see https://mariadb.com/kb/en/full-text-index-overview/#in-boolean-mode | varchar(1023) | YES | | NULL | |
2023-09-19 11:05:28 +02:00
| media-type | Filtered media types | smallint unsigned | YES | | NULL | |
2024-01-03 20:20:56 +01:00
| languages | Desired languages | mediumtext | YES | | NULL | |
2024-01-07 19:36:47 +01:00
| publish | publish channel content | boolean | YES | | NULL | |
2024-01-10 21:17:44 +01:00
| valid | Set, when the full-text-search is valid | boolean | YES | | NULL | |
2023-09-19 11:05:28 +02:00
Indexes
------------
| Name | Fields |
| ------- | ------ |
| PRIMARY | id |
| uid | uid |
Foreign Keys
------------
| Field | Target Table | Target Field |
|-------|--------------|--------------|
| uid | [user](help/database/db_user) | uid |
Return to [database documentation](help/database)