Express.js and MySQL model + validation
问题 I am developing application using Node.js and Express framework. I found many examples of modeling data using MongoDB, but my project requires SQL database. Could someone make simple explanation, what is the best way to make models based on MySQL? Also I am wondering how to provide later validation of those models. Maybe I should define validation attributes inside each of them? 回答1: There is no best way to make models based on MySQL. You could implement your own way to handle models, but