Skip to content

Commit

Permalink
changed user schema
Browse files Browse the repository at this point in the history
  • Loading branch information
jordan-skophammer committed Jul 9, 2018
1 parent 58f408b commit df8d5e9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 0 additions & 1 deletion client/src/pages/Home/Home.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ class Home extends Component {
<div className="row">
<button className="btn btn-danger btn-lg">Restaurant Roulette</button>
</div>

</div>
</div>
)}
Expand Down
6 changes: 4 additions & 2 deletions models/user.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@ const mongoose = require("mongoose");
const Schema = mongoose.Schema;

const userSchema = new Schema({
userName: { type: String, required: true },
password: { type: Date, required: true},
userName: {type: String, required: true },
password: {type: Date, required: true},
firstName:{type: String, required: true},
lastName:{type: String, required: true},
zipCode: {type: Number, min: 5, max:5, required: true}
});

Expand Down

0 comments on commit df8d5e9

Please sign in to comment.