mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-02-17 17:02:18 -05:00
Clan lists sorted by member count, then created date. Public clans lists limited to 100. Member lists sorted by slug.
17 lines
476 B
CoffeeScript
17 lines
476 B
CoffeeScript
c = require './../schemas'
|
|
|
|
ClanSchema = c.object {title: 'Clan', required: ['name', 'type']}
|
|
c.extendNamedProperties ClanSchema # name first
|
|
|
|
_.extend ClanSchema.properties,
|
|
type: {type: 'string', 'enum': ['public']}
|
|
ownerID: c.objectId()
|
|
members: c.array {title: 'Members'}, c.objectId()
|
|
|
|
c.extendBasicProperties ClanSchema, 'Clan'
|
|
|
|
# Do we need these?
|
|
# c.extendSearchableProperties ClanSchema
|
|
# c.extendPermissionsProperties ClanSchema
|
|
|
|
module.exports = ClanSchema
|