Run model/controller

This commit is contained in:
Ben Ramey
2014-03-08 20:57:53 -06:00
parent c1cd45dd55
commit a0710d3c71
2 changed files with 57 additions and 0 deletions

27
api/models/Run.js Normal file
View File

@@ -0,0 +1,27 @@
/**
* Run
*
* @module :: Model
* @description :: A short summary of how this model works and what it represents.
* @docs :: http://sailsjs.org/#!documentation/models
*/
module.exports = {
attributes: {
creatorName: {
type: 'string',
required: true
},
creatorEmail: {
type: 'email',
required: true
},
groupEmails: 'String',
menuUrl: {
type: 'url'
},
restaurant: 'string'
}
};