]> git.mxchange.org Git - friendica.git/blob - doc/database/db_event.md
New function to convert BBCode for a given ID
[friendica.git] / doc / database / db_event.md
1 Table event
2 ===========
3
4 Events
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 | guid      |                                                            | varchar(255)       | NO   |     |                     |                |
13 | uid       | Owner User id                                              | mediumint unsigned | NO   |     | 0                   |                |
14 | cid       | contact_id (ID of the contact in contact table)            | int unsigned       | NO   |     | 0                   |                |
15 | uri       |                                                            | varchar(255)       | NO   |     |                     |                |
16 | uri-id    | Id of the item-uri table entry that contains the event uri | int unsigned       | YES  |     | NULL                |                |
17 | created   | creation time                                              | datetime           | NO   |     | 0001-01-01 00:00:00 |                |
18 | edited    | last edit time                                             | datetime           | NO   |     | 0001-01-01 00:00:00 |                |
19 | start     | event start time                                           | datetime           | NO   |     | 0001-01-01 00:00:00 |                |
20 | finish    | event end time                                             | datetime           | NO   |     | 0001-01-01 00:00:00 |                |
21 | summary   | short description or title of the event                    | text               | YES  |     | NULL                |                |
22 | desc      | event description                                          | text               | YES  |     | NULL                |                |
23 | location  | event location                                             | text               | YES  |     | NULL                |                |
24 | type      | event or birthday                                          | varchar(20)        | NO   |     |                     |                |
25 | nofinish  | if event does have no end this is 1                        | boolean            | NO   |     | 0                   |                |
26 | adjust    | adjust to timezone of the recipient (0 or 1)               | boolean            | NO   |     | 1                   |                |
27 | ignore    | 0 or 1                                                     | boolean            | NO   |     | 0                   |                |
28 | allow_cid | Access Control - list of allowed contact.id '<19><78>'     | mediumtext         | YES  |     | NULL                |                |
29 | allow_gid | Access Control - list of allowed groups                    | mediumtext         | YES  |     | NULL                |                |
30 | deny_cid  | Access Control - list of denied contact.id                 | mediumtext         | YES  |     | NULL                |                |
31 | deny_gid  | Access Control - list of denied groups                     | mediumtext         | YES  |     | NULL                |                |
32
33 Indexes
34 ------------
35
36 | Name      | Fields     |
37 | --------- | ---------- |
38 | PRIMARY   | id         |
39 | uid_start | uid, start |
40 | cid       | cid        |
41 | uri-id    | uri-id     |
42
43 Foreign Keys
44 ------------
45
46 | Field | Target Table | Target Field |
47 |-------|--------------|--------------|
48 | uid | [user](help/database/db_user) | uid |
49 | cid | [contact](help/database/db_contact) | id |
50 | uri-id | [item-uri](help/database/db_item-uri) | id |
51
52 Return to [database documentation](help/database)