select column_type, field_identifier, field_name
from ec_custom_product_fields
where column_type in ('date','integer')
and active_p='t'
select field_identifier
from ec_custom_product_fields
where active_p='t'
select user_class_id from ec_user_classes