1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-14 10:52:41 +01:00
phorge-phorge/resources/sql/patches/138.notification.sql

9 lines
372 B
MySQL
Raw Normal View History

CREATE TABLE {$NAMESPACE}_feed.feed_storynotification (
userPHID varchar(64) not null collate utf8_bin,
primaryObjectPHID varchar(64) not null collate utf8_bin,
chronologicalKey BIGINT UNSIGNED NOT NULL,
hasViewed boolean not null,
UNIQUE KEY (userPHID, chronologicalKey),
KEY (userPHID, hasViewed, primaryObjectPHID)
) ENGINE=InnoDB, COLLATE utf8_general_ci;