{"size": 588, "ext": "js", "max_stars_repo_path": "backend/db/seeds/010-user_notifications.js", "max_stars_repo_name": "BloomTech-Labs/labs10-discussion-board", "max_stars_repo_stars_event_min_datetime": "2019-02-15T15:52:17.000Z", "max_stars_repo_stars_event_max_datetime": "2020-01-10T19:56:45.000Z", "max_issues_repo_path": "backend/db/seeds/010-user_notifications.js", "max_issues_repo_name": "jamespagedev/labs10-discussion-board", "max_issues_repo_issues_event_min_datetime": "2019-02-14T19:39:37.000Z", "max_issues_repo_issues_event_max_datetime": "2021-10-05T20:21:16.000Z", "max_forks_repo_path": "backend/db/seeds/010-user_notifications.js", "max_forks_repo_name": "BloomTech-Labs/labs10-discussion-board", "max_forks_repo_forks_event_min_datetime": "2019-04-07T12:01:15.000Z", "max_forks_repo_forks_event_max_datetime": "2019-04-07T12:01:15.000Z"}
{"max_stars_count": 3, "max_issues_count": 21, "max_forks_count": 1, "avg_line_length": 26.7272727273, "max_line_length": 93, "alphanum_fraction": 0.518707483}
exports.seed = function(knex, Promise) {
  // Deletes ALL existing entries
  return knex('user_notifications').del()
    .then(function () {
      // Inserts seed entries
      return knex('user_notifications').insert([
        {
          user_id: 502,
          category_id: 4,
          discussion_id: 17,
          created_at: Date.parse(new Date(Date.now())),
        },
        {
          user_id: 502,
          discussion_id: 17,
          post_id: 34,
          created_at: Date.parse(new Date(Date.now() - (1000 * 60 * 60 * 5))), // 5 hours ago
        },
      ]);
    });
};
