<?xml version="1.0" encoding="UTF-8"?>
<bm:model xmlns:o="leaf.database.local.oracle" xmlns:bm="http://www.leaf-framework.org/schema/bm" xmlns:f="leaf.database.features" alias="t1" baseTable="HN_EXP_SCORE_TYPE_ASSIGN">
    <bm:fields>
        <bm:field name="assign_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="ASSIGN_ID" prompt="HN_EXP_SCORE_TYPE_ASSIGN.ASSIGN_ID"/>
        <bm:field name="score_type" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="SCORE_TYPE" prompt="HN_EXP_SCORE_TYPE_ASSIGN.SCORE_TYPE"/>
        <bm:field name="assign_user_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="ASSIGN_USER_ID" prompt="HN_EXP_SCORE_TYPE_ASSIGN.ASSIGN_USER_ID"/>
        <bm:field name="enabled_flag" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="ENABLED_FLAG" prompt="HN_EXP_SCORE_TYPE_ASSIGN.ENABLED_FLAG"/>
        <bm:field name="assign_user_name" expression="(select description from sys_user su where su.user_id=t1.assign_user_id)" forInsert="false" forUpdate="false"/>
        <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/>
        <o:sequence-pk/>
    </bm:features>
    <bm:primary-key>
        <bm:pk-field name="assign_id"/>
    </bm:primary-key>
    <bm:query-fields>
        <bm:query-field name="score_type" queryExpression="t1.score_type=${@score_type}"/>
    </bm:query-fields>
</bm:model>
