<?xml version="1.0" encoding="UTF-8"?>
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm" xmlns:f="leaf.database.features" alias="t1" baseTable="VFS_COMMAND">
    <bm:fields>
        <bm:field name="id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="ID" prompt="VFS_COMMAND.ID"/>
        <bm:field name="batch_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="BATCH_ID" prompt="VFS_COMMAND.BATCH_ID"/>
        <bm:field name="interface_name" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="INTERFACE_NAME" prompt="VFS_COMMAND.INTERFACE_NAME"/>
        <bm:field name="perceptual_type" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="PERCEPTUAL_TYPE" prompt="VFS_COMMAND.PERCEPTUAL_TYPE"/>
        <bm:field name="state_" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="STATE" prompt="VFS_COMMAND.STATE"/>
        <bm:field name="process_mode" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="PROCESS_MODE" prompt="VFS_COMMAND.PROCESS_MODE"/>
        <bm:field name="content" databaseType="CLOB" datatype="java.sql.Clob" physicalName="CONTENT" prompt="VFS_COMMAND.CONTENT"/>
        <bm:field name="url" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="URL" prompt="VFS_COMMAND.URL"/>
        <bm:field name="bp_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="BP_ID" prompt="VFS_COMMAND.BP_ID"/>
        <bm:field name="bp_name" expression="(SELECT h.bp_name FROM hls_bp_master h WHERE h.bp_id = t1.bp_id)" forInsert="false" forUpdate="false"/>
        <bm:field name="bp_category_n" expression="(SELECT bc.description FROM hls_bp_category bc WHERE bc.bp_category = (SELECT h.bp_category FROM hls_bp_master h WHERE h.bp_id = t1.bp_id))" forInsert="false" forUpdate="false"/>
        <bm:field name="vfs_date" expression="t1.creation_date"/>
    </bm:fields>
    <bm:features>
        <f:standard-who/>
    </bm:features>
    <bm:primary-key>
        <bm:pk-field name="id"/>
    </bm:primary-key>
    <bm:query-fields>
        <bm:query-field field="bp_id" queryOperator="="/>
    </bm:query-fields>
    <bm:data-filters>
        <bm:data-filter enforceActions="query" expression="t1.bp_id = ${@bp_id}"/>
    </bm:data-filters>
</bm:model>
