Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var UserSchema = new mongoose.Schema({
- username: {type: String, unique: true, required: true},
- name: {type: String, required: true},
- email: {type: String, unique: true, required: true},
- password: String,
- studio: {type: String, required: true},
- comments: [
- {
- quantity: String,
- received: { type: Date, default: Date.now },
- collected: { type: String, default: "At Reception" }
- }
- ],
- isAdmin: {type: Boolean, default: false}
- });
- <% for(var i=0; i < users.length; i++) { %>
- <tr>
- <td><%= users[i].studio %></td>
- <td><%= users[i].name %></td>
- <td><%= users[i].email %></td>
- <td><%= users[i].comments %></td>
- <% } %>
- { received: 2017-12-13T08:51:14.914Z, collected: 'At Reception', quantity: '5', _id: 5a30ea0253432220138b4b89 }
Add Comment
Please, Sign In to add comment