{"size": 1296, "ext": "js", "max_stars_repo_path": "server/seeders/20190422073424-first-patient.js", "max_stars_repo_name": "project21sg/project21", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "server/seeders/20190422073424-first-patient.js", "max_issues_repo_name": "project21sg/project21", "max_issues_repo_issues_event_min_datetime": "2020-09-04T17:35:45.000Z", "max_issues_repo_issues_event_max_datetime": "2021-07-20T01:48:30.000Z", "max_forks_repo_path": "server/seeders/20190422073424-first-patient.js", "max_forks_repo_name": "project21sg/project21", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 9, "max_forks_count": null, "avg_line_length": 24.9230769231, "max_line_length": 59, "alphanum_fraction": 0.5717592593}
"use strict";

module.exports = {
  up: (queryInterface, Sequelize) => {
    /*
      Add altering commands here.
      Return a promise to correctly handle asynchronicity.

      Example:
      return queryInterface.bulkInsert('People', [{
        name: 'John Doe',
        isBetaMember: false
      }], {});
    */
    return queryInterface.bulkInsert("patients", [
      {
        name: "Furst Payshent",
        nric: "S2051646A",
        gender: "Male",
        dateOfBirth: new Date().toUTCString(),
        contact: "81234123",
        address: "123 Lonely Planet",
        zipCode: "123123",
        occupation: "Patient",
        maritalStatus: "Single",
        knownHealthIssues: "Bronchitis",
        nokName: "Sharecand Payshent",
        nokRelation: "Mother",
        nokAddress: "321 Lonely Color",
        nokContact: "83214321",
        createdAt: new Date().toUTCString(),
        updatedAt: new Date().toUTCString()
      }
    ]);
  },

  down: (queryInterface, Sequelize) => {
    /*
      Add reverting commands here.
      Return a promise to correctly handle asynchronicity.

      Example:
      return queryInterface.bulkDelete('People', null, {});
    */
    return queryInterface.bulkDelete("patients", [
      {
        name: "Furst Payshent"
      }
    ]);
  }
};
