<commit_before>'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);<commit_msg>Add frame and lens fields<commit_after>'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
    },
    frame:{
        type: String,
        default: ""
    },
    lens:{
        type: String,
        default: ""
    },
	user: {
		type: Schema.ObjectId,
		ref: 'User'
	}
});

mongoose.model('Prescription', PrescriptionSchema);
{'fraction_non_alphanumeric': 0.1485371342835709, 'fraction_numerical': 0.0, 'mean_word_length': 2.168646080760095, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5310731', 'n_tokens_mistral': 431, 'n_tokens_neox': 434, 'n_words': 101}