a.binder hace 8 años
padre
commit
548d44014b

La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 648 - 778
SE/schema/ant-object/default_db.USERS2_MARKETING/USERS2_MARKETING/USERS2_MARKETING.xsd


+ 518 - 11
SE/schema/ant-object/default_db.USERS2_MARKETING/USERS2_MARKETING_BN_FRESH/USERS2_MARKETING_BN_FRESH.xsd

@@ -22,6 +22,7 @@
            xmlns:p5_simpleSchema_map="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/p5_simpleSchema_map.xsd"
            xmlns:p5_simpleSchema_map="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/p5_simpleSchema_map.xsd"
            xmlns:fix_se_defaultdb_schema="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/fix_se_defaultdb_schema/fix_se_defaultdb_schema.xsd"
            xmlns:fix_se_defaultdb_schema="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/fix_se_defaultdb_schema/fix_se_defaultdb_schema.xsd"
            xmlns:p5Type="http://biuro.biall-net.pl/p5/schema/types"
            xmlns:p5Type="http://biuro.biall-net.pl/p5/schema/types"
+           xmlns:default_db__x3A__SERVICES="https://biuro.biall-net.pl/wfs/default_db/table/SERVICES.xsd"
            targetNamespace="https://biuro.biall-net.pl/wfs/default_db/table/USERS2_MARKETING.xsd"
            targetNamespace="https://biuro.biall-net.pl/wfs/default_db/table/USERS2_MARKETING.xsd"
            vc:minVersion="1.1">
            vc:minVersion="1.1">
    <xs:import namespace="http://biuro.biall-net.pl/p5/schema/types"
    <xs:import namespace="http://biuro.biall-net.pl/p5/schema/types"
@@ -46,6 +47,8 @@
               schemaLocation="../../default_db.IN7_DZIENNIK_KORESP/IN7_DZIENNIK_KORESP/IN7_DZIENNIK_KORESP.xsd"/>
               schemaLocation="../../default_db.IN7_DZIENNIK_KORESP/IN7_DZIENNIK_KORESP/IN7_DZIENNIK_KORESP.xsd"/>
    <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/IN7_MK_BAZA_DYSTRYBUCJI.xsd"
    <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/IN7_MK_BAZA_DYSTRYBUCJI.xsd"
               schemaLocation="../../default_db.IN7_MK_BAZA_DYSTRYBUCJI/IN7_MK_BAZA_DYSTRYBUCJI/IN7_MK_BAZA_DYSTRYBUCJI.xsd"/>
               schemaLocation="../../default_db.IN7_MK_BAZA_DYSTRYBUCJI/IN7_MK_BAZA_DYSTRYBUCJI/IN7_MK_BAZA_DYSTRYBUCJI.xsd"/>
+   <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/SERVICES.xsd"
+              schemaLocation="../../default_db.SERVICES/SERVICES/SERVICES.xsd"/>
    <xs:simpleType name="A_STATUS_Type" id="_2_MARKETING___d15e199475-1_A_STATUS_T">
    <xs:simpleType name="A_STATUS_Type" id="_2_MARKETING___d15e199475-1_A_STATUS_T">
       <xs:restriction base="xs:string">
       <xs:restriction base="xs:string">
          <xs:enumeration value="NORMAL"/>
          <xs:enumeration value="NORMAL"/>
@@ -79,6 +82,20 @@
       <xs:restriction base="default_db__x3A__USERS2_MARKETING:I_BAD_DATE"/>
       <xs:restriction base="default_db__x3A__USERS2_MARKETING:I_BAD_DATE"/>
    </xs:simpleType>
    </xs:simpleType>
    <xs:complexType name="USERS2_MARKETING" id="_2_MARKETING___d15e199499-1_USERS2_MAR">
    <xs:complexType name="USERS2_MARKETING" id="_2_MARKETING___d15e199499-1_USERS2_MAR">
+      <xs:annotation>
+         <xs:appinfo>
+            <system_cache__appinfo:heritage>
+               <system_cache__appinfo:inherit system_cache__appinfo:inherit_ref="default_db:USERS2_MARKETING"
+                                              system_cache__appinfo:heritage_acl="true">
+                  <system_cache__appinfo:acl_rule_inherit_to_all_same_name_elements_and_refs/>
+                  <acl_rule_inherit_to_all_refs_by_primary/>
+                  <acl_rule_inherit_to_all_refs_by_local_element system_cache__appinfo:acl_rule_inherit_local_element_name="A_STATUS"/>
+               </system_cache__appinfo:inherit>
+               <system_cache__appinfo:exherit_all system_cache__appinfo:heritage_acl="true"
+                                                  system_cache__appinfo:heritage_sort="true"/>
+            </system_cache__appinfo:heritage>
+         </xs:appinfo>
+      </xs:annotation>
       <xs:sequence id="_2_MARKETING___d15e199500-1">
       <xs:sequence id="_2_MARKETING___d15e199500-1">
          <xs:element name="the_geom"
          <xs:element name="the_geom"
                      id="_2_MARKETING___d15e199501-1_the_geom"
                      id="_2_MARKETING___d15e199501-1_the_geom"
@@ -92,6 +109,20 @@
          <xs:element name="L_APPOITMENT_USER"
          <xs:element name="L_APPOITMENT_USER"
                      type="xs:string"
                      type="xs:string"
                      id="_2_MARKETING___d15e199507-1_L_APPOITME"/>
                      id="_2_MARKETING___d15e199507-1_L_APPOITME"/>
+         <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache>
+                     <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                   system_cache__appinfo:name="L_APPOITMENT_USER"
+                                                   system_cache__appinfo:xpath="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER/ADM_ACCOUNT"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+               <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #166
+                </xs:documentation>
+            </xs:annotation>
+         </xs:element>
          <xs:element name="A_CLASSIFIED"
          <xs:element name="A_CLASSIFIED"
                      type="xs:string"
                      type="xs:string"
                      id="_2_MARKETING___d15e199508-1_A_CLASSIFI"/>
                      id="_2_MARKETING___d15e199508-1_A_CLASSIFI"/>
@@ -102,6 +133,20 @@
          <xs:element name="ADMIN_USERS_ID"
          <xs:element name="ADMIN_USERS_ID"
                      type="xs:integer"
                      type="xs:integer"
                      id="_2_MARKETING___d15e199511-1_ADMIN_USER"/>
                      id="_2_MARKETING___d15e199511-1_ADMIN_USER"/>
+         <xs:element ref="default_db__x3A__ADMIN_USERS:ADMIN_USERS_ID">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache>
+                     <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                   system_cache__appinfo:name="ADMIN_USERS_ID"
+                                                   system_cache__appinfo:xpath="default_db__x3A__ADMIN_USERS:ADMIN_USERS_ID/ID"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+               <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #185
+                </xs:documentation>
+            </xs:annotation>
+         </xs:element>
          <xs:element name="A_ID_USERS2"
          <xs:element name="A_ID_USERS2"
                      type="xs:integer"
                      type="xs:integer"
                      id="_2_MARKETING___d15e199512-1_A_ID_USERS"/>
                      id="_2_MARKETING___d15e199512-1_A_ID_USERS"/>
@@ -111,6 +156,20 @@
          <xs:element name="ID_SERVICES"
          <xs:element name="ID_SERVICES"
                      type="xs:integer"
                      type="xs:integer"
                      id="_2_MARKETING___d15e199514-1_ID_SERVICE"/>
                      id="_2_MARKETING___d15e199514-1_ID_SERVICE"/>
+         <xs:element ref="default_db__x3A__SERVICES:SERVICES">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache>
+                     <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                   system_cache__appinfo:name="ID_SERVICES"
+                                                   system_cache__appinfo:xpath="default_db__x3A__SERVICES:SERVICES/ID"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+               <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #183
+                </xs:documentation>
+            </xs:annotation>
+         </xs:element>
          <xs:element name="A_RECORD_CREATE_DATE"
          <xs:element name="A_RECORD_CREATE_DATE"
                      type="xs:token"
                      type="xs:token"
                      id="_2_MARKETING___d15e199516-1_A_RECORD_C"/>
                      id="_2_MARKETING___d15e199516-1_A_RECORD_C"/>
@@ -267,6 +326,20 @@
          <xs:element name="T_TELBOX_BUILDING_IN"
          <xs:element name="T_TELBOX_BUILDING_IN"
                      type="xs:string"
                      type="xs:string"
                      id="_2_MARKETING___d15e199571-1_T_TELBOX_B"/>
                      id="_2_MARKETING___d15e199571-1_T_TELBOX_B"/>
+         <xs:element ref="default_db__x3A__BUILDINGS:T_TELBOX_BUILDING_IN">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache>
+                     <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                   system_cache__appinfo:name="T_TELBOX_BUILDING_IN"
+                                                   system_cache__appinfo:xpath="default_db__x3A__BUILDINGS:T_TELBOX_BUILDING_IN/S_ADDRESS_STREET"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+               <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #3455 !!!
+                </xs:documentation>
+            </xs:annotation>
+         </xs:element>
          <xs:element name="I_BAD_DATE"
          <xs:element name="I_BAD_DATE"
                      type="default_db__x3A__USERS2_MARKETING:I_BAD_DATE"
                      type="default_db__x3A__USERS2_MARKETING:I_BAD_DATE"
                      id="_2_MARKETING___d15e199572-1_I_BAD_DATE"/>
                      id="_2_MARKETING___d15e199572-1_I_BAD_DATE"/>
@@ -438,12 +511,40 @@
          <xs:element name="CRM_LISTA_ZASOBOW_ID"
          <xs:element name="CRM_LISTA_ZASOBOW_ID"
                      type="xs:integer"
                      type="xs:integer"
                      id="_2_MARKETING___d15e199633-1_CRM_LISTA_"/>
                      id="_2_MARKETING___d15e199633-1_CRM_LISTA_"/>
+         <xs:element ref="default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW_ID">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache>
+                     <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                   system_cache__appinfo:name="CRM_LISTA_ZASOBOW_ID"
+                                                   system_cache__appinfo:xpath="default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW_ID/ID"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+               <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #224
+                </xs:documentation>
+            </xs:annotation>
+         </xs:element>
          <xs:element name="BUSINESS"
          <xs:element name="BUSINESS"
                      type="xs:string"
                      type="xs:string"
                      id="_2_MARKETING___d15e199634-1_BUSINESS"/>
                      id="_2_MARKETING___d15e199634-1_BUSINESS"/>
          <xs:element name="ID_PROJECT"
          <xs:element name="ID_PROJECT"
                      type="xs:integer"
                      type="xs:integer"
                      id="_2_MARKETING___d15e199636-1_ID_PROJECT"/>
                      id="_2_MARKETING___d15e199636-1_ID_PROJECT"/>
+         <xs:element ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache>
+                     <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                   system_cache__appinfo:name="ID_PROJECT"
+                                                   system_cache__appinfo:xpath="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT/ID"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+               <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #204
+                </xs:documentation>
+            </xs:annotation>
+         </xs:element>
          <!--#272 found ignored the_geom-->
          <!--#272 found ignored the_geom-->
          <!--#272 found ignored S_ADDRESS_CITY-->
          <!--#272 found ignored S_ADDRESS_CITY-->
          <!--#272 found ignored BAD_CHCE_LOKALNE_TV_OR_NIE_OGLADAM_LOK_TV-->
          <!--#272 found ignored BAD_CHCE_LOKALNE_TV_OR_NIE_OGLADAM_LOK_TV-->
@@ -526,7 +627,20 @@
          <!--#414-A found adding p5_zasob_36:CRM_LISTA_ZASOBOW, $prototype_NamespacePrefix = default_db__x3A__USERS2_MARKETING-->
          <!--#414-A found adding p5_zasob_36:CRM_LISTA_ZASOBOW, $prototype_NamespacePrefix = default_db__x3A__USERS2_MARKETING-->
          <xs:element ref="default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW"
          <xs:element ref="default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW"
                      minOccurs="0"
                      minOccurs="0"
-                     id="_2_MARKETING___d15e199728-1"/>
+                     id="_2_MARKETING___d15e199728-1">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache>
+                     <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                   system_cache__appinfo:name=""
+                                                   system_cache__appinfo:xpath="default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW/ID"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+               <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED
+                </xs:documentation>
+            </xs:annotation>
+         </xs:element>
          <!--#272 found ignored T_TELBOX_PORT-->
          <!--#272 found ignored T_TELBOX_PORT-->
          <!--#272 found ignored T_WORKPOINTS-->
          <!--#272 found ignored T_WORKPOINTS-->
          <!--#272 found ignored T_WORKPOINTS_VALUE-->
          <!--#272 found ignored T_WORKPOINTS_VALUE-->
@@ -583,10 +697,11 @@
          <xs:element xmlns:p5="https://biuro.biall-net.pl/wfs"
          <xs:element xmlns:p5="https://biuro.biall-net.pl/wfs"
                      name="INTERNET_STATUS"
                      name="INTERNET_STATUS"
                      p5:id_zasob="3493"
                      p5:id_zasob="3493"
-                     minOccurs="1"
+                     minOccurs="0"
                      maxOccurs="1"
                      maxOccurs="1"
                      p5:label="Status usł. Internet"
                      p5:label="Status usł. Internet"
-                     id="_2_MARKETING___d15e199789-1_INTERNET_S">
+                     id="_2_MARKETING___d15e199789-1_INTERNET_S"
+                     type="xs:string">
             <xs:annotation>
             <xs:annotation>
                <xs:documentation>INTERNET_STATUS Informacje z bazy billingowej/technicznej o tym z jakich usług korzysta/korzystał  KLIENT.</xs:documentation>
                <xs:documentation>INTERNET_STATUS Informacje z bazy billingowej/technicznej o tym z jakich usług korzysta/korzystał  KLIENT.</xs:documentation>
             </xs:annotation>
             </xs:annotation>
@@ -633,6 +748,20 @@
                <xs:element name="L_APPOITMENT_USER"
                <xs:element name="L_APPOITMENT_USER"
                            type="xs:string"
                            type="xs:string"
                            id="_2_MARKETING___d15e199823-1_L_APPOITME"/>
                            id="_2_MARKETING___d15e199823-1_L_APPOITME"/>
+               <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="L_APPOITMENT_USER"
+                                                         system_cache__appinfo:xpath="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER/ADM_ACCOUNT"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #166
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <xs:element name="A_CLASSIFIED"
                <xs:element name="A_CLASSIFIED"
                            type="xs:string"
                            type="xs:string"
                            id="_2_MARKETING___d15e199824-1_A_CLASSIFI"/>
                            id="_2_MARKETING___d15e199824-1_A_CLASSIFI"/>
@@ -643,6 +772,20 @@
                <xs:element name="ADMIN_USERS_ID"
                <xs:element name="ADMIN_USERS_ID"
                            type="xs:integer"
                            type="xs:integer"
                            id="_2_MARKETING___d15e199827-1_ADMIN_USER"/>
                            id="_2_MARKETING___d15e199827-1_ADMIN_USER"/>
+               <xs:element ref="default_db__x3A__ADMIN_USERS:ADMIN_USERS_ID">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="ADMIN_USERS_ID"
+                                                         system_cache__appinfo:xpath="default_db__x3A__ADMIN_USERS:ADMIN_USERS_ID/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #185
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <xs:element name="A_ID_USERS2"
                <xs:element name="A_ID_USERS2"
                            type="xs:integer"
                            type="xs:integer"
                            id="_2_MARKETING___d15e199828-1_A_ID_USERS"/>
                            id="_2_MARKETING___d15e199828-1_A_ID_USERS"/>
@@ -652,6 +795,20 @@
                <xs:element name="ID_SERVICES"
                <xs:element name="ID_SERVICES"
                            type="xs:integer"
                            type="xs:integer"
                            id="_2_MARKETING___d15e199830-1_ID_SERVICE"/>
                            id="_2_MARKETING___d15e199830-1_ID_SERVICE"/>
+               <xs:element ref="default_db__x3A__SERVICES:SERVICES">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="ID_SERVICES"
+                                                         system_cache__appinfo:xpath="default_db__x3A__SERVICES:SERVICES/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #183
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <xs:element name="A_RECORD_CREATE_DATE"
                <xs:element name="A_RECORD_CREATE_DATE"
                            type="xs:token"
                            type="xs:token"
                            id="_2_MARKETING___d15e199832-1_A_RECORD_C"/>
                            id="_2_MARKETING___d15e199832-1_A_RECORD_C"/>
@@ -808,6 +965,20 @@
                <xs:element name="T_TELBOX_BUILDING_IN"
                <xs:element name="T_TELBOX_BUILDING_IN"
                            type="xs:string"
                            type="xs:string"
                            id="_2_MARKETING___d15e199887-1_T_TELBOX_B"/>
                            id="_2_MARKETING___d15e199887-1_T_TELBOX_B"/>
+               <xs:element ref="default_db__x3A__BUILDINGS:T_TELBOX_BUILDING_IN">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="T_TELBOX_BUILDING_IN"
+                                                         system_cache__appinfo:xpath="default_db__x3A__BUILDINGS:T_TELBOX_BUILDING_IN/S_ADDRESS_STREET"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #3455 !!!
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <xs:element name="I_BAD_DATE"
                <xs:element name="I_BAD_DATE"
                            type="default_db__x3A__USERS2_MARKETING:I_BAD_DATE_FRESH"
                            type="default_db__x3A__USERS2_MARKETING:I_BAD_DATE_FRESH"
                            id="_2_MARKETING___d15e199888-1_I_BAD_DATE"/>
                            id="_2_MARKETING___d15e199888-1_I_BAD_DATE"/>
@@ -979,12 +1150,40 @@
                <xs:element name="CRM_LISTA_ZASOBOW_ID"
                <xs:element name="CRM_LISTA_ZASOBOW_ID"
                            type="xs:integer"
                            type="xs:integer"
                            id="_2_MARKETING___d15e199949-1_CRM_LISTA_"/>
                            id="_2_MARKETING___d15e199949-1_CRM_LISTA_"/>
+               <xs:element ref="default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW_ID">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="CRM_LISTA_ZASOBOW_ID"
+                                                         system_cache__appinfo:xpath="default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW_ID/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #224
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <xs:element name="BUSINESS"
                <xs:element name="BUSINESS"
                            type="xs:string"
                            type="xs:string"
                            id="_2_MARKETING___d15e199950-1_BUSINESS"/>
                            id="_2_MARKETING___d15e199950-1_BUSINESS"/>
                <xs:element name="ID_PROJECT"
                <xs:element name="ID_PROJECT"
                            type="xs:integer"
                            type="xs:integer"
                            id="_2_MARKETING___d15e199952-1_ID_PROJECT"/>
                            id="_2_MARKETING___d15e199952-1_ID_PROJECT"/>
+               <xs:element ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="ID_PROJECT"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #204
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <!--#272 found ignored the_geom-->
                <!--#272 found ignored the_geom-->
                <!--#272 found ignored S_ADDRESS_CITY-->
                <!--#272 found ignored S_ADDRESS_CITY-->
                <!--#272 found ignored BAD_CHCE_LOKALNE_TV_OR_NIE_OGLADAM_LOK_TV-->
                <!--#272 found ignored BAD_CHCE_LOKALNE_TV_OR_NIE_OGLADAM_LOK_TV-->
@@ -1067,7 +1266,20 @@
                <!--#414-A found adding p5_zasob_36:CRM_LISTA_ZASOBOW, $prototype_NamespacePrefix = default_db__x3A__USERS2_MARKETING-->
                <!--#414-A found adding p5_zasob_36:CRM_LISTA_ZASOBOW, $prototype_NamespacePrefix = default_db__x3A__USERS2_MARKETING-->
                <xs:element ref="default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW"
                <xs:element ref="default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW"
                            minOccurs="0"
                            minOccurs="0"
-                           id="_2_MARKETING___d15e200044-1"/>
+                           id="_2_MARKETING___d15e200044-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name=""
+                                                         system_cache__appinfo:xpath="default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <!--#272 found ignored T_TELBOX_PORT-->
                <!--#272 found ignored T_TELBOX_PORT-->
                <!--#272 found ignored T_WORKPOINTS-->
                <!--#272 found ignored T_WORKPOINTS-->
                <!--#272 found ignored T_WORKPOINTS_VALUE-->
                <!--#272 found ignored T_WORKPOINTS_VALUE-->
@@ -1127,7 +1339,8 @@
                            minOccurs="1"
                            minOccurs="1"
                            maxOccurs="1"
                            maxOccurs="1"
                            p5:label="Status usł. Internet"
                            p5:label="Status usł. Internet"
-                           id="_2_MARKETING___d15e200105-1_INTERNET_S">
+                           id="_2_MARKETING___d15e200105-1_INTERNET_S"
+                           type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>INTERNET_STATUS Informacje z bazy billingowej/technicznej o tym z jakich usług korzysta/korzystał  KLIENT.</xs:documentation>
                      <xs:documentation>INTERNET_STATUS Informacje z bazy billingowej/technicznej o tym z jakich usług korzysta/korzystał  KLIENT.</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
@@ -1175,6 +1388,20 @@
                <xs:element name="L_APPOITMENT_USER"
                <xs:element name="L_APPOITMENT_USER"
                            type="xs:string"
                            type="xs:string"
                            id="_2_MARKETING___d15e200138-1_L_APPOITME"/>
                            id="_2_MARKETING___d15e200138-1_L_APPOITME"/>
