<?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_USER_ASSIGN" defaultOrderBy="user_assign_id">
    <bm:fields>
        <bm:field name="user_assign_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="USER_ASSIGN_ID" prompt="HN_EXP_SCORE_USER_ASSIGN.USER_ASSIGN_ID"/>
        <bm:field name="owner_user_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="OWNER_USER_ID" prompt="HN_EXP_SCORE_USER_ASSIGN.OWNER_USER_ID"/>
        <bm:field name="owner_user_desc" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="OWNER_USER_DESC" prompt="HN_EXP_SCORE_USER_ASSIGN.OWNER_USER_DESC"/>
        <bm:field name="score_user_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="SCORE_USER_ID" prompt="HN_EXP_SCORE_USER_ASSIGN.SCORE_USER_ID"/>
        <bm:field name="score_user_desc" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="SCORE_USER_DESC" prompt="HN_EXP_SCORE_USER_ASSIGN.SCORE_USER_DESC"/>
        <bm:field name="weight" databaseType="NUMBER" datatype="java.lang.Double" physicalName="WEIGHT" prompt="HN_EXP_SCORE_USER_ASSIGN.WEIGHT"/>
        <bm:field name="enabled_flag" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="ENABLED_FLAG" prompt="HN_EXP_SCORE_USER_ASSIGN.ENABLED_FLAG"/>
        <bm:field name="owner_user_name" expression="(select description from sys_user su where su.user_id=t1.owner_user_id)" forInsert="false" forUpdate="false"/>
        <bm:field name="score_user_name" expression="(select description from sys_user su where su.user_id=t1.score_user_id)" forInsert="false" forUpdate="false"/>
    </bm:fields>
    <bm:features>
        <f:standard-who/>
        <o:sequence-pk/>
    </bm:features>
    <bm:primary-key>
        <bm:pk-field name="user_assign_id"/>
    </bm:primary-key>
    <bm:query-fields>
        <bm:query-field name="owner_user_name" queryExpression="(select description from sys_user su where su.user_id=t1.owner_user_id) like &apos;%&apos;||${@owner_user_name}|| &apos;%&apos;"/>
        <bm:query-field name="score_user_name" queryExpression="(select description from sys_user su where su.user_id=t1.score_user_id) like &apos;%&apos;||${@score_user_name}|| &apos;%&apos;"/>
        <bm:query-field name="owner_user_desc" queryExpression="t1.owner_user_desc like &apos;%&apos;||${@owner_user_desc}|| &apos;%&apos;"/>
        <bm:query-field name="score_user_desc" queryExpression="t1.score_user_desc like &apos;%&apos;||${@score_user_desc}|| &apos;%&apos;"/>
        <bm:query-field name="enabled_flag" queryExpression="t1.enabled_flag =${@enabled_flag}"/>
    </bm:query-fields>
</bm:model>
