X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=doc%2Fdatabase%2Fdb_notification.md;h=e79778cb5b0cbf1a7a918a9927ca8f10269abfb4;hb=c9d829a679d716db7b63bdb81f9a1318bad51dc7;hp=4de2a53bf792991f0cb300b5e098d708923f8445;hpb=96f07c7288a0b9a2433ad66ee6cef21612d90264;p=friendica.git diff --git a/doc/database/db_notification.md b/doc/database/db_notification.md index 4de2a53bf7..e79778cb5b 100644 --- a/doc/database/db_notification.md +++ b/doc/database/db_notification.md @@ -11,25 +11,26 @@ Fields | 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 | | -| type | | tinyint unsigned | YES | | NULL | | +| type | | smallint unsigned | YES | | NULL | | | 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 | | -| seen | | boolean | YES | | 0 | | +| seen | Seen on the desktop | boolean | YES | | 0 | | +| dismissed | Dismissed via the API | boolean | YES | | 0 | | Indexes ------------ -| Name | Fields | -|------|---------| -| PRIMARY | id | +| Name | Fields | +| ----------------------------------- | ----------------------------------------------- | +| PRIMARY | id | | uid_vid_type_actor-id_target-uri-id | UNIQUE, uid, vid, type, actor-id, target-uri-id | -| vid | vid | -| actor-id | actor-id | -| target-uri-id | target-uri-id | -| parent-uri-id | parent-uri-id | -| seen_uid | seen, uid | +| vid | vid | +| actor-id | actor-id | +| target-uri-id | target-uri-id | +| parent-uri-id | parent-uri-id | +| seen_uid | seen, uid | Foreign Keys ------------