mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-28 10:06:08 -05:00
21 lines
498 B
CoffeeScript
21 lines
498 B
CoffeeScript
|
c = require './../schemas'
|
||
|
|
||
|
LevelVersionSchema = c.object {required: ['original', 'majorVersion'], links: [{rel: 'db', href: '/db/level/{(original)}/version/{(majorVersion)}'}]},
|
||
|
original: c.objectId()
|
||
|
majorVersion:
|
||
|
type: 'integer'
|
||
|
minimum: 0
|
||
|
|
||
|
|
||
|
CodeLogSchema =
|
||
|
type: 'object'
|
||
|
properties:
|
||
|
sessionID: c.objectId()
|
||
|
level: LevelVersionSchema
|
||
|
levelSlug: {type:'string'}
|
||
|
userID: c.objectId()
|
||
|
log: {type:'string'}
|
||
|
created: c.date()
|
||
|
|
||
|
module.exports = CodeLogSchema
|