Error with default value with postgreSQL

When creating VARCHAR columns in PostgreSQL with a default value (for example, column_1 with a length of 1 and a default value of ‘N’), the error “Value too long for character varying 1” occurs. This happens because the default values ​​are read in model.php; for that column, the value becomes 'N'::varchar. When attempting to save a new record (while omitting the value for column_1), the data array contains the value 'N'::varchar, triggering the error.