Advertisement
Guest User

UserSpice 4.3 Dev - Notifications SQL

a guest
Sep 2nd, 2017
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MySQL 0.68 KB | None | 0 0
  1. CREATE TABLE IF NOT EXISTS `notifications` (
  2.   `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  3.   `user_id` int(11) NOT NULL,
  4.   `message` mediumtext NOT NULL,
  5.   `is_read` tinyint(4) NOT NULL,
  6.   `date_created` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  7.   `date_read` datetime NOT NULL,
  8.   `last_updated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  9.   PRIMARY KEY (`id`)
  10. ) ENGINE=InnoDB  DEFAULT CHARSET=utf8 AUTO_INCREMENT=2;
  11.  
  12. INSERT INTO `notifications` (`id`, `user_id`, `message`, `is_read`, `date_created`, `date_read`, `last_updated`) VALUES
  13. (1, 1, 'This is a test notification.', 0, '2017-09-01 12:42:14', '2017-09-01 12:46:50', '2017-09-02 17:16:22');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement