Has anyone used node sails using mysql as a DB ( https://github.com/balderdashy/sails-mysql )?
I am stuck in models, I cannot create a database structure. The data types that I need to use to create the schema do not work. I searched everywhere for documentation, but I can not find anything that could help me.
Sailing documentation is not completed yet, I think. http://sailsjs.org/#documentation/models
Can anybody help me in creating models. I would really appreciate it if you can help me create a simple schema below using sails-mysql. Thanks in advance!
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' } };
bwaaaaaa
source share