primer commit, server comença a funcionar

This commit is contained in:
nau
2016-07-16 17:54:15 +02:00
parent 9e3827c907
commit 15f01dc4a9
779 changed files with 154175 additions and 0 deletions

10
models/thoughtModel.js Normal file
View File

@@ -0,0 +1,10 @@
var mongoose = require('mongoose'),
Schema = mongoose.Schema;
var thoughtSchema = new Schema({
time: { type: String },
content: { type: String },
authorname: { type: String }
})
module.exports = mongoose.model('thoughtModel', thoughtSchema);

22
models/userModel.js Normal file
View File

@@ -0,0 +1,22 @@
var mongoose = require('mongoose'),
Schema = mongoose.Schema;
/*var tvshowSchema = new Schema({
title: { type: String },
year: { type: Number },
country: { type: String },
poster: { type: String },
seasons: { type: Number },
genre: { type: String, enum:
['Drama', 'Fantasy', 'Sci-Fi', 'Thriller', 'Comedy']
},
summary: { type: String }
});*/
var userSchema = new Schema({
username: { type: String },
description: { type: String },
icon: { type: String },
mail: { type: String }
})
module.exports = mongoose.model('userModel', userSchema);