+               <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="L_APPOITMENT_USER"
+                                                         system_cache__appinfo:xpath="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER/ADM_ACCOUNT"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #166
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <xs:element name="A_CLASSIFIED"
                <xs:element name="A_CLASSIFIED"
                            type="xs:string"
                            type="xs:string"
                            id="_2_MARKETING___d15e200139-1_A_CLASSIFI"/>
                            id="_2_MARKETING___d15e200139-1_A_CLASSIFI"/>
@@ -1185,6 +1412,20 @@
                <xs:element name="ADMIN_USERS_ID"
                <xs:element name="ADMIN_USERS_ID"
                            type="xs:integer"
                            type="xs:integer"
                            id="_2_MARKETING___d15e200142-1_ADMIN_USER"/>
                            id="_2_MARKETING___d15e200142-1_ADMIN_USER"/>
+               <xs:element ref="default_db__x3A__ADMIN_USERS:ADMIN_USERS_ID">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="ADMIN_USERS_ID"
+                                                         system_cache__appinfo:xpath="default_db__x3A__ADMIN_USERS:ADMIN_USERS_ID/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #185
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <xs:element name="A_ID_USERS2"
                <xs:element name="A_ID_USERS2"
                            type="xs:integer"
                            type="xs:integer"
                            id="_2_MARKETING___d15e200143-1_A_ID_USERS"/>
                            id="_2_MARKETING___d15e200143-1_A_ID_USERS"/>
@@ -1194,6 +1435,20 @@
                <xs:element name="ID_SERVICES"
                <xs:element name="ID_SERVICES"
                            type="xs:integer"
                            type="xs:integer"
                            id="_2_MARKETING___d15e200145-1_ID_SERVICE"/>
                            id="_2_MARKETING___d15e200145-1_ID_SERVICE"/>
+               <xs:element ref="default_db__x3A__SERVICES:SERVICES">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="ID_SERVICES"
+                                                         system_cache__appinfo:xpath="default_db__x3A__SERVICES:SERVICES/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #183
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <xs:element name="A_RECORD_CREATE_DATE"
                <xs:element name="A_RECORD_CREATE_DATE"
                            type="xs:token"
                            type="xs:token"
                            id="_2_MARKETING___d15e200147-1_A_RECORD_C"/>
                            id="_2_MARKETING___d15e200147-1_A_RECORD_C"/>
@@ -1350,6 +1605,20 @@
                <xs:element name="T_TELBOX_BUILDING_IN"
                <xs:element name="T_TELBOX_BUILDING_IN"
                            type="xs:string"
                            type="xs:string"
                            id="_2_MARKETING___d15e200202-1_T_TELBOX_B"/>
                            id="_2_MARKETING___d15e200202-1_T_TELBOX_B"/>
+               <xs:element ref="default_db__x3A__BUILDINGS:T_TELBOX_BUILDING_IN">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="T_TELBOX_BUILDING_IN"
+                                                         system_cache__appinfo:xpath="default_db__x3A__BUILDINGS:T_TELBOX_BUILDING_IN/S_ADDRESS_STREET"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #3455 !!!
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <xs:element name="I_BAD_DATE"
                <xs:element name="I_BAD_DATE"
                            type="default_db__x3A__USERS2_MARKETING:I_BAD_DATE_OLD"
                            type="default_db__x3A__USERS2_MARKETING:I_BAD_DATE_OLD"
                            id="_2_MARKETING___d15e200203-1_I_BAD_DATE"/>
                            id="_2_MARKETING___d15e200203-1_I_BAD_DATE"/>
@@ -1521,12 +1790,40 @@
                <xs:element name="CRM_LISTA_ZASOBOW_ID"
                <xs:element name="CRM_LISTA_ZASOBOW_ID"
                            type="xs:integer"
                            type="xs:integer"
                            id="_2_MARKETING___d15e200264-1_CRM_LISTA_"/>
                            id="_2_MARKETING___d15e200264-1_CRM_LISTA_"/>
+               <xs:element ref="default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW_ID">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="CRM_LISTA_ZASOBOW_ID"
+                                                         system_cache__appinfo:xpath="default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW_ID/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #224
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <xs:element name="BUSINESS"
                <xs:element name="BUSINESS"
                            type="xs:string"
                            type="xs:string"
                            id="_2_MARKETING___d15e200265-1_BUSINESS"/>
                            id="_2_MARKETING___d15e200265-1_BUSINESS"/>
                <xs:element name="ID_PROJECT"
                <xs:element name="ID_PROJECT"
                            type="xs:integer"
                            type="xs:integer"
                            id="_2_MARKETING___d15e200267-1_ID_PROJECT"/>
                            id="_2_MARKETING___d15e200267-1_ID_PROJECT"/>
+               <xs:element ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="ID_PROJECT"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #204
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <!--#272 found ignored the_geom-->
                <!--#272 found ignored the_geom-->
                <!--#272 found ignored S_ADDRESS_CITY-->
                <!--#272 found ignored S_ADDRESS_CITY-->
                <!--#272 found ignored BAD_CHCE_LOKALNE_TV_OR_NIE_OGLADAM_LOK_TV-->
                <!--#272 found ignored BAD_CHCE_LOKALNE_TV_OR_NIE_OGLADAM_LOK_TV-->
@@ -1609,7 +1906,20 @@
                <!--#414-A found adding p5_zasob_36:CRM_LISTA_ZASOBOW, $prototype_NamespacePrefix = default_db__x3A__USERS2_MARKETING-->
                <!--#414-A found adding p5_zasob_36:CRM_LISTA_ZASOBOW, $prototype_NamespacePrefix = default_db__x3A__USERS2_MARKETING-->
                <xs:element ref="default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW"
                <xs:element ref="default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW"
                            minOccurs="0"
                            minOccurs="0"
-                           id="_2_MARKETING___d15e200359-1"/>
+                           id="_2_MARKETING___d15e200359-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name=""
+                                                         system_cache__appinfo:xpath="default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <!--#272 found ignored T_TELBOX_PORT-->
                <!--#272 found ignored T_TELBOX_PORT-->
                <!--#272 found ignored T_WORKPOINTS-->
                <!--#272 found ignored T_WORKPOINTS-->
                <!--#272 found ignored T_WORKPOINTS_VALUE-->
                <!--#272 found ignored T_WORKPOINTS_VALUE-->
@@ -1669,7 +1979,8 @@
                            minOccurs="1"
                            minOccurs="1"
                            maxOccurs="1"
                            maxOccurs="1"
                            p5:label="Status usł. Internet"
                            p5:label="Status usł. Internet"
-                           id="_2_MARKETING___d15e200420-1_INTERNET_S">
+                           id="_2_MARKETING___d15e200420-1_INTERNET_S"
+                           type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>INTERNET_STATUS Informacje z bazy billingowej/technicznej o tym z jakich usług korzysta/korzystał  KLIENT.</xs:documentation>
                      <xs:documentation>INTERNET_STATUS Informacje z bazy billingowej/technicznej o tym z jakich usług korzysta/korzystał  KLIENT.</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
@@ -1719,6 +2030,20 @@
                <xs:element name="L_APPOITMENT_USER"
                <xs:element name="L_APPOITMENT_USER"
                            type="xs:string"
                            type="xs:string"
                            id="_2_MARKETING___d15e200453-1_L_APPOITME"/>
                            id="_2_MARKETING___d15e200453-1_L_APPOITME"/>
+               <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="L_APPOITMENT_USER"
+                                                         system_cache__appinfo:xpath="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER/ADM_ACCOUNT"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #166
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <xs:element name="A_CLASSIFIED"
                <xs:element name="A_CLASSIFIED"
                            type="xs:string"
                            type="xs:string"
                            id="_2_MARKETING___d15e200454-1_A_CLASSIFI"/>
                            id="_2_MARKETING___d15e200454-1_A_CLASSIFI"/>
@@ -1729,6 +2054,20 @@
                <xs:element name="ADMIN_USERS_ID"
                <xs:element name="ADMIN_USERS_ID"
                            type="xs:integer"
                            type="xs:integer"
                            id="_2_MARKETING___d15e200457-1_ADMIN_USER"/>
                            id="_2_MARKETING___d15e200457-1_ADMIN_USER"/>
+               <xs:element ref="default_db__x3A__ADMIN_USERS:ADMIN_USERS_ID">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="ADMIN_USERS_ID"
+                                                         system_cache__appinfo:xpath="default_db__x3A__ADMIN_USERS:ADMIN_USERS_ID/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #185
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <xs:element name="A_ID_USERS2"
                <xs:element name="A_ID_USERS2"
                            type="xs:integer"
                            type="xs:integer"
                            id="_2_MARKETING___d15e200458-1_A_ID_USERS"/>
                            id="_2_MARKETING___d15e200458-1_A_ID_USERS"/>
@@ -1738,6 +2077,20 @@
                <xs:element name="ID_SERVICES"
                <xs:element name="ID_SERVICES"
                            type="xs:integer"
                            type="xs:integer"
                            id="_2_MARKETING___d15e200460-1_ID_SERVICE"/>
                            id="_2_MARKETING___d15e200460-1_ID_SERVICE"/>
+               <xs:element ref="default_db__x3A__SERVICES:SERVICES">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="ID_SERVICES"
+                                                         system_cache__appinfo:xpath="default_db__x3A__SERVICES:SERVICES/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #183
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <xs:element name="A_RECORD_CREATE_DATE"
                <xs:element name="A_RECORD_CREATE_DATE"
                            type="xs:token"
                            type="xs:token"
                            id="_2_MARKETING___d15e200462-1_A_RECORD_C"/>
                            id="_2_MARKETING___d15e200462-1_A_RECORD_C"/>
@@ -1894,6 +2247,20 @@
                <xs:element name="T_TELBOX_BUILDING_IN"
                <xs:element name="T_TELBOX_BUILDING_IN"
                            type="xs:string"
                            type="xs:string"
                            id="_2_MARKETING___d15e200517-1_T_TELBOX_B"/>
                            id="_2_MARKETING___d15e200517-1_T_TELBOX_B"/>
+               <xs:element ref="default_db__x3A__BUILDINGS:T_TELBOX_BUILDING_IN">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="T_TELBOX_BUILDING_IN"
+                                                         system_cache__appinfo:xpath="default_db__x3A__BUILDINGS:T_TELBOX_BUILDING_IN/S_ADDRESS_STREET"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #3455 !!!
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <xs:element name="I_BAD_DATE"
                <xs:element name="I_BAD_DATE"
                            type="default_db__x3A__USERS2_MARKETING:I_BAD_DATE_OLD"
                            type="default_db__x3A__USERS2_MARKETING:I_BAD_DATE_OLD"
                            id="_2_MARKETING___d15e200518-1_I_BAD_DATE"/>
                            id="_2_MARKETING___d15e200518-1_I_BAD_DATE"/>
@@ -2065,12 +2432,40 @@
                <xs:element name="CRM_LISTA_ZASOBOW_ID"
                <xs:element name="CRM_LISTA_ZASOBOW_ID"
                            type="xs:integer"
                            type="xs:integer"
                            id="_2_MARKETING___d15e200579-1_CRM_LISTA_"/>
                            id="_2_MARKETING___d15e200579-1_CRM_LISTA_"/>
+               <xs:element ref="default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW_ID">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="CRM_LISTA_ZASOBOW_ID"
+                                                         system_cache__appinfo:xpath="default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW_ID/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #224
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <xs:element name="BUSINESS"
                <xs:element name="BUSINESS"
                            type="xs:string"
                            type="xs:string"
                            id="_2_MARKETING___d15e200580-1_BUSINESS"/>
                            id="_2_MARKETING___d15e200580-1_BUSINESS"/>
                <xs:element name="ID_PROJECT"
                <xs:element name="ID_PROJECT"
                            type="xs:integer"
                            type="xs:integer"
                            id="_2_MARKETING___d15e200582-1_ID_PROJECT"/>
                            id="_2_MARKETING___d15e200582-1_ID_PROJECT"/>
+               <xs:element ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="ID_PROJECT"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #204
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <!--#272 found ignored the_geom-->
                <!--#272 found ignored the_geom-->
                <!--#272 found ignored S_ADDRESS_CITY-->
                <!--#272 found ignored S_ADDRESS_CITY-->
                <!--#272 found ignored BAD_CHCE_LOKALNE_TV_OR_NIE_OGLADAM_LOK_TV-->
                <!--#272 found ignored BAD_CHCE_LOKALNE_TV_OR_NIE_OGLADAM_LOK_TV-->
@@ -2153,7 +2548,20 @@
                <!--#414-A found adding p5_zasob_36:CRM_LISTA_ZASOBOW, $prototype_NamespacePrefix = default_db__x3A__USERS2_MARKETING-->
                <!--#414-A found adding p5_zasob_36:CRM_LISTA_ZASOBOW, $prototype_NamespacePrefix = default_db__x3A__USERS2_MARKETING-->
                <xs:element ref="default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW"
                <xs:element ref="default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW"
                            minOccurs="0"
                            minOccurs="0"
-                           id="_2_MARKETING___d15e200674-1"/>
+                           id="_2_MARKETING___d15e200674-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name=""
+                                                         system_cache__appinfo:xpath="default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <!--#272 found ignored T_TELBOX_PORT-->
                <!--#272 found ignored T_TELBOX_PORT-->
                <!--#272 found ignored T_WORKPOINTS-->
                <!--#272 found ignored T_WORKPOINTS-->
                <!--#272 found ignored T_WORKPOINTS_VALUE-->
                <!--#272 found ignored T_WORKPOINTS_VALUE-->
@@ -2213,7 +2621,8 @@
                            minOccurs="1"
                            minOccurs="1"
                            maxOccurs="1"
                            maxOccurs="1"
                            p5:label="Status usł. Internet"
                            p5:label="Status usł. Internet"
-                           id="_2_MARKETING___d15e200735-1_INTERNET_S">
+                           id="_2_MARKETING___d15e200735-1_INTERNET_S"
+                           type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>INTERNET_STATUS Informacje z bazy billingowej/technicznej o tym z jakich usług korzysta/korzystał  KLIENT.</xs:documentation>
                      <xs:documentation>INTERNET_STATUS Informacje z bazy billingowej/technicznej o tym z jakich usług korzysta/korzystał  KLIENT.</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
@@ -2261,6 +2670,20 @@
                <xs:element name="L_APPOITMENT_USER"
                <xs:element name="L_APPOITMENT_USER"
                            type="xs:string"
                            type="xs:string"
                            id="_2_MARKETING___d15e200768-1_L_APPOITME"/>
                            id="_2_MARKETING___d15e200768-1_L_APPOITME"/>
+               <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="L_APPOITMENT_USER"
+                                                         system_cache__appinfo:xpath="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER/ADM_ACCOUNT"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #166
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <xs:element name="A_CLASSIFIED"
                <xs:element name="A_CLASSIFIED"
                            type="xs:string"
                            type="xs:string"
                            id="_2_MARKETING___d15e200769-1_A_CLASSIFI"/>
                            id="_2_MARKETING___d15e200769-1_A_CLASSIFI"/>
@@ -2271,6 +2694,20 @@
                <xs:element name="ADMIN_USERS_ID"
                <xs:element name="ADMIN_USERS_ID"
                            type="xs:integer"
                            type="xs:integer"
                            id="_2_MARKETING___d15e200772-1_ADMIN_USER"/>
                            id="_2_MARKETING___d15e200772-1_ADMIN_USER"/>
+               <xs:element ref="default_db__x3A__ADMIN_USERS:ADMIN_USERS_ID">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="ADMIN_USERS_ID"
+                                                         system_cache__appinfo:xpath="default_db__x3A__ADMIN_USERS:ADMIN_USERS_ID/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #185
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <xs:element name="A_ID_USERS2"
                <xs:element name="A_ID_USERS2"
                            type="xs:integer"
                            type="xs:integer"
                            id="_2_MARKETING___d15e200773-1_A_ID_USERS"/>
                            id="_2_MARKETING___d15e200773-1_A_ID_USERS"/>
@@ -2280,6 +2717,20 @@
                <xs:element name="ID_SERVICES"
                <xs:element name="ID_SERVICES"
                            type="xs:integer"
                            type="xs:integer"
                            id="_2_MARKETING___d15e200775-1_ID_SERVICE"/>
                            id="_2_MARKETING___d15e200775-1_ID_SERVICE"/>
+               <xs:element ref="default_db__x3A__SERVICES:SERVICES">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="ID_SERVICES"
+                                                         system_cache__appinfo:xpath="default_db__x3A__SERVICES:SERVICES/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #183
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <xs:element name="A_RECORD_CREATE_DATE"
                <xs:element name="A_RECORD_CREATE_DATE"
                            type="xs:token"
                            type="xs:token"
                            id="_2_MARKETING___d15e200777-1_A_RECORD_C"/>
                            id="_2_MARKETING___d15e200777-1_A_RECORD_C"/>
@@ -2436,6 +2887,20 @@
                <xs:element name="T_TELBOX_BUILDING_IN"
                <xs:element name="T_TELBOX_BUILDING_IN"
                            type="xs:string"
                            type="xs:string"
                            id="_2_MARKETING___d15e200832-1_T_TELBOX_B"/>
                            id="_2_MARKETING___d15e200832-1_T_TELBOX_B"/>
+               <xs:element ref="default_db__x3A__BUILDINGS:T_TELBOX_BUILDING_IN">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="T_TELBOX_BUILDING_IN"
+                                                         system_cache__appinfo:xpath="default_db__x3A__BUILDINGS:T_TELBOX_BUILDING_IN/S_ADDRESS_STREET"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #3455 !!!
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <xs:element name="I_BAD_DATE"
                <xs:element name="I_BAD_DATE"
                            type="default_db__x3A__USERS2_MARKETING:I_BAD_DATE_FRESH"
                            type="default_db__x3A__USERS2_MARKETING:I_BAD_DATE_FRESH"
                            id="_2_MARKETING___d15e200833-1_I_BAD_DATE"/>
                            id="_2_MARKETING___d15e200833-1_I_BAD_DATE"/>
@@ -2607,12 +3072,40 @@
                <xs:element name="CRM_LISTA_ZASOBOW_ID"
                <xs:element name="CRM_LISTA_ZASOBOW_ID"
                            type="xs:integer"
                            type="xs:integer"
                            id="_2_MARKETING___d15e200894-1_CRM_LISTA_"/>
                            id="_2_MARKETING___d15e200894-1_CRM_LISTA_"/>
+               <xs:element ref="default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW_ID">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="CRM_LISTA_ZASOBOW_ID"
+                                                         system_cache__appinfo:xpath="default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW_ID/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #224
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <xs:element name="BUSINESS"
                <xs:element name="BUSINESS"
                            type="xs:string"
                            type="xs:string"
                            id="_2_MARKETING___d15e200895-1_BUSINESS"/>
                            id="_2_MARKETING___d15e200895-1_BUSINESS"/>
                <xs:element name="ID_PROJECT"
                <xs:element name="ID_PROJECT"
                            type="xs:integer"
                            type="xs:integer"
                            id="_2_MARKETING___d15e200897-1_ID_PROJECT"/>
                            id="_2_MARKETING___d15e200897-1_ID_PROJECT"/>
+               <xs:element ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="ID_PROJECT"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #204
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <!--#272 found ignored the_geom-->
                <!--#272 found ignored the_geom-->
                <!--#272 found ignored S_ADDRESS_CITY-->
                <!--#272 found ignored S_ADDRESS_CITY-->
                <!--#272 found ignored BAD_CHCE_LOKALNE_TV_OR_NIE_OGLADAM_LOK_TV-->
                <!--#272 found ignored BAD_CHCE_LOKALNE_TV_OR_NIE_OGLADAM_LOK_TV-->
@@ -2695,7 +3188,20 @@
                <!--#414-A found adding p5_zasob_36:CRM_LISTA_ZASOBOW, $prototype_NamespacePrefix = default_db__x3A__USERS2_MARKETING-->
                <!--#414-A found adding p5_zasob_36:CRM_LISTA_ZASOBOW, $prototype_NamespacePrefix = default_db__x3A__USERS2_MARKETING-->
                <xs:element ref="default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW"
                <xs:element ref="default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW"
                            minOccurs="0"
                            minOccurs="0"
-                           id="_2_MARKETING___d15e200989-1"/>
+                           id="_2_MARKETING___d15e200989-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name=""
+                                                         system_cache__appinfo:xpath="default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <!--#272 found ignored T_TELBOX_PORT-->
                <!--#272 found ignored T_TELBOX_PORT-->
                <!--#272 found ignored T_WORKPOINTS-->
                <!--#272 found ignored T_WORKPOINTS-->
                <!--#272 found ignored T_WORKPOINTS_VALUE-->
                <!--#272 found ignored T_WORKPOINTS_VALUE-->
@@ -2755,7 +3261,8 @@
                            minOccurs="1"
                            minOccurs="1"
                            maxOccurs="1"
                            maxOccurs="1"
                            p5:label="Status usł. Internet"
                            p5:label="Status usł. Internet"
-                           id="_2_MARKETING___d15e201050-1_INTERNET_S">
+                           id="_2_MARKETING___d15e201050-1_INTERNET_S"
+                           type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>INTERNET_STATUS Informacje z bazy billingowej/technicznej o tym z jakich usług korzysta/korzystał  KLIENT.</xs:documentation>
                      <xs:documentation>INTERNET_STATUS Informacje z bazy billingowej/technicznej o tym z jakich usług korzysta/korzystał  KLIENT.</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>

