]> git.mxchange.org Git - friendica.git/blob - doc/database/db_event.md
Merge remote-tracking branch 'upstream/2022.09-rc' into database
[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      |                                                            | varbinary(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       |                                                            | varbinary(383)     | 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 | ignore    | 0 or 1                                                     | boolean            | NO   |     | 0                   |                |
27 | allow_cid | Access Control - list of allowed contact.id '<19><78>'     | mediumtext         | YES  |     | NULL                |                |
28 | allow_gid | Access Control - list of allowed groups                    | mediumtext         | YES  |     | NULL                |                |
29 | deny_cid  | Access Control - list of denied contact.id                 | mediumtext         | YES  |     | NULL                |                |
30 | deny_gid  | Access Control - list of denied groups                     | mediumtext         | YES  |     | NULL                |                |
31
32 Indexes
33 ------------
34
35 | Name      | Fields     |
36 | --------- | ---------- |
37 | PRIMARY   | id         |
38 | uid_start | uid, start |
39 | cid       | cid        |
40 | uri-id    | uri-id     |
41
42 Foreign Keys
43 ------------
44
45 | Field | Target Table | Target Field |
46 |-------|--------------|--------------|
47 | uid | [user](help/database/db_user) | uid |
48 | cid | [contact](help/database/db_contact) | id |
49 | uri-id | [item-uri](help/database/db_item-uri) | id |
50
51 Return to [database documentation](help/database)