]> git.mxchange.org Git - friendica.git/blob - doc/database/db_notify.md
88d814c0408ca5ce035428470252de10b7a1dfc1
[friendica.git] / doc / database / db_notify.md
1 Table notify
2 ===========
3
4 [Deprecated] User notifications
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 | type          |                                               | smallint unsigned  | NO   |     | 0                   |                |
13 | name          |                                               | varchar(255)       | NO   |     |                     |                |
14 | url           |                                               | varchar(255)       | NO   |     |                     |                |
15 | photo         |                                               | varchar(255)       | NO   |     |                     |                |
16 | date          |                                               | datetime           | NO   |     | 0001-01-01 00:00:00 |                |
17 | msg           |                                               | mediumtext         | YES  |     | NULL                |                |
18 | uid           | Owner User id                                 | mediumint unsigned | NO   |     | 0                   |                |
19 | link          |                                               | varchar(255)       | NO   |     |                     |                |
20 | iid           |                                               | int unsigned       | YES  |     | NULL                |                |
21 | parent        |                                               | int unsigned       | YES  |     | NULL                |                |
22 | uri-id        | Item-uri id of the related post               | int unsigned       | YES  |     | NULL                |                |
23 | parent-uri-id | Item-uri id of the parent of the related post | int unsigned       | YES  |     | NULL                |                |
24 | seen          |                                               | boolean            | NO   |     | 0                   |                |
25 | verb          |                                               | varchar(100)       | NO   |     |                     |                |
26 | otype         |                                               | varchar(10)        | NO   |     |                     |                |
27 | name_cache    | Cached bbcode parsing of name                 | tinytext           | YES  |     | NULL                |                |
28 | msg_cache     | Cached bbcode parsing of msg                  | mediumtext         | YES  |     | NULL                |                |
29
30 Indexes
31 ------------
32
33 | Name          | Fields               |
34 | ------------- | -------------------- |
35 | PRIMARY       | id                   |
36 | seen_uid_date | seen, uid, date      |
37 | uid_date      | uid, date            |
38 | uid_type_link | uid, type, link(190) |
39 | uri-id        | uri-id               |
40 | parent-uri-id | parent-uri-id        |
41
42 Foreign Keys
43 ------------
44
45 | Field | Target Table | Target Field |
46 |-------|--------------|--------------|
47 | uid | [user](help/database/db_user) | uid |
48 | uri-id | [item-uri](help/database/db_item-uri) | id |
49 | parent-uri-id | [item-uri](help/database/db_item-uri) | id |
50
51 Return to [database documentation](help/database)