This commit is contained in:
t510599 committed 2018-10-28 16:44:10 +08:00
commit ca1dbee299
20 files changed
+1898

No files matched your search

+16
View File
@@ -0,0 +1,16 @@
var mongoose = require('mongoose');
mongoose.Promise = require('bluebird');
mongoose.connect('mongodb://localhost/210-seats');
var Schema = mongoose.Schema;
var user = new Schema({
username: String,
password: String,
no: Number,
direction: String,
steps: String
});
var users = mongoose.model('users', user);
module.exports = users;