-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdb.js
More file actions
27 lines (24 loc) · 683 Bytes
/
db.js
File metadata and controls
27 lines (24 loc) · 683 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/**
* Created by Suhan on 07/06/2017.
*/
/**
* Created by Suhan on 25/03/2017.
*/
var mongoose = require('mongoose');
// my schema goes here!
const Boom = new mongoose.Schema({
foo: String,
});
const Bonus = new mongoose.Schema({
user: String,
data: String
});
//URLSlugs('<user>');
// Link.plugin(URLSlugs('title'));
mongoose.model('Boom', Boom);
mongoose.model('Bonus', Bonus);
// mongoose.model('Link', Link);
mongoose.Promise = global.Promise;
//mongoose.connect('mongodb://localhost/funds');
mongoose.connect('mongodb://suhan1996:112496@ds241895.mlab.com:41895/time');
//mongoose.connect('mongodb://suhan1996:112496@ds115124.mlab.com:15124/heroku_dh8g5j5z');