You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

16 lines
354 B

var mongoose = require('../tools/mongodb');
var danmakuSchema = new mongoose.Schema({
player: {
type: [String], index: true
},
author: String,
time: Number,
text: String,
color: String,
type: String,
ip: String,
referer: String
});
var danmaku = mongoose.model('dan', danmakuSchema);
module.exports = danmaku;