TonyGravagno / mysql-zod

Fork of erwinstone Generate Zod interfaces from MySQL database
MIT License
0 stars 0 forks source link

Add support for constraints #9

Open TonyGravagno opened 1 year ago

TonyGravagno commented 1 year ago

This is a big one. Specific constraints should be identified and processed in separate tickets.

One example caught my eye:

`to_time` time DEFAULT NULL CHECK (hour(`to_time`) < 24),

as type:

toTime: z.string().nullable(),