2021-06-13 16:33:50 -04:00
|
|
|
Table notification
|
|
|
|
===========
|
2021-06-14 02:10:11 -04:00
|
|
|
|
2021-06-13 16:33:50 -04:00
|
|
|
notifications
|
|
|
|
|
2021-06-14 04:53:37 -04:00
|
|
|
Fields
|
|
|
|
------
|
|
|
|
|
2021-06-14 02:10:11 -04:00
|
|
|
| Field | Description | Type | Null | Key | Default | Extra |
|
|
|
|
| ------------- | ------------------------------------------------------------------------------ | ------------------ | ---- | --- | ------- | -------------- |
|
|
|
|
| id | sequential ID | int unsigned | NO | PRI | NULL | auto_increment |
|
|
|
|
| uid | Owner User id | mediumint unsigned | YES | | NULL | |
|
|
|
|
| vid | Id of the verb table entry that contains the activity verbs | smallint unsigned | YES | | NULL | |
|
2022-06-05 11:02:03 -04:00
|
|
|
| type | | smallint unsigned | YES | | NULL | |
|
2021-06-14 02:10:11 -04:00
|
|
|
| actor-id | Link to the contact table with uid=0 of the actor that caused the notification | int unsigned | YES | | NULL | |
|
|
|
|
| target-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 | |
|
|
|
|
| created | | datetime | YES | | NULL | |
|
2021-12-28 15:38:18 -05:00
|
|
|
| seen | Seen on the desktop | boolean | YES | | 0 | |
|
|
|
|
| dismissed | Dismissed via the API | boolean | YES | | 0 | |
|
2021-06-13 16:33:50 -04:00
|
|
|
|
2021-06-14 04:53:37 -04:00
|
|
|
Indexes
|
|
|
|
------------
|
|
|
|
|
2021-06-14 08:15:10 -04:00
|
|
|
| Name | Fields |
|
|
|
|
| ----------------------------------- | ----------------------------------------------- |
|
|
|
|
| PRIMARY | id |
|
2021-06-14 04:53:37 -04:00
|
|
|
| uid_vid_type_actor-id_target-uri-id | UNIQUE, uid, vid, type, actor-id, target-uri-id |
|
2021-06-14 08:15:10 -04:00
|
|
|
| vid | vid |
|
|
|
|
| actor-id | actor-id |
|
|
|
|
| target-uri-id | target-uri-id |
|
|
|
|
| parent-uri-id | parent-uri-id |
|
|
|
|
| seen_uid | seen, uid |
|
2022-08-15 09:23:01 -04:00
|
|
|
| uid_type_parent-uri-id_actor-id | uid, type, parent-uri-id, actor-id |
|
2021-06-14 04:53:37 -04:00
|
|
|
|
|
|
|
Foreign Keys
|
|
|
|
------------
|
|
|
|
|
|
|
|
| Field | Target Table | Target Field |
|
|
|
|
|-------|--------------|--------------|
|
|
|
|
| uid | [user](help/database/db_user) | uid |
|
|
|
|
| vid | [verb](help/database/db_verb) | id |
|
|
|
|
| actor-id | [contact](help/database/db_contact) | id |
|
|
|
|
| target-uri-id | [item-uri](help/database/db_item-uri) | id |
|
|
|
|
| parent-uri-id | [item-uri](help/database/db_item-uri) | id |
|
|
|
|
|
2021-06-13 16:33:50 -04:00
|
|
|
Return to [database documentation](help/database)
|