Skip to content
Snippets Groups Projects
Commit 9c6b0394 authored by Zaman, Orangzaib (UG - Computer Science)'s avatar Zaman, Orangzaib (UG - Computer Science)
Browse files

Created User model in mongoose to use for routes

parent 533282b7
No related branches found
No related tags found
2 merge requests!8CI/CD,!3Users service
CONNECTION_URL=MONGO_URL_HERE
SECRET_KEY=SECRET_KEY_HERE
\ No newline at end of file
import mongoose from 'mongoose';
const userSchema = mongoose.Schema({
name: { type: String, required: true },
email: { type: String, required: true },
password: { type: String, required: true },
id: { type: String },
})
var User = mongoose.model('User', userSchema);
export default User;
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment