mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-24 16:17:57 -05:00
13 lines
400 B
CoffeeScript
13 lines
400 B
CoffeeScript
|
mongoose = require 'mongoose'
|
||
|
|
||
|
# Auto-incrementing number _id
|
||
|
# http://docs.mongodb.org/manual/tutorial/create-an-auto-incrementing-field/#auto-increment-optimistic-loop
|
||
|
# TODO: Why strict:false?
|
||
|
|
||
|
AnalyticsStringSchema = new mongoose.Schema({
|
||
|
_id: {type: Number}
|
||
|
v: {type: String}
|
||
|
}, {strict: false})
|
||
|
|
||
|
module.exports = AnalyticsString = mongoose.model('analytics.string', AnalyticsStringSchema)
|