const mongoose = require("mongoose");

const UserSchema = new mongoose.Schema({
    login:{
        type:String,
        required:true,
        unique:true
    },
    email:{
        type:String,
        required:true,
        unique:true
    },password:{
        type:String,
        required:true
    },
    blogTitle:{
        type:String
    }
    
},
{ timestamps: true }
);

module.exports = mongoose.model("User", UserSchema);