
var mongoose    =   require("mongoose");
mongoose.connect('mongodb://localhost:27017/stw6');

// create instance of Schema
var mongoSchema =   mongoose.Schema;
// create schema
var userSchema  = {
    "user" : String,
    "pass" : String
};

var noteSchema = {
    "artist" : String,
    "title" : String,
    "file": String
};

var playlistSchema = {
    noteSquema : {}
};

// create model if not exists.
module.exports.User = mongoose.model('userLogin',userSchema);
module.exports.Playlist = mongoose.model('playlist',playlistSchema);
module.exports.Notes = mongoose.model('notes',noteSchema)




var mongoose    =   require("mongoose");
//mongoose.connect('mongodb://localhost:27017/stw6');

// create instance of Schema
var mongoSchema =   mongoose.Schema;
// create schema
var userSchema  = {
    "user" : String,
    "pass" : String
};

var noteSchema = {
    "artist" : String,
    "title" : String,
    "file": String
};

var playlistSchema = {
    noteSquema : {}
};

// create model if not exists.
module.exports.User = mongoose.model('userLogin',userSchema);
module.exports.Playlist = mongoose.model('playlist',playlistSchema);
module.exports.Notes = mongoose.model('notes',noteSchema)



Comment out Mongo connection for now
Comment out Mongo connection for now
