joi-sql
joi-sql copied to clipboard
enums should be a string type?
Currently joi-sql outputs enums as any() type.
https://github.com/TehShrike/joi-sql/blob/master/build.js#L68.
As far as I can tell, MySQL enum values can only be a string. https://dev.mysql.com/doc/refman/5.7/en/enum.html#enum-literals)
I've switched yup-sql to output enums as a string type.
https://github.com/daytonlowell/yup-sql/blob/master/build.js#L75
Thoughts?
Makes sense to me 👍