Skip to content

Instantly share code, notes, and snippets.

@avwave
Created February 10, 2011 03:13
Show Gist options
  • Select an option

  • Save avwave/819856 to your computer and use it in GitHub Desktop.

Select an option

Save avwave/819856 to your computer and use it in GitHub Desktop.
CREATE TABLE `tbl_activityfeed` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`activitytype` varchar(10) DEFAULT NULL,
`userid` int(11) DEFAULT NULL,
`commentpageid` int(11) DEFAULT NULL,
`goal_id` int(11) DEFAULT NULL,
`activity_date` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
)
activity_types:
USERREG show "username lit up his life!" (uses userid for profile link)
COMMENT show "username has commented on commentpage" (uses commentpageid for comment link)
ADDTODO show "username added goal" (uses goal_id for pagelink)
AWARD show "username completed goal" (uses goal_id for pagelink)
activity_date should show fuzzy time between system time and time log was created
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment