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