mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-28 10:06:08 -05:00
18 lines
508 B
CoffeeScript
18 lines
508 B
CoffeeScript
c = require './../schemas'
|
|
|
|
ClanSchema = c.object {title: 'Clan', required: ['name', 'type']}
|
|
c.extendNamedProperties ClanSchema # name first
|
|
|
|
_.extend ClanSchema.properties,
|
|
description: {type: 'string'}
|
|
members: c.array {title: 'Members'}, c.objectId()
|
|
ownerID: c.objectId()
|
|
type: {type: 'string', 'enum': ['public']}
|
|
|
|
c.extendBasicProperties ClanSchema, 'Clan'
|
|
|
|
# Do we need these?
|
|
# c.extendSearchableProperties ClanSchema
|
|
# c.extendPermissionsProperties ClanSchema
|
|
|
|
module.exports = ClanSchema
|