<?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="CUS_GPS_HISTORY_TMP" defaultOrderBy="line_num">
    <bm:fields>
        <bm:field name="session_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="SESSION_ID" prompt="CUS_GPS_HISTORY_TMP.SESSION_ID"/>
        <bm:field name="line_num" databaseType="NUMBER" datatype="java.lang.Long" physicalName="LINE_NUM" prompt="CUS_GPS_HISTORY_TMP.LINE_NUM"/>
        <bm:field name="contract_lease_item_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="CONTRACT_LEASE_ITEM_ID" prompt="CUS_GPS_HISTORY_TMP.CONTRACT_LEASE_ITEM_ID"/>
        <bm:field name="serial_number" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="SERIAL_NUMBER" prompt="CUS_GPS_HISTORY_TMP.SERIAL_NUMBER"/>
        <bm:field name="sim_number" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="SIM_NUMBER" prompt="CUS_GPS_HISTORY_TMP.SIM_NUMBER"/>
        <bm:field name="device_type" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="DEVICE_TYPE" prompt="CUS_GPS_HISTORY_TMP.DEVICE_TYPE"/>
        <bm:field name="device_model" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="DEVICE_MODEL" prompt="CUS_GPS_HISTORY_TMP.DEVICE_MODEL"/>
        <bm:field name="data_time" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="DATA_TIME" prompt="CUS_GPS_HISTORY_TMP.DATA_TIME"/>
        <bm:field name="province" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="PROVINCE" prompt="CUS_GPS_HISTORY_TMP.PROVINCE"/>
        <bm:field name="city" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="CITY" prompt="CUS_GPS_HISTORY_TMP.CITY"/>
        <bm:field name="area" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="AREA" prompt="CUS_GPS_HISTORY_TMP.AREA"/>
        <bm:field name="longitude" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="LONGITUDE" prompt="CUS_GPS_HISTORY_TMP.LONGITUDE"/>
        <bm:field name="latitude" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="LATITUDE" prompt="CUS_GPS_HISTORY_TMP.LATITUDE"/>
        <bm:field name="speed" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="SPEED" prompt="CUS_GPS_HISTORY_TMP.SPEED"/>
        <bm:field name="direction" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="DIRECTION" prompt="CUS_GPS_HISTORY_TMP.DIRECTION"/>
        <bm:field name="location_state" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="LOCATION_STATE" prompt="CUS_GPS_HISTORY_TMP.LOCATION_STATE"/>
        <bm:field name="acc" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="ACC" prompt="CUS_GPS_HISTORY_TMP.ACC"/>
    </bm:fields>
    <bm:features>
        <f:standard-who/>
    </bm:features>
    <bm:data-filters>
        <bm:data-filter name="init_filter" enforceOperations="query" expression="t1.session_id=${/session/@session_id}"/>
    </bm:data-filters>
    <bm:query-fields>
        <bm:query-field field="contract_lease_item_id" queryOperator="="/>
    </bm:query-fields>
</bm:model>
