<?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="HN_EXP_SCORE_ITEM">
    <bm:fields>
        <bm:field name="score_item" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="SCORE_ITEM" prompt="HN_EXP_SCORE_ITEM.SCORE_ITEM"/>
        <bm:field name="score_type" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="SCORE_TYPE" prompt="HN_EXP_SCORE_ITEM.SCORE_TYPE"/>
        <bm:field name="description" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="DESCRIPTION" prompt="HN_EXP_SCORE_ITEM.DESCRIPTION"/>
        <bm:field name="note" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="NOTE" prompt="HN_EXP_SCORE_ITEM.NOTE"/>
        <bm:field name="enabled_flag" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="ENABLED_FLAG" prompt="HN_EXP_SCORE_ITEM.ENABLED_FLAG"/>
        <bm:field name="weight" databaseType="NUMBER" datatype="java.lang.Double" physicalName="WEIGHT" prompt="HN_EXP_SCORE_ITEM.WEIGHT"/>
        <bm:field name="score_type_n" expression="(select t2.description from hn_exp_score_type t2 where t2.score_type=t1.score_type)" forInsert="false" forUpdate="false"/>
    </bm:fields>
    <bm:features>
        <f:standard-who/>
    </bm:features>
    <bm:primary-key>
        <bm:pk-field name="score_item"/>
    </bm:primary-key>
    <bm:query-fields>
        <bm:query-field name="score_type" queryExpression="t1.score_type=${@score_type}"/>
    </bm:query-fields>
</bm:model>
