mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-25 08:38:09 -05:00
17 lines
503 B
CoffeeScript
17 lines
503 B
CoffeeScript
c = require './../schemas'
|
|
|
|
CLASubmissionSchema = c.object {
|
|
title: 'CLA Submission'
|
|
description: 'Recording when a user signed the CLA.'
|
|
}
|
|
|
|
_.extend CLASubmissionSchema.properties,
|
|
user: c.objectId links: [{rel: 'extra', href: '/db/user/{($)}'}]
|
|
email: c.shortString({format: 'email'})
|
|
name: {type: 'string'}
|
|
githubUsername: c.shortString()
|
|
created: c.date title: 'Created', readOnly: true
|
|
|
|
c.extendBasicProperties CLASubmissionSchema, 'user.remark'
|
|
|
|
module.exports = CLASubmissionSchema
|