Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Corentin Mors
avis-de-template-server
Commits
d184decf
Commit
d184decf
authored
Dec 06, 2018
by
Xysto
💬
Browse files
add email to user schema
parent
7c99d311
Changes
1
Hide whitespace changes
Inline
Side-by-side
models/users.js
View file @
d184decf
...
...
@@ -12,6 +12,11 @@ const userSchema = new Schema({
type
:
String
,
required
:
true
},
email
:
{
type
:
String
,
required
:
true
,
unique
:
true
},
role
:
String
,
phone
:
{
type
:
String
,
...
...
@@ -25,4 +30,4 @@ const userSchema = new Schema({
resources
:
[{
type
:
ObjectId
,
ref
:
'
Resource
'
}]
});
mongoose
.
model
(
'
Users
'
,
userSchema
);
\ No newline at end of file
mongoose
.
model
(
'
Users
'
,
userSchema
);
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment