From f676a11c53fa104d0fb9900adc24642357aea90f Mon Sep 17 00:00:00 2001 From: Liam <67254223+RealFascinated@users.noreply.github.com> Date: Sun, 13 Nov 2022 20:20:45 +0000 Subject: [PATCH] add user model --- src/models/UserModel.js | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 src/models/UserModel.js diff --git a/src/models/UserModel.js b/src/models/UserModel.js new file mode 100644 index 0000000..1778ea9 --- /dev/null +++ b/src/models/UserModel.js @@ -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);