dwyl / abase

:house: A (solid) Base for your Web Application.
9 stars 0 forks source link

Joi sequelize food for thought #49

Open jrans opened 7 years ago

jrans commented 7 years ago

https://github.com/mibrito/joi-sequelize

covers joi and postgres and could be used for inspiration?

nelsonic commented 7 years ago

@jrans this is attempting to solve the problem from the other end. (defining the schema in sequelize and then validating it in Joi) Yes, use it as inspiration. But I would actually like to approach the problem from the front-end as in how are the people going to interact with the data. What HTML field types are we going to use and how do they map to the database? In the first instance if we just create a model with a handful of fields we can make more focussed progress...