How do I set a max field length and/or required for a database field?

When defining data objects and their properties I’m used to seeing a max length and a required Y/N option that is enforced by the UI/UX. How do I achieve the same thing in Bubble?