Create field type constraints properly