'use strict';

/**
 * Module dependencies.
 */
var mongoose = require('mongoose'),
	Schema = mongoose.Schema;

/**
 * Eye Schema
 */
var EyeSchema = new Schema({
    cylinder: {
        type: Number
    },
    sphere: {
        type: Number
    },
    axis: {
        type: Number
    },
    position: {
        type: String
    }
});

/**
 * Prescription Schema
 */
var PrescriptionSchema = new Schema({
	eyes: [EyeSchema],
    number:{
        type: Number
    },
	user: {
		type: Schema.ObjectId,
		ref: 'User'
	}
});

mongoose.model('Prescription', PrescriptionSchema);
@@ -459,16 +459,137 @@
 %0A    %7D,%0A
+    frame:%7B%0A        type: String,%0A        default: %22%22%0A    %7D,%0A    lens:%7B%0A        type: String,%0A        default: %22%22%0A    %7D,%0A
 %09user: %7B

Add frame and lens fields