1
0
Fork 0
friendica_2020-09-1_sharedH.../doc/database/db_notify.md

52 lines
3.4 KiB
Markdown
Raw Normal View History

2015-12-28 02:50:25 +01:00
Table notify
===========
2021-06-14 08:10:11 +02:00
2022-02-23 08:10:57 +01:00
[Deprecated] User notifications
2015-12-28 02:50:25 +01:00
2021-06-14 10:53:37 +02:00
Fields
------
2021-06-14 08:10:11 +02:00
| Field | Description | Type | Null | Key | Default | Extra |
| ------------- | --------------------------------------------- | ------------------ | ---- | --- | ------------------- | -------------- |
| id | sequential ID | int unsigned | NO | PRI | NULL | auto_increment |
| type | | smallint unsigned | NO | | 0 | |
| name | | varchar(255) | NO | | | |
| url | | varbinary(383) | NO | | | |
| photo | | varbinary(383) | NO | | | |
2021-06-14 08:10:11 +02:00
| date | | datetime | NO | | 0001-01-01 00:00:00 | |
| msg | | mediumtext | YES | | NULL | |
| uid | Owner User id | mediumint unsigned | NO | | 0 | |
| link | | varbinary(383) | NO | | | |
2021-06-14 08:10:11 +02:00
| iid | | int unsigned | YES | | NULL | |
| parent | | int unsigned | YES | | NULL | |
| uri-id | Item-uri id of the related post | int unsigned | YES | | NULL | |
| parent-uri-id | Item-uri id of the parent of the related post | int unsigned | YES | | NULL | |
| seen | | boolean | NO | | 0 | |
| verb | | varchar(100) | NO | | | |
| otype | | varchar(10) | NO | | | |
| name_cache | Cached bbcode parsing of name | tinytext | YES | | NULL | |
| msg_cache | Cached bbcode parsing of msg | mediumtext | YES | | NULL | |
2015-12-28 02:50:25 +01:00
2021-06-14 10:53:37 +02:00
Indexes
------------
2021-06-14 14:15:10 +02:00
| Name | Fields |
| ------------- | -------------------- |
| PRIMARY | id |
| seen_uid_date | seen, uid, date |
| uid_date | uid, date |
2021-06-14 10:53:37 +02:00
| uid_type_link | uid, type, link(190) |
2021-06-14 14:15:10 +02:00
| uri-id | uri-id |
| parent-uri-id | parent-uri-id |
2021-06-14 10:53:37 +02:00
Foreign Keys
------------
| Field | Target Table | Target Field |
|-------|--------------|--------------|
| uid | [user](help/database/db_user) | uid |
| uri-id | [item-uri](help/database/db_item-uri) | id |
| parent-uri-id | [item-uri](help/database/db_item-uri) | id |
2015-12-28 02:50:25 +01:00
Return to [database documentation](help/database)