
Karl - 2015-10-30 23:42:32 -
In reply to message 1 from Gerry Danen
on the fly create this tables and add two fields to your users table (not tested)
CREATE TABLE IF NOT EXISTS `notifications`
(
`actor_id` int(11) unsigned NOT NULL,
`subject_id` int(11) unsigned NOT NULL,
`object_id` int(11) unsigned NOT NULL,
`type_id` int(11) unsigned NOT NULL,
`status` varchar(15) COLLATE utf8_unicode_ci NOT NULL, -- seen | unseen
`count` int(11) unsigned NOT NULL,
`created_date` date DEFAULT NULL,
`updated_date` date DEFAULT NULL,
)
CREATE TABLE IF NOT EXISTS `status`
(
`actor_id` int(11) unsigned NOT NULL;
}
add this varchar fields to your users table: actor , subject