{"size": 530, "ext": "js", "max_stars_repo_path": "models/user.js", "max_stars_repo_name": "hennihaus/shopbackend", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "models/user.js", "max_issues_repo_name": "hennihaus/shopbackend", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "models/user.js", "max_forks_repo_name": "hennihaus/shopbackend", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 26.5, "max_line_length": 52, "alphanum_fraction": 0.7113207547}
let mongoose = require('mongoose');


let userSchema = new mongoose.Schema({
    firstname:{type:String,required:true},
    lastname:{type:String,required:true},
    street:{type:String,required:true},
    postcode:{type:String,required:true},
    city:{type:String,required:true},
    country:{type:String,required:true},
    phone:{type:String,required:true},
    email:{type:String,required:true},
    password:{type:String,required:true}
});

const userModel = mongoose.model('user',userSchema);

module.exports = userModel;

