-
Notifications
You must be signed in to change notification settings - Fork 111
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #63 from Prateek579/add-profile
Thank you @Prateek579 for your contribution
- Loading branch information
Showing
9 changed files
with
1,502 additions
and
973 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,16 @@ | ||
const mongoose = require('mongoose'); | ||
const mongoose = require("mongoose"); | ||
|
||
const querySchema = new mongoose.Schema({ | ||
const querySchema = new mongoose.Schema( | ||
{ | ||
name: String, | ||
email: String, | ||
subject: String, | ||
message: String | ||
}, { timestamps: true }); | ||
message: String, | ||
approved: { type: Boolean, default: false }, | ||
}, | ||
{ timestamps: true } | ||
); | ||
|
||
const Query = mongoose.model('Query', querySchema); | ||
const Query = mongoose.model("Query", querySchema); | ||
|
||
module.exports = Query; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,37 @@ | ||
const mongoose = require('mongoose'); | ||
|
||
const mongoose = require("mongoose"); | ||
|
||
const userSchema = new mongoose.Schema({ | ||
// username: { | ||
// type: String, | ||
// unique: true, | ||
// required: true, | ||
// }, | ||
email: String, | ||
password: String, | ||
fullName: String, | ||
address: String, | ||
Mobile: Number, | ||
dob: String, | ||
gender: { | ||
type: String, | ||
enum: ['male', 'female', 'other'], | ||
// username: { | ||
// type: String, | ||
// unique: true, | ||
// required: true, | ||
// }, | ||
email: String, | ||
password: String, | ||
fullName: String, | ||
address: String, | ||
Mobile: Number, | ||
dob: String, | ||
gender: { | ||
type: String, | ||
enum: ["male", "female", "other"], | ||
}, | ||
flatNo: { type: String }, | ||
addressLine1: { type: String }, | ||
addressLine2: { type: String }, | ||
city: { type: String }, | ||
state: { type: String }, | ||
zip: { type: String }, | ||
foodInventory: [ | ||
{ | ||
foodItem: { type: String }, | ||
quantity: { type: Number }, | ||
}, | ||
flatNo: { type: String }, | ||
addressLine1: { type: String }, | ||
addressLine2: { type: String }, | ||
city: { type: String }, | ||
state: { type: String }, | ||
zip: { type: String }, | ||
foodInventory: [ | ||
{ | ||
foodItem: { type: String }, | ||
quantity: { type: Number } | ||
} | ||
] | ||
// googleId: String, | ||
// profile: String, | ||
], | ||
approved: { type: Boolean, default: false }, | ||
// googleId: String, | ||
// profile: String, | ||
}); | ||
|
||
|
||
const User = new mongoose.model("User", userSchema); | ||
module.exports=User | ||
module.exports = User; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.