add user model

This commit is contained in:
Liam 2022-11-13 20:20:45 +00:00
parent 5dec695954
commit f676a11c53

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);