something is working
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
const mongoose = require("mongoose");
|
||||
|
||||
const User = mongoose.model(
|
||||
"User",
|
||||
new mongoose.Schema({
|
||||
username: String,
|
||||
email: String,
|
||||
password: String,
|
||||
roles: [
|
||||
{
|
||||
type: mongoose.Schema.Types.ObjectId,
|
||||
ref: "Role"
|
||||
}
|
||||
]
|
||||
})
|
||||
);
|
||||
|
||||
module.exports = User;
|
||||
Reference in New Issue
Block a user