text: /**
   * TrainingRequest.js
   *
   * @description :: TODO: You might write a short summary of how this model works and what it represents here.
   * @docs        :: http://sailsjs.org/documentation/concepts/models-and-orm/models
   */
  
  module.exports = {
  
    attributes: {
      id: {
        type: 'string',
        primaryKey: true
      },
      status: {
        type: 'string',
        required: true,
        enum: ['pending', 'in-progress', 'in-error', 'complete'],
        defaultsTo: 'pending'
      },
      project: {
        model: 'Project',
        required: true
      },
      requestedBy: {
        model: 'User',
        required: true
      }
    }
  };
  