mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-12-17 19:12:33 -05:00
41 lines
1.4 KiB
CoffeeScript
41 lines
1.4 KiB
CoffeeScript
c = require './../schemas'
|
|
|
|
# Deprecated. TODO: Remove
|
|
|
|
UserRemarkSchema = c.object {
|
|
title: 'Remark'
|
|
description: 'Remarks on a user, point of contact, tasks.'
|
|
}
|
|
|
|
_.extend UserRemarkSchema.properties,
|
|
user: c.objectId links: [{rel: 'extra', href: '/db/user/{($)}'}]
|
|
contact: c.objectId links: [{rel: 'extra', href: '/db/user/{($)}'}]
|
|
created: c.date title: 'Created', readOnly: true
|
|
history: c.array {title: 'History', description: 'Records of our interactions with the user.'},
|
|
c.object {title: 'Record'}, {date: c.date(title: 'Date'), content: {title: 'Content', type: 'string', format: 'markdown'}}
|
|
tasks: c.array {title: 'Tasks', description: 'Task entries: when to email the contact about something.'},
|
|
c.object {title: 'Task'},
|
|
date: c.date
|
|
title: 'Date'
|
|
action:
|
|
title: 'Action'
|
|
type: 'string'
|
|
status:
|
|
title: 'Status'
|
|
description: 'The current status of the task'
|
|
type: 'string'
|
|
enum: ['Not started', 'In progress', 'Completed']
|
|
notes:
|
|
title: 'Notes'
|
|
description: 'Notes about the task in progress'
|
|
type: 'string'
|
|
format: 'markdown'
|
|
|
|
|
|
# denormalization
|
|
userName: {title: 'Player Name', type: 'string'}
|
|
contactName: {title: 'Contact Name', type: 'string'} # Not actually our usernames
|
|
|
|
c.extendBasicProperties UserRemarkSchema, 'user.remark'
|
|
|
|
module.exports = UserRemarkSchema
|