Create smart_mapping.sql