How to reduce the size of an integer field to 4 numbers?
The length of the field by default if restricted only by the specifications of SQL database. However, you can set the field validation in the page schema using the developemnt tools. Here is the guide. There you can find the example of phone number validation format.