mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-25 16:47:58 -05:00
18 lines
503 B
CoffeeScript
18 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
|