'use strict';

const MODEL_NAME = 'User';
const mongoose = require('mongoose');
mongoose.connect('localhost', 'instagram');
const skeconston = require('./user_schema');
const Schema = mongoose.Schema;
const schema = new Schema(skeconston);
const Model = mongoose.model(MODEL_NAME, schema);

// const ValidateEmail = require('./email_validate');
// const ValidatePassword = require('./password_validate');

// Model.schema.path('email').validate(ValidateEmail.validator, ValidateEmail.message);

//var _model = new Model();

//_model.email = 'tesssssst';
//_model.senha = 'SENHAA';
//console.log(_model.validateSync());

module.exports = Model;

@@ -33,23 +33,20 @@
 = 'User'
-;%0Aconst
+%0A%09%09,
  mongoos
@@ -72,59 +72,12 @@
 se')
-;%0Amongoose.connect('localhost', 'instagram');%0Aconst
+%0A%09%09,
  ske
@@ -110,23 +110,20 @@
 schema')
-;%0Aconst
+%0A%09%09,
  Schema 
@@ -139,23 +139,20 @@
 e.Schema
-;%0Aconst
+%0A%09%09,
  schema 
@@ -179,15 +179,12 @@
 ton)
-;%0Aconst
+%0A%09%09,
  Mod
@@ -226,337 +226,11 @@
 ema)
-;%0A%0A// const ValidateEmail = require('./email_validate');%0A// const ValidatePassword = require('./password_validate');%0A%0A// Model.schema.path('email').validate(ValidateEmail.validator, ValidateEmail.message);%0A%0A//var _model = new Model();%0A%0A//_model.email = 'tesssssst';%0A//_model.senha = 'SENHAA';%0A//console.log(_model.validateSync())
+%0A%09%09
 ;%0A%0Am

remove coments and add coma firth