import mongoose, { Schema, model, ObjectId } from "mongoose";

const User = new Schema({
    email: {type: String, required: true, unique: true},
    name: {type: String, required: true},
    sname: {type: String, required: true},
    verify: {type: Boolean, default: false},
    password: {type: String, required: true},
    avatar: {type: String, default: '/avatar.svg'},
    role: {type: String, default: "USER"},
});

export default mongoose.model('User', User);