//const mongoose = require("mongoose");
const Schema = mongoose.Schema;

const COLLECTION_NAME = "User";

const schemaUser = new Schema({
    name: { type: String, required: true },
    email: { type: String, required: true },
    password: { type: String, required: true },
    id : {type: String, required: true },   
    telephones: [{
        number: Number,
        ddd: Number
    }],
    createDate: { type: Date, default: Date },
    lastUpdate: { type: Date, default: Date }   
});

let model = mongoose.model(COLLECTION_NAME, schemaUser);

module.exports = model;
const mongoose = require("mongoose");
const Schema = mongoose.Schema;

const COLLECTION_NAME = "User";

const schemaUser = new Schema({
    name: { type: String, required: true },
    email: { type: String, required: true },
    password: { type: String, required: true },
    id : {type: String, required: true },   
    telephones: [{
        number: Number,
        ddd: Number
    }],
    createDate: { type: Date, default: Date },
    lastUpdate: { type: Date, default: Date }   
});

let model = mongoose.model(COLLECTION_NAME, schemaUser);

module.exports = model;
Revert "teste ci broke code"
Revert "teste ci broke code"

This reverts commit 5558e9d542a1ff4424483785cc57ac8c009f4872.
