/**
* Equation.js
*
* @description :: An equation with input type, equation in source format,
* 				   and generated components.
* @docs        :: http://sailsjs.org/#!documentation/models
*/

module.exports = {

  attributes: {
  	mathType: {
    	type: 'string',
    	required: true,
    	enum: ['AsciiMath', 'MathML', 'LaTeX']
    },
    math: {
    	type: 'string',
    	required: true
    },
	equationName: 'string',
    qualityScore: 'integer',
	submittedBy: {
		model: 'user'
    },
    components: {
    	collection: 'component',
    	via: 'equation'
    },
    feedback: {
    	collection: 'feedback',
    	via: 'equation'
    }
  }
};


@@ -319,10 +319,8 @@
 ', '
-La
 TeX'

Fix mathtype enum for latex