title: Declare and use an enum in Node.js with Geddy
body: <p>For my model I want to have an enumeration as a datatype, but I don't know how to do that. I couldn't find anything helpful in the documentation from geddyjs.org or with google.</p>
  
  <p>A model could be defined like this:</p>
  
  <pre><code>var fooModel= function () {
    this.defineProperties({
      fooField: {type: 'datatype'},
      .............................
     });
  }
  </code></pre>
  
  <p>Where and how should I define the enumeration and how do I use it? </p>