"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.userSchema = void 0;
var mongoose_1 = require("mongoose");
exports.userSchema = new mongoose_1.Schema({
    name: {
        type: String,
        required: [true, '']
    },
    email: {
        type: String,
        unique: true,
        required: [true, '']
    },
    password: {
        type: String,
        minlength: [8, 'Password too short'],
        required: [true, ''],
        select: false
    }
});
