<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: WangYu  
    $Date: 2015-2-3 下午08:26:00  
    $Revision: 1.0  
    $Purpose: 
-->
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm" xmlns:f="leaf.database.features" alias="t1" baseTable="AST_CAR_INSURANCE_V" needAccessControl="false">
    <bm:fields>
        <bm:field name="contract_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="CONTRACT_ID" prompt="AST_CAR_INSURANCE_V.CONTRACT_ID"/>
        <bm:field name="contract_number" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="CONTRACT_NUMBER" prompt="AST_CAR_INSURANCE_V.CONTRACT_NUMBER"/>
        <bm:field name="bp_id_tenant" databaseType="NUMBER" datatype="java.lang.Long" physicalName="BP_ID_TENANT" prompt="AST_CAR_INSURANCE_V.BP_ID_TENANT"/>
        <bm:field name="bp_id_tenant_n" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="BP_ID_TENANT_N" prompt="AST_CAR_INSURANCE_V.BP_ID_TENANT_N"/>
        <bm:field name="lease_times" databaseType="NUMBER" datatype="java.lang.Long" physicalName="LEASE_TIMES" prompt="AST_CAR_INSURANCE_V.LEASE_TIMES"/>
        <bm:field name="item_detail_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="ITEM_DETAIL_ID" prompt="AST_CAR_INSURANCE_V.ITEM_DETAIL_ID"/>
        <bm:field name="insurance_flag" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="INSURANCE_FLAG" prompt="AST_CAR_INSURANCE_V.INSURANCE_FLAG"/>
        <bm:field name="brand_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="BRAND_ID" prompt="AST_CAR_INSURANCE_V.BRAND_ID"/>
        <bm:field name="brand_id_n" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="BRAND_ID_N" prompt="AST_CAR_INSURANCE_V.BRAND_ID_N"/>
        <bm:field name="series_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="SERIES_ID" prompt="AST_CAR_INSURANCE_V.SERIES_ID"/>
        <bm:field name="series_id_n" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="SERIES_ID_N" prompt="AST_CAR_INSURANCE_V.SERIES_ID_N"/>
        <bm:field name="model_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="MODEL_ID" prompt="AST_CAR_INSURANCE_V.MODEL_ID"/>
        <bm:field name="model_id_n" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="MODEL_ID_N" prompt="AST_CAR_INSURANCE_V.MODEL_ID_N"/>
        <bm:field name="item_frame_number" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="ITEM_FRAME_NUMBER" prompt="AST_CAR_INSURANCE_V.ITEM_FRAME_NUMBER"/>
        <bm:field name="item_engine_number" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="ITEM_ENGINE_NUMBER" prompt="AST_CAR_INSURANCE_V.ITEM_ENGINE_NUMBER"/>
        <bm:field name="license_number" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="LICENSE_NUMBER" prompt="AST_CAR_INSURANCE_V.LICENSE_NUMBER"/>
        <bm:field name="insurance_bp_name" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="INSURANCE_BP_NAME" prompt="AST_CAR_INSURANCE_V.INSURANCE_BP_NAME"/>
        <bm:field name="insurance_type" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="INSURANCE_TYPE" prompt="AST_CAR_INSURANCE_V.INSURANCE_TYPE"/>
        <bm:field name="business_insurance_year" databaseType="NUMBER" datatype="java.lang.Long" physicalName="BUSINESS_INSURANCE_YEAR" prompt="AST_CAR_INSURANCE_V.BUSINESS_INSURANCE_YEAR"/>
        <bm:field name="business_insurance_end_date" databaseType="DATE" datatype="java.util.Date" physicalName="BUSINESS_INSURANCE_END_DATE" prompt="AST_CAR_INSURANCE_V.BUSINESS_INSURANCE_END_DATE"/>
        <bm:field name="first_biz_insurance_start_date" databaseType="DATE" datatype="java.util.Date" physicalName="FIRST_BIZ_INSURANCE_START_DATE" prompt="AST_CAR_INSURANCE_V.FIRST_BIZ_INSURANCE_START_DATE"/>
        <bm:field name="first_biz_insurance_end_date" databaseType="DATE" datatype="java.util.Date" physicalName="FIRST_BIZ_INSURANCE_END_DATE" prompt="AST_CAR_INSURANCE_V.FIRST_BIZ_INSURANCE_END_DATE"/>
        <bm:field name="second_biz_ins_start_date" databaseType="DATE" datatype="java.util.Date" physicalName="SECOND_BIZ_INS_START_DATE" prompt="AST_CAR_INSURANCE_V.SECOND_BIZ_INS_START_DATE"/>
        <bm:field name="third_biz_ins_start_date" databaseType="DATE" datatype="java.util.Date" physicalName="THIRD_BIZ_INS_START_DATE" prompt="AST_CAR_INSURANCE_V.THIRD_BIZ_INS_START_DATE"/>
        <bm:field name="fourth_biz_ins_start_date" databaseType="DATE" datatype="java.util.Date" physicalName="FOURTH_BIZ_INS_START_DATE" prompt="AST_CAR_INSURANCE_V.FOURTH_BIZ_INS_START_DATE"/>
        <bm:field name="second_biz_ins_end_date" databaseType="DATE" datatype="java.util.Date" physicalName="SECOND_BIZ_INS_END_DATE" prompt="AST_CAR_INSURANCE_V.SECOND_BIZ_INS_END_DATE"/>
        <bm:field name="third_biz_ins_end_date" databaseType="DATE" datatype="java.util.Date" physicalName="THIRD_BIZ_INS_END_DATE" prompt="AST_CAR_INSURANCE_V.THIRD_BIZ_INS_END_DATE"/>
        <bm:field name="fourth_biz_ins_end_date" databaseType="DATE" datatype="java.util.Date" physicalName="FOURTH_BIZ_INS_END_DATE" prompt="AST_CAR_INSURANCE_V.FOURTH_BIZ_INS_END_DATE"/>
        <bm:field name="first_insurance_amount" databaseType="NUMBER" datatype="java.lang.Long" physicalName="FIRST_INSURANCE_AMOUNT" prompt="AST_CAR_INSURANCE_V.FIRST_INSURANCE_AMOUNT"/>
        <bm:field name="second_insurance_amount" databaseType="NUMBER" datatype="java.lang.Long" physicalName="SECOND_INSURANCE_AMOUNT" prompt="AST_CAR_INSURANCE_V.SECOND_INSURANCE_AMOUNT"/>
        <bm:field name="third_insurance_amount" databaseType="NUMBER" datatype="java.lang.Long" physicalName="THIRD_INSURANCE_AMOUNT" prompt="AST_CAR_INSURANCE_V.THIRD_INSURANCE_AMOUNT"/>
        <bm:field name="fourth_insurance_amount" databaseType="NUMBER" datatype="java.lang.Long" physicalName="FOURTH_INSURANCE_AMOUNT" prompt="AST_CAR_INSURANCE_V.FOURTH_INSURANCE_AMOUNT"/>
        <bm:field name="total_insurance_amount" databaseType="NUMBER" datatype="java.lang.Long" physicalName="TOTAL_INSURANCE_AMOUNT" prompt="AST_CAR_INSURANCE_V.TOTAL_INSURANCE_AMOUNT"/>
        <bm:field name="inspected_date" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="INSPECTED_DATE" prompt="AST_CAR_INSURANCE_V.INSPECTED_DATE"/>
        <bm:field name="unit_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="UNIT_ID" prompt="AST_CAR_INSURANCE_V.UNIT_ID"/>
        <bm:field name="unit_id_n" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="UNIT_ID_N" prompt="AST_CAR_INSURANCE_V.UNIT_ID_N"/>
        <bm:field name="insurance_due_days" databaseType="NUMBER" datatype="java.lang.Long" physicalName="INSURANCE_DUE_DAYS" prompt="AST_CAR_INSURANCE_V.INSURANCE_DUE_DAYS"/>
    </bm:fields>
    <bm:query-fields>
        <bm:query-field field="contract_number" queryOperator="like"/>
        <bm:query-field field="bp_id_tenant_n" queryOperator="like"/>
        <bm:query-field field="insurance_flag" queryOperator="="/>
        <bm:query-field field="item_frame_number" queryOperator="like"/>
        <bm:query-field field="item_engine_number" queryOperator="like"/>
        <bm:query-field field="license_number" queryOperator="like"/>
        <bm:query-field field="unit_id_n" queryOperator="like"/>
    </bm:query-fields>
    <bm:features>
        <f:standard-who/>
    </bm:features>
</bm:model>