+ 518 - 11
SE/schema/ant-object/default_db.USERS2_MARKETING/USERS2_MARKETING_BN_OLD/USERS2_MARKETING_BN_OLD.xsd

@@ -22,6 +22,7 @@
            xmlns:p5_simpleSchema_map="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/p5_simpleSchema_map.xsd"
            xmlns:p5_simpleSchema_map="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/p5_simpleSchema_map.xsd"
            xmlns:fix_se_defaultdb_schema="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/fix_se_defaultdb_schema/fix_se_defaultdb_schema.xsd"
            xmlns:fix_se_defaultdb_schema="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/fix_se_defaultdb_schema/fix_se_defaultdb_schema.xsd"
            xmlns:p5Type="http://biuro.biall-net.pl/p5/schema/types"
            xmlns:p5Type="http://biuro.biall-net.pl/p5/schema/types"
+           xmlns:default_db__x3A__SERVICES="https://biuro.biall-net.pl/wfs/default_db/table/SERVICES.xsd"
            targetNamespace="https://biuro.biall-net.pl/wfs/default_db/table/USERS2_MARKETING.xsd"
            targetNamespace="https://biuro.biall-net.pl/wfs/default_db/table/USERS2_MARKETING.xsd"
            vc:minVersion="1.1">
            vc:minVersion="1.1">
    <xs:import namespace="http://biuro.biall-net.pl/p5/schema/types"
    <xs:import namespace="http://biuro.biall-net.pl/p5/schema/types"
@@ -46,6 +47,8 @@
               schemaLocation="../../default_db.IN7_DZIENNIK_KORESP/IN7_DZIENNIK_KORESP/IN7_DZIENNIK_KORESP.xsd"/>
               schemaLocation="../../default_db.IN7_DZIENNIK_KORESP/IN7_DZIENNIK_KORESP/IN7_DZIENNIK_KORESP.xsd"/>
    <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/IN7_MK_BAZA_DYSTRYBUCJI.xsd"
    <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/IN7_MK_BAZA_DYSTRYBUCJI.xsd"
               schemaLocation="../../default_db.IN7_MK_BAZA_DYSTRYBUCJI/IN7_MK_BAZA_DYSTRYBUCJI/IN7_MK_BAZA_DYSTRYBUCJI.xsd"/>
               schemaLocation="../../default_db.IN7_MK_BAZA_DYSTRYBUCJI/IN7_MK_BAZA_DYSTRYBUCJI/IN7_MK_BAZA_DYSTRYBUCJI.xsd"/>
+   <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/SERVICES.xsd"
+              schemaLocation="../../default_db.SERVICES/SERVICES/SERVICES.xsd"/>
    <xs:simpleType name="A_STATUS_Type" id="_2_MARKETING___d15e199475-1_A_STATUS_T">
    <xs:simpleType name="A_STATUS_Type" id="_2_MARKETING___d15e199475-1_A_STATUS_T">
       <xs:restriction base="xs:string">
       <xs:restriction base="xs:string">
          <xs:enumeration value="NORMAL"/>
          <xs:enumeration value="NORMAL"/>
@@ -79,6 +82,20 @@
       <xs:restriction base="default_db__x3A__USERS2_MARKETING:I_BAD_DATE"/>
       <xs:restriction base="default_db__x3A__USERS2_MARKETING:I_BAD_DATE"/>
    </xs:simpleType>
    </xs:simpleType>
    <xs:complexType name="USERS2_MARKETING" id="_2_MARKETING___d15e199499-1_USERS2_MAR">
    <xs:complexType name="USERS2_MARKETING" id="_2_MARKETING___d15e199499-1_USERS2_MAR">
+      <xs:annotation>
+         <xs:appinfo>
+            <system_cache__appinfo:heritage>
+               <system_cache__appinfo:inherit system_cache__appinfo:inherit_ref="default_db:USERS2_MARKETING"
+                                              system_cache__appinfo:heritage_acl="true">
+                  <system_cache__appinfo:acl_rule_inherit_to_all_same_name_elements_and_refs/>
+                  <acl_rule_inherit_to_all_refs_by_primary/>
+                  <acl_rule_inherit_to_all_refs_by_local_element system_cache__appinfo:acl_rule_inherit_local_element_name="A_STATUS"/>
+               </system_cache__appinfo:inherit>
+               <system_cache__appinfo:exherit_all system_cache__appinfo:heritage_acl="true"
+                                                  system_cache__appinfo:heritage_sort="true"/>
+            </system_cache__appinfo:heritage>
+         </xs:appinfo>
+      </xs:annotation>
       <xs:sequence id="_2_MARKETING___d15e199500-1">
       <xs:sequence id="_2_MARKETING___d15e199500-1">
          <xs:element name="the_geom"
          <xs:element name="the_geom"
                      id="_2_MARKETING___d15e199501-1_the_geom"
                      id="_2_MARKETING___d15e199501-1_the_geom"
@@ -92,6 +109,20 @@
          <xs:element name="L_APPOITMENT_USER"
          <xs:element name="L_APPOITMENT_USER"
                      type="xs:string"
                      type="xs:string"
                      id="_2_MARKETING___d15e199507-1_L_APPOITME"/>
                      id="_2_MARKETING___d15e199507-1_L_APPOITME"/>
+         <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache>
+                     <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                   system_cache__appinfo:name="L_APPOITMENT_USER"
+                                                   system_cache__appinfo:xpath="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER/ADM_ACCOUNT"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+               <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #166
+                </xs:documentation>
+            </xs:annotation>
+         </xs:element>
          <xs:element name="A_CLASSIFIED"
          <xs:element name="A_CLASSIFIED"
                      type="xs:string"
                      type="xs:string"
                      id="_2_MARKETING___d15e199508-1_A_CLASSIFI"/>
                      id="_2_MARKETING___d15e199508-1_A_CLASSIFI"/>
@@ -102,6 +133,20 @@
          <xs:element name="ADMIN_USERS_ID"
          <xs:element name="ADMIN_USERS_ID"
                      type="xs:integer"
                      type="xs:integer"
                      id="_2_MARKETING___d15e199511-1_ADMIN_USER"/>
                      id="_2_MARKETING___d15e199511-1_ADMIN_USER"/>
+         <xs:element ref="default_db__x3A__ADMIN_USERS:ADMIN_USERS_ID">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache>
+                     <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                   system_cache__appinfo:name="ADMIN_USERS_ID"
+                                                   system_cache__appinfo:xpath="default_db__x3A__ADMIN_USERS:ADMIN_USERS_ID/ID"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+               <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #185
+                </xs:documentation>
+            </xs:annotation>
+         </xs:element>
          <xs:element name="A_ID_USERS2"
          <xs:element name="A_ID_USERS2"
                      type="xs:integer"
                      type="xs:integer"
                      id="_2_MARKETING___d15e199512-1_A_ID_USERS"/>
                      id="_2_MARKETING___d15e199512-1_A_ID_USERS"/>
@@ -111,6 +156,20 @@
          <xs:element name="ID_SERVICES"
          <xs:element name="ID_SERVICES"
                      type="xs:integer"
                      type="xs:integer"
                      id="_2_MARKETING___d15e199514-1_ID_SERVICE"/>
                      id="_2_MARKETING___d15e199514-1_ID_SERVICE"/>
+         <xs:element ref="default_db__x3A__SERVICES:SERVICES">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache>
+                     <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                   system_cache__appinfo:name="ID_SERVICES"
+                                                   system_cache__appinfo:xpath="default_db__x3A__SERVICES:SERVICES/ID"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+               <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #183
+                </xs:documentation>
+            </xs:annotation>
+         </xs:element>
          <xs:element name="A_RECORD_CREATE_DATE"
          <xs:element name="A_RECORD_CREATE_DATE"
                      type="xs:token"
                      type="xs:token"
                      id="_2_MARKETING___d15e199516-1_A_RECORD_C"/>
                      id="_2_MARKETING___d15e199516-1_A_RECORD_C"/>
@@ -267,6 +326,20 @@
          <xs:element name="T_TELBOX_BUILDING_IN"
          <xs:element name="T_TELBOX_BUILDING_IN"
                      type="xs:string"
                      type="xs:string"
                      id="_2_MARKETING___d15e199571-1_T_TELBOX_B"/>
                      id="_2_MARKETING___d15e199571-1_T_TELBOX_B"/>
+         <xs:element ref="default_db__x3A__BUILDINGS:T_TELBOX_BUILDING_IN">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache>
+                     <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                   system_cache__appinfo:name="T_TELBOX_BUILDING_IN"
+                                                   system_cache__appinfo:xpath="default_db__x3A__BUILDINGS:T_TELBOX_BUILDING_IN/S_ADDRESS_STREET"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+               <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #3455 !!!
+                </xs:documentation>
+            </xs:annotation>
+         </xs:element>
          <xs:element name="I_BAD_DATE"
          <xs:element name="I_BAD_DATE"
                      type="default_db__x3A__USERS2_MARKETING:I_BAD_DATE"
                      type="default_db__x3A__USERS2_MARKETING:I_BAD_DATE"
                      id="_2_MARKETING___d15e199572-1_I_BAD_DATE"/>
                      id="_2_MARKETING___d15e199572-1_I_BAD_DATE"/>
@@ -438,12 +511,40 @@
          <xs:element name="CRM_LISTA_ZASOBOW_ID"
          <xs:element name="CRM_LISTA_ZASOBOW_ID"
                      type="xs:integer"
                      type="xs:integer"
                      id="_2_MARKETING___d15e199633-1_CRM_LISTA_"/>
                      id="_2_MARKETING___d15e199633-1_CRM_LISTA_"/>
+         <xs:element ref="default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW_ID">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache>
+                     <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                   system_cache__appinfo:name="CRM_LISTA_ZASOBOW_ID"
+                                                   system_cache__appinfo:xpath="default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW_ID/ID"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+               <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #224
+                </xs:documentation>
+            </xs:annotation>
+         </xs:element>
          <xs:element name="BUSINESS"
          <xs:element name="BUSINESS"
                      type="xs:string"
                      type="xs:string"
                      id="_2_MARKETING___d15e199634-1_BUSINESS"/>
                      id="_2_MARKETING___d15e199634-1_BUSINESS"/>
          <xs:element name="ID_PROJECT"
          <xs:element name="ID_PROJECT"
                      type="xs:integer"
                      type="xs:integer"
                      id="_2_MARKETING___d15e199636-1_ID_PROJECT"/>
                      id="_2_MARKETING___d15e199636-1_ID_PROJECT"/>
+         <xs:element ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache>
+                     <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                   system_cache__appinfo:name="ID_PROJECT"
+                                                   system_cache__appinfo:xpath="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT/ID"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+               <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #204
+                </xs:documentation>
+            </xs:annotation>
+         </xs:element>
          <!--#272 found ignored the_geom-->
          <!--#272 found ignored the_geom-->
          <!--#272 found ignored S_ADDRESS_CITY-->
          <!--#272 found ignored S_ADDRESS_CITY-->
          <!--#272 found ignored BAD_CHCE_LOKALNE_TV_OR_NIE_OGLADAM_LOK_TV-->
          <!--#272 found ignored BAD_CHCE_LOKALNE_TV_OR_NIE_OGLADAM_LOK_TV-->
@@ -526,7 +627,20 @@
          <!--#414-A found adding p5_zasob_36:CRM_LISTA_ZASOBOW, $prototype_NamespacePrefix = default_db__x3A__USERS2_MARKETING-->
          <!--#414-A found adding p5_zasob_36:CRM_LISTA_ZASOBOW, $prototype_NamespacePrefix = default_db__x3A__USERS2_MARKETING-->
          <xs:element ref="default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW"
          <xs:element ref="default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW"
                      minOccurs="0"
                      minOccurs="0"
-                     id="_2_MARKETING___d15e199728-1"/>
+                     id="_2_MARKETING___d15e199728-1">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache>
+                     <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                   system_cache__appinfo:name=""
+                                                   system_cache__appinfo:xpath="default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW/ID"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+               <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED
+                </xs:documentation>
+            </xs:annotation>
+         </xs:element>
          <!--#272 found ignored T_TELBOX_PORT-->
          <!--#272 found ignored T_TELBOX_PORT-->
          <!--#272 found ignored T_WORKPOINTS-->
          <!--#272 found ignored T_WORKPOINTS-->
          <!--#272 found ignored T_WORKPOINTS_VALUE-->
          <!--#272 found ignored T_WORKPOINTS_VALUE-->
@@ -583,10 +697,11 @@
          <xs:element xmlns:p5="https://biuro.biall-net.pl/wfs"
          <xs:element xmlns:p5="https://biuro.biall-net.pl/wfs"
                      name="INTERNET_STATUS"
                      name="INTERNET_STATUS"
                      p5:id_zasob="3493"
                      p5:id_zasob="3493"
-                     minOccurs="1"
+                     minOccurs="0"
                      maxOccurs="1"
                      maxOccurs="1"
                      p5:label="Status usł. Internet"
                      p5:label="Status usł. Internet"
-                     id="_2_MARKETING___d15e199789-1_INTERNET_S">
+                     id="_2_MARKETING___d15e199789-1_INTERNET_S"
+                     type="xs:string">
             <xs:annotation>
             <xs:annotation>
                <xs:documentation>INTERNET_STATUS Informacje z bazy billingowej/technicznej o tym z jakich usług korzysta/korzystał  KLIENT.</xs:documentation>
                <xs:documentation>INTERNET_STATUS Informacje z bazy billingowej/technicznej o tym z jakich usług korzysta/korzystał  KLIENT.</xs:documentation>
             </xs:annotation>
             </xs:annotation>
@@ -633,6 +748,20 @@
                <xs:element name="L_APPOITMENT_USER"
                <xs:element name="L_APPOITMENT_USER"
                            type="xs:string"
                            type="xs:string"
                            id="_2_MARKETING___d15e199823-1_L_APPOITME"/>
                            id="_2_MARKETING___d15e199823-1_L_APPOITME"/>
+               <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="L_APPOITMENT_USER"
+                                                         system_cache__appinfo:xpath="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER/ADM_ACCOUNT"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #166
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <xs:element name="A_CLASSIFIED"
                <xs:element name="A_CLASSIFIED"
                            type="xs:string"
                            type="xs:string"
                            id="_2_MARKETING___d15e199824-1_A_CLASSIFI"/>
                            id="_2_MARKETING___d15e199824-1_A_CLASSIFI"/>
@@ -643,6 +772,20 @@
                <xs:element name="ADMIN_USERS_ID"
                <xs:element name="ADMIN_USERS_ID"
                            type="xs:integer"
                            type="xs:integer"
                            id="_2_MARKETING___d15e199827-1_ADMIN_USER"/>
                            id="_2_MARKETING___d15e199827-1_ADMIN_USER"/>
+               <xs:element ref="default_db__x3A__ADMIN_USERS:ADMIN_USERS_ID">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="ADMIN_USERS_ID"
+                                                         system_cache__appinfo:xpath="default_db__x3A__ADMIN_USERS:ADMIN_USERS_ID/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #185
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <xs:element name="A_ID_USERS2"
                <xs:element name="A_ID_USERS2"
                            type="xs:integer"
                            type="xs:integer"
                            id="_2_MARKETING___d15e199828-1_A_ID_USERS"/>
                            id="_2_MARKETING___d15e199828-1_A_ID_USERS"/>
@@ -652,6 +795,20 @@
                <xs:element name="ID_SERVICES"
                <xs:element name="ID_SERVICES"
                            type="xs:integer"
                            type="xs:integer"
                            id="_2_MARKETING___d15e199830-1_ID_SERVICE"/>
                            id="_2_MARKETING___d15e199830-1_ID_SERVICE"/>
+               <xs:element ref="default_db__x3A__SERVICES:SERVICES">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="ID_SERVICES"
+                                                         system_cache__appinfo:xpath="default_db__x3A__SERVICES:SERVICES/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #183
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <xs:element name="A_RECORD_CREATE_DATE"
                <xs:element name="A_RECORD_CREATE_DATE"
                            type="xs:token"
                            type="xs:token"
                            id="_2_MARKETING___d15e199832-1_A_RECORD_C"/>
                            id="_2_MARKETING___d15e199832-1_A_RECORD_C"/>
@@ -808,6 +965,20 @@
                <xs:element name="T_TELBOX_BUILDING_IN"
                <xs:element name="T_TELBOX_BUILDING_IN"
                            type="xs:string"
                            type="xs:string"
                            id="_2_MARKETING___d15e199887-1_T_TELBOX_B"/>
                            id="_2_MARKETING___d15e199887-1_T_TELBOX_B"/>
+               <xs:element ref="default_db__x3A__BUILDINGS:T_TELBOX_BUILDING_IN">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="T_TELBOX_BUILDING_IN"
+                                                         system_cache__appinfo:xpath="default_db__x3A__BUILDINGS:T_TELBOX_BUILDING_IN/S_ADDRESS_STREET"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #3455 !!!
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <xs:element name="I_BAD_DATE"
                <xs:element name="I_BAD_DATE"
                            type="default_db__x3A__USERS2_MARKETING:I_BAD_DATE_FRESH"
                            type="default_db__x3A__USERS2_MARKETING:I_BAD_DATE_FRESH"
                            id="_2_MARKETING___d15e199888-1_I_BAD_DATE"/>
                            id="_2_MARKETING___d15e199888-1_I_BAD_DATE"/>
@@ -979,12 +1150,40 @@
                <xs:element name="CRM_LISTA_ZASOBOW_ID"
                <xs:element name="CRM_LISTA_ZASOBOW_ID"
                            type="xs:integer"
                            type="xs:integer"
                            id="_2_MARKETING___d15e199949-1_CRM_LISTA_"/>
                            id="_2_MARKETING___d15e199949-1_CRM_LISTA_"/>
+               <xs:element ref="default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW_ID">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="CRM_LISTA_ZASOBOW_ID"
+                                                         system_cache__appinfo:xpath="default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW_ID/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #224
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <xs:element name="BUSINESS"
                <xs:element name="BUSINESS"
                            type="xs:string"
                            type="xs:string"
                            id="_2_MARKETING___d15e199950-1_BUSINESS"/>
                            id="_2_MARKETING___d15e199950-1_BUSINESS"/>
                <xs:element name="ID_PROJECT"
                <xs:element name="ID_PROJECT"
                            type="xs:integer"
                            type="xs:integer"
                            id="_2_MARKETING___d15e199952-1_ID_PROJECT"/>
                            id="_2_MARKETING___d15e199952-1_ID_PROJECT"/>
+               <xs:element ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="ID_PROJECT"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #204
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <!--#272 found ignored the_geom-->
                <!--#272 found ignored the_geom-->
                <!--#272 found ignored S_ADDRESS_CITY-->
                <!--#272 found ignored S_ADDRESS_CITY-->
                <!--#272 found ignored BAD_CHCE_LOKALNE_TV_OR_NIE_OGLADAM_LOK_TV-->
                <!--#272 found ignored BAD_CHCE_LOKALNE_TV_OR_NIE_OGLADAM_LOK_TV-->
@@ -1067,7 +1266,20 @@
                <!--#414-A found adding p5_zasob_36:CRM_LISTA_ZASOBOW, $prototype_NamespacePrefix = default_db__x3A__USERS2_MARKETING-->
                <!--#414-A found adding p5_zasob_36:CRM_LISTA_ZASOBOW, $prototype_NamespacePrefix = default_db__x3A__USERS2_MARKETING-->
                <xs:element ref="default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW"
                <xs:element ref="default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW"
                            minOccurs="0"
                            minOccurs="0"
-                           id="_2_MARKETING___d15e200044-1"/>
+                           id="_2_MARKETING___d15e200044-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name=""
+                                                         system_cache__appinfo:xpath="default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <!--#272 found ignored T_TELBOX_PORT-->
                <!--#272 found ignored T_TELBOX_PORT-->
                <!--#272 found ignored T_WORKPOINTS-->
                <!--#272 found ignored T_WORKPOINTS-->
                <!--#272 found ignored T_WORKPOINTS_VALUE-->
                <!--#272 found ignored T_WORKPOINTS_VALUE-->
@@ -1127,7 +1339,8 @@
                            minOccurs="1"
                            minOccurs="1"
                            maxOccurs="1"
                            maxOccurs="1"
                            p5:label="Status usł. Internet"
                            p5:label="Status usł. Internet"
-                           id="_2_MARKETING___d15e200105-1_INTERNET_S">
+                           id="_2_MARKETING___d15e200105-1_INTERNET_S"
+                           type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>INTERNET_STATUS Informacje z bazy billingowej/technicznej o tym z jakich usług korzysta/korzystał  KLIENT.</xs:documentation>
                      <xs:documentation>INTERNET_STATUS Informacje z bazy billingowej/technicznej o tym z jakich usług korzysta/korzystał  KLIENT.</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
@@ -1175,6 +1388,20 @@
                <xs:element name="L_APPOITMENT_USER"
                <xs:element name="L_APPOITMENT_USER"
                            type="xs:string"
                            type="xs:string"
                            id="_2_MARKETING___d15e200138-1_L_APPOITME"/>
                            id="_2_MARKETING___d15e200138-1_L_APPOITME"/>
