{"size": 1121, "ext": "js", "max_stars_repo_path": "scripts/user.seed.js", "max_stars_repo_name": "KarrynS/Mend", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "scripts/user.seed.js", "max_issues_repo_name": "KarrynS/Mend", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "scripts/user.seed.js", "max_forks_repo_name": "KarrynS/Mend", "max_forks_repo_forks_event_min_datetime": "2021-04-27T00:48:58.000Z", "max_forks_repo_forks_event_max_datetime": "2021-04-27T00:48:58.000Z"}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": 1, "avg_line_length": 21.1509433962, "max_line_length": 65, "alphanum_fraction": 0.4603033006}
var seeder = require('mongoose-seed');
 
// Connect to MongoDB via Mongoose
seeder.connect('mongodb://localhost/mend', function() {
 
  // Load Mongoose models
  seeder.loadModels([
    '../models/user.js',
    '../models/symptom.js'
  ]);
 
  // Clear specified collections
  seeder.clearModels(['user.js', 'symptom.js'], function() {
 
    // Callback to populate DB once collections have been cleared
    seeder.populateModels(data, function() {
      seeder.disconnect();
    });
 
  });
});
 
// Data array containing seed data - documents organized by Model
var data = [
    {
        'model': 'user.js',
        'documents': [
            {
                'name': 'Sam',
                'email': 'sam@gmail.com',
                'username': 'sam',
                'password': '123456',
                'birthday': "01/02/2003",
                'symptoms': [

                ]
            },
            
        ]
    },
    {
        'model': 'symptoms.js',
        'documents': [
            {
                'soreEye': true,
                'redEye': true,
                
            }
        ]
    }
];

