add user model
This commit is contained in:
parent
5dec695954
commit
f676a11c53
9
src/models/UserModel.js
Normal file
9
src/models/UserModel.js
Normal file
@ -0,0 +1,9 @@
|
||||
import mongoose, { Schema } from "mongoose";
|
||||
|
||||
const schema = new Schema({
|
||||
email: String,
|
||||
username: String,
|
||||
password: String,
|
||||
});
|
||||
|
||||
export default mongoose.models.User || mongoose.model("User", schema);
|
Reference in New Issue
Block a user