+               <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="L_APPOITMENT_USER"
+                                                         system_cache__appinfo:xpath="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER/ADM_ACCOUNT"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #166
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <xs:element name="A_CLASSIFIED"
                <xs:element name="A_CLASSIFIED"
                            type="xs:string"
                            type="xs:string"
                            id="_2_MARKETING___d15e200139-1_A_CLASSIFI"/>
                            id="_2_MARKETING___d15e200139-1_A_CLASSIFI"/>
@@ -1185,6 +1412,20 @@
                <xs:element name="ADMIN_USERS_ID"
                <xs:element name="ADMIN_USERS_ID"
                            type="xs:integer"
                            type="xs:integer"
                            id="_2_MARKETING___d15e200142-1_ADMIN_USER"/>
                            id="_2_MARKETING___d15e200142-1_ADMIN_USER"/>
+               <xs:element ref="default_db__x3A__ADMIN_USERS:ADMIN_USERS_ID">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="ADMIN_USERS_ID"
+                                                         system_cache__appinfo:xpath="default_db__x3A__ADMIN_USERS:ADMIN_USERS_ID/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #185
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <xs:element name="A_ID_USERS2"
                <xs:element name="A_ID_USERS2"
                            type="xs:integer"
                            type="xs:integer"
                            id="_2_MARKETING___d15e200143-1_A_ID_USERS"/>
                            id="_2_MARKETING___d15e200143-1_A_ID_USERS"/>
@@ -1194,6 +1435,20 @@
                <xs:element name="ID_SERVICES"
                <xs:element name="ID_SERVICES"
                            type="xs:integer"
                            type="xs:integer"
                            id="_2_MARKETING___d15e200145-1_ID_SERVICE"/>
                            id="_2_MARKETING___d15e200145-1_ID_SERVICE"/>
+               <xs:element ref="default_db__x3A__SERVICES:SERVICES">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="ID_SERVICES"
+                                                         system_cache__appinfo:xpath="default_db__x3A__SERVICES:SERVICES/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #183
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <xs:element name="A_RECORD_CREATE_DATE"
                <xs:element name="A_RECORD_CREATE_DATE"
                            type="xs:token"
                            type="xs:token"
                            id="_2_MARKETING___d15e200147-1_A_RECORD_C"/>
                            id="_2_MARKETING___d15e200147-1_A_RECORD_C"/>
@@ -1350,6 +1605,20 @@
                <xs:element name="T_TELBOX_BUILDING_IN"
                <xs:element name="T_TELBOX_BUILDING_IN"
                            type="xs:string"
                            type="xs:string"
                            id="_2_MARKETING___d15e200202-1_T_TELBOX_B"/>
                            id="_2_MARKETING___d15e200202-1_T_TELBOX_B"/>
+               <xs:element ref="default_db__x3A__BUILDINGS:T_TELBOX_BUILDING_IN">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="T_TELBOX_BUILDING_IN"
+                                                         system_cache__appinfo:xpath="default_db__x3A__BUILDINGS:T_TELBOX_BUILDING_IN/S_ADDRESS_STREET"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #3455 !!!
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <xs:element name="I_BAD_DATE"
                <xs:element name="I_BAD_DATE"
                            type="default_db__x3A__USERS2_MARKETING:I_BAD_DATE_OLD"
                            type="default_db__x3A__USERS2_MARKETING:I_BAD_DATE_OLD"
                            id="_2_MARKETING___d15e200203-1_I_BAD_DATE"/>
                            id="_2_MARKETING___d15e200203-1_I_BAD_DATE"/>
@@ -1521,12 +1790,40 @@
                <xs:element name="CRM_LISTA_ZASOBOW_ID"
                <xs:element name="CRM_LISTA_ZASOBOW_ID"
                            type="xs:integer"
                            type="xs:integer"
                            id="_2_MARKETING___d15e200264-1_CRM_LISTA_"/>
                            id="_2_MARKETING___d15e200264-1_CRM_LISTA_"/>
+               <xs:element ref="default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW_ID">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="CRM_LISTA_ZASOBOW_ID"
+                                                         system_cache__appinfo:xpath="default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW_ID/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #224
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <xs:element name="BUSINESS"
                <xs:element name="BUSINESS"
                            type="xs:string"
                            type="xs:string"
                            id="_2_MARKETING___d15e200265-1_BUSINESS"/>
                            id="_2_MARKETING___d15e200265-1_BUSINESS"/>
                <xs:element name="ID_PROJECT"
                <xs:element name="ID_PROJECT"
                            type="xs:integer"
                            type="xs:integer"
                            id="_2_MARKETING___d15e200267-1_ID_PROJECT"/>
                            id="_2_MARKETING___d15e200267-1_ID_PROJECT"/>
+               <xs:element ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="ID_PROJECT"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #204
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <!--#272 found ignored the_geom-->
                <!--#272 found ignored the_geom-->
                <!--#272 found ignored S_ADDRESS_CITY-->
                <!--#272 found ignored S_ADDRESS_CITY-->
                <!--#272 found ignored BAD_CHCE_LOKALNE_TV_OR_NIE_OGLADAM_LOK_TV-->
                <!--#272 found ignored BAD_CHCE_LOKALNE_TV_OR_NIE_OGLADAM_LOK_TV-->
@@ -1609,7 +1906,20 @@
                <!--#414-A found adding p5_zasob_36:CRM_LISTA_ZASOBOW, $prototype_NamespacePrefix = default_db__x3A__USERS2_MARKETING-->
                <!--#414-A found adding p5_zasob_36:CRM_LISTA_ZASOBOW, $prototype_NamespacePrefix = default_db__x3A__USERS2_MARKETING-->
                <xs:element ref="default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW"
                <xs:element ref="default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW"
                            minOccurs="0"
                            minOccurs="0"
-                           id="_2_MARKETING___d15e200359-1"/>
+                           id="_2_MARKETING___d15e200359-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name=""
+                                                         system_cache__appinfo:xpath="default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <!--#272 found ignored T_TELBOX_PORT-->
                <!--#272 found ignored T_TELBOX_PORT-->
                <!--#272 found ignored T_WORKPOINTS-->
                <!--#272 found ignored T_WORKPOINTS-->
                <!--#272 found ignored T_WORKPOINTS_VALUE-->
                <!--#272 found ignored T_WORKPOINTS_VALUE-->
@@ -1669,7 +1979,8 @@
                            minOccurs="1"
                            minOccurs="1"
                            maxOccurs="1"
                            maxOccurs="1"
                            p5:label="Status usł. Internet"
                            p5:label="Status usł. Internet"
-                           id="_2_MARKETING___d15e200420-1_INTERNET_S">
+                           id="_2_MARKETING___d15e200420-1_INTERNET_S"
+                           type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>INTERNET_STATUS Informacje z bazy billingowej/technicznej o tym z jakich usług korzysta/korzystał  KLIENT.</xs:documentation>
                      <xs:documentation>INTERNET_STATUS Informacje z bazy billingowej/technicznej o tym z jakich usług korzysta/korzystał  KLIENT.</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
@@ -1719,6 +2030,20 @@
                <xs:element name="L_APPOITMENT_USER"
                <xs:element name="L_APPOITMENT_USER"
                            type="xs:string"
                            type="xs:string"
                            id="_2_MARKETING___d15e200453-1_L_APPOITME"/>
                            id="_2_MARKETING___d15e200453-1_L_APPOITME"/>
+               <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="L_APPOITMENT_USER"
+                                                         system_cache__appinfo:xpath="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER/ADM_ACCOUNT"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #166
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <xs:element name="A_CLASSIFIED"
                <xs:element name="A_CLASSIFIED"
                            type="xs:string"
                            type="xs:string"
                            id="_2_MARKETING___d15e200454-1_A_CLASSIFI"/>
                            id="_2_MARKETING___d15e200454-1_A_CLASSIFI"/>
@@ -1729,6 +2054,20 @@
                <xs:element name="ADMIN_USERS_ID"
                <xs:element name="ADMIN_USERS_ID"
                            type="xs:integer"
                            type="xs:integer"
                            id="_2_MARKETING___d15e200457-1_ADMIN_USER"/>
                            id="_2_MARKETING___d15e200457-1_ADMIN_USER"/>
+               <xs:element ref="default_db__x3A__ADMIN_USERS:ADMIN_USERS_ID">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="ADMIN_USERS_ID"
+                                                         system_cache__appinfo:xpath="default_db__x3A__ADMIN_USERS:ADMIN_USERS_ID/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #185
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <xs:element name="A_ID_USERS2"
                <xs:element name="A_ID_USERS2"
                            type="xs:integer"
                            type="xs:integer"
                            id="_2_MARKETING___d15e200458-1_A_ID_USERS"/>
                            id="_2_MARKETING___d15e200458-1_A_ID_USERS"/>
@@ -1738,6 +2077,20 @@
                <xs:element name="ID_SERVICES"
                <xs:element name="ID_SERVICES"
                            type="xs:integer"
                            type="xs:integer"
                            id="_2_MARKETING___d15e200460-1_ID_SERVICE"/>
                            id="_2_MARKETING___d15e200460-1_ID_SERVICE"/>
+               <xs:element ref="default_db__x3A__SERVICES:SERVICES">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="ID_SERVICES"
+                                                         system_cache__appinfo:xpath="default_db__x3A__SERVICES:SERVICES/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #183
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <xs:element name="A_RECORD_CREATE_DATE"
                <xs:element name="A_RECORD_CREATE_DATE"
                            type="xs:token"
                            type="xs:token"
                            id="_2_MARKETING___d15e200462-1_A_RECORD_C"/>
                            id="_2_MARKETING___d15e200462-1_A_RECORD_C"/>
@@ -1894,6 +2247,20 @@
                <xs:element name="T_TELBOX_BUILDING_IN"
                <xs:element name="T_TELBOX_BUILDING_IN"
                            type="xs:string"
                            type="xs:string"
                            id="_2_MARKETING___d15e200517-1_T_TELBOX_B"/>
                            id="_2_MARKETING___d15e200517-1_T_TELBOX_B"/>
+               <xs:element ref="default_db__x3A__BUILDINGS:T_TELBOX_BUILDING_IN">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="T_TELBOX_BUILDING_IN"
+                                                         system_cache__appinfo:xpath="default_db__x3A__BUILDINGS:T_TELBOX_BUILDING_IN/S_ADDRESS_STREET"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #3455 !!!
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <xs:element name="I_BAD_DATE"
                <xs:element name="I_BAD_DATE"
                            type="default_db__x3A__USERS2_MARKETING:I_BAD_DATE_OLD"
                            type="default_db__x3A__USERS2_MARKETING:I_BAD_DATE_OLD"
                            id="_2_MARKETING___d15e200518-1_I_BAD_DATE"/>
                            id="_2_MARKETING___d15e200518-1_I_BAD_DATE"/>
@@ -2065,12 +2432,40 @@
                <xs:element name="CRM_LISTA_ZASOBOW_ID"
                <xs:element name="CRM_LISTA_ZASOBOW_ID"
                            type="xs:integer"
                            type="xs:integer"
                            id="_2_MARKETING___d15e200579-1_CRM_LISTA_"/>
                            id="_2_MARKETING___d15e200579-1_CRM_LISTA_"/>
+               <xs:element ref="default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW_ID">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="CRM_LISTA_ZASOBOW_ID"
+                                                         system_cache__appinfo:xpath="default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW_ID/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #224
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <xs:element name="BUSINESS"
                <xs:element name="BUSINESS"
                            type="xs:string"
                            type="xs:string"
                            id="_2_MARKETING___d15e200580-1_BUSINESS"/>
                            id="_2_MARKETING___d15e200580-1_BUSINESS"/>
                <xs:element name="ID_PROJECT"
                <xs:element name="ID_PROJECT"
                            type="xs:integer"
                            type="xs:integer"
                            id="_2_MARKETING___d15e200582-1_ID_PROJECT"/>
                            id="_2_MARKETING___d15e200582-1_ID_PROJECT"/>
+               <xs:element ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="ID_PROJECT"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #204
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <!--#272 found ignored the_geom-->
                <!--#272 found ignored the_geom-->
                <!--#272 found ignored S_ADDRESS_CITY-->
                <!--#272 found ignored S_ADDRESS_CITY-->
                <!--#272 found ignored BAD_CHCE_LOKALNE_TV_OR_NIE_OGLADAM_LOK_TV-->
                <!--#272 found ignored BAD_CHCE_LOKALNE_TV_OR_NIE_OGLADAM_LOK_TV-->
@@ -2153,7 +2548,20 @@
                <!--#414-A found adding p5_zasob_36:CRM_LISTA_ZASOBOW, $prototype_NamespacePrefix = default_db__x3A__USERS2_MARKETING-->
                <!--#414-A found adding p5_zasob_36:CRM_LISTA_ZASOBOW, $prototype_NamespacePrefix = default_db__x3A__USERS2_MARKETING-->
                <xs:element ref="default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW"
                <xs:element ref="default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW"
                            minOccurs="0"
                            minOccurs="0"
-                           id="_2_MARKETING___d15e200674-1"/>
+                           id="_2_MARKETING___d15e200674-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name=""
+                                                         system_cache__appinfo:xpath="default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <!--#272 found ignored T_TELBOX_PORT-->
                <!--#272 found ignored T_TELBOX_PORT-->
                <!--#272 found ignored T_WORKPOINTS-->
                <!--#272 found ignored T_WORKPOINTS-->
                <!--#272 found ignored T_WORKPOINTS_VALUE-->
                <!--#272 found ignored T_WORKPOINTS_VALUE-->
@@ -2213,7 +2621,8 @@
                            minOccurs="1"
                            minOccurs="1"
                            maxOccurs="1"
                            maxOccurs="1"
                            p5:label="Status usł. Internet"
                            p5:label="Status usł. Internet"
-                           id="_2_MARKETING___d15e200735-1_INTERNET_S">
+                           id="_2_MARKETING___d15e200735-1_INTERNET_S"
+                           type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>INTERNET_STATUS Informacje z bazy billingowej/technicznej o tym z jakich usług korzysta/korzystał  KLIENT.</xs:documentation>
                      <xs:documentation>INTERNET_STATUS Informacje z bazy billingowej/technicznej o tym z jakich usług korzysta/korzystał  KLIENT.</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
@@ -2261,6 +2670,20 @@
                <xs:element name="L_APPOITMENT_USER"
                <xs:element name="L_APPOITMENT_USER"
                            type="xs:string"
                            type="xs:string"
                            id="_2_MARKETING___d15e200768-1_L_APPOITME"/>
                            id="_2_MARKETING___d15e200768-1_L_APPOITME"/>
+               <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="L_APPOITMENT_USER"
+                                                         system_cache__appinfo:xpath="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER/ADM_ACCOUNT"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #166
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <xs:element name="A_CLASSIFIED"
                <xs:element name="A_CLASSIFIED"
                            type="xs:string"
                            type="xs:string"
                            id="_2_MARKETING___d15e200769-1_A_CLASSIFI"/>
                            id="_2_MARKETING___d15e200769-1_A_CLASSIFI"/>
@@ -2271,6 +2694,20 @@
                <xs:element name="ADMIN_USERS_ID"
                <xs:element name="ADMIN_USERS_ID"
                            type="xs:integer"
                            type="xs:integer"
                            id="_2_MARKETING___d15e200772-1_ADMIN_USER"/>
                            id="_2_MARKETING___d15e200772-1_ADMIN_USER"/>
+               <xs:element ref="default_db__x3A__ADMIN_USERS:ADMIN_USERS_ID">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="ADMIN_USERS_ID"
+                                                         system_cache__appinfo:xpath="default_db__x3A__ADMIN_USERS:ADMIN_USERS_ID/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #185
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <xs:element name="A_ID_USERS2"
                <xs:element name="A_ID_USERS2"
                            type="xs:integer"
                            type="xs:integer"
                            id="_2_MARKETING___d15e200773-1_A_ID_USERS"/>
                            id="_2_MARKETING___d15e200773-1_A_ID_USERS"/>
@@ -2280,6 +2717,20 @@
                <xs:element name="ID_SERVICES"
                <xs:element name="ID_SERVICES"
                            type="xs:integer"
                            type="xs:integer"
                            id="_2_MARKETING___d15e200775-1_ID_SERVICE"/>
                            id="_2_MARKETING___d15e200775-1_ID_SERVICE"/>
+               <xs:element ref="default_db__x3A__SERVICES:SERVICES">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="ID_SERVICES"
+                                                         system_cache__appinfo:xpath="default_db__x3A__SERVICES:SERVICES/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #183
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <xs:element name="A_RECORD_CREATE_DATE"
                <xs:element name="A_RECORD_CREATE_DATE"
                            type="xs:token"
                            type="xs:token"
                            id="_2_MARKETING___d15e200777-1_A_RECORD_C"/>
                            id="_2_MARKETING___d15e200777-1_A_RECORD_C"/>
@@ -2436,6 +2887,20 @@
                <xs:element name="T_TELBOX_BUILDING_IN"
                <xs:element name="T_TELBOX_BUILDING_IN"
                            type="xs:string"
                            type="xs:string"
                            id="_2_MARKETING___d15e200832-1_T_TELBOX_B"/>
                            id="_2_MARKETING___d15e200832-1_T_TELBOX_B"/>
+               <xs:element ref="default_db__x3A__BUILDINGS:T_TELBOX_BUILDING_IN">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="T_TELBOX_BUILDING_IN"
+                                                         system_cache__appinfo:xpath="default_db__x3A__BUILDINGS:T_TELBOX_BUILDING_IN/S_ADDRESS_STREET"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #3455 !!!
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <xs:element name="I_BAD_DATE"
                <xs:element name="I_BAD_DATE"
                            type="default_db__x3A__USERS2_MARKETING:I_BAD_DATE_FRESH"
                            type="default_db__x3A__USERS2_MARKETING:I_BAD_DATE_FRESH"
                            id="_2_MARKETING___d15e200833-1_I_BAD_DATE"/>
                            id="_2_MARKETING___d15e200833-1_I_BAD_DATE"/>
@@ -2607,12 +3072,40 @@
                <xs:element name="CRM_LISTA_ZASOBOW_ID"
                <xs:element name="CRM_LISTA_ZASOBOW_ID"
                            type="xs:integer"
                            type="xs:integer"
                            id="_2_MARKETING___d15e200894-1_CRM_LISTA_"/>
                            id="_2_MARKETING___d15e200894-1_CRM_LISTA_"/>
+               <xs:element ref="default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW_ID">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="CRM_LISTA_ZASOBOW_ID"
+                                                         system_cache__appinfo:xpath="default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW_ID/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #224
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <xs:element name="BUSINESS"
                <xs:element name="BUSINESS"
                            type="xs:string"
                            type="xs:string"
                            id="_2_MARKETING___d15e200895-1_BUSINESS"/>
                            id="_2_MARKETING___d15e200895-1_BUSINESS"/>
                <xs:element name="ID_PROJECT"
                <xs:element name="ID_PROJECT"
                            type="xs:integer"
                            type="xs:integer"
                            id="_2_MARKETING___d15e200897-1_ID_PROJECT"/>
                            id="_2_MARKETING___d15e200897-1_ID_PROJECT"/>
+               <xs:element ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="ID_PROJECT"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #204
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <!--#272 found ignored the_geom-->
                <!--#272 found ignored the_geom-->
                <!--#272 found ignored S_ADDRESS_CITY-->
                <!--#272 found ignored S_ADDRESS_CITY-->
                <!--#272 found ignored BAD_CHCE_LOKALNE_TV_OR_NIE_OGLADAM_LOK_TV-->
                <!--#272 found ignored BAD_CHCE_LOKALNE_TV_OR_NIE_OGLADAM_LOK_TV-->
@@ -2695,7 +3188,20 @@
                <!--#414-A found adding p5_zasob_36:CRM_LISTA_ZASOBOW, $prototype_NamespacePrefix = default_db__x3A__USERS2_MARKETING-->
                <!--#414-A found adding p5_zasob_36:CRM_LISTA_ZASOBOW, $prototype_NamespacePrefix = default_db__x3A__USERS2_MARKETING-->
                <xs:element ref="default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW"
                <xs:element ref="default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW"
                            minOccurs="0"
                            minOccurs="0"
-                           id="_2_MARKETING___d15e200989-1"/>
+                           id="_2_MARKETING___d15e200989-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name=""
+                                                         system_cache__appinfo:xpath="default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <!--#272 found ignored T_TELBOX_PORT-->
                <!--#272 found ignored T_TELBOX_PORT-->
                <!--#272 found ignored T_WORKPOINTS-->
                <!--#272 found ignored T_WORKPOINTS-->
                <!--#272 found ignored T_WORKPOINTS_VALUE-->
                <!--#272 found ignored T_WORKPOINTS_VALUE-->
@@ -2755,7 +3261,8 @@
                            minOccurs="1"
                            minOccurs="1"
                            maxOccurs="1"
                            maxOccurs="1"
                            p5:label="Status usł. Internet"
                            p5:label="Status usł. Internet"
-                           id="_2_MARKETING___d15e201050-1_INTERNET_S">
+                           id="_2_MARKETING___d15e201050-1_INTERNET_S"
+                           type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>INTERNET_STATUS Informacje z bazy billingowej/technicznej o tym z jakich usług korzysta/korzystał  KLIENT.</xs:documentation>
                      <xs:documentation>INTERNET_STATUS Informacje z bazy billingowej/technicznej o tym z jakich usług korzysta/korzystał  KLIENT.</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>

