<?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="BGFL_BP_MASTER_AUTHORIZE_V">
    <bm:fields>
        <bm:field name="authorize_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="AUTHORIZE_ID" prompt="BGFL_BP_MASTER_AUTHORIZE_V.AUTHORIZE_ID"/>
        <bm:field name="bp_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="BP_ID" prompt="BGFL_BP_MASTER_AUTHORIZE_V.BP_ID"/>
        <bm:field name="bp_name" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="BP_NAME" prompt="BGFL_BP_MASTER_AUTHORIZE_V.BP_NAME"/>
        <bm:field name="description" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="DESCRIPTION" prompt="BGFL_BP_MASTER_AUTHORIZE_V.DESCRIPTION"/>
        <bm:field name="authorize_type" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="AUTHORIZE_TYPE" prompt="BGFL_BP_MASTER_AUTHORIZE_V.AUTHORIZE_TYPE"/>
        <bm:field name="authorize_unit_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="AUTHORIZE_UNIT_ID" prompt="BGFL_BP_MASTER_AUTHORIZE_V.AUTHORIZE_UNIT_ID"/>
        <bm:field name="authorize_unit_desc" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="AUTHORIZE_UNIT_DESC" prompt="BGFL_BP_MASTER_AUTHORIZE_V.UNIT_NAME"/>
        <bm:field name="authorize_position_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="AUTHORIZE_POSITION_ID" prompt="BGFL_BP_MASTER_AUTHORIZE_V.AUTHORIZE_POSITION_ID"/>
        <bm:field name="authorize_position_desc" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="AUTHORIZE_POSITION_DESC" prompt="BGFL_BP_MASTER_AUTHORIZE_V.POSITION_NAME"/>
        <bm:field name="authorize_user_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="AUTHORIZE_USER_ID" prompt="BGFL_BP_MASTER_AUTHORIZE_V.AUTHORIZE_USER_ID"/>
        <bm:field name="authorize_user_desc" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="AUTHORIZE_USER_DESC" prompt="BGFL_BP_MASTER_AUTHORIZE_V.USER_NAME"/>
        <bm:field name="start_date" databaseType="DATE" datatype="java.util.Date" physicalName="START_DATE" prompt="BGFL_BP_MASTER_AUTHORIZE_V.START_DATE"/>
        <bm:field name="end_date" databaseType="DATE" datatype="java.util.Date" physicalName="END_DATE" prompt="BGFL_BP_MASTER_AUTHORIZE_V.END_DATE"/>
        <bm:field name="lose_efficacy_flag" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="LOSE_EFFICACY_FLAG" prompt="BGFL_BP_MASTER_AUTHORIZE_V.LOSE_EFFICACY_FLAG"/>
        <bm:field name="lose_efficacy_date" databaseType="DATE" datatype="java.util.Date" physicalName="LOSE_EFFICACY_DATE" prompt="BGFL_BP_MASTER_AUTHORIZE_V.LOSE_EFFICACY_DATE"/>
        <bm:field name="revocation_flag" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="REVOCATION_FLAG" prompt="BGFL_BP_MASTER_AUTHORIZE_V.REVOCATION_FLAG"/>
        <bm:field name="bp_code"/>
    </bm:fields>
    <bm:features>
        <f:standard-who/>
    </bm:features>
    <bm:query-fields>
        <bm:query-field name="bp_id" queryExpression="bp_id = ${@bp_id}"/>
        <bm:query-field name="unit_id" queryExpression="authorize_unit_id = ${@unit_id}"/>
        <bm:query-field name="position_id" queryExpression="authorize_position_id = ${@position_id}"/>
        <bm:query-field name="user_id" queryExpression="authorize_user_id = ${@user_id}"/>
        <bm:query-field name="lose_efficacy_flag" queryExpression="lose_efficacy_flag = ${@lose_efficacy_flag}"/>
        <bm:query-field name="revocation_flag" queryExpression="revocation_flag = ${@revocation_flag}"/>
        <bm:query-field name="start_date_from" queryExpression="start_date &gt;=to_date(${@start_date_from},&apos;yyyy-mm-dd&apos;)"/>
        <bm:query-field name="start_date_to" queryExpression="start_date &lt;=to_date(${@start_date_to},&apos;yyyy-mm-dd&apos;)"/>
        <bm:query-field name="end_date_from" queryExpression="end_date &gt;=to_date(${@end_date_from},&apos;yyyy-mm-dd&apos;)"/>
        <bm:query-field name="end_date_to" queryExpression="end_date &lt;=to_date(${@end_date_to},&apos;yyyy-mm-dd&apos;)"/>
        <bm:query-field name="lose_efficacy_date_from" queryExpression="lose_efficacy_date &gt;=to_date(${@lose_efficacy_date_from},&apos;yyyy-mm-dd&apos;)"/>
        <bm:query-field name="lose_efficacy_date_to" queryExpression="lose_efficacy_date &lt;=to_date(${@lose_efficacy_date_to},&apos;yyyy-mm-dd&apos;)"/>
    </bm:query-fields>
</bm:model>
