diff --git a/templates/ascent-react/api/models/Waitlist.js b/templates/ascent-react/api/models/Waitlist.js new file mode 100644 index 0000000..b8e4b44 --- /dev/null +++ b/templates/ascent-react/api/models/Waitlist.js @@ -0,0 +1,18 @@ +/** + * Waitlist.js + * + * @description :: A model definition represents a database table/collection. + * @docs :: https://sailsjs.com/docs/concepts/models-and-orm/models + */ + +module.exports = { + attributes: { + email: { + type: 'string', + required: true, + unique: true, + isEmail: true, + maxLength: 200 + } + } +}