title: sails-mysql schema datatypes
body: <p>anyone used node's sails framework using mysql as DB (<a href="https://github.com/balderdashy/sails-mysql" rel="noreferrer">https://github.com/balderdashy/sails-mysql</a>)?</p>
  
  <p>I am stuck in models, I can't create the database structure.The datatypes that I need to use to create the schema doesn't work. I've searched everywhere for some documentation, but i can't find anything that can help me. </p>
  
  <p>Sail's documentation is not yet complete, i guess.  <a href="http://sailsjs.org/#documentation/models" rel="noreferrer">http://sailsjs.org/#documentation/models</a></p>
  
  <p>Can anyone please help me in creating models. I would highly appreciate if you can help me create the simple schema below using sails-mysql. Thanks in advance!</p>
  
  <pre><code>module.exports = {
  
      attributes: {
          id: 'FLOAT',
          social_network: {
                  type: 'ENUM',
                      defaultsTo : {'Facebook', 'twitter', 'vk','weibo'}
  
                  },
          country: 'STRING',
          message: 'TEXT',
          link: 'STRING',
          comments: 'TEXT',
          userid: 'INT',
          username: 'STRING',
          image_link: 'STRING',
          longitude: 'FLOAT',
          latitude: 'FLOAT',
          location_name: 'STRING',
          updated_at: 'TIMESTAMP',
          created_at: 'TIMESTAMP'
      }
  };
  </code></pre>