Models & Routes

This commit is contained in:
ShiharaD
2025-09-01 15:33:46 +05:30
parent 8c6da127ef
commit 47fac5148e
5 changed files with 242 additions and 10 deletions

8
models/User.js Normal file
View File

@ -0,0 +1,8 @@
const mongoose = require('mongoose');
const userSchema = new mongoose.Schema({
username: { type: String, unique: true },
password: String
});
module.exports = mongoose.model('User', userSchema);