+ 518 - 11
SE/schema/ant-object/default_db.USERS2_MARKETING/USERS2_MARKETING_OBCY_FRESH/USERS2_MARKETING_OBCY_FRESH.xsd

@@ -22,6 +22,7 @@
            xmlns:p5_simpleSchema_map="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/p5_simpleSchema_map.xsd"
            xmlns:p5_simpleSchema_map="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/p5_simpleSchema_map.xsd"
            xmlns:fix_se_defaultdb_schema="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/fix_se_defaultdb_schema/fix_se_defaultdb_schema.xsd"
            xmlns:fix_se_defaultdb_schema="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/fix_se_defaultdb_schema/fix_se_defaultdb_schema.xsd"
            xmlns:p5Type="http://biuro.biall-net.pl/p5/schema/types"
            xmlns:p5Type="http://biuro.biall-net.pl/p5/schema/types"
+           xmlns:default_db__x3A__SERVICES="https://biuro.biall-net.pl/wfs/default_db/table/SERVICES.xsd"
            targetNamespace="https://biuro.biall-net.pl/wfs/default_db/table/USERS2_MARKETING.xsd"
            targetNamespace="https://biuro.biall-net.pl/wfs/default_db/table/USERS2_MARKETING.xsd"
            vc:minVersion="1.1">
            vc:minVersion="1.1">
    <xs:import namespace="http://biuro.biall-net.pl/p5/schema/types"
    <xs:import namespace="http://biuro.biall-net.pl/p5/schema/types"
@@ -46,6 +47,8 @@
               schemaLocation="../../default_db.IN7_DZIENNIK_KORESP/IN7_DZIENNIK_KORESP/IN7_DZIENNIK_KORESP.xsd"/>
               schemaLocation="../../default_db.IN7_DZIENNIK_KORESP/IN7_DZIENNIK_KORESP/IN7_DZIENNIK_KORESP.xsd"/>
    <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/IN7_MK_BAZA_DYSTRYBUCJI.xsd"
    <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/IN7_MK_BAZA_DYSTRYBUCJI.xsd"
               schemaLocation="../../default_db.IN7_MK_BAZA_DYSTRYBUCJI/IN7_MK_BAZA_DYSTRYBUCJI/IN7_MK_BAZA_DYSTRYBUCJI.xsd"/>
               schemaLocation="../../default_db.IN7_MK_BAZA_DYSTRYBUCJI/IN7_MK_BAZA_DYSTRYBUCJI/IN7_MK_BAZA_DYSTRYBUCJI.xsd"/>
+   <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/SERVICES.xsd"
+              schemaLocation="../../default_db.SERVICES/SERVICES/SERVICES.xsd"/>
    <xs:simpleType name="A_STATUS_Type" id="_2_MARKETING___d15e199475-1_A_STATUS_T">
    <xs:simpleType name="A_STATUS_Type" id="_2_MARKETING___d15e199475-1_A_STATUS_T">
       <xs:restriction base="xs:string">
       <xs:restriction base="xs:string">
          <xs:enumeration value="NORMAL"/>
          <xs:enumeration value="NORMAL"/>
@@ -79,6 +82,20 @@
       <xs:restriction base="default_db__x3A__USERS2_MARKETING:I_BAD_DATE"/>
       <xs:restriction base="default_db__x3A__USERS2_MARKETING:I_BAD_DATE"/>
    </xs:simpleType>
    </xs:simpleType>
    <xs:complexType name="USERS2_MARKETING" id="_2_MARKETING___d15e199499-1_USERS2_MAR">
    <xs:complexType name="USERS2_MARKETING" id="_2_MARKETING___d15e199499-1_USERS2_MAR">
+      <xs:annotation>
+         <xs:appinfo>
+            <system_cache__appinfo:heritage>
+               <system_cache__appinfo:inherit system_cache__appinfo:inherit_ref="default_db:USERS2_MARKETING"
+                                              system_cache__appinfo:heritage_acl="true">
+                  <system_cache__appinfo:acl_rule_inherit_to_all_same_name_elements_and_refs/>
+                  <acl_rule_inherit_to_all_refs_by_primary/>
+                  <acl_rule_inherit_to_all_refs_by_local_element system_cache__appinfo:acl_rule_inherit_local_element_name="A_STATUS"/>
+               </system_cache__appinfo:inherit>
+               <system_cache__appinfo:exherit_all system_cache__appinfo:heritage_acl="true"
+                                                  system_cache__appinfo:heritage_sort="true"/>
+            </system_cache__appinfo:heritage>
+         </xs:appinfo>
+      </xs:annotation>
       <xs:sequence id="_2_MARKETING___d15e199500-1">
       <xs:sequence id="_2_MARKETING___d15e199500-1">
          <xs:element name="the_geom"
          <xs:element name="the_geom"
                      id="_2_MARKETING___d15e199501-1_the_geom"
                      id="_2_MARKETING___d15e199501-1_the_geom"
@@ -92,6 +109,20 @@
          <xs:element name="L_APPOITMENT_USER"
          <xs:element name="L_APPOITMENT_USER"
                      type="xs:string"
                      type="xs:string"
                      id="_2_MARKETING___d15e199507-1_L_APPOITME"/>
                      id="_2_MARKETING___d15e199507-1_L_APPOITME"/>
+         <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache>
+                     <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                   system_cache__appinfo:name="L_APPOITMENT_USER"
+                                                   system_cache__appinfo:xpath="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER/ADM_ACCOUNT"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+               <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #166
+                </xs:documentation>
+            </xs:annotation>
+         </xs:element>
          <xs:element name="A_CLASSIFIED"
          <xs:element name="A_CLASSIFIED"
                      type="xs:string"
                      type="xs:string"
                      id="_2_MARKETING___d15e199508-1_A_CLASSIFI"/>
                      id="_2_MARKETING___d15e199508-1_A_CLASSIFI"/>
@@ -102,6 +133,20 @@
          <xs:element name="ADMIN_USERS_ID"
          <xs:element name="ADMIN_USERS_ID"
                      type="xs:integer"
                      type="xs:integer"
                      id="_2_MARKETING___d15e199511-1_ADMIN_USER"/>
                      id="_2_MARKETING___d15e199511-1_ADMIN_USER"/>
+         <xs:element ref="default_db__x3A__ADMIN_USERS:ADMIN_USERS_ID">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache>
+                     <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                   system_cache__appinfo:name="ADMIN_USERS_ID"
+                                                   system_cache__appinfo:xpath="default_db__x3A__ADMIN_USERS:ADMIN_USERS_ID/ID"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+               <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #185
+                </xs:documentation>
+            </xs:annotation>
+         </xs:element>
          <xs:element name="A_ID_USERS2"
          <xs:element name="A_ID_USERS2"
                      type="xs:integer"
                      type="xs:integer"
                      id="_2_MARKETING___d15e199512-1_A_ID_USERS"/>
                      id="_2_MARKETING___d15e199512-1_A_ID_USERS"/>
@@ -111,6 +156,20 @@
          <xs:element name="ID_SERVICES"
          <xs:element name="ID_SERVICES"
                      type="xs:integer"
                      type="xs:integer"
                      id="_2_MARKETING___d15e199514-1_ID_SERVICE"/>
                      id="_2_MARKETING___d15e199514-1_ID_SERVICE"/>
+         <xs:element ref="default_db__x3A__SERVICES:SERVICES">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache>
+                     <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                   system_cache__appinfo:name="ID_SERVICES"
+                                                   system_cache__appinfo:xpath="default_db__x3A__SERVICES:SERVICES/ID"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+               <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #183
+                </xs:documentation>
+            </xs:annotation>
+         </xs:element>
          <xs:element name="A_RECORD_CREATE_DATE"
          <xs:element name="A_RECORD_CREATE_DATE"
                      type="xs:token"
                      type="xs:token"
                      id="_2_MARKETING___d15e199516-1_A_RECORD_C"/>
                      id="_2_MARKETING___d15e199516-1_A_RECORD_C"/>
@@ -267,6 +326,20 @@
          <xs:element name="T_TELBOX_BUILDING_IN"
          <xs:element name="T_TELBOX_BUILDING_IN"
                      type="xs:string"
                      type="xs:string"
                      id="_2_MARKETING___d15e199571-1_T_TELBOX_B"/>
                      id="_2_MARKETING___d15e199571-1_T_TELBOX_B"/>
+         <xs:element ref="default_db__x3A__BUILDINGS:T_TELBOX_BUILDING_IN">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache>
+                     <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                   system_cache__appinfo:name="T_TELBOX_BUILDING_IN"
+                                                   system_cache__appinfo:xpath="default_db__x3A__BUILDINGS:T_TELBOX_BUILDING_IN/S_ADDRESS_STREET"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+               <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #3455 !!!
+                </xs:documentation>
+            </xs:annotation>
+         </xs:element>
          <xs:element name="I_BAD_DATE"
          <xs:element name="I_BAD_DATE"
                      type="default_db__x3A__USERS2_MARKETING:I_BAD_DATE"
                      type="default_db__x3A__USERS2_MARKETING:I_BAD_DATE"
                      id="_2_MARKETING___d15e199572-1_I_BAD_DATE"/>
                      id="_2_MARKETING___d15e199572-1_I_BAD_DATE"/>
@@ -438,12 +511,40 @@
          <xs:element name="CRM_LISTA_ZASOBOW_ID"
          <xs:element name="CRM_LISTA_ZASOBOW_ID"
                      type="xs:integer"
                      type="xs:integer"
                      id="_2_MARKETING___d15e199633-1_CRM_LISTA_"/>
                      id="_2_MARKETING___d15e199633-1_CRM_LISTA_"/>
+         <xs:element ref="default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW_ID">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache>
+                     <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                   system_cache__appinfo:name="CRM_LISTA_ZASOBOW_ID"
+                                                   system_cache__appinfo:xpath="default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW_ID/ID"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+               <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #224
+                </xs:documentation>
+            </xs:annotation>
+         </xs:element>
          <xs:element name="BUSINESS"
          <xs:element name="BUSINESS"
                      type="xs:string"
                      type="xs:string"
                      id="_2_MARKETING___d15e199634-1_BUSINESS"/>
                      id="_2_MARKETING___d15e199634-1_BUSINESS"/>
          <xs:element name="ID_PROJECT"
          <xs:element name="ID_PROJECT"
                      type="xs:integer"
                      type="xs:integer"
                      id="_2_MARKETING___d15e199636-1_ID_PROJECT"/>
                      id="_2_MARKETING___d15e199636-1_ID_PROJECT"/>
+         <xs:element ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache>
+                     <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                   system_cache__appinfo:name="ID_PROJECT"
+                                                   system_cache__appinfo:xpath="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT/ID"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+               <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #204
+                </xs:documentation>
+            </xs:annotation>
+         </xs:element>
          <!--#272 found ignored the_geom-->
          <!--#272 found ignored the_geom-->
          <!--#272 found ignored S_ADDRESS_CITY-->
          <!--#272 found ignored S_ADDRESS_CITY-->
          <!--#272 found ignored BAD_CHCE_LOKALNE_TV_OR_NIE_OGLADAM_LOK_TV-->
          <!--#272 found ignored BAD_CHCE_LOKALNE_TV_OR_NIE_OGLADAM_LOK_TV-->
@@ -526,7 +627,20 @@
          <!--#414-A found adding p5_zasob_36:CRM_LISTA_ZASOBOW, $prototype_NamespacePrefix = default_db__x3A__USERS2_MARKETING-->
          <!--#414-A found adding p5_zasob_36:CRM_LISTA_ZASOBOW, $prototype_NamespacePrefix = default_db__x3A__USERS2_MARKETING-->
          <xs:element ref="default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW"
          <xs:element ref="default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW"
                      minOccurs="0"
                      minOccurs="0"
-                     id="_2_MARKETING___d15e199728-1"/>
+                     id="_2_MARKETING___d15e199728-1">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache>
+                     <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                   system_cache__appinfo:name=""
+                                                   system_cache__appinfo:xpath="default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW/ID"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+               <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED
+                </xs:documentation>
+            </xs:annotation>
+         </xs:element>
          <!--#272 found ignored T_TELBOX_PORT-->
          <!--#272 found ignored T_TELBOX_PORT-->
          <!--#272 found ignored T_WORKPOINTS-->
          <!--#272 found ignored T_WORKPOINTS-->
          <!--#272 found ignored T_WORKPOINTS_VALUE-->
          <!--#272 found ignored T_WORKPOINTS_VALUE-->
@@ -583,10 +697,11 @@
          <xs:element xmlns:p5="https://biuro.biall-net.pl/wfs"
          <xs:element xmlns:p5="https://biuro.biall-net.pl/wfs"
                      name="INTERNET_STATUS"
                      name="INTERNET_STATUS"
                      p5:id_zasob="3493"
                      p5:id_zasob="3493"
-                     minOccurs="1"
+                     minOccurs="0"
                      maxOccurs="1"
                      maxOccurs="1"
                      p5:label="Status usł. Internet"
                      p5:label="Status usł. Internet"
-                     id="_2_MARKETING___d15e199789-1_INTERNET_S">
+                     id="_2_MARKETING___d15e199789-1_INTERNET_S"
+                     type="xs:string">
             <xs:annotation>
             <xs:annotation>
                <xs:documentation>INTERNET_STATUS Informacje z bazy billingowej/technicznej o tym z jakich usług korzysta/korzystał  KLIENT.</xs:documentation>
                <xs:documentation>INTERNET_STATUS Informacje z bazy billingowej/technicznej o tym z jakich usług korzysta/korzystał  KLIENT.</xs:documentation>
             </xs:annotation>
             </xs:annotation>
@@ -633,6 +748,20 @@
                <xs:element name="L_APPOITMENT_USER"
                <xs:element name="L_APPOITMENT_USER"
                            type="xs:string"
                            type="xs:string"
                            id="_2_MARKETING___d15e199823-1_L_APPOITME"/>
                            id="_2_MARKETING___d15e199823-1_L_APPOITME"/>
+               <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="L_APPOITMENT_USER"
+                                                         system_cache__appinfo:xpath="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER/ADM_ACCOUNT"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #166
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <xs:element name="A_CLASSIFIED"
                <xs:element name="A_CLASSIFIED"
                            type="xs:string"
                            type="xs:string"
                            id="_2_MARKETING___d15e199824-1_A_CLASSIFI"/>
                            id="_2_MARKETING___d15e199824-1_A_CLASSIFI"/>
@@ -643,6 +772,20 @@
                <xs:element name="ADMIN_USERS_ID"
                <xs:element name="ADMIN_USERS_ID"
                            type="xs:integer"
                            type="xs:integer"
                            id="_2_MARKETING___d15e199827-1_ADMIN_USER"/>
                            id="_2_MARKETING___d15e199827-1_ADMIN_USER"/>
+               <xs:element ref="default_db__x3A__ADMIN_USERS:ADMIN_USERS_ID">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="ADMIN_USERS_ID"
+                                                         system_cache__appinfo:xpath="default_db__x3A__ADMIN_USERS:ADMIN_USERS_ID/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #185
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <xs:element name="A_ID_USERS2"
                <xs:element name="A_ID_USERS2"
                            type="xs:integer"
                            type="xs:integer"
                            id="_2_MARKETING___d15e199828-1_A_ID_USERS"/>
                            id="_2_MARKETING___d15e199828-1_A_ID_USERS"/>
@@ -652,6 +795,20 @@
                <xs:element name="ID_SERVICES"
                <xs:element name="ID_SERVICES"
                            type="xs:integer"
                            type="xs:integer"
                            id="_2_MARKETING___d15e199830-1_ID_SERVICE"/>
                            id="_2_MARKETING___d15e199830-1_ID_SERVICE"/>
+               <xs:element ref="default_db__x3A__SERVICES:SERVICES">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="ID_SERVICES"
+                                                         system_cache__appinfo:xpath="default_db__x3A__SERVICES:SERVICES/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #183
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <xs:element name="A_RECORD_CREATE_DATE"
                <xs:element name="A_RECORD_CREATE_DATE"
                            type="xs:token"
                            type="xs:token"
                            id="_2_MARKETING___d15e199832-1_A_RECORD_C"/>
                            id="_2_MARKETING___d15e199832-1_A_RECORD_C"/>
@@ -808,6 +965,20 @@
                <xs:element name="T_TELBOX_BUILDING_IN"
                <xs:element name="T_TELBOX_BUILDING_IN"
                            type="xs:string"
                            type="xs:string"
                            id="_2_MARKETING___d15e199887-1_T_TELBOX_B"/>
                            id="_2_MARKETING___d15e199887-1_T_TELBOX_B"/>
+               <xs:element ref="default_db__x3A__BUILDINGS:T_TELBOX_BUILDING_IN">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="T_TELBOX_BUILDING_IN"
+                                                         system_cache__appinfo:xpath="default_db__x3A__BUILDINGS:T_TELBOX_BUILDING_IN/S_ADDRESS_STREET"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #3455 !!!
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <xs:element name="I_BAD_DATE"
                <xs:element name="I_BAD_DATE"
                            type="default_db__x3A__USERS2_MARKETING:I_BAD_DATE_FRESH"
                            type="default_db__x3A__USERS2_MARKETING:I_BAD_DATE_FRESH"
                            id="_2_MARKETING___d15e199888-1_I_BAD_DATE"/>
                            id="_2_MARKETING___d15e199888-1_I_BAD_DATE"/>
@@ -979,12 +1150,40 @@
                <xs:element name="CRM_LISTA_ZASOBOW_ID"
                <xs:element name="CRM_LISTA_ZASOBOW_ID"
                            type="xs:integer"
                            type="xs:integer"
                            id="_2_MARKETING___d15e199949-1_CRM_LISTA_"/>
                            id="_2_MARKETING___d15e199949-1_CRM_LISTA_"/>
+               <xs:element ref="default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW_ID">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="CRM_LISTA_ZASOBOW_ID"
+                                                         system_cache__appinfo:xpath="default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW_ID/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #224
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <xs:element name="BUSINESS"
                <xs:element name="BUSINESS"
                            type="xs:string"
                            type="xs:string"
                            id="_2_MARKETING___d15e199950-1_BUSINESS"/>
                            id="_2_MARKETING___d15e199950-1_BUSINESS"/>
                <xs:element name="ID_PROJECT"
                <xs:element name="ID_PROJECT"
                            type="xs:integer"
                            type="xs:integer"
                            id="_2_MARKETING___d15e199952-1_ID_PROJECT"/>
                            id="_2_MARKETING___d15e199952-1_ID_PROJECT"/>
+               <xs:element ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="ID_PROJECT"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #204
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <!--#272 found ignored the_geom-->
                <!--#272 found ignored the_geom-->
                <!--#272 found ignored S_ADDRESS_CITY-->
                <!--#272 found ignored S_ADDRESS_CITY-->
                <!--#272 found ignored BAD_CHCE_LOKALNE_TV_OR_NIE_OGLADAM_LOK_TV-->
                <!--#272 found ignored BAD_CHCE_LOKALNE_TV_OR_NIE_OGLADAM_LOK_TV-->
@@ -1067,7 +1266,20 @@
                <!--#414-A found adding p5_zasob_36:CRM_LISTA_ZASOBOW, $prototype_NamespacePrefix = default_db__x3A__USERS2_MARKETING-->
                <!--#414-A found adding p5_zasob_36:CRM_LISTA_ZASOBOW, $prototype_NamespacePrefix = default_db__x3A__USERS2_MARKETING-->
                <xs:element ref="default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW"
                <xs:element ref="default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW"
                            minOccurs="0"
                            minOccurs="0"
-                           id="_2_MARKETING___d15e200044-1"/>
+                           id="_2_MARKETING___d15e200044-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name=""
+                                                         system_cache__appinfo:xpath="default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <!--#272 found ignored T_TELBOX_PORT-->
                <!--#272 found ignored T_TELBOX_PORT-->
                <!--#272 found ignored T_WORKPOINTS-->
                <!--#272 found ignored T_WORKPOINTS-->
                <!--#272 found ignored T_WORKPOINTS_VALUE-->
                <!--#272 found ignored T_WORKPOINTS_VALUE-->
@@ -1127,7 +1339,8 @@
                            minOccurs="1"
                            minOccurs="1"
                            maxOccurs="1"
                            maxOccurs="1"
                            p5:label="Status usł. Internet"
                            p5:label="Status usł. Internet"
-                           id="_2_MARKETING___d15e200105-1_INTERNET_S">
+                           id="_2_MARKETING___d15e200105-1_INTERNET_S"
+                           type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>INTERNET_STATUS Informacje z bazy billingowej/technicznej o tym z jakich usług korzysta/korzystał  KLIENT.</xs:documentation>
                      <xs:documentation>INTERNET_STATUS Informacje z bazy billingowej/technicznej o tym z jakich usług korzysta/korzystał  KLIENT.</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
@@ -1175,6 +1388,20 @@
                <xs:element name="L_APPOITMENT_USER"
                <xs:element name="L_APPOITMENT_USER"
                            type="xs:string"
                            type="xs:string"
                            id="_2_MARKETING___d15e200138-1_L_APPOITME"/>
                            id="_2_MARKETING___d15e200138-1_L_APPOITME"/>
+               <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="L_APPOITMENT_USER"
+                                                         system_cache__appinfo:xpath="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER/ADM_ACCOUNT"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #166
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <xs:element name="A_CLASSIFIED"
                <xs:element name="A_CLASSIFIED"
                            type="xs:string"
                            type="xs:string"
                            id="_2_MARKETING___d15e200139-1_A_CLASSIFI"/>
                            id="_2_MARKETING___d15e200139-1_A_CLASSIFI"/>
@@ -1185,6 +1412,20 @@
                <xs:element name="ADMIN_USERS_ID"
                <xs:element name="ADMIN_USERS_ID"
                            type="xs:integer"
                            type="xs:integer"
                            id="_2_MARKETING___d15e200142-1_ADMIN_USER"/>
                            id="_2_MARKETING___d15e200142-1_ADMIN_USER"/>
+               <xs:element ref="default_db__x3A__ADMIN_USERS:ADMIN_USERS_ID">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="ADMIN_USERS_ID"
+                                                         system_cache__appinfo:xpath="default_db__x3A__ADMIN_USERS:ADMIN_USERS_ID/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #185
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <xs:element name="A_ID_USERS2"
                <xs:element name="A_ID_USERS2"
                            type="xs:integer"
                            type="xs:integer"
                            id="_2_MARKETING___d15e200143-1_A_ID_USERS"/>
                            id="_2_MARKETING___d15e200143-1_A_ID_USERS"/>
@@ -1194,6 +1435,20 @@
                <xs:element name="ID_SERVICES"
                <xs:element name="ID_SERVICES"
                            type="xs:integer"
                            type="xs:integer"
                            id="_2_MARKETING___d15e200145-1_ID_SERVICE"/>
                            id="_2_MARKETING___d15e200145-1_ID_SERVICE"/>
+               <xs:element ref="default_db__x3A__SERVICES:SERVICES">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="ID_SERVICES"
+                                                         system_cache__appinfo:xpath="default_db__x3A__SERVICES:SERVICES/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #183
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <xs:element name="A_RECORD_CREATE_DATE"
                <xs:element name="A_RECORD_CREATE_DATE"
                            type="xs:token"
                            type="xs:token"
                            id="_2_MARKETING___d15e200147-1_A_RECORD_C"/>
                            id="_2_MARKETING___d15e200147-1_A_RECORD_C"/>
@@ -1350,6 +1605,20 @@
                <xs:element name="T_TELBOX_BUILDING_IN"
                <xs:element name="T_TELBOX_BUILDING_IN"
                            type="xs:string"
                            type="xs:string"
                            id="_2_MARKETING___d15e200202-1_T_TELBOX_B"/>
                            id="_2_MARKETING___d15e200202-1_T_TELBOX_B"/>
+               <xs:element ref="default_db__x3A__BUILDINGS:T_TELBOX_BUILDING_IN">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="T_TELBOX_BUILDING_IN"
+                                                         system_cache__appinfo:xpath="default_db__x3A__BUILDINGS:T_TELBOX_BUILDING_IN/S_ADDRESS_STREET"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #3455 !!!
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <xs:element name="I_BAD_DATE"
                <xs:element name="I_BAD_DATE"
                            type="default_db__x3A__USERS2_MARKETING:I_BAD_DATE_OLD"
                            type="default_db__x3A__USERS2_MARKETING:I_BAD_DATE_OLD"
                            id="_2_MARKETING___d15e200203-1_I_BAD_DATE"/>
                            id="_2_MARKETING___d15e200203-1_I_BAD_DATE"/>
@@ -1521,12 +1790,40 @@
                <xs:element name="CRM_LISTA_ZASOBOW_ID"
                <xs:element name="CRM_LISTA_ZASOBOW_ID"
                            type="xs:integer"
                            type="xs:integer"
                            id="_2_MARKETING___d15e200264-1_CRM_LISTA_"/>
                            id="_2_MARKETING___d15e200264-1_CRM_LISTA_"/>
+               <xs:element ref="default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW_ID">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="CRM_LISTA_ZASOBOW_ID"
+                                                         system_cache__appinfo:xpath="default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW_ID/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #224
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <xs:element name="BUSINESS"
                <xs:element name="BUSINESS"
                            type="xs:string"
                            type="xs:string"
                            id="_2_MARKETING___d15e200265-1_BUSINESS"/>
                            id="_2_MARKETING___d15e200265-1_BUSINESS"/>
                <xs:element name="ID_PROJECT"
                <xs:element name="ID_PROJECT"
                            type="xs:integer"
                            type="xs:integer"
                            id="_2_MARKETING___d15e200267-1_ID_PROJECT"/>
                            id="_2_MARKETING___d15e200267-1_ID_PROJECT"/>
+               <xs:element ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="ID_PROJECT"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #204
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <!--#272 found ignored the_geom-->
                <!--#272 found ignored the_geom-->
                <!--#272 found ignored S_ADDRESS_CITY-->
                <!--#272 found ignored S_ADDRESS_CITY-->
                <!--#272 found ignored BAD_CHCE_LOKALNE_TV_OR_NIE_OGLADAM_LOK_TV-->
                <!--#272 found ignored BAD_CHCE_LOKALNE_TV_OR_NIE_OGLADAM_LOK_TV-->
@@ -1609,7 +1906,20 @@
                <!--#414-A found adding p5_zasob_36:CRM_LISTA_ZASOBOW, $prototype_NamespacePrefix = default_db__x3A__USERS2_MARKETING-->
                <!--#414-A found adding p5_zasob_36:CRM_LISTA_ZASOBOW, $prototype_NamespacePrefix = default_db__x3A__USERS2_MARKETING-->
                <xs:element ref="default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW"
                <xs:element ref="default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW"
                            minOccurs="0"
                            minOccurs="0"
-                           id="_2_MARKETING___d15e200359-1"/>
+                           id="_2_MARKETING___d15e200359-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name=""
+                                                         system_cache__appinfo:xpath="default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <!--#272 found ignored T_TELBOX_PORT-->
                <!--#272 found ignored T_TELBOX_PORT-->
                <!--#272 found ignored T_WORKPOINTS-->
                <!--#272 found ignored T_WORKPOINTS-->
                <!--#272 found ignored T_WORKPOINTS_VALUE-->
                <!--#272 found ignored T_WORKPOINTS_VALUE-->
@@ -1669,7 +1979,8 @@
                            minOccurs="1"
                            minOccurs="1"
                            maxOccurs="1"
                            maxOccurs="1"
                            p5:label="Status usł. Internet"
                            p5:label="Status usł. Internet"
-                           id="_2_MARKETING___d15e200420-1_INTERNET_S">
+                           id="_2_MARKETING___d15e200420-1_INTERNET_S"
+                           type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>INTERNET_STATUS Informacje z bazy billingowej/technicznej o tym z jakich usług korzysta/korzystał  KLIENT.</xs:documentation>
                      <xs:documentation>INTERNET_STATUS Informacje z bazy billingowej/technicznej o tym z jakich usług korzysta/korzystał  KLIENT.</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
@@ -1719,6 +2030,20 @@
                <xs:element name="L_APPOITMENT_USER"
                <xs:element name="L_APPOITMENT_USER"
                            type="xs:string"
                            type="xs:string"
                            id="_2_MARKETING___d15e200453-1_L_APPOITME"/>
                            id="_2_MARKETING___d15e200453-1_L_APPOITME"/>
+               <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="L_APPOITMENT_USER"
+                                                         system_cache__appinfo:xpath="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER/ADM_ACCOUNT"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #166
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <xs:element name="A_CLASSIFIED"
                <xs:element name="A_CLASSIFIED"
                            type="xs:string"
                            type="xs:string"
                            id="_2_MARKETING___d15e200454-1_A_CLASSIFI"/>
                            id="_2_MARKETING___d15e200454-1_A_CLASSIFI"/>
@@ -1729,6 +2054,20 @@
                <xs:element name="ADMIN_USERS_ID"
                <xs:element name="ADMIN_USERS_ID"
                            type="xs:integer"
                            type="xs:integer"
                            id="_2_MARKETING___d15e200457-1_ADMIN_USER"/>
                            id="_2_MARKETING___d15e200457-1_ADMIN_USER"/>
+               <xs:element ref="default_db__x3A__ADMIN_USERS:ADMIN_USERS_ID">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="ADMIN_USERS_ID"
+                                                         system_cache__appinfo:xpath="default_db__x3A__ADMIN_USERS:ADMIN_USERS_ID/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #185
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <xs:element name="A_ID_USERS2"
                <xs:element name="A_ID_USERS2"
                            type="xs:integer"
                            type="xs:integer"
                            id="_2_MARKETING___d15e200458-1_A_ID_USERS"/>
                            id="_2_MARKETING___d15e200458-1_A_ID_USERS"/>
@@ -1738,6 +2077,20 @@
                <xs:element name="ID_SERVICES"
                <xs:element name="ID_SERVICES"
                            type="xs:integer"
                            type="xs:integer"
                            id="_2_MARKETING___d15e200460-1_ID_SERVICE"/>
                            id="_2_MARKETING___d15e200460-1_ID_SERVICE"/>
+               <xs:element ref="default_db__x3A__SERVICES:SERVICES">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="ID_SERVICES"
+                                                         system_cache__appinfo:xpath="default_db__x3A__SERVICES:SERVICES/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #183
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <xs:element name="A_RECORD_CREATE_DATE"
                <xs:element name="A_RECORD_CREATE_DATE"
                            type="xs:token"
                            type="xs:token"
                            id="_2_MARKETING___d15e200462-1_A_RECORD_C"/>
                            id="_2_MARKETING___d15e200462-1_A_RECORD_C"/>
@@ -1894,6 +2247,20 @@
                <xs:element name="T_TELBOX_BUILDING_IN"
                <xs:element name="T_TELBOX_BUILDING_IN"
                            type="xs:string"
                            type="xs:string"
                            id="_2_MARKETING___d15e200517-1_T_TELBOX_B"/>
                            id="_2_MARKETING___d15e200517-1_T_TELBOX_B"/>
+               <xs:element ref="default_db__x3A__BUILDINGS:T_TELBOX_BUILDING_IN">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="T_TELBOX_BUILDING_IN"
+                                                         system_cache__appinfo:xpath="default_db__x3A__BUILDINGS:T_TELBOX_BUILDING_IN/S_ADDRESS_STREET"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #3455 !!!
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <xs:element name="I_BAD_DATE"
                <xs:element name="I_BAD_DATE"
                            type="default_db__x3A__USERS2_MARKETING:I_BAD_DATE_OLD"
                            type="default_db__x3A__USERS2_MARKETING:I_BAD_DATE_OLD"
                            id="_2_MARKETING___d15e200518-1_I_BAD_DATE"/>
                            id="_2_MARKETING___d15e200518-1_I_BAD_DATE"/>
@@ -2065,12 +2432,40 @@
                <xs:element name="CRM_LISTA_ZASOBOW_ID"
                <xs:element name="CRM_LISTA_ZASOBOW_ID"
                            type="xs:integer"
                            type="xs:integer"
                            id="_2_MARKETING___d15e200579-1_CRM_LISTA_"/>
                            id="_2_MARKETING___d15e200579-1_CRM_LISTA_"/>
+               <xs:element ref="default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW_ID">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="CRM_LISTA_ZASOBOW_ID"
+                                                         system_cache__appinfo:xpath="default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW_ID/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #224
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <xs:element name="BUSINESS"
                <xs:element name="BUSINESS"
                            type="xs:string"
                            type="xs:string"
                            id="_2_MARKETING___d15e200580-1_BUSINESS"/>
                            id="_2_MARKETING___d15e200580-1_BUSINESS"/>
                <xs:element name="ID_PROJECT"
                <xs:element name="ID_PROJECT"
                            type="xs:integer"
                            type="xs:integer"
                            id="_2_MARKETING___d15e200582-1_ID_PROJECT"/>
                            id="_2_MARKETING___d15e200582-1_ID_PROJECT"/>
+               <xs:element ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="ID_PROJECT"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #204
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <!--#272 found ignored the_geom-->
                <!--#272 found ignored the_geom-->
                <!--#272 found ignored S_ADDRESS_CITY-->
                <!--#272 found ignored S_ADDRESS_CITY-->
                <!--#272 found ignored BAD_CHCE_LOKALNE_TV_OR_NIE_OGLADAM_LOK_TV-->
                <!--#272 found ignored BAD_CHCE_LOKALNE_TV_OR_NIE_OGLADAM_LOK_TV-->
@@ -2153,7 +2548,20 @@
                <!--#414-A found adding p5_zasob_36:CRM_LISTA_ZASOBOW, $prototype_NamespacePrefix = default_db__x3A__USERS2_MARKETING-->
                <!--#414-A found adding p5_zasob_36:CRM_LISTA_ZASOBOW, $prototype_NamespacePrefix = default_db__x3A__USERS2_MARKETING-->
                <xs:element ref="default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW"
                <xs:element ref="default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW"
                            minOccurs="0"
                            minOccurs="0"
-                           id="_2_MARKETING___d15e200674-1"/>
+                           id="_2_MARKETING___d15e200674-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name=""
+                                                         system_cache__appinfo:xpath="default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <!--#272 found ignored T_TELBOX_PORT-->
                <!--#272 found ignored T_TELBOX_PORT-->
                <!--#272 found ignored T_WORKPOINTS-->
                <!--#272 found ignored T_WORKPOINTS-->
                <!--#272 found ignored T_WORKPOINTS_VALUE-->
                <!--#272 found ignored T_WORKPOINTS_VALUE-->
@@ -2213,7 +2621,8 @@
                            minOccurs="1"
                            minOccurs="1"
                            maxOccurs="1"
                            maxOccurs="1"
                            p5:label="Status usł. Internet"
                            p5:label="Status usł. Internet"
-                           id="_2_MARKETING___d15e200735-1_INTERNET_S">
+                           id="_2_MARKETING___d15e200735-1_INTERNET_S"
+                           type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>INTERNET_STATUS Informacje z bazy billingowej/technicznej o tym z jakich usług korzysta/korzystał  KLIENT.</xs:documentation>
                      <xs:documentation>INTERNET_STATUS Informacje z bazy billingowej/technicznej o tym z jakich usług korzysta/korzystał  KLIENT.</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
@@ -2261,6 +2670,20 @@
                <xs:element name="L_APPOITMENT_USER"
                <xs:element name="L_APPOITMENT_USER"
                            type="xs:string"
                            type="xs:string"
                            id="_2_MARKETING___d15e200768-1_L_APPOITME"/>
                            id="_2_MARKETING___d15e200768-1_L_APPOITME"/>
+               <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="L_APPOITMENT_USER"
+                                                         system_cache__appinfo:xpath="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER/ADM_ACCOUNT"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #166
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <xs:element name="A_CLASSIFIED"
                <xs:element name="A_CLASSIFIED"
                            type="xs:string"
                            type="xs:string"
                            id="_2_MARKETING___d15e200769-1_A_CLASSIFI"/>
                            id="_2_MARKETING___d15e200769-1_A_CLASSIFI"/>
@@ -2271,6 +2694,20 @@
                <xs:element name="ADMIN_USERS_ID"
                <xs:element name="ADMIN_USERS_ID"
                            type="xs:integer"
                            type="xs:integer"
                            id="_2_MARKETING___d15e200772-1_ADMIN_USER"/>
                            id="_2_MARKETING___d15e200772-1_ADMIN_USER"/>
+               <xs:element ref="default_db__x3A__ADMIN_USERS:ADMIN_USERS_ID">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="ADMIN_USERS_ID"
+                                                         system_cache__appinfo:xpath="default_db__x3A__ADMIN_USERS:ADMIN_USERS_ID/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #185
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <xs:element name="A_ID_USERS2"
                <xs:element name="A_ID_USERS2"
                            type="xs:integer"
                            type="xs:integer"
                            id="_2_MARKETING___d15e200773-1_A_ID_USERS"/>
                            id="_2_MARKETING___d15e200773-1_A_ID_USERS"/>
@@ -2280,6 +2717,20 @@
                <xs:element name="ID_SERVICES"
                <xs:element name="ID_SERVICES"
                            type="xs:integer"
                            type="xs:integer"
                            id="_2_MARKETING___d15e200775-1_ID_SERVICE"/>
                            id="_2_MARKETING___d15e200775-1_ID_SERVICE"/>
+               <xs:element ref="default_db__x3A__SERVICES:SERVICES">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="ID_SERVICES"
+                                                         system_cache__appinfo:xpath="default_db__x3A__SERVICES:SERVICES/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #183
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <xs:element name="A_RECORD_CREATE_DATE"
                <xs:element name="A_RECORD_CREATE_DATE"
                            type="xs:token"
                            type="xs:token"
                            id="_2_MARKETING___d15e200777-1_A_RECORD_C"/>
                            id="_2_MARKETING___d15e200777-1_A_RECORD_C"/>
@@ -2436,6 +2887,20 @@
                <xs:element name="T_TELBOX_BUILDING_IN"
                <xs:element name="T_TELBOX_BUILDING_IN"
                            type="xs:string"
                            type="xs:string"
                            id="_2_MARKETING___d15e200832-1_T_TELBOX_B"/>
                            id="_2_MARKETING___d15e200832-1_T_TELBOX_B"/>
+               <xs:element ref="default_db__x3A__BUILDINGS:T_TELBOX_BUILDING_IN">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="T_TELBOX_BUILDING_IN"
+                                                         system_cache__appinfo:xpath="default_db__x3A__BUILDINGS:T_TELBOX_BUILDING_IN/S_ADDRESS_STREET"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #3455 !!!
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <xs:element name="I_BAD_DATE"
                <xs:element name="I_BAD_DATE"
                            type="default_db__x3A__USERS2_MARKETING:I_BAD_DATE_FRESH"
                            type="default_db__x3A__USERS2_MARKETING:I_BAD_DATE_FRESH"
                            id="_2_MARKETING___d15e200833-1_I_BAD_DATE"/>
                            id="_2_MARKETING___d15e200833-1_I_BAD_DATE"/>
@@ -2607,12 +3072,40 @@
                <xs:element name="CRM_LISTA_ZASOBOW_ID"
                <xs:element name="CRM_LISTA_ZASOBOW_ID"
                            type="xs:integer"
                            type="xs:integer"
                            id="_2_MARKETING___d15e200894-1_CRM_LISTA_"/>
                            id="_2_MARKETING___d15e200894-1_CRM_LISTA_"/>
+               <xs:element ref="default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW_ID">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="CRM_LISTA_ZASOBOW_ID"
+                                                         system_cache__appinfo:xpath="default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW_ID/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #224
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <xs:element name="BUSINESS"
                <xs:element name="BUSINESS"
                            type="xs:string"
                            type="xs:string"
                            id="_2_MARKETING___d15e200895-1_BUSINESS"/>
                            id="_2_MARKETING___d15e200895-1_BUSINESS"/>
                <xs:element name="ID_PROJECT"
                <xs:element name="ID_PROJECT"
                            type="xs:integer"
                            type="xs:integer"
                            id="_2_MARKETING___d15e200897-1_ID_PROJECT"/>
                            id="_2_MARKETING___d15e200897-1_ID_PROJECT"/>
+               <xs:element ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="ID_PROJECT"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #204
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <!--#272 found ignored the_geom-->
                <!--#272 found ignored the_geom-->
                <!--#272 found ignored S_ADDRESS_CITY-->
                <!--#272 found ignored S_ADDRESS_CITY-->
                <!--#272 found ignored BAD_CHCE_LOKALNE_TV_OR_NIE_OGLADAM_LOK_TV-->
                <!--#272 found ignored BAD_CHCE_LOKALNE_TV_OR_NIE_OGLADAM_LOK_TV-->
@@ -2695,7 +3188,20 @@
                <!--#414-A found adding p5_zasob_36:CRM_LISTA_ZASOBOW, $prototype_NamespacePrefix = default_db__x3A__USERS2_MARKETING-->
                <!--#414-A found adding p5_zasob_36:CRM_LISTA_ZASOBOW, $prototype_NamespacePrefix = default_db__x3A__USERS2_MARKETING-->
                <xs:element ref="default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW"
                <xs:element ref="default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW"
                            minOccurs="0"
                            minOccurs="0"
-                           id="_2_MARKETING___d15e200989-1"/>
+                           id="_2_MARKETING___d15e200989-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name=""
+                                                         system_cache__appinfo:xpath="default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <!--#272 found ignored T_TELBOX_PORT-->
                <!--#272 found ignored T_TELBOX_PORT-->
                <!--#272 found ignored T_WORKPOINTS-->
                <!--#272 found ignored T_WORKPOINTS-->
                <!--#272 found ignored T_WORKPOINTS_VALUE-->
                <!--#272 found ignored T_WORKPOINTS_VALUE-->
@@ -2755,7 +3261,8 @@
                            minOccurs="1"
                            minOccurs="1"
                            maxOccurs="1"
                            maxOccurs="1"
                            p5:label="Status usł. Internet"
                            p5:label="Status usł. Internet"
-                           id="_2_MARKETING___d15e201050-1_INTERNET_S">
+                           id="_2_MARKETING___d15e201050-1_INTERNET_S"
+                           type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>INTERNET_STATUS Informacje z bazy billingowej/technicznej o tym z jakich usług korzysta/korzystał  KLIENT.</xs:documentation>
                      <xs:documentation>INTERNET_STATUS Informacje z bazy billingowej/technicznej o tym z jakich usług korzysta/korzystał  KLIENT.</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>

+ 518 - 11
SE/schema/ant-object/default_db.USERS2_MARKETING/USERS2_MARKETING_OBCY_OLD/USERS2_MARKETING_OBCY_OLD.xsd

@@ -22,6 +22,7 @@
            xmlns:p5_simpleSchema_map="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/p5_simpleSchema_map.xsd"
            xmlns:p5_simpleSchema_map="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/p5_simpleSchema_map.xsd"
            xmlns:fix_se_defaultdb_schema="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/fix_se_defaultdb_schema/fix_se_defaultdb_schema.xsd"
            xmlns:fix_se_defaultdb_schema="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/fix_se_defaultdb_schema/fix_se_defaultdb_schema.xsd"
            xmlns:p5Type="http://biuro.biall-net.pl/p5/schema/types"
            xmlns:p5Type="http://biuro.biall-net.pl/p5/schema/types"
+           xmlns:default_db__x3A__SERVICES="https://biuro.biall-net.pl/wfs/default_db/table/SERVICES.xsd"
            targetNamespace="https://biuro.biall-net.pl/wfs/default_db/table/USERS2_MARKETING.xsd"
            targetNamespace="https://biuro.biall-net.pl/wfs/default_db/table/USERS2_MARKETING.xsd"
            vc:minVersion="1.1">
            vc:minVersion="1.1">
    <xs:import namespace="http://biuro.biall-net.pl/p5/schema/types"
    <xs:import namespace="http://biuro.biall-net.pl/p5/schema/types"
@@ -46,6 +47,8 @@
               schemaLocation="../../default_db.IN7_DZIENNIK_KORESP/IN7_DZIENNIK_KORESP/IN7_DZIENNIK_KORESP.xsd"/>
               schemaLocation="../../default_db.IN7_DZIENNIK_KORESP/IN7_DZIENNIK_KORESP/IN7_DZIENNIK_KORESP.xsd"/>
    <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/IN7_MK_BAZA_DYSTRYBUCJI.xsd"
    <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/IN7_MK_BAZA_DYSTRYBUCJI.xsd"
               schemaLocation="../../default_db.IN7_MK_BAZA_DYSTRYBUCJI/IN7_MK_BAZA_DYSTRYBUCJI/IN7_MK_BAZA_DYSTRYBUCJI.xsd"/>
               schemaLocation="../../default_db.IN7_MK_BAZA_DYSTRYBUCJI/IN7_MK_BAZA_DYSTRYBUCJI/IN7_MK_BAZA_DYSTRYBUCJI.xsd"/>
+   <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/SERVICES.xsd"
+              schemaLocation="../../default_db.SERVICES/SERVICES/SERVICES.xsd"/>
    <xs:simpleType name="A_STATUS_Type" id="_2_MARKETING___d15e199475-1_A_STATUS_T">
    <xs:simpleType name="A_STATUS_Type" id="_2_MARKETING___d15e199475-1_A_STATUS_T">
       <xs:restriction base="xs:string">
       <xs:restriction base="xs:string">
          <xs:enumeration value="NORMAL"/>
          <xs:enumeration value="NORMAL"/>
@@ -79,6 +82,20 @@
       <xs:restriction base="default_db__x3A__USERS2_MARKETING:I_BAD_DATE"/>
       <xs:restriction base="default_db__x3A__USERS2_MARKETING:I_BAD_DATE"/>
    </xs:simpleType>
    </xs:simpleType>
    <xs:complexType name="USERS2_MARKETING" id="_2_MARKETING___d15e199499-1_USERS2_MAR">
    <xs:complexType name="USERS2_MARKETING" id="_2_MARKETING___d15e199499-1_USERS2_MAR">
+      <xs:annotation>
+         <xs:appinfo>
+            <system_cache__appinfo:heritage>
+               <system_cache__appinfo:inherit system_cache__appinfo:inherit_ref="default_db:USERS2_MARKETING"
+                                              system_cache__appinfo:heritage_acl="true">
+                  <system_cache__appinfo:acl_rule_inherit_to_all_same_name_elements_and_refs/>
+                  <acl_rule_inherit_to_all_refs_by_primary/>
+                  <acl_rule_inherit_to_all_refs_by_local_element system_cache__appinfo:acl_rule_inherit_local_element_name="A_STATUS"/>
+               </system_cache__appinfo:inherit>
+               <system_cache__appinfo:exherit_all system_cache__appinfo:heritage_acl="true"
+                                                  system_cache__appinfo:heritage_sort="true"/>
+            </system_cache__appinfo:heritage>
+         </xs:appinfo>
+      </xs:annotation>
       <xs:sequence id="_2_MARKETING___d15e199500-1">
       <xs:sequence id="_2_MARKETING___d15e199500-1">
          <xs:element name="the_geom"
          <xs:element name="the_geom"
                      id="_2_MARKETING___d15e199501-1_the_geom"
                      id="_2_MARKETING___d15e199501-1_the_geom"
@@ -92,6 +109,20 @@
          <xs:element name="L_APPOITMENT_USER"
          <xs:element name="L_APPOITMENT_USER"
                      type="xs:string"
                      type="xs:string"
                      id="_2_MARKETING___d15e199507-1_L_APPOITME"/>
                      id="_2_MARKETING___d15e199507-1_L_APPOITME"/>
+         <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache>
+                     <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                   system_cache__appinfo:name="L_APPOITMENT_USER"
+                                                   system_cache__appinfo:xpath="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER/ADM_ACCOUNT"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+               <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #166
+                </xs:documentation>
+            </xs:annotation>
+         </xs:element>
          <xs:element name="A_CLASSIFIED"
          <xs:element name="A_CLASSIFIED"
                      type="xs:string"
                      type="xs:string"
                      id="_2_MARKETING___d15e199508-1_A_CLASSIFI"/>
                      id="_2_MARKETING___d15e199508-1_A_CLASSIFI"/>
@@ -102,6 +133,20 @@
          <xs:element name="ADMIN_USERS_ID"
          <xs:element name="ADMIN_USERS_ID"
                      type="xs:integer"
                      type="xs:integer"
                      id="_2_MARKETING___d15e199511-1_ADMIN_USER"/>
                      id="_2_MARKETING___d15e199511-1_ADMIN_USER"/>
+         <xs:element ref="default_db__x3A__ADMIN_USERS:ADMIN_USERS_ID">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache>
+                     <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                   system_cache__appinfo:name="ADMIN_USERS_ID"
+                                                   system_cache__appinfo:xpath="default_db__x3A__ADMIN_USERS:ADMIN_USERS_ID/ID"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+               <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #185
+                </xs:documentation>
+            </xs:annotation>
+         </xs:element>
          <xs:element name="A_ID_USERS2"
          <xs:element name="A_ID_USERS2"
                      type="xs:integer"
                      type="xs:integer"
                      id="_2_MARKETING___d15e199512-1_A_ID_USERS"/>
                      id="_2_MARKETING___d15e199512-1_A_ID_USERS"/>
@@ -111,6 +156,20 @@
          <xs:element name="ID_SERVICES"
          <xs:element name="ID_SERVICES"
                      type="xs:integer"
                      type="xs:integer"
                      id="_2_MARKETING___d15e199514-1_ID_SERVICE"/>
                      id="_2_MARKETING___d15e199514-1_ID_SERVICE"/>
+         <xs:element ref="default_db__x3A__SERVICES:SERVICES">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache>
+                     <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                   system_cache__appinfo:name="ID_SERVICES"
+                                                   system_cache__appinfo:xpath="default_db__x3A__SERVICES:SERVICES/ID"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+               <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #183
+                </xs:documentation>
+            </xs:annotation>
+         </xs:element>
          <xs:element name="A_RECORD_CREATE_DATE"
          <xs:element name="A_RECORD_CREATE_DATE"
                      type="xs:token"
                      type="xs:token"
                      id="_2_MARKETING___d15e199516-1_A_RECORD_C"/>
                      id="_2_MARKETING___d15e199516-1_A_RECORD_C"/>
@@ -267,6 +326,20 @@
          <xs:element name="T_TELBOX_BUILDING_IN"
          <xs:element name="T_TELBOX_BUILDING_IN"
                      type="xs:string"
                      type="xs:string"
                      id="_2_MARKETING___d15e199571-1_T_TELBOX_B"/>
                      id="_2_MARKETING___d15e199571-1_T_TELBOX_B"/>
+         <xs:element ref="default_db__x3A__BUILDINGS:T_TELBOX_BUILDING_IN">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache>
+                     <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                   system_cache__appinfo:name="T_TELBOX_BUILDING_IN"
+                                                   system_cache__appinfo:xpath="default_db__x3A__BUILDINGS:T_TELBOX_BUILDING_IN/S_ADDRESS_STREET"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+               <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #3455 !!!
+                </xs:documentation>
+            </xs:annotation>
+         </xs:element>
          <xs:element name="I_BAD_DATE"
          <xs:element name="I_BAD_DATE"
                      type="default_db__x3A__USERS2_MARKETING:I_BAD_DATE"
                      type="default_db__x3A__USERS2_MARKETING:I_BAD_DATE"
                      id="_2_MARKETING___d15e199572-1_I_BAD_DATE"/>
                      id="_2_MARKETING___d15e199572-1_I_BAD_DATE"/>
@@ -438,12 +511,40 @@
          <xs:element name="CRM_LISTA_ZASOBOW_ID"
          <xs:element name="CRM_LISTA_ZASOBOW_ID"
                      type="xs:integer"
                      type="xs:integer"
                      id="_2_MARKETING___d15e199633-1_CRM_LISTA_"/>
                      id="_2_MARKETING___d15e199633-1_CRM_LISTA_"/>
+         <xs:element ref="default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW_ID">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache>
+                     <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                   system_cache__appinfo:name="CRM_LISTA_ZASOBOW_ID"
+                                                   system_cache__appinfo:xpath="default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW_ID/ID"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+               <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #224
+                </xs:documentation>
+            </xs:annotation>
+         </xs:element>
          <xs:element name="BUSINESS"
          <xs:element name="BUSINESS"
                      type="xs:string"
                      type="xs:string"
                      id="_2_MARKETING___d15e199634-1_BUSINESS"/>
                      id="_2_MARKETING___d15e199634-1_BUSINESS"/>
          <xs:element name="ID_PROJECT"
          <xs:element name="ID_PROJECT"
                      type="xs:integer"
                      type="xs:integer"
                      id="_2_MARKETING___d15e199636-1_ID_PROJECT"/>
                      id="_2_MARKETING___d15e199636-1_ID_PROJECT"/>
+         <xs:element ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache>
+                     <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                   system_cache__appinfo:name="ID_PROJECT"
+                                                   system_cache__appinfo:xpath="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT/ID"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+               <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #204
+                </xs:documentation>
+            </xs:annotation>
+         </xs:element>
          <!--#272 found ignored the_geom-->
          <!--#272 found ignored the_geom-->
          <!--#272 found ignored S_ADDRESS_CITY-->
          <!--#272 found ignored S_ADDRESS_CITY-->
          <!--#272 found ignored BAD_CHCE_LOKALNE_TV_OR_NIE_OGLADAM_LOK_TV-->
          <!--#272 found ignored BAD_CHCE_LOKALNE_TV_OR_NIE_OGLADAM_LOK_TV-->
@@ -526,7 +627,20 @@
          <!--#414-A found adding p5_zasob_36:CRM_LISTA_ZASOBOW, $prototype_NamespacePrefix = default_db__x3A__USERS2_MARKETING-->
          <!--#414-A found adding p5_zasob_36:CRM_LISTA_ZASOBOW, $prototype_NamespacePrefix = default_db__x3A__USERS2_MARKETING-->
          <xs:element ref="default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW"
          <xs:element ref="default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW"
                      minOccurs="0"
                      minOccurs="0"
-                     id="_2_MARKETING___d15e199728-1"/>
+                     id="_2_MARKETING___d15e199728-1">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache>
+                     <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                   system_cache__appinfo:name=""
+                                                   system_cache__appinfo:xpath="default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW/ID"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+               <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED
+                </xs:documentation>
+            </xs:annotation>
+         </xs:element>
          <!--#272 found ignored T_TELBOX_PORT-->
          <!--#272 found ignored T_TELBOX_PORT-->
          <!--#272 found ignored T_WORKPOINTS-->
          <!--#272 found ignored T_WORKPOINTS-->
          <!--#272 found ignored T_WORKPOINTS_VALUE-->
          <!--#272 found ignored T_WORKPOINTS_VALUE-->
@@ -583,10 +697,11 @@
          <xs:element xmlns:p5="https://biuro.biall-net.pl/wfs"
          <xs:element xmlns:p5="https://biuro.biall-net.pl/wfs"
                      name="INTERNET_STATUS"
                      name="INTERNET_STATUS"
                      p5:id_zasob="3493"
                      p5:id_zasob="3493"
-                     minOccurs="1"
+                     minOccurs="0"
                      maxOccurs="1"
                      maxOccurs="1"
                      p5:label="Status usł. Internet"
                      p5:label="Status usł. Internet"
-                     id="_2_MARKETING___d15e199789-1_INTERNET_S">
+                     id="_2_MARKETING___d15e199789-1_INTERNET_S"
+                     type="xs:string">
             <xs:annotation>
             <xs:annotation>
                <xs:documentation>INTERNET_STATUS Informacje z bazy billingowej/technicznej o tym z jakich usług korzysta/korzystał  KLIENT.</xs:documentation>
                <xs:documentation>INTERNET_STATUS Informacje z bazy billingowej/technicznej o tym z jakich usług korzysta/korzystał  KLIENT.</xs:documentation>
             </xs:annotation>
             </xs:annotation>
@@ -633,6 +748,20 @@
                <xs:element name="L_APPOITMENT_USER"
                <xs:element name="L_APPOITMENT_USER"
                            type="xs:string"
                            type="xs:string"
                            id="_2_MARKETING___d15e199823-1_L_APPOITME"/>
                            id="_2_MARKETING___d15e199823-1_L_APPOITME"/>
+               <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="L_APPOITMENT_USER"
+                                                         system_cache__appinfo:xpath="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER/ADM_ACCOUNT"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #166
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <xs:element name="A_CLASSIFIED"
                <xs:element name="A_CLASSIFIED"
                            type="xs:string"
                            type="xs:string"
                            id="_2_MARKETING___d15e199824-1_A_CLASSIFI"/>
                            id="_2_MARKETING___d15e199824-1_A_CLASSIFI"/>
@@ -643,6 +772,20 @@
                <xs:element name="ADMIN_USERS_ID"
                <xs:element name="ADMIN_USERS_ID"
                            type="xs:integer"
                            type="xs:integer"
                            id="_2_MARKETING___d15e199827-1_ADMIN_USER"/>
                            id="_2_MARKETING___d15e199827-1_ADMIN_USER"/>
+               <xs:element ref="default_db__x3A__ADMIN_USERS:ADMIN_USERS_ID">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="ADMIN_USERS_ID"
+                                                         system_cache__appinfo:xpath="default_db__x3A__ADMIN_USERS:ADMIN_USERS_ID/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #185
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <xs:element name="A_ID_USERS2"
                <xs:element name="A_ID_USERS2"
                            type="xs:integer"
                            type="xs:integer"
                            id="_2_MARKETING___d15e199828-1_A_ID_USERS"/>
                            id="_2_MARKETING___d15e199828-1_A_ID_USERS"/>
@@ -652,6 +795,20 @@
                <xs:element name="ID_SERVICES"
                <xs:element name="ID_SERVICES"
                            type="xs:integer"
                            type="xs:integer"
                            id="_2_MARKETING___d15e199830-1_ID_SERVICE"/>
                            id="_2_MARKETING___d15e199830-1_ID_SERVICE"/>
+               <xs:element ref="default_db__x3A__SERVICES:SERVICES">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="ID_SERVICES"
+                                                         system_cache__appinfo:xpath="default_db__x3A__SERVICES:SERVICES/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #183
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <xs:element name="A_RECORD_CREATE_DATE"
                <xs:element name="A_RECORD_CREATE_DATE"
                            type="xs:token"
                            type="xs:token"
                            id="_2_MARKETING___d15e199832-1_A_RECORD_C"/>
                            id="_2_MARKETING___d15e199832-1_A_RECORD_C"/>
@@ -808,6 +965,20 @@
                <xs:element name="T_TELBOX_BUILDING_IN"
                <xs:element name="T_TELBOX_BUILDING_IN"
                            type="xs:string"
                            type="xs:string"
                            id="_2_MARKETING___d15e199887-1_T_TELBOX_B"/>
                            id="_2_MARKETING___d15e199887-1_T_TELBOX_B"/>
+               <xs:element ref="default_db__x3A__BUILDINGS:T_TELBOX_BUILDING_IN">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="T_TELBOX_BUILDING_IN"
+                                                         system_cache__appinfo:xpath="default_db__x3A__BUILDINGS:T_TELBOX_BUILDING_IN/S_ADDRESS_STREET"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #3455 !!!
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <xs:element name="I_BAD_DATE"
                <xs:element name="I_BAD_DATE"
                            type="default_db__x3A__USERS2_MARKETING:I_BAD_DATE_FRESH"
                            type="default_db__x3A__USERS2_MARKETING:I_BAD_DATE_FRESH"
                            id="_2_MARKETING___d15e199888-1_I_BAD_DATE"/>
                            id="_2_MARKETING___d15e199888-1_I_BAD_DATE"/>
@@ -979,12 +1150,40 @@
                <xs:element name="CRM_LISTA_ZASOBOW_ID"
                <xs:element name="CRM_LISTA_ZASOBOW_ID"
                            type="xs:integer"
                            type="xs:integer"
                            id="_2_MARKETING___d15e199949-1_CRM_LISTA_"/>
                            id="_2_MARKETING___d15e199949-1_CRM_LISTA_"/>
+               <xs:element ref="default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW_ID">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="CRM_LISTA_ZASOBOW_ID"
+                                                         system_cache__appinfo:xpath="default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW_ID/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #224
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <xs:element name="BUSINESS"
                <xs:element name="BUSINESS"
                            type="xs:string"
                            type="xs:string"
                            id="_2_MARKETING___d15e199950-1_BUSINESS"/>
                            id="_2_MARKETING___d15e199950-1_BUSINESS"/>
                <xs:element name="ID_PROJECT"
                <xs:element name="ID_PROJECT"
                            type="xs:integer"
                            type="xs:integer"
                            id="_2_MARKETING___d15e199952-1_ID_PROJECT"/>
                            id="_2_MARKETING___d15e199952-1_ID_PROJECT"/>
+               <xs:element ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="ID_PROJECT"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #204
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <!--#272 found ignored the_geom-->
                <!--#272 found ignored the_geom-->
                <!--#272 found ignored S_ADDRESS_CITY-->
                <!--#272 found ignored S_ADDRESS_CITY-->
                <!--#272 found ignored BAD_CHCE_LOKALNE_TV_OR_NIE_OGLADAM_LOK_TV-->
                <!--#272 found ignored BAD_CHCE_LOKALNE_TV_OR_NIE_OGLADAM_LOK_TV-->
@@ -1067,7 +1266,20 @@
                <!--#414-A found adding p5_zasob_36:CRM_LISTA_ZASOBOW, $prototype_NamespacePrefix = default_db__x3A__USERS2_MARKETING-->
                <!--#414-A found adding p5_zasob_36:CRM_LISTA_ZASOBOW, $prototype_NamespacePrefix = default_db__x3A__USERS2_MARKETING-->
                <xs:element ref="default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW"
                <xs:element ref="default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW"
                            minOccurs="0"
                            minOccurs="0"
-                           id="_2_MARKETING___d15e200044-1"/>
+                           id="_2_MARKETING___d15e200044-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name=""
+                                                         system_cache__appinfo:xpath="default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <!--#272 found ignored T_TELBOX_PORT-->
                <!--#272 found ignored T_TELBOX_PORT-->
                <!--#272 found ignored T_WORKPOINTS-->
                <!--#272 found ignored T_WORKPOINTS-->
                <!--#272 found ignored T_WORKPOINTS_VALUE-->
                <!--#272 found ignored T_WORKPOINTS_VALUE-->
@@ -1127,7 +1339,8 @@
                            minOccurs="1"
                            minOccurs="1"
                            maxOccurs="1"
                            maxOccurs="1"
                            p5:label="Status usł. Internet"
                            p5:label="Status usł. Internet"
-                           id="_2_MARKETING___d15e200105-1_INTERNET_S">
+                           id="_2_MARKETING___d15e200105-1_INTERNET_S"
+                           type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>INTERNET_STATUS Informacje z bazy billingowej/technicznej o tym z jakich usług korzysta/korzystał  KLIENT.</xs:documentation>
                      <xs:documentation>INTERNET_STATUS Informacje z bazy billingowej/technicznej o tym z jakich usług korzysta/korzystał  KLIENT.</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
@@ -1175,6 +1388,20 @@
                <xs:element name="L_APPOITMENT_USER"
                <xs:element name="L_APPOITMENT_USER"
                            type="xs:string"
                            type="xs:string"
                            id="_2_MARKETING___d15e200138-1_L_APPOITME"/>
                            id="_2_MARKETING___d15e200138-1_L_APPOITME"/>
+               <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="L_APPOITMENT_USER"
+                                                         system_cache__appinfo:xpath="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER/ADM_ACCOUNT"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #166
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <xs:element name="A_CLASSIFIED"
                <xs:element name="A_CLASSIFIED"
                            type="xs:string"
                            type="xs:string"
                            id="_2_MARKETING___d15e200139-1_A_CLASSIFI"/>
                            id="_2_MARKETING___d15e200139-1_A_CLASSIFI"/>
@@ -1185,6 +1412,20 @@
                <xs:element name="ADMIN_USERS_ID"
                <xs:element name="ADMIN_USERS_ID"
                            type="xs:integer"
                            type="xs:integer"
                            id="_2_MARKETING___d15e200142-1_ADMIN_USER"/>
                            id="_2_MARKETING___d15e200142-1_ADMIN_USER"/>
+               <xs:element ref="default_db__x3A__ADMIN_USERS:ADMIN_USERS_ID">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="ADMIN_USERS_ID"
+                                                         system_cache__appinfo:xpath="default_db__x3A__ADMIN_USERS:ADMIN_USERS_ID/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #185
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <xs:element name="A_ID_USERS2"
                <xs:element name="A_ID_USERS2"
                            type="xs:integer"
                            type="xs:integer"
                            id="_2_MARKETING___d15e200143-1_A_ID_USERS"/>
                            id="_2_MARKETING___d15e200143-1_A_ID_USERS"/>
@@ -1194,6 +1435,20 @@
                <xs:element name="ID_SERVICES"
                <xs:element name="ID_SERVICES"
                            type="xs:integer"
                            type="xs:integer"
                            id="_2_MARKETING___d15e200145-1_ID_SERVICE"/>
                            id="_2_MARKETING___d15e200145-1_ID_SERVICE"/>
+               <xs:element ref="default_db__x3A__SERVICES:SERVICES">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="ID_SERVICES"
+                                                         system_cache__appinfo:xpath="default_db__x3A__SERVICES:SERVICES/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #183
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <xs:element name="A_RECORD_CREATE_DATE"
                <xs:element name="A_RECORD_CREATE_DATE"
                            type="xs:token"
                            type="xs:token"
                            id="_2_MARKETING___d15e200147-1_A_RECORD_C"/>
                            id="_2_MARKETING___d15e200147-1_A_RECORD_C"/>
@@ -1350,6 +1605,20 @@
                <xs:element name="T_TELBOX_BUILDING_IN"
                <xs:element name="T_TELBOX_BUILDING_IN"
                            type="xs:string"
                            type="xs:string"
                            id="_2_MARKETING___d15e200202-1_T_TELBOX_B"/>
                            id="_2_MARKETING___d15e200202-1_T_TELBOX_B"/>
+               <xs:element ref="default_db__x3A__BUILDINGS:T_TELBOX_BUILDING_IN">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="T_TELBOX_BUILDING_IN"
+                                                         system_cache__appinfo:xpath="default_db__x3A__BUILDINGS:T_TELBOX_BUILDING_IN/S_ADDRESS_STREET"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #3455 !!!
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <xs:element name="I_BAD_DATE"
                <xs:element name="I_BAD_DATE"
                            type="default_db__x3A__USERS2_MARKETING:I_BAD_DATE_OLD"
                            type="default_db__x3A__USERS2_MARKETING:I_BAD_DATE_OLD"
                            id="_2_MARKETING___d15e200203-1_I_BAD_DATE"/>
                            id="_2_MARKETING___d15e200203-1_I_BAD_DATE"/>
@@ -1521,12 +1790,40 @@
                <xs:element name="CRM_LISTA_ZASOBOW_ID"
                <xs:element name="CRM_LISTA_ZASOBOW_ID"
                            type="xs:integer"
                            type="xs:integer"
                            id="_2_MARKETING___d15e200264-1_CRM_LISTA_"/>
                            id="_2_MARKETING___d15e200264-1_CRM_LISTA_"/>
+               <xs:element ref="default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW_ID">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="CRM_LISTA_ZASOBOW_ID"
+                                                         system_cache__appinfo:xpath="default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW_ID/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #224
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <xs:element name="BUSINESS"
                <xs:element name="BUSINESS"
                            type="xs:string"
                            type="xs:string"
                            id="_2_MARKETING___d15e200265-1_BUSINESS"/>
                            id="_2_MARKETING___d15e200265-1_BUSINESS"/>
                <xs:element name="ID_PROJECT"
                <xs:element name="ID_PROJECT"
                            type="xs:integer"
                            type="xs:integer"
                            id="_2_MARKETING___d15e200267-1_ID_PROJECT"/>
                            id="_2_MARKETING___d15e200267-1_ID_PROJECT"/>
+               <xs:element ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="ID_PROJECT"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #204
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <!--#272 found ignored the_geom-->
                <!--#272 found ignored the_geom-->
                <!--#272 found ignored S_ADDRESS_CITY-->
                <!--#272 found ignored S_ADDRESS_CITY-->
                <!--#272 found ignored BAD_CHCE_LOKALNE_TV_OR_NIE_OGLADAM_LOK_TV-->
                <!--#272 found ignored BAD_CHCE_LOKALNE_TV_OR_NIE_OGLADAM_LOK_TV-->
@@ -1609,7 +1906,20 @@
                <!--#414-A found adding p5_zasob_36:CRM_LISTA_ZASOBOW, $prototype_NamespacePrefix = default_db__x3A__USERS2_MARKETING-->
                <!--#414-A found adding p5_zasob_36:CRM_LISTA_ZASOBOW, $prototype_NamespacePrefix = default_db__x3A__USERS2_MARKETING-->
                <xs:element ref="default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW"
                <xs:element ref="default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW"
                            minOccurs="0"
                            minOccurs="0"
-                           id="_2_MARKETING___d15e200359-1"/>
+                           id="_2_MARKETING___d15e200359-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name=""
+                                                         system_cache__appinfo:xpath="default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <!--#272 found ignored T_TELBOX_PORT-->
                <!--#272 found ignored T_TELBOX_PORT-->
                <!--#272 found ignored T_WORKPOINTS-->
                <!--#272 found ignored T_WORKPOINTS-->
                <!--#272 found ignored T_WORKPOINTS_VALUE-->
                <!--#272 found ignored T_WORKPOINTS_VALUE-->
@@ -1669,7 +1979,8 @@
                            minOccurs="1"
                            minOccurs="1"
                            maxOccurs="1"
                            maxOccurs="1"
                            p5:label="Status usł. Internet"
                            p5:label="Status usł. Internet"
-                           id="_2_MARKETING___d15e200420-1_INTERNET_S">
+                           id="_2_MARKETING___d15e200420-1_INTERNET_S"
+                           type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>INTERNET_STATUS Informacje z bazy billingowej/technicznej o tym z jakich usług korzysta/korzystał  KLIENT.</xs:documentation>
                      <xs:documentation>INTERNET_STATUS Informacje z bazy billingowej/technicznej o tym z jakich usług korzysta/korzystał  KLIENT.</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
@@ -1719,6 +2030,20 @@
                <xs:element name="L_APPOITMENT_USER"
                <xs:element name="L_APPOITMENT_USER"
                            type="xs:string"
                            type="xs:string"
                            id="_2_MARKETING___d15e200453-1_L_APPOITME"/>
                            id="_2_MARKETING___d15e200453-1_L_APPOITME"/>
+               <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="L_APPOITMENT_USER"
+                                                         system_cache__appinfo:xpath="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER/ADM_ACCOUNT"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #166
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <xs:element name="A_CLASSIFIED"
                <xs:element name="A_CLASSIFIED"
                            type="xs:string"
                            type="xs:string"
                            id="_2_MARKETING___d15e200454-1_A_CLASSIFI"/>
                            id="_2_MARKETING___d15e200454-1_A_CLASSIFI"/>
@@ -1729,6 +2054,20 @@
                <xs:element name="ADMIN_USERS_ID"
                <xs:element name="ADMIN_USERS_ID"
                            type="xs:integer"
                            type="xs:integer"
                            id="_2_MARKETING___d15e200457-1_ADMIN_USER"/>
                            id="_2_MARKETING___d15e200457-1_ADMIN_USER"/>
+               <xs:element ref="default_db__x3A__ADMIN_USERS:ADMIN_USERS_ID">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="ADMIN_USERS_ID"
+                                                         system_cache__appinfo:xpath="default_db__x3A__ADMIN_USERS:ADMIN_USERS_ID/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #185
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <xs:element name="A_ID_USERS2"
                <xs:element name="A_ID_USERS2"
                            type="xs:integer"
                            type="xs:integer"
                            id="_2_MARKETING___d15e200458-1_A_ID_USERS"/>
                            id="_2_MARKETING___d15e200458-1_A_ID_USERS"/>
@@ -1738,6 +2077,20 @@
                <xs:element name="ID_SERVICES"
                <xs:element name="ID_SERVICES"
                            type="xs:integer"
                            type="xs:integer"
                            id="_2_MARKETING___d15e200460-1_ID_SERVICE"/>
                            id="_2_MARKETING___d15e200460-1_ID_SERVICE"/>
+               <xs:element ref="default_db__x3A__SERVICES:SERVICES">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="ID_SERVICES"
+                                                         system_cache__appinfo:xpath="default_db__x3A__SERVICES:SERVICES/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #183
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <xs:element name="A_RECORD_CREATE_DATE"
                <xs:element name="A_RECORD_CREATE_DATE"
                            type="xs:token"
                            type="xs:token"
                            id="_2_MARKETING___d15e200462-1_A_RECORD_C"/>
                            id="_2_MARKETING___d15e200462-1_A_RECORD_C"/>
@@ -1894,6 +2247,20 @@
                <xs:element name="T_TELBOX_BUILDING_IN"
                <xs:element name="T_TELBOX_BUILDING_IN"
                            type="xs:string"
                            type="xs:string"
                            id="_2_MARKETING___d15e200517-1_T_TELBOX_B"/>
                            id="_2_MARKETING___d15e200517-1_T_TELBOX_B"/>
+               <xs:element ref="default_db__x3A__BUILDINGS:T_TELBOX_BUILDING_IN">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="T_TELBOX_BUILDING_IN"
+                                                         system_cache__appinfo:xpath="default_db__x3A__BUILDINGS:T_TELBOX_BUILDING_IN/S_ADDRESS_STREET"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #3455 !!!
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <xs:element name="I_BAD_DATE"
                <xs:element name="I_BAD_DATE"
                            type="default_db__x3A__USERS2_MARKETING:I_BAD_DATE_OLD"
                            type="default_db__x3A__USERS2_MARKETING:I_BAD_DATE_OLD"
                            id="_2_MARKETING___d15e200518-1_I_BAD_DATE"/>
                            id="_2_MARKETING___d15e200518-1_I_BAD_DATE"/>
@@ -2065,12 +2432,40 @@
                <xs:element name="CRM_LISTA_ZASOBOW_ID"
                <xs:element name="CRM_LISTA_ZASOBOW_ID"
                            type="xs:integer"
                            type="xs:integer"
                            id="_2_MARKETING___d15e200579-1_CRM_LISTA_"/>
                            id="_2_MARKETING___d15e200579-1_CRM_LISTA_"/>
+               <xs:element ref="default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW_ID">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="CRM_LISTA_ZASOBOW_ID"
+                                                         system_cache__appinfo:xpath="default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW_ID/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #224
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <xs:element name="BUSINESS"
                <xs:element name="BUSINESS"
                            type="xs:string"
                            type="xs:string"
                            id="_2_MARKETING___d15e200580-1_BUSINESS"/>
                            id="_2_MARKETING___d15e200580-1_BUSINESS"/>
                <xs:element name="ID_PROJECT"
                <xs:element name="ID_PROJECT"
                            type="xs:integer"
                            type="xs:integer"
                            id="_2_MARKETING___d15e200582-1_ID_PROJECT"/>
                            id="_2_MARKETING___d15e200582-1_ID_PROJECT"/>
+               <xs:element ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="ID_PROJECT"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #204
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <!--#272 found ignored the_geom-->
                <!--#272 found ignored the_geom-->
                <!--#272 found ignored S_ADDRESS_CITY-->
                <!--#272 found ignored S_ADDRESS_CITY-->
                <!--#272 found ignored BAD_CHCE_LOKALNE_TV_OR_NIE_OGLADAM_LOK_TV-->
                <!--#272 found ignored BAD_CHCE_LOKALNE_TV_OR_NIE_OGLADAM_LOK_TV-->
@@ -2153,7 +2548,20 @@
                <!--#414-A found adding p5_zasob_36:CRM_LISTA_ZASOBOW, $prototype_NamespacePrefix = default_db__x3A__USERS2_MARKETING-->
                <!--#414-A found adding p5_zasob_36:CRM_LISTA_ZASOBOW, $prototype_NamespacePrefix = default_db__x3A__USERS2_MARKETING-->
                <xs:element ref="default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW"
                <xs:element ref="default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW"
                            minOccurs="0"
                            minOccurs="0"
-                           id="_2_MARKETING___d15e200674-1"/>
+                           id="_2_MARKETING___d15e200674-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name=""
+                                                         system_cache__appinfo:xpath="default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <!--#272 found ignored T_TELBOX_PORT-->
                <!--#272 found ignored T_TELBOX_PORT-->
                <!--#272 found ignored T_WORKPOINTS-->
                <!--#272 found ignored T_WORKPOINTS-->
                <!--#272 found ignored T_WORKPOINTS_VALUE-->
                <!--#272 found ignored T_WORKPOINTS_VALUE-->
@@ -2213,7 +2621,8 @@
                            minOccurs="1"
                            minOccurs="1"
                            maxOccurs="1"
                            maxOccurs="1"
                            p5:label="Status usł. Internet"
                            p5:label="Status usł. Internet"
-                           id="_2_MARKETING___d15e200735-1_INTERNET_S">
+                           id="_2_MARKETING___d15e200735-1_INTERNET_S"
+                           type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>INTERNET_STATUS Informacje z bazy billingowej/technicznej o tym z jakich usług korzysta/korzystał  KLIENT.</xs:documentation>
                      <xs:documentation>INTERNET_STATUS Informacje z bazy billingowej/technicznej o tym z jakich usług korzysta/korzystał  KLIENT.</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>
@@ -2261,6 +2670,20 @@
                <xs:element name="L_APPOITMENT_USER"
                <xs:element name="L_APPOITMENT_USER"
                            type="xs:string"
                            type="xs:string"
                            id="_2_MARKETING___d15e200768-1_L_APPOITME"/>
                            id="_2_MARKETING___d15e200768-1_L_APPOITME"/>
+               <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="L_APPOITMENT_USER"
+                                                         system_cache__appinfo:xpath="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER/ADM_ACCOUNT"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #166
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <xs:element name="A_CLASSIFIED"
                <xs:element name="A_CLASSIFIED"
                            type="xs:string"
                            type="xs:string"
                            id="_2_MARKETING___d15e200769-1_A_CLASSIFI"/>
                            id="_2_MARKETING___d15e200769-1_A_CLASSIFI"/>
@@ -2271,6 +2694,20 @@
                <xs:element name="ADMIN_USERS_ID"
                <xs:element name="ADMIN_USERS_ID"
                            type="xs:integer"
                            type="xs:integer"
                            id="_2_MARKETING___d15e200772-1_ADMIN_USER"/>
                            id="_2_MARKETING___d15e200772-1_ADMIN_USER"/>
+               <xs:element ref="default_db__x3A__ADMIN_USERS:ADMIN_USERS_ID">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="ADMIN_USERS_ID"
+                                                         system_cache__appinfo:xpath="default_db__x3A__ADMIN_USERS:ADMIN_USERS_ID/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #185
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <xs:element name="A_ID_USERS2"
                <xs:element name="A_ID_USERS2"
                            type="xs:integer"
                            type="xs:integer"
                            id="_2_MARKETING___d15e200773-1_A_ID_USERS"/>
                            id="_2_MARKETING___d15e200773-1_A_ID_USERS"/>
@@ -2280,6 +2717,20 @@
                <xs:element name="ID_SERVICES"
                <xs:element name="ID_SERVICES"
                            type="xs:integer"
                            type="xs:integer"
                            id="_2_MARKETING___d15e200775-1_ID_SERVICE"/>
                            id="_2_MARKETING___d15e200775-1_ID_SERVICE"/>
+               <xs:element ref="default_db__x3A__SERVICES:SERVICES">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="ID_SERVICES"
+                                                         system_cache__appinfo:xpath="default_db__x3A__SERVICES:SERVICES/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #183
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <xs:element name="A_RECORD_CREATE_DATE"
                <xs:element name="A_RECORD_CREATE_DATE"
                            type="xs:token"
                            type="xs:token"
                            id="_2_MARKETING___d15e200777-1_A_RECORD_C"/>
                            id="_2_MARKETING___d15e200777-1_A_RECORD_C"/>
@@ -2436,6 +2887,20 @@
                <xs:element name="T_TELBOX_BUILDING_IN"
                <xs:element name="T_TELBOX_BUILDING_IN"
                            type="xs:string"
                            type="xs:string"
                            id="_2_MARKETING___d15e200832-1_T_TELBOX_B"/>
                            id="_2_MARKETING___d15e200832-1_T_TELBOX_B"/>
+               <xs:element ref="default_db__x3A__BUILDINGS:T_TELBOX_BUILDING_IN">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="T_TELBOX_BUILDING_IN"
+                                                         system_cache__appinfo:xpath="default_db__x3A__BUILDINGS:T_TELBOX_BUILDING_IN/S_ADDRESS_STREET"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #3455 !!!
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <xs:element name="I_BAD_DATE"
                <xs:element name="I_BAD_DATE"
                            type="default_db__x3A__USERS2_MARKETING:I_BAD_DATE_FRESH"
                            type="default_db__x3A__USERS2_MARKETING:I_BAD_DATE_FRESH"
                            id="_2_MARKETING___d15e200833-1_I_BAD_DATE"/>
                            id="_2_MARKETING___d15e200833-1_I_BAD_DATE"/>
@@ -2607,12 +3072,40 @@
                <xs:element name="CRM_LISTA_ZASOBOW_ID"
                <xs:element name="CRM_LISTA_ZASOBOW_ID"
                            type="xs:integer"
                            type="xs:integer"
                            id="_2_MARKETING___d15e200894-1_CRM_LISTA_"/>
                            id="_2_MARKETING___d15e200894-1_CRM_LISTA_"/>
+               <xs:element ref="default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW_ID">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="CRM_LISTA_ZASOBOW_ID"
+                                                         system_cache__appinfo:xpath="default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW_ID/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #224
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <xs:element name="BUSINESS"
                <xs:element name="BUSINESS"
                            type="xs:string"
                            type="xs:string"
                            id="_2_MARKETING___d15e200895-1_BUSINESS"/>
                            id="_2_MARKETING___d15e200895-1_BUSINESS"/>
                <xs:element name="ID_PROJECT"
                <xs:element name="ID_PROJECT"
                            type="xs:integer"
                            type="xs:integer"
                            id="_2_MARKETING___d15e200897-1_ID_PROJECT"/>
                            id="_2_MARKETING___d15e200897-1_ID_PROJECT"/>
+               <xs:element ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name="ID_PROJECT"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #204
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <!--#272 found ignored the_geom-->
                <!--#272 found ignored the_geom-->
                <!--#272 found ignored S_ADDRESS_CITY-->
                <!--#272 found ignored S_ADDRESS_CITY-->
                <!--#272 found ignored BAD_CHCE_LOKALNE_TV_OR_NIE_OGLADAM_LOK_TV-->
                <!--#272 found ignored BAD_CHCE_LOKALNE_TV_OR_NIE_OGLADAM_LOK_TV-->
@@ -2695,7 +3188,20 @@
                <!--#414-A found adding p5_zasob_36:CRM_LISTA_ZASOBOW, $prototype_NamespacePrefix = default_db__x3A__USERS2_MARKETING-->
                <!--#414-A found adding p5_zasob_36:CRM_LISTA_ZASOBOW, $prototype_NamespacePrefix = default_db__x3A__USERS2_MARKETING-->
                <xs:element ref="default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW"
                <xs:element ref="default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW"
                            minOccurs="0"
                            minOccurs="0"
-                           id="_2_MARKETING___d15e200989-1"/>
+                           id="_2_MARKETING___d15e200989-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:name=""
+                                                         system_cache__appinfo:xpath="default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <!--#272 found ignored T_TELBOX_PORT-->
                <!--#272 found ignored T_TELBOX_PORT-->
                <!--#272 found ignored T_WORKPOINTS-->
                <!--#272 found ignored T_WORKPOINTS-->
                <!--#272 found ignored T_WORKPOINTS_VALUE-->
                <!--#272 found ignored T_WORKPOINTS_VALUE-->
@@ -2755,7 +3261,8 @@
                            minOccurs="1"
                            minOccurs="1"
                            maxOccurs="1"
                            maxOccurs="1"
                            p5:label="Status usł. Internet"
                            p5:label="Status usł. Internet"
-                           id="_2_MARKETING___d15e201050-1_INTERNET_S">
+                           id="_2_MARKETING___d15e201050-1_INTERNET_S"
+                           type="xs:string">
                   <xs:annotation>
                   <xs:annotation>
                      <xs:documentation>INTERNET_STATUS Informacje z bazy billingowej/technicznej o tym z jakich usług korzysta/korzystał  KLIENT.</xs:documentation>
                      <xs:documentation>INTERNET_STATUS Informacje z bazy billingowej/technicznej o tym z jakich usług korzysta/korzystał  KLIENT.</xs:documentation>
                   </xs:annotation>
                   </xs:annotation>

Algunos archivos no se mostraron porque demasiados archivos cambiaron en este cambio