#use property_settings_db_v2;
#INSERT INTO properties
#(
#    entity_type,
#    entity_value,
#    property_type,
#    property_value,
#    is_active
#)
#SELECT
#    e.name as entity_type,
#    CONCAT(prop.client_id, "_", prop.entity_id) AS entity_value, 
#    p.name AS property_type,
#    prop.property_value,
#    prop.is_active 
#FROM propertiesV1 prop, 
#     property_types p, entity_types e
#WHERE 
#    prop.property_type_id = p.id AND prop.entity_type_id = e.id;
