<?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_PRJ_MANAGE_REQUIRE" defaultOrderBy="template_code">
    <bm:fields>
        <bm:field name="record_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="RECORD_ID" prompt="HN_PRJ_MANAGE_REQUIRE.RECORD_ID"/>
        <bm:field name="template_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="TEMPLATE_ID" prompt="HN_PRJ_MANAGE_REQUIRE.TEMPLATE_ID"/>
        <bm:field name="project_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="PROJECT_ID" prompt="HN_PRJ_MANAGE_REQUIRE.PROJECT_ID"/>
        <bm:field name="manage_require" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="MANAGE_REQUIRE" prompt="HN_PRJ_MANAGE_REQUIRE.MANAGE_REQUIRE"/>
        <bm:field name="template_code" expression="(select t2.template_code from hn_manage_require_template t2 where t2.template_id=t1.template_id)" forInsert="false" forUpdate="false"/>
    </bm:fields>
    <bm:features>
        <f:standard-who/>
        <o:sequence-pk/>
    </bm:features>
    <bm:primary-key>
        <bm:pk-field name="record_id"/>
    </bm:primary-key>
    <bm:data-filters>
        <bm:data-filter enforceOperations="query" expression="t1.project_id = ${@project_id}"/>
    </bm:data-filters>
</bm:model>
