"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var mongoose_1 = require("mongoose");
var cSchemaDef = {
    surname: { type: String, list: {} },
    forename: { type: String, list: true },
    weight: { type: Number, form: { label: 'Weight (lbs)' } },
    hairColour: { type: String, enum: ['Black', 'Brown', 'Blonde', 'Bald'], required: true, form: { placeHolder: 'Select hair colour (required)', directive: 'fng-ui-select' } }, // Required combo has appropriate styling
    dateOfBirth: Date,
    accepted: Boolean,
    passwordHash: { type: String, secure: true, forms: { hidden: true } },
    interview: {
        score: { type: Number },
        date: { type: Date },
        interviewHash: { type: String, secure: true, forms: { hidden: true } }
    }
};
var CSchema = new mongoose_1.Schema(cSchemaDef);
var C;
try {
    C = (0, mongoose_1.model)('c_subdoc_example');
}
catch (e) {
    C = (0, mongoose_1.model)('c_subdoc_example', CSchema);
}
module.exports = {
    model: C
};
//# sourceMappingURL=c_subdoc_example.js.map