<?xml version="1.0" encoding="UTF-8"?>
<bm:model xmlns:ns2="leaf.database.local.oracle" xmlns:bm="http://www.leaf-framework.org/schema/bm">
    <bm:operations>
        <bm:operation name="update">
            <bm:update-sql><![CDATA[
                BEGIN
                    cus_app_customer_pkg.app_upload_image(
                        p_record_id      =>${@record_id},
                        p_table_name     =>${@table_name},
                        p_table_pk_value =>${@table_pk_value},
                        p_file_name      =>nvl(${@file_name},(to_char(SYSDATE,'yyyymmddhh24miss')||'.jpg')),
                        p_file_path      =>${@file_path},
                        p_file_size      =>to_number(${@file_size}),
                        p_user_id        =>${@user_id}
                    );	
                END;
            ]]></bm:update-sql>
        </bm:operation>
    </bm:operations>
</bm:model>
