Check Constraints with Drizzle Schema: phone number length, and id minValue
I have created a phone number field within a table using Drizzle. I want to ensure that the table only accepts phone numbers that contain numbers and have a length of 10. I made a constraint based on responses to similar questions, but once I push the change and re-seed the table, it is clear the constraints are not being considered. While taking a break from this problem, I also determined I am struggling to set a minValue for the id field as well. My code is below as well as a picture of the data that gets seeded into the table. I made a constraint for the email as well, and that seemed to work.