From 5e93fd392036576491185c6647bd2a5c9e25e9e0 Mon Sep 17 00:00:00 2001 From: Haris Razis Date: Fri, 18 Dec 2020 17:26:31 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9E=95=20Add=20User=20model?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/models/User.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/server/models/User.js b/server/models/User.js index 1eb4849..83ed3d2 100644 --- a/server/models/User.js +++ b/server/models/User.js @@ -1,2 +1,9 @@ const mongoose = require('mongoose'); -const {Schema} = mongoose; \ No newline at end of file +const {Schema} = mongoose; + +const userSchema = new Schema({ + username: String, + password: String +}); + +mongoose.model('User', userSchema); \ No newline at end of file