a.binder 8 년 전
부모
커밋
82f3eb4e17

+ 272 - 37
SE/schema/ant-object/default_db.ADMIN_USERS/ADMIN_USERS/ADMIN_USERS.xsd

@@ -194,22 +194,66 @@
                </xs:appinfo>
             </xs:annotation>
          </xs:element>-->
-         <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER"
-                     id="ADMIN_USERS___d4e4176-1"
-                     minOccurs="0"/>
+         <xs:element minOccurs="0" name="L_APPOITMENT_USER" type="xs:string"/>
+         <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 maxOccurs="unbounded"
                      minOccurs="0"
                      ref="default_db__x3A__DEVICES:DEVICES"
-                     id="ADMIN_USERS___d4e4DEV1"/>
+                     id="ADMIN_USERS___d4e4DEV1">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                     <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+            </xs:annotation>
+         </xs:element>
          <xs:element ref="default_db__x3A__USERS2_MARKETING:USERS2_MARKETING"
                      maxOccurs="unbounded"
-                     minOccurs="0"/>
+                     minOccurs="0">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                     <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+            </xs:annotation>
+         </xs:element>
          <xs:element maxOccurs="unbounded"
                      minOccurs="0"
-                     ref="default_db__x3A__PROBLEMS:PROBLEMS"/>
+                     ref="default_db__x3A__PROBLEMS:PROBLEMS">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                     <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+            </xs:annotation>
+         </xs:element>
          <xs:element maxOccurs="unbounded"
                      minOccurs="0"
-                     ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI"/>
+                     ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                     <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+            </xs:annotation>
+         </xs:element>
       </xs:sequence>
    </xs:complexType>
    <xs:element name="ADMIN_USERS"
@@ -332,19 +376,55 @@ Kombinacja: bazowa</xs:documentation>
                      </xs:appinfo>
                   </xs:annotation>
                </xs:element>-->
-               <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER"
-                           id="ADMIN_USERS___d4e4229-1"
-                           minOccurs="0"/>
+               <xs:element minOccurs="0" name="L_APPOITMENT_USER" type="xs:string"/>
+               <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 maxOccurs="unbounded"
                            minOccurs="0"
                            ref="default_db__x3A__DEVICES:DEVICES"
-                           id="ADMIN_USERS___d4e4DEV2"/>
+                           id="ADMIN_USERS___d4e4DEV2">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
                <xs:element ref="default_db__x3A__USERS2_MARKETING:USERS2_MARKETING"
                            maxOccurs="unbounded"
-                           minOccurs="0"/>
+                           minOccurs="0">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
                <xs:element maxOccurs="unbounded"
                            minOccurs="0"
-                           ref="default_db__x3A__PROBLEMS:PROBLEMS"/>
+                           ref="default_db__x3A__PROBLEMS:PROBLEMS">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
             </xs:sequence>
          </xs:restriction>
       </xs:complexContent>
@@ -451,22 +531,68 @@ Kombinacja: bazowa</xs:documentation>
                      </xs:appinfo>
                   </xs:annotation>
                </xs:element>-->
-               <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER"
-                           id="ADMIN_USERS___d4e4281-1"
-                           minOccurs="0"/>
+               <xs:element minOccurs="0" name="L_APPOITMENT_USER" type="xs:string"/>
+               <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 maxOccurs="unbounded"
                            minOccurs="0"
                            ref="default_db__x3A__DEVICES:DEVICES"
-                           id="ADMIN_USERS___d4e4DEV3"/>
+                           id="ADMIN_USERS___d4e4DEV3">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #555544
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <xs:element ref="default_db__x3A__USERS2_MARKETING:USERS2_MARKETING"
                            maxOccurs="unbounded"
-                           minOccurs="0"/>
+                           minOccurs="0">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
                <xs:element maxOccurs="unbounded"
                            minOccurs="0"
-                           ref="default_db__x3A__PROBLEMS:PROBLEMS"/>
+                           ref="default_db__x3A__PROBLEMS:PROBLEMS">
+                  \<xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
                <xs:element maxOccurs="unbounded"
                            minOccurs="0"
-                           ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI"/>
+                           ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>\</xs:element>
             </xs:sequence>
          </xs:restriction>
       </xs:complexContent>
@@ -587,19 +713,55 @@ Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
                      </xs:appinfo>
                   </xs:annotation>
                </xs:element>-->
-               <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER"
-                           id="ADMIN_USERS___d4e4340-1"
-                           minOccurs="0"/>
+               <xs:element minOccurs="0" name="L_APPOITMENT_USER" type="xs:string"/>
+               <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 maxOccurs="unbounded"
                            minOccurs="0"
                            ref="default_db__x3A__DEVICES:DEVICES"
-                           id="ADMIN_USERS___d4e4DEV4"/>
+                           id="ADMIN_USERS___d4e4DEV4">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
                <xs:element ref="default_db__x3A__USERS2_MARKETING:USERS2_MARKETING"
                            maxOccurs="unbounded"
-                           minOccurs="0"/>
+                           minOccurs="0">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
                <xs:element maxOccurs="unbounded"
                            minOccurs="0"
-                           ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI"/>
+                           ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
             </xs:sequence>
          </xs:restriction>
       </xs:complexContent>
@@ -711,18 +873,55 @@ Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
                      </xs:appinfo>
                   </xs:annotation>
                </xs:element>-->
-               <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER"
-                           id="ADMIN_USERS___d4e4394-1"/>
+               <xs:element minOccurs="0" name="L_APPOITMENT_USER" type="xs:string"/>
+               <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 maxOccurs="unbounded"
                            minOccurs="0"
                            ref="default_db__x3A__DEVICES:DEVICES"
-                           id="ADMIN_USERS___d4e4DEV5"/>
+                           id="ADMIN_USERS___d4e4DEV5">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
                <xs:element ref="default_db__x3A__USERS2_MARKETING:USERS2_MARKETING"
                            maxOccurs="unbounded"
-                           minOccurs="0"/>
+                           minOccurs="0">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
                <xs:element maxOccurs="unbounded"
                            minOccurs="0"
-                           ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI"/>
+                           ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
             </xs:sequence>
          </xs:restriction>
       </xs:complexContent>
@@ -832,19 +1031,55 @@ Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
                      </xs:appinfo>
                   </xs:annotation>
                </xs:element>-->
-               <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER"
-                           id="ADMIN_USERS___d4e4448-1"
-                           minOccurs="0"/>
+               <xs:element minOccurs="0" name="L_APPOITMENT_USER" type="xs:string"/>
+               <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 maxOccurs="unbounded"
                            minOccurs="0"
                            ref="default_db__x3A__DEVICES:DEVICES"
-                           id="ADMIN_USERS___d4e4DEV6"/>
+                           id="ADMIN_USERS___d4e4DEV6">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
                <xs:element ref="default_db__x3A__USERS2_MARKETING:USERS2_MARKETING"
                            maxOccurs="unbounded"
-                           minOccurs="0"/>
+                           minOccurs="0">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
                <xs:element maxOccurs="unbounded"
                            minOccurs="0"
-                           ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI"/>
+                           ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
             </xs:sequence>
          </xs:restriction>
       </xs:complexContent>

+ 272 - 37
SE/schema/ant-object/default_db.ADMIN_USERS/ADMIN_USERS_ID/ADMIN_USERS_ID.xsd

@@ -194,22 +194,66 @@
                </xs:appinfo>
             </xs:annotation>
          </xs:element>-->
-         <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER"
-                     id="ADMIN_USERS___d4e4176-1"
-                     minOccurs="0"/>
+         <xs:element minOccurs="0" name="L_APPOITMENT_USER" type="xs:string"/>
+         <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 maxOccurs="unbounded"
                      minOccurs="0"
                      ref="default_db__x3A__DEVICES:DEVICES"
-                     id="ADMIN_USERS___d4e4DEV1"/>
+                     id="ADMIN_USERS___d4e4DEV1">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                     <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+            </xs:annotation>
+         </xs:element>
          <xs:element ref="default_db__x3A__USERS2_MARKETING:USERS2_MARKETING"
                      maxOccurs="unbounded"
-                     minOccurs="0"/>
+                     minOccurs="0">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                     <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+            </xs:annotation>
+         </xs:element>
          <xs:element maxOccurs="unbounded"
                      minOccurs="0"
-                     ref="default_db__x3A__PROBLEMS:PROBLEMS"/>
+                     ref="default_db__x3A__PROBLEMS:PROBLEMS">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                     <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+            </xs:annotation>
+         </xs:element>
          <xs:element maxOccurs="unbounded"
                      minOccurs="0"
-                     ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI"/>
+                     ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                     <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+            </xs:annotation>
+         </xs:element>
       </xs:sequence>
    </xs:complexType>
    <xs:element name="ADMIN_USERS"
@@ -332,19 +376,55 @@ Kombinacja: bazowa</xs:documentation>
                      </xs:appinfo>
                   </xs:annotation>
                </xs:element>-->
-               <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER"
-                           id="ADMIN_USERS___d4e4229-1"
-                           minOccurs="0"/>
+               <xs:element minOccurs="0" name="L_APPOITMENT_USER" type="xs:string"/>
+               <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 maxOccurs="unbounded"
                            minOccurs="0"
                            ref="default_db__x3A__DEVICES:DEVICES"
-                           id="ADMIN_USERS___d4e4DEV2"/>
+                           id="ADMIN_USERS___d4e4DEV2">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
                <xs:element ref="default_db__x3A__USERS2_MARKETING:USERS2_MARKETING"
                            maxOccurs="unbounded"
-                           minOccurs="0"/>
+                           minOccurs="0">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
                <xs:element maxOccurs="unbounded"
                            minOccurs="0"
-                           ref="default_db__x3A__PROBLEMS:PROBLEMS"/>
+                           ref="default_db__x3A__PROBLEMS:PROBLEMS">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
             </xs:sequence>
          </xs:restriction>
       </xs:complexContent>
@@ -451,22 +531,68 @@ Kombinacja: bazowa</xs:documentation>
                      </xs:appinfo>
                   </xs:annotation>
                </xs:element>-->
-               <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER"
-                           id="ADMIN_USERS___d4e4281-1"
-                           minOccurs="0"/>
+               <xs:element minOccurs="0" name="L_APPOITMENT_USER" type="xs:string"/>
+               <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 maxOccurs="unbounded"
                            minOccurs="0"
                            ref="default_db__x3A__DEVICES:DEVICES"
-                           id="ADMIN_USERS___d4e4DEV3"/>
+                           id="ADMIN_USERS___d4e4DEV3">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #555544
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <xs:element ref="default_db__x3A__USERS2_MARKETING:USERS2_MARKETING"
                            maxOccurs="unbounded"
-                           minOccurs="0"/>
+                           minOccurs="0">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
                <xs:element maxOccurs="unbounded"
                            minOccurs="0"
-                           ref="default_db__x3A__PROBLEMS:PROBLEMS"/>
+                           ref="default_db__x3A__PROBLEMS:PROBLEMS">
+                  \<xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
                <xs:element maxOccurs="unbounded"
                            minOccurs="0"
-                           ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI"/>
+                           ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>\</xs:element>
             </xs:sequence>
          </xs:restriction>
       </xs:complexContent>
@@ -587,19 +713,55 @@ Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
                      </xs:appinfo>
                   </xs:annotation>
                </xs:element>-->
-               <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER"
-                           id="ADMIN_USERS___d4e4340-1"
-                           minOccurs="0"/>
+               <xs:element minOccurs="0" name="L_APPOITMENT_USER" type="xs:string"/>
+               <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 maxOccurs="unbounded"
                            minOccurs="0"
                            ref="default_db__x3A__DEVICES:DEVICES"
-                           id="ADMIN_USERS___d4e4DEV4"/>
+                           id="ADMIN_USERS___d4e4DEV4">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
                <xs:element ref="default_db__x3A__USERS2_MARKETING:USERS2_MARKETING"
                            maxOccurs="unbounded"
-                           minOccurs="0"/>
+                           minOccurs="0">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
                <xs:element maxOccurs="unbounded"
                            minOccurs="0"
-                           ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI"/>
+                           ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
             </xs:sequence>
          </xs:restriction>
       </xs:complexContent>
@@ -711,18 +873,55 @@ Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
                      </xs:appinfo>
                   </xs:annotation>
                </xs:element>-->
-               <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER"
-                           id="ADMIN_USERS___d4e4394-1"/>
+               <xs:element minOccurs="0" name="L_APPOITMENT_USER" type="xs:string"/>
+               <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 maxOccurs="unbounded"
                            minOccurs="0"
                            ref="default_db__x3A__DEVICES:DEVICES"
-                           id="ADMIN_USERS___d4e4DEV5"/>
+                           id="ADMIN_USERS___d4e4DEV5">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
                <xs:element ref="default_db__x3A__USERS2_MARKETING:USERS2_MARKETING"
                            maxOccurs="unbounded"
-                           minOccurs="0"/>
+                           minOccurs="0">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
                <xs:element maxOccurs="unbounded"
                            minOccurs="0"
-                           ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI"/>
+                           ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
             </xs:sequence>
          </xs:restriction>
       </xs:complexContent>
@@ -832,19 +1031,55 @@ Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
                      </xs:appinfo>
                   </xs:annotation>
                </xs:element>-->
-               <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER"
-                           id="ADMIN_USERS___d4e4448-1"
-                           minOccurs="0"/>
+               <xs:element minOccurs="0" name="L_APPOITMENT_USER" type="xs:string"/>
+               <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 maxOccurs="unbounded"
                            minOccurs="0"
                            ref="default_db__x3A__DEVICES:DEVICES"
-                           id="ADMIN_USERS___d4e4DEV6"/>
+                           id="ADMIN_USERS___d4e4DEV6">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
                <xs:element ref="default_db__x3A__USERS2_MARKETING:USERS2_MARKETING"
                            maxOccurs="unbounded"
-                           minOccurs="0"/>
+                           minOccurs="0">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
                <xs:element maxOccurs="unbounded"
                            minOccurs="0"
-                           ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI"/>
+                           ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
             </xs:sequence>
          </xs:restriction>
       </xs:complexContent>

+ 272 - 37
SE/schema/ant-object/default_db.ADMIN_USERS/AccessOwner/AccessOwner.xsd

@@ -194,22 +194,66 @@
                </xs:appinfo>
             </xs:annotation>
          </xs:element>-->
-         <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER"
-                     id="ADMIN_USERS___d4e4176-1"
-                     minOccurs="0"/>
+         <xs:element minOccurs="0" name="L_APPOITMENT_USER" type="xs:string"/>
+         <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 maxOccurs="unbounded"
                      minOccurs="0"
                      ref="default_db__x3A__DEVICES:DEVICES"
-                     id="ADMIN_USERS___d4e4DEV1"/>
+                     id="ADMIN_USERS___d4e4DEV1">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                     <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+            </xs:annotation>
+         </xs:element>
          <xs:element ref="default_db__x3A__USERS2_MARKETING:USERS2_MARKETING"
                      maxOccurs="unbounded"
-                     minOccurs="0"/>
+                     minOccurs="0">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                     <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+            </xs:annotation>
+         </xs:element>
          <xs:element maxOccurs="unbounded"
                      minOccurs="0"
-                     ref="default_db__x3A__PROBLEMS:PROBLEMS"/>
+                     ref="default_db__x3A__PROBLEMS:PROBLEMS">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                     <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+            </xs:annotation>
+         </xs:element>
          <xs:element maxOccurs="unbounded"
                      minOccurs="0"
-                     ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI"/>
+                     ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                     <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+            </xs:annotation>
+         </xs:element>
       </xs:sequence>
    </xs:complexType>
    <xs:element name="ADMIN_USERS"
@@ -332,19 +376,55 @@ Kombinacja: bazowa</xs:documentation>
                      </xs:appinfo>
                   </xs:annotation>
                </xs:element>-->
-               <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER"
-                           id="ADMIN_USERS___d4e4229-1"
-                           minOccurs="0"/>
+               <xs:element minOccurs="0" name="L_APPOITMENT_USER" type="xs:string"/>
+               <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 maxOccurs="unbounded"
                            minOccurs="0"
                            ref="default_db__x3A__DEVICES:DEVICES"
-                           id="ADMIN_USERS___d4e4DEV2"/>
+                           id="ADMIN_USERS___d4e4DEV2">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
                <xs:element ref="default_db__x3A__USERS2_MARKETING:USERS2_MARKETING"
                            maxOccurs="unbounded"
-                           minOccurs="0"/>
+                           minOccurs="0">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
                <xs:element maxOccurs="unbounded"
                            minOccurs="0"
-                           ref="default_db__x3A__PROBLEMS:PROBLEMS"/>
+                           ref="default_db__x3A__PROBLEMS:PROBLEMS">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
             </xs:sequence>
          </xs:restriction>
       </xs:complexContent>
@@ -451,22 +531,68 @@ Kombinacja: bazowa</xs:documentation>
                      </xs:appinfo>
                   </xs:annotation>
                </xs:element>-->
-               <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER"
-                           id="ADMIN_USERS___d4e4281-1"
-                           minOccurs="0"/>
+               <xs:element minOccurs="0" name="L_APPOITMENT_USER" type="xs:string"/>
+               <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 maxOccurs="unbounded"
                            minOccurs="0"
                            ref="default_db__x3A__DEVICES:DEVICES"
-                           id="ADMIN_USERS___d4e4DEV3"/>
+                           id="ADMIN_USERS___d4e4DEV3">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #555544
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <xs:element ref="default_db__x3A__USERS2_MARKETING:USERS2_MARKETING"
                            maxOccurs="unbounded"
-                           minOccurs="0"/>
+                           minOccurs="0">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
                <xs:element maxOccurs="unbounded"
                            minOccurs="0"
-                           ref="default_db__x3A__PROBLEMS:PROBLEMS"/>
+                           ref="default_db__x3A__PROBLEMS:PROBLEMS">
+                  \<xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
                <xs:element maxOccurs="unbounded"
                            minOccurs="0"
-                           ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI"/>
+                           ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>\</xs:element>
             </xs:sequence>
          </xs:restriction>
       </xs:complexContent>
@@ -587,19 +713,55 @@ Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
                      </xs:appinfo>
                   </xs:annotation>
                </xs:element>-->
-               <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER"
-                           id="ADMIN_USERS___d4e4340-1"
-                           minOccurs="0"/>
+               <xs:element minOccurs="0" name="L_APPOITMENT_USER" type="xs:string"/>
+               <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 maxOccurs="unbounded"
                            minOccurs="0"
                            ref="default_db__x3A__DEVICES:DEVICES"
-                           id="ADMIN_USERS___d4e4DEV4"/>
+                           id="ADMIN_USERS___d4e4DEV4">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
                <xs:element ref="default_db__x3A__USERS2_MARKETING:USERS2_MARKETING"
                            maxOccurs="unbounded"
-                           minOccurs="0"/>
+                           minOccurs="0">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
                <xs:element maxOccurs="unbounded"
                            minOccurs="0"
-                           ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI"/>
+                           ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
             </xs:sequence>
          </xs:restriction>
       </xs:complexContent>
@@ -711,18 +873,55 @@ Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
                      </xs:appinfo>
                   </xs:annotation>
                </xs:element>-->
-               <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER"
-                           id="ADMIN_USERS___d4e4394-1"/>
+               <xs:element minOccurs="0" name="L_APPOITMENT_USER" type="xs:string"/>
+               <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 maxOccurs="unbounded"
                            minOccurs="0"
                            ref="default_db__x3A__DEVICES:DEVICES"
-                           id="ADMIN_USERS___d4e4DEV5"/>
+                           id="ADMIN_USERS___d4e4DEV5">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
                <xs:element ref="default_db__x3A__USERS2_MARKETING:USERS2_MARKETING"
                            maxOccurs="unbounded"
-                           minOccurs="0"/>
+                           minOccurs="0">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
                <xs:element maxOccurs="unbounded"
                            minOccurs="0"
-                           ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI"/>
+                           ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
             </xs:sequence>
          </xs:restriction>
       </xs:complexContent>
@@ -832,19 +1031,55 @@ Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
                      </xs:appinfo>
                   </xs:annotation>
                </xs:element>-->
-               <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER"
-                           id="ADMIN_USERS___d4e4448-1"
-                           minOccurs="0"/>
+               <xs:element minOccurs="0" name="L_APPOITMENT_USER" type="xs:string"/>
+               <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 maxOccurs="unbounded"
                            minOccurs="0"
                            ref="default_db__x3A__DEVICES:DEVICES"
-                           id="ADMIN_USERS___d4e4DEV6"/>
+                           id="ADMIN_USERS___d4e4DEV6">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
                <xs:element ref="default_db__x3A__USERS2_MARKETING:USERS2_MARKETING"
                            maxOccurs="unbounded"
-                           minOccurs="0"/>
+                           minOccurs="0">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
                <xs:element maxOccurs="unbounded"
                            minOccurs="0"
-                           ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI"/>
+                           ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
             </xs:sequence>
          </xs:restriction>
       </xs:complexContent>

+ 272 - 37
SE/schema/ant-object/default_db.ADMIN_USERS/CUSTOMER_ADMIN_USER/CUSTOMER_ADMIN_USER.xsd

@@ -194,22 +194,66 @@
                </xs:appinfo>
             </xs:annotation>
          </xs:element>-->
-         <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER"
-                     id="ADMIN_USERS___d4e4176-1"
-                     minOccurs="0"/>
+         <xs:element minOccurs="0" name="L_APPOITMENT_USER" type="xs:string"/>
+         <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 maxOccurs="unbounded"
                      minOccurs="0"
                      ref="default_db__x3A__DEVICES:DEVICES"
-                     id="ADMIN_USERS___d4e4DEV1"/>
+                     id="ADMIN_USERS___d4e4DEV1">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                     <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+            </xs:annotation>
+         </xs:element>
          <xs:element ref="default_db__x3A__USERS2_MARKETING:USERS2_MARKETING"
                      maxOccurs="unbounded"
-                     minOccurs="0"/>
+                     minOccurs="0">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                     <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+            </xs:annotation>
+         </xs:element>
          <xs:element maxOccurs="unbounded"
                      minOccurs="0"
-                     ref="default_db__x3A__PROBLEMS:PROBLEMS"/>
+                     ref="default_db__x3A__PROBLEMS:PROBLEMS">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                     <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+            </xs:annotation>
+         </xs:element>
          <xs:element maxOccurs="unbounded"
                      minOccurs="0"
-                     ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI"/>
+                     ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                     <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+            </xs:annotation>
+         </xs:element>
       </xs:sequence>
    </xs:complexType>
    <xs:element name="ADMIN_USERS"
@@ -332,19 +376,55 @@ Kombinacja: bazowa</xs:documentation>
                      </xs:appinfo>
                   </xs:annotation>
                </xs:element>-->
-               <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER"
-                           id="ADMIN_USERS___d4e4229-1"
-                           minOccurs="0"/>
+               <xs:element minOccurs="0" name="L_APPOITMENT_USER" type="xs:string"/>
+               <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 maxOccurs="unbounded"
                            minOccurs="0"
                            ref="default_db__x3A__DEVICES:DEVICES"
-                           id="ADMIN_USERS___d4e4DEV2"/>
+                           id="ADMIN_USERS___d4e4DEV2">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
                <xs:element ref="default_db__x3A__USERS2_MARKETING:USERS2_MARKETING"
                            maxOccurs="unbounded"
-                           minOccurs="0"/>
+                           minOccurs="0">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
                <xs:element maxOccurs="unbounded"
                            minOccurs="0"
-                           ref="default_db__x3A__PROBLEMS:PROBLEMS"/>
+                           ref="default_db__x3A__PROBLEMS:PROBLEMS">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
             </xs:sequence>
          </xs:restriction>
       </xs:complexContent>
@@ -451,22 +531,68 @@ Kombinacja: bazowa</xs:documentation>
                      </xs:appinfo>
                   </xs:annotation>
                </xs:element>-->
-               <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER"
-                           id="ADMIN_USERS___d4e4281-1"
-                           minOccurs="0"/>
+               <xs:element minOccurs="0" name="L_APPOITMENT_USER" type="xs:string"/>
+               <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 maxOccurs="unbounded"
                            minOccurs="0"
                            ref="default_db__x3A__DEVICES:DEVICES"
-                           id="ADMIN_USERS___d4e4DEV3"/>
+                           id="ADMIN_USERS___d4e4DEV3">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #555544
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <xs:element ref="default_db__x3A__USERS2_MARKETING:USERS2_MARKETING"
                            maxOccurs="unbounded"
-                           minOccurs="0"/>
+                           minOccurs="0">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
                <xs:element maxOccurs="unbounded"
                            minOccurs="0"
-                           ref="default_db__x3A__PROBLEMS:PROBLEMS"/>
+                           ref="default_db__x3A__PROBLEMS:PROBLEMS">
+                  \<xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
                <xs:element maxOccurs="unbounded"
                            minOccurs="0"
-                           ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI"/>
+                           ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>\</xs:element>
             </xs:sequence>
          </xs:restriction>
       </xs:complexContent>
@@ -587,19 +713,55 @@ Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
                      </xs:appinfo>
                   </xs:annotation>
                </xs:element>-->
-               <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER"
-                           id="ADMIN_USERS___d4e4340-1"
-                           minOccurs="0"/>
+               <xs:element minOccurs="0" name="L_APPOITMENT_USER" type="xs:string"/>
+               <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 maxOccurs="unbounded"
                            minOccurs="0"
                            ref="default_db__x3A__DEVICES:DEVICES"
-                           id="ADMIN_USERS___d4e4DEV4"/>
+                           id="ADMIN_USERS___d4e4DEV4">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
                <xs:element ref="default_db__x3A__USERS2_MARKETING:USERS2_MARKETING"
                            maxOccurs="unbounded"
-                           minOccurs="0"/>
+                           minOccurs="0">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
                <xs:element maxOccurs="unbounded"
                            minOccurs="0"
-                           ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI"/>
+                           ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
             </xs:sequence>
          </xs:restriction>
       </xs:complexContent>
@@ -711,18 +873,55 @@ Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
                      </xs:appinfo>
                   </xs:annotation>
                </xs:element>-->
-               <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER"
-                           id="ADMIN_USERS___d4e4394-1"/>
+               <xs:element minOccurs="0" name="L_APPOITMENT_USER" type="xs:string"/>
+               <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 maxOccurs="unbounded"
                            minOccurs="0"
                            ref="default_db__x3A__DEVICES:DEVICES"
-                           id="ADMIN_USERS___d4e4DEV5"/>
+                           id="ADMIN_USERS___d4e4DEV5">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
                <xs:element ref="default_db__x3A__USERS2_MARKETING:USERS2_MARKETING"
                            maxOccurs="unbounded"
-                           minOccurs="0"/>
+                           minOccurs="0">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
                <xs:element maxOccurs="unbounded"
                            minOccurs="0"
-                           ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI"/>
+                           ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
             </xs:sequence>
          </xs:restriction>
       </xs:complexContent>
@@ -832,19 +1031,55 @@ Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
                      </xs:appinfo>
                   </xs:annotation>
                </xs:element>-->
-               <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER"
-                           id="ADMIN_USERS___d4e4448-1"
-                           minOccurs="0"/>
+               <xs:element minOccurs="0" name="L_APPOITMENT_USER" type="xs:string"/>
+               <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 maxOccurs="unbounded"
                            minOccurs="0"
                            ref="default_db__x3A__DEVICES:DEVICES"
-                           id="ADMIN_USERS___d4e4DEV6"/>
+                           id="ADMIN_USERS___d4e4DEV6">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
                <xs:element ref="default_db__x3A__USERS2_MARKETING:USERS2_MARKETING"
                            maxOccurs="unbounded"
-                           minOccurs="0"/>
+                           minOccurs="0">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
                <xs:element maxOccurs="unbounded"
                            minOccurs="0"
-                           ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI"/>
+                           ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
             </xs:sequence>
          </xs:restriction>
       </xs:complexContent>

+ 272 - 37
SE/schema/ant-object/default_db.ADMIN_USERS/L_APPOITMENT_USER/L_APPOITMENT_USER.xsd

@@ -194,22 +194,66 @@
                </xs:appinfo>
             </xs:annotation>
          </xs:element>-->
-         <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER"
-                     id="ADMIN_USERS___d4e4176-1"
-                     minOccurs="0"/>
+         <xs:element minOccurs="0" name="L_APPOITMENT_USER" type="xs:string"/>
+         <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 maxOccurs="unbounded"
                      minOccurs="0"
                      ref="default_db__x3A__DEVICES:DEVICES"
-                     id="ADMIN_USERS___d4e4DEV1"/>
+                     id="ADMIN_USERS___d4e4DEV1">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                     <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+            </xs:annotation>
+         </xs:element>
          <xs:element ref="default_db__x3A__USERS2_MARKETING:USERS2_MARKETING"
                      maxOccurs="unbounded"
-                     minOccurs="0"/>
+                     minOccurs="0">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                     <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+            </xs:annotation>
+         </xs:element>
          <xs:element maxOccurs="unbounded"
                      minOccurs="0"
-                     ref="default_db__x3A__PROBLEMS:PROBLEMS"/>
+                     ref="default_db__x3A__PROBLEMS:PROBLEMS">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                     <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+            </xs:annotation>
+         </xs:element>
          <xs:element maxOccurs="unbounded"
                      minOccurs="0"
-                     ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI"/>
+                     ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                     <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+            </xs:annotation>
+         </xs:element>
       </xs:sequence>
    </xs:complexType>
    <xs:element name="ADMIN_USERS"
@@ -332,19 +376,55 @@ Kombinacja: bazowa</xs:documentation>
                      </xs:appinfo>
                   </xs:annotation>
                </xs:element>-->
-               <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER"
-                           id="ADMIN_USERS___d4e4229-1"
-                           minOccurs="0"/>
+               <xs:element minOccurs="0" name="L_APPOITMENT_USER" type="xs:string"/>
+               <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 maxOccurs="unbounded"
                            minOccurs="0"
                            ref="default_db__x3A__DEVICES:DEVICES"
-                           id="ADMIN_USERS___d4e4DEV2"/>
+                           id="ADMIN_USERS___d4e4DEV2">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
                <xs:element ref="default_db__x3A__USERS2_MARKETING:USERS2_MARKETING"
                            maxOccurs="unbounded"
-                           minOccurs="0"/>
+                           minOccurs="0">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
                <xs:element maxOccurs="unbounded"
                            minOccurs="0"
-                           ref="default_db__x3A__PROBLEMS:PROBLEMS"/>
+                           ref="default_db__x3A__PROBLEMS:PROBLEMS">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
             </xs:sequence>
          </xs:restriction>
       </xs:complexContent>
@@ -451,22 +531,68 @@ Kombinacja: bazowa</xs:documentation>
                      </xs:appinfo>
                   </xs:annotation>
                </xs:element>-->
-               <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER"
-                           id="ADMIN_USERS___d4e4281-1"
-                           minOccurs="0"/>
+               <xs:element minOccurs="0" name="L_APPOITMENT_USER" type="xs:string"/>
+               <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 maxOccurs="unbounded"
                            minOccurs="0"
                            ref="default_db__x3A__DEVICES:DEVICES"
-                           id="ADMIN_USERS___d4e4DEV3"/>
+                           id="ADMIN_USERS___d4e4DEV3">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #555544
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <xs:element ref="default_db__x3A__USERS2_MARKETING:USERS2_MARKETING"
                            maxOccurs="unbounded"
-                           minOccurs="0"/>
+                           minOccurs="0">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
                <xs:element maxOccurs="unbounded"
                            minOccurs="0"
-                           ref="default_db__x3A__PROBLEMS:PROBLEMS"/>
+                           ref="default_db__x3A__PROBLEMS:PROBLEMS">
+                  \<xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
                <xs:element maxOccurs="unbounded"
                            minOccurs="0"
-                           ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI"/>
+                           ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>\</xs:element>
             </xs:sequence>
          </xs:restriction>
       </xs:complexContent>
@@ -587,19 +713,55 @@ Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
                      </xs:appinfo>
                   </xs:annotation>
                </xs:element>-->
-               <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER"
-                           id="ADMIN_USERS___d4e4340-1"
-                           minOccurs="0"/>
+               <xs:element minOccurs="0" name="L_APPOITMENT_USER" type="xs:string"/>
+               <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 maxOccurs="unbounded"
                            minOccurs="0"
                            ref="default_db__x3A__DEVICES:DEVICES"
-                           id="ADMIN_USERS___d4e4DEV4"/>
+                           id="ADMIN_USERS___d4e4DEV4">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
                <xs:element ref="default_db__x3A__USERS2_MARKETING:USERS2_MARKETING"
                            maxOccurs="unbounded"
-                           minOccurs="0"/>
+                           minOccurs="0">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
                <xs:element maxOccurs="unbounded"
                            minOccurs="0"
-                           ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI"/>
+                           ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
             </xs:sequence>
          </xs:restriction>
       </xs:complexContent>
@@ -711,18 +873,55 @@ Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
                      </xs:appinfo>
                   </xs:annotation>
                </xs:element>-->
-               <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER"
-                           id="ADMIN_USERS___d4e4394-1"/>
+               <xs:element minOccurs="0" name="L_APPOITMENT_USER" type="xs:string"/>
+               <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 maxOccurs="unbounded"
                            minOccurs="0"
                            ref="default_db__x3A__DEVICES:DEVICES"
-                           id="ADMIN_USERS___d4e4DEV5"/>
+                           id="ADMIN_USERS___d4e4DEV5">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
                <xs:element ref="default_db__x3A__USERS2_MARKETING:USERS2_MARKETING"
                            maxOccurs="unbounded"
-                           minOccurs="0"/>
+                           minOccurs="0">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
                <xs:element maxOccurs="unbounded"
                            minOccurs="0"
-                           ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI"/>
+                           ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
             </xs:sequence>
          </xs:restriction>
       </xs:complexContent>
@@ -832,19 +1031,55 @@ Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
                      </xs:appinfo>
                   </xs:annotation>
                </xs:element>-->
-               <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER"
-                           id="ADMIN_USERS___d4e4448-1"
-                           minOccurs="0"/>
+               <xs:element minOccurs="0" name="L_APPOITMENT_USER" type="xs:string"/>
+               <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 maxOccurs="unbounded"
                            minOccurs="0"
                            ref="default_db__x3A__DEVICES:DEVICES"
-                           id="ADMIN_USERS___d4e4DEV6"/>
+                           id="ADMIN_USERS___d4e4DEV6">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
                <xs:element ref="default_db__x3A__USERS2_MARKETING:USERS2_MARKETING"
                            maxOccurs="unbounded"
-                           minOccurs="0"/>
+                           minOccurs="0">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
                <xs:element maxOccurs="unbounded"
                            minOccurs="0"
-                           ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI"/>
+                           ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
             </xs:sequence>
          </xs:restriction>
       </xs:complexContent>

+ 272 - 37
SE/schema/ant-object/default_db.ADMIN_USERS/person_contact_with_details/person_contact_with_details.xsd

@@ -194,22 +194,66 @@
                </xs:appinfo>
             </xs:annotation>
          </xs:element>-->
-         <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER"
-                     id="ADMIN_USERS___d4e4176-1"
-                     minOccurs="0"/>
+         <xs:element minOccurs="0" name="L_APPOITMENT_USER" type="xs:string"/>
+         <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 maxOccurs="unbounded"
                      minOccurs="0"
                      ref="default_db__x3A__DEVICES:DEVICES"
-                     id="ADMIN_USERS___d4e4DEV1"/>
+                     id="ADMIN_USERS___d4e4DEV1">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                     <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+            </xs:annotation>
+         </xs:element>
          <xs:element ref="default_db__x3A__USERS2_MARKETING:USERS2_MARKETING"
                      maxOccurs="unbounded"
-                     minOccurs="0"/>
+                     minOccurs="0">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                     <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+            </xs:annotation>
+         </xs:element>
          <xs:element maxOccurs="unbounded"
                      minOccurs="0"
-                     ref="default_db__x3A__PROBLEMS:PROBLEMS"/>
+                     ref="default_db__x3A__PROBLEMS:PROBLEMS">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                     <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+            </xs:annotation>
+         </xs:element>
          <xs:element maxOccurs="unbounded"
                      minOccurs="0"
-                     ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI"/>
+                     ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                     <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+            </xs:annotation>
+         </xs:element>
       </xs:sequence>
    </xs:complexType>
    <xs:element name="ADMIN_USERS"
@@ -332,19 +376,55 @@ Kombinacja: bazowa</xs:documentation>
                      </xs:appinfo>
                   </xs:annotation>
                </xs:element>-->
-               <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER"
-                           id="ADMIN_USERS___d4e4229-1"
-                           minOccurs="0"/>
+               <xs:element minOccurs="0" name="L_APPOITMENT_USER" type="xs:string"/>
+               <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 maxOccurs="unbounded"
                            minOccurs="0"
                            ref="default_db__x3A__DEVICES:DEVICES"
-                           id="ADMIN_USERS___d4e4DEV2"/>
+                           id="ADMIN_USERS___d4e4DEV2">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
                <xs:element ref="default_db__x3A__USERS2_MARKETING:USERS2_MARKETING"
                            maxOccurs="unbounded"
-                           minOccurs="0"/>
+                           minOccurs="0">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
                <xs:element maxOccurs="unbounded"
                            minOccurs="0"
-                           ref="default_db__x3A__PROBLEMS:PROBLEMS"/>
+                           ref="default_db__x3A__PROBLEMS:PROBLEMS">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
             </xs:sequence>
          </xs:restriction>
       </xs:complexContent>
@@ -451,22 +531,68 @@ Kombinacja: bazowa</xs:documentation>
                      </xs:appinfo>
                   </xs:annotation>
                </xs:element>-->
-               <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER"
-                           id="ADMIN_USERS___d4e4281-1"
-                           minOccurs="0"/>
+               <xs:element minOccurs="0" name="L_APPOITMENT_USER" type="xs:string"/>
+               <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 maxOccurs="unbounded"
                            minOccurs="0"
                            ref="default_db__x3A__DEVICES:DEVICES"
-                           id="ADMIN_USERS___d4e4DEV3"/>
+                           id="ADMIN_USERS___d4e4DEV3">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #555544
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <xs:element ref="default_db__x3A__USERS2_MARKETING:USERS2_MARKETING"
                            maxOccurs="unbounded"
-                           minOccurs="0"/>
+                           minOccurs="0">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
                <xs:element maxOccurs="unbounded"
                            minOccurs="0"
-                           ref="default_db__x3A__PROBLEMS:PROBLEMS"/>
+                           ref="default_db__x3A__PROBLEMS:PROBLEMS">
+                  \<xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
                <xs:element maxOccurs="unbounded"
                            minOccurs="0"
-                           ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI"/>
+                           ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>\</xs:element>
             </xs:sequence>
          </xs:restriction>
       </xs:complexContent>
@@ -587,19 +713,55 @@ Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
                      </xs:appinfo>
                   </xs:annotation>
                </xs:element>-->
-               <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER"
-                           id="ADMIN_USERS___d4e4340-1"
-                           minOccurs="0"/>
+               <xs:element minOccurs="0" name="L_APPOITMENT_USER" type="xs:string"/>
+               <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 maxOccurs="unbounded"
                            minOccurs="0"
                            ref="default_db__x3A__DEVICES:DEVICES"
-                           id="ADMIN_USERS___d4e4DEV4"/>
+                           id="ADMIN_USERS___d4e4DEV4">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
                <xs:element ref="default_db__x3A__USERS2_MARKETING:USERS2_MARKETING"
                            maxOccurs="unbounded"
-                           minOccurs="0"/>
+                           minOccurs="0">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
                <xs:element maxOccurs="unbounded"
                            minOccurs="0"
-                           ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI"/>
+                           ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
             </xs:sequence>
          </xs:restriction>
       </xs:complexContent>
@@ -711,18 +873,55 @@ Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
                      </xs:appinfo>
                   </xs:annotation>
                </xs:element>-->
-               <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER"
-                           id="ADMIN_USERS___d4e4394-1"/>
+               <xs:element minOccurs="0" name="L_APPOITMENT_USER" type="xs:string"/>
+               <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 maxOccurs="unbounded"
                            minOccurs="0"
                            ref="default_db__x3A__DEVICES:DEVICES"
-                           id="ADMIN_USERS___d4e4DEV5"/>
+                           id="ADMIN_USERS___d4e4DEV5">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
                <xs:element ref="default_db__x3A__USERS2_MARKETING:USERS2_MARKETING"
                            maxOccurs="unbounded"
-                           minOccurs="0"/>
+                           minOccurs="0">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
                <xs:element maxOccurs="unbounded"
                            minOccurs="0"
-                           ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI"/>
+                           ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
             </xs:sequence>
          </xs:restriction>
       </xs:complexContent>
@@ -832,19 +1031,55 @@ Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
                      </xs:appinfo>
                   </xs:annotation>
                </xs:element>-->
-               <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER"
-                           id="ADMIN_USERS___d4e4448-1"
-                           minOccurs="0"/>
+               <xs:element minOccurs="0" name="L_APPOITMENT_USER" type="xs:string"/>
+               <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 maxOccurs="unbounded"
                            minOccurs="0"
                            ref="default_db__x3A__DEVICES:DEVICES"
-                           id="ADMIN_USERS___d4e4DEV6"/>
+                           id="ADMIN_USERS___d4e4DEV6">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
                <xs:element ref="default_db__x3A__USERS2_MARKETING:USERS2_MARKETING"
                            maxOccurs="unbounded"
-                           minOccurs="0"/>
+                           minOccurs="0">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
                <xs:element maxOccurs="unbounded"
                            minOccurs="0"
-                           ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI"/>
+                           ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
             </xs:sequence>
          </xs:restriction>
       </xs:complexContent>

+ 272 - 37
SE/schema/ant-object/default_db.ADMIN_USERS/person_contatct/person_contatct.xsd

@@ -194,22 +194,66 @@
                </xs:appinfo>
             </xs:annotation>
          </xs:element>-->
-         <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER"
-                     id="ADMIN_USERS___d4e4176-1"
-                     minOccurs="0"/>
+         <xs:element minOccurs="0" name="L_APPOITMENT_USER" type="xs:string"/>
+         <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 maxOccurs="unbounded"
                      minOccurs="0"
                      ref="default_db__x3A__DEVICES:DEVICES"
-                     id="ADMIN_USERS___d4e4DEV1"/>
+                     id="ADMIN_USERS___d4e4DEV1">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                     <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+            </xs:annotation>
+         </xs:element>
          <xs:element ref="default_db__x3A__USERS2_MARKETING:USERS2_MARKETING"
                      maxOccurs="unbounded"
-                     minOccurs="0"/>
+                     minOccurs="0">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                     <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+            </xs:annotation>
+         </xs:element>
          <xs:element maxOccurs="unbounded"
                      minOccurs="0"
-                     ref="default_db__x3A__PROBLEMS:PROBLEMS"/>
+                     ref="default_db__x3A__PROBLEMS:PROBLEMS">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                     <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+            </xs:annotation>
+         </xs:element>
          <xs:element maxOccurs="unbounded"
                      minOccurs="0"
-                     ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI"/>
+                     ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                     <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+            </xs:annotation>
+         </xs:element>
       </xs:sequence>
    </xs:complexType>
    <xs:element name="ADMIN_USERS"
@@ -332,19 +376,55 @@ Kombinacja: bazowa</xs:documentation>
                      </xs:appinfo>
                   </xs:annotation>
                </xs:element>-->
-               <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER"
-                           id="ADMIN_USERS___d4e4229-1"
-                           minOccurs="0"/>
+               <xs:element minOccurs="0" name="L_APPOITMENT_USER" type="xs:string"/>
+               <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 maxOccurs="unbounded"
                            minOccurs="0"
                            ref="default_db__x3A__DEVICES:DEVICES"
-                           id="ADMIN_USERS___d4e4DEV2"/>
+                           id="ADMIN_USERS___d4e4DEV2">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
                <xs:element ref="default_db__x3A__USERS2_MARKETING:USERS2_MARKETING"
                            maxOccurs="unbounded"
-                           minOccurs="0"/>
+                           minOccurs="0">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
                <xs:element maxOccurs="unbounded"
                            minOccurs="0"
-                           ref="default_db__x3A__PROBLEMS:PROBLEMS"/>
+                           ref="default_db__x3A__PROBLEMS:PROBLEMS">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
             </xs:sequence>
          </xs:restriction>
       </xs:complexContent>
@@ -451,22 +531,68 @@ Kombinacja: bazowa</xs:documentation>
                      </xs:appinfo>
                   </xs:annotation>
                </xs:element>-->
-               <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER"
-                           id="ADMIN_USERS___d4e4281-1"
-                           minOccurs="0"/>
+               <xs:element minOccurs="0" name="L_APPOITMENT_USER" type="xs:string"/>
+               <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 maxOccurs="unbounded"
                            minOccurs="0"
                            ref="default_db__x3A__DEVICES:DEVICES"
-                           id="ADMIN_USERS___d4e4DEV3"/>
+                           id="ADMIN_USERS___d4e4DEV3">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #555544
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <xs:element ref="default_db__x3A__USERS2_MARKETING:USERS2_MARKETING"
                            maxOccurs="unbounded"
-                           minOccurs="0"/>
+                           minOccurs="0">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
                <xs:element maxOccurs="unbounded"
                            minOccurs="0"
-                           ref="default_db__x3A__PROBLEMS:PROBLEMS"/>
+                           ref="default_db__x3A__PROBLEMS:PROBLEMS">
+                  \<xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
                <xs:element maxOccurs="unbounded"
                            minOccurs="0"
-                           ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI"/>
+                           ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>\</xs:element>
             </xs:sequence>
          </xs:restriction>
       </xs:complexContent>
@@ -587,19 +713,55 @@ Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
                      </xs:appinfo>
                   </xs:annotation>
                </xs:element>-->
-               <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER"
-                           id="ADMIN_USERS___d4e4340-1"
-                           minOccurs="0"/>
+               <xs:element minOccurs="0" name="L_APPOITMENT_USER" type="xs:string"/>
+               <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 maxOccurs="unbounded"
                            minOccurs="0"
                            ref="default_db__x3A__DEVICES:DEVICES"
-                           id="ADMIN_USERS___d4e4DEV4"/>
+                           id="ADMIN_USERS___d4e4DEV4">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
                <xs:element ref="default_db__x3A__USERS2_MARKETING:USERS2_MARKETING"
                            maxOccurs="unbounded"
-                           minOccurs="0"/>
+                           minOccurs="0">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
                <xs:element maxOccurs="unbounded"
                            minOccurs="0"
-                           ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI"/>
+                           ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
             </xs:sequence>
          </xs:restriction>
       </xs:complexContent>
@@ -711,18 +873,55 @@ Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
                      </xs:appinfo>
                   </xs:annotation>
                </xs:element>-->
-               <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER"
-                           id="ADMIN_USERS___d4e4394-1"/>
+               <xs:element minOccurs="0" name="L_APPOITMENT_USER" type="xs:string"/>
+               <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 maxOccurs="unbounded"
                            minOccurs="0"
                            ref="default_db__x3A__DEVICES:DEVICES"
-                           id="ADMIN_USERS___d4e4DEV5"/>
+                           id="ADMIN_USERS___d4e4DEV5">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
                <xs:element ref="default_db__x3A__USERS2_MARKETING:USERS2_MARKETING"
                            maxOccurs="unbounded"
-                           minOccurs="0"/>
+                           minOccurs="0">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
                <xs:element maxOccurs="unbounded"
                            minOccurs="0"
-                           ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI"/>
+                           ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
             </xs:sequence>
          </xs:restriction>
       </xs:complexContent>
@@ -832,19 +1031,55 @@ Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
                      </xs:appinfo>
                   </xs:annotation>
                </xs:element>-->
-               <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER"
-                           id="ADMIN_USERS___d4e4448-1"
-                           minOccurs="0"/>
+               <xs:element minOccurs="0" name="L_APPOITMENT_USER" type="xs:string"/>
+               <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 maxOccurs="unbounded"
                            minOccurs="0"
                            ref="default_db__x3A__DEVICES:DEVICES"
-                           id="ADMIN_USERS___d4e4DEV6"/>
+                           id="ADMIN_USERS___d4e4DEV6">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
                <xs:element ref="default_db__x3A__USERS2_MARKETING:USERS2_MARKETING"
                            maxOccurs="unbounded"
-                           minOccurs="0"/>
+                           minOccurs="0">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
                <xs:element maxOccurs="unbounded"
                            minOccurs="0"
-                           ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI"/>
+                           ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
             </xs:sequence>
          </xs:restriction>
       </xs:complexContent>

+ 272 - 37
SE/schema/ant-object/default_db.ADMIN_USERS/user/user.xsd

@@ -194,22 +194,66 @@
                </xs:appinfo>
             </xs:annotation>
          </xs:element>-->
-         <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER"
-                     id="ADMIN_USERS___d4e4176-1"
-                     minOccurs="0"/>
+         <xs:element minOccurs="0" name="L_APPOITMENT_USER" type="xs:string"/>
+         <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 maxOccurs="unbounded"
                      minOccurs="0"
                      ref="default_db__x3A__DEVICES:DEVICES"
-                     id="ADMIN_USERS___d4e4DEV1"/>
+                     id="ADMIN_USERS___d4e4DEV1">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                     <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+            </xs:annotation>
+         </xs:element>
          <xs:element ref="default_db__x3A__USERS2_MARKETING:USERS2_MARKETING"
                      maxOccurs="unbounded"
-                     minOccurs="0"/>
+                     minOccurs="0">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                     <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+            </xs:annotation>
+         </xs:element>
          <xs:element maxOccurs="unbounded"
                      minOccurs="0"
-                     ref="default_db__x3A__PROBLEMS:PROBLEMS"/>
+                     ref="default_db__x3A__PROBLEMS:PROBLEMS">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                     <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+            </xs:annotation>
+         </xs:element>
          <xs:element maxOccurs="unbounded"
                      minOccurs="0"
-                     ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI"/>
+                     ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                     <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+            </xs:annotation>
+         </xs:element>
       </xs:sequence>
    </xs:complexType>
    <xs:element name="ADMIN_USERS"
@@ -332,19 +376,55 @@ Kombinacja: bazowa</xs:documentation>
                      </xs:appinfo>
                   </xs:annotation>
                </xs:element>-->
-               <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER"
-                           id="ADMIN_USERS___d4e4229-1"
-                           minOccurs="0"/>
+               <xs:element minOccurs="0" name="L_APPOITMENT_USER" type="xs:string"/>
+               <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 maxOccurs="unbounded"
                            minOccurs="0"
                            ref="default_db__x3A__DEVICES:DEVICES"
-                           id="ADMIN_USERS___d4e4DEV2"/>
+                           id="ADMIN_USERS___d4e4DEV2">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
                <xs:element ref="default_db__x3A__USERS2_MARKETING:USERS2_MARKETING"
                            maxOccurs="unbounded"
-                           minOccurs="0"/>
+                           minOccurs="0">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
                <xs:element maxOccurs="unbounded"
                            minOccurs="0"
-                           ref="default_db__x3A__PROBLEMS:PROBLEMS"/>
+                           ref="default_db__x3A__PROBLEMS:PROBLEMS">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
             </xs:sequence>
          </xs:restriction>
       </xs:complexContent>
@@ -451,22 +531,68 @@ Kombinacja: bazowa</xs:documentation>
                      </xs:appinfo>
                   </xs:annotation>
                </xs:element>-->
-               <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER"
-                           id="ADMIN_USERS___d4e4281-1"
-                           minOccurs="0"/>
+               <xs:element minOccurs="0" name="L_APPOITMENT_USER" type="xs:string"/>
+               <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 maxOccurs="unbounded"
                            minOccurs="0"
                            ref="default_db__x3A__DEVICES:DEVICES"
-                           id="ADMIN_USERS___d4e4DEV3"/>
+                           id="ADMIN_USERS___d4e4DEV3">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #555544
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <xs:element ref="default_db__x3A__USERS2_MARKETING:USERS2_MARKETING"
                            maxOccurs="unbounded"
-                           minOccurs="0"/>
+                           minOccurs="0">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
                <xs:element maxOccurs="unbounded"
                            minOccurs="0"
-                           ref="default_db__x3A__PROBLEMS:PROBLEMS"/>
+                           ref="default_db__x3A__PROBLEMS:PROBLEMS">
+                  \<xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
                <xs:element maxOccurs="unbounded"
                            minOccurs="0"
-                           ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI"/>
+                           ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>\</xs:element>
             </xs:sequence>
          </xs:restriction>
       </xs:complexContent>
@@ -587,19 +713,55 @@ Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
                      </xs:appinfo>
                   </xs:annotation>
                </xs:element>-->
-               <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER"
-                           id="ADMIN_USERS___d4e4340-1"
-                           minOccurs="0"/>
+               <xs:element minOccurs="0" name="L_APPOITMENT_USER" type="xs:string"/>
+               <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 maxOccurs="unbounded"
                            minOccurs="0"
                            ref="default_db__x3A__DEVICES:DEVICES"
-                           id="ADMIN_USERS___d4e4DEV4"/>
+                           id="ADMIN_USERS___d4e4DEV4">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
                <xs:element ref="default_db__x3A__USERS2_MARKETING:USERS2_MARKETING"
                            maxOccurs="unbounded"
-                           minOccurs="0"/>
+                           minOccurs="0">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
                <xs:element maxOccurs="unbounded"
                            minOccurs="0"
-                           ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI"/>
+                           ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
             </xs:sequence>
          </xs:restriction>
       </xs:complexContent>
@@ -711,18 +873,55 @@ Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
                      </xs:appinfo>
                   </xs:annotation>
                </xs:element>-->
-               <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER"
-                           id="ADMIN_USERS___d4e4394-1"/>
+               <xs:element minOccurs="0" name="L_APPOITMENT_USER" type="xs:string"/>
+               <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 maxOccurs="unbounded"
                            minOccurs="0"
                            ref="default_db__x3A__DEVICES:DEVICES"
-                           id="ADMIN_USERS___d4e4DEV5"/>
+                           id="ADMIN_USERS___d4e4DEV5">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
                <xs:element ref="default_db__x3A__USERS2_MARKETING:USERS2_MARKETING"
                            maxOccurs="unbounded"
-                           minOccurs="0"/>
+                           minOccurs="0">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
                <xs:element maxOccurs="unbounded"
                            minOccurs="0"
-                           ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI"/>
+                           ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
             </xs:sequence>
          </xs:restriction>
       </xs:complexContent>
@@ -832,19 +1031,55 @@ Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
                      </xs:appinfo>
                   </xs:annotation>
                </xs:element>-->
-               <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER"
-                           id="ADMIN_USERS___d4e4448-1"
-                           minOccurs="0"/>
+               <xs:element minOccurs="0" name="L_APPOITMENT_USER" type="xs:string"/>
+               <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 maxOccurs="unbounded"
                            minOccurs="0"
                            ref="default_db__x3A__DEVICES:DEVICES"
-                           id="ADMIN_USERS___d4e4DEV6"/>
+                           id="ADMIN_USERS___d4e4DEV6">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
                <xs:element ref="default_db__x3A__USERS2_MARKETING:USERS2_MARKETING"
                            maxOccurs="unbounded"
-                           minOccurs="0"/>
+                           minOccurs="0">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
                <xs:element maxOccurs="unbounded"
                            minOccurs="0"
-                           ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI"/>
+                           ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
             </xs:sequence>
          </xs:restriction>
       </xs:complexContent>

+ 272 - 37
SE/schema/ant-object/default_db.ADMIN_USERS/user_status__NORMAL/user_status__NORMAL.xsd

@@ -194,22 +194,66 @@
                </xs:appinfo>
             </xs:annotation>
          </xs:element>-->
-         <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER"
-                     id="ADMIN_USERS___d4e4176-1"
-                     minOccurs="0"/>
+         <xs:element minOccurs="0" name="L_APPOITMENT_USER" type="xs:string"/>
+         <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 maxOccurs="unbounded"
                      minOccurs="0"
                      ref="default_db__x3A__DEVICES:DEVICES"
-                     id="ADMIN_USERS___d4e4DEV1"/>
+                     id="ADMIN_USERS___d4e4DEV1">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                     <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+            </xs:annotation>
+         </xs:element>
          <xs:element ref="default_db__x3A__USERS2_MARKETING:USERS2_MARKETING"
                      maxOccurs="unbounded"
-                     minOccurs="0"/>
+                     minOccurs="0">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                     <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+            </xs:annotation>
+         </xs:element>
          <xs:element maxOccurs="unbounded"
                      minOccurs="0"
-                     ref="default_db__x3A__PROBLEMS:PROBLEMS"/>
+                     ref="default_db__x3A__PROBLEMS:PROBLEMS">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                     <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+            </xs:annotation>
+         </xs:element>
          <xs:element maxOccurs="unbounded"
                      minOccurs="0"
-                     ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI"/>
+                     ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                     <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+            </xs:annotation>
+         </xs:element>
       </xs:sequence>
    </xs:complexType>
    <xs:element name="ADMIN_USERS"
@@ -332,19 +376,55 @@ Kombinacja: bazowa</xs:documentation>
                      </xs:appinfo>
                   </xs:annotation>
                </xs:element>-->
-               <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER"
-                           id="ADMIN_USERS___d4e4229-1"
-                           minOccurs="0"/>
+               <xs:element minOccurs="0" name="L_APPOITMENT_USER" type="xs:string"/>
+               <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 maxOccurs="unbounded"
                            minOccurs="0"
                            ref="default_db__x3A__DEVICES:DEVICES"
-                           id="ADMIN_USERS___d4e4DEV2"/>
+                           id="ADMIN_USERS___d4e4DEV2">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
                <xs:element ref="default_db__x3A__USERS2_MARKETING:USERS2_MARKETING"
                            maxOccurs="unbounded"
-                           minOccurs="0"/>
+                           minOccurs="0">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
                <xs:element maxOccurs="unbounded"
                            minOccurs="0"
-                           ref="default_db__x3A__PROBLEMS:PROBLEMS"/>
+                           ref="default_db__x3A__PROBLEMS:PROBLEMS">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
             </xs:sequence>
          </xs:restriction>
       </xs:complexContent>
@@ -451,22 +531,68 @@ Kombinacja: bazowa</xs:documentation>
                      </xs:appinfo>
                   </xs:annotation>
                </xs:element>-->
-               <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER"
-                           id="ADMIN_USERS___d4e4281-1"
-                           minOccurs="0"/>
+               <xs:element minOccurs="0" name="L_APPOITMENT_USER" type="xs:string"/>
+               <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 maxOccurs="unbounded"
                            minOccurs="0"
                            ref="default_db__x3A__DEVICES:DEVICES"
-                           id="ADMIN_USERS___d4e4DEV3"/>
+                           id="ADMIN_USERS___d4e4DEV3">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #555544
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <xs:element ref="default_db__x3A__USERS2_MARKETING:USERS2_MARKETING"
                            maxOccurs="unbounded"
-                           minOccurs="0"/>
+                           minOccurs="0">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
                <xs:element maxOccurs="unbounded"
                            minOccurs="0"
-                           ref="default_db__x3A__PROBLEMS:PROBLEMS"/>
+                           ref="default_db__x3A__PROBLEMS:PROBLEMS">
+                  \<xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
                <xs:element maxOccurs="unbounded"
                            minOccurs="0"
-                           ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI"/>
+                           ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>\</xs:element>
             </xs:sequence>
          </xs:restriction>
       </xs:complexContent>
@@ -587,19 +713,55 @@ Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
                      </xs:appinfo>
                   </xs:annotation>
                </xs:element>-->
-               <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER"
-                           id="ADMIN_USERS___d4e4340-1"
-                           minOccurs="0"/>
+               <xs:element minOccurs="0" name="L_APPOITMENT_USER" type="xs:string"/>
+               <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 maxOccurs="unbounded"
                            minOccurs="0"
                            ref="default_db__x3A__DEVICES:DEVICES"
-                           id="ADMIN_USERS___d4e4DEV4"/>
+                           id="ADMIN_USERS___d4e4DEV4">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
                <xs:element ref="default_db__x3A__USERS2_MARKETING:USERS2_MARKETING"
                            maxOccurs="unbounded"
-                           minOccurs="0"/>
+                           minOccurs="0">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
                <xs:element maxOccurs="unbounded"
                            minOccurs="0"
-                           ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI"/>
+                           ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
             </xs:sequence>
          </xs:restriction>
       </xs:complexContent>
@@ -711,18 +873,55 @@ Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
                      </xs:appinfo>
                   </xs:annotation>
                </xs:element>-->
-               <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER"
-                           id="ADMIN_USERS___d4e4394-1"/>
+               <xs:element minOccurs="0" name="L_APPOITMENT_USER" type="xs:string"/>
+               <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 maxOccurs="unbounded"
                            minOccurs="0"
                            ref="default_db__x3A__DEVICES:DEVICES"
-                           id="ADMIN_USERS___d4e4DEV5"/>
+                           id="ADMIN_USERS___d4e4DEV5">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
                <xs:element ref="default_db__x3A__USERS2_MARKETING:USERS2_MARKETING"
                            maxOccurs="unbounded"
-                           minOccurs="0"/>
+                           minOccurs="0">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
                <xs:element maxOccurs="unbounded"
                            minOccurs="0"
-                           ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI"/>
+                           ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
             </xs:sequence>
          </xs:restriction>
       </xs:complexContent>
@@ -832,19 +1031,55 @@ Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
                      </xs:appinfo>
                   </xs:annotation>
                </xs:element>-->
-               <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER"
-                           id="ADMIN_USERS___d4e4448-1"
-                           minOccurs="0"/>
+               <xs:element minOccurs="0" name="L_APPOITMENT_USER" type="xs:string"/>
+               <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 maxOccurs="unbounded"
                            minOccurs="0"
                            ref="default_db__x3A__DEVICES:DEVICES"
-                           id="ADMIN_USERS___d4e4DEV6"/>
+                           id="ADMIN_USERS___d4e4DEV6">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
                <xs:element ref="default_db__x3A__USERS2_MARKETING:USERS2_MARKETING"
                            maxOccurs="unbounded"
-                           minOccurs="0"/>
+                           minOccurs="0">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
                <xs:element maxOccurs="unbounded"
                            minOccurs="0"
-                           ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI"/>
+                           ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
             </xs:sequence>
          </xs:restriction>
       </xs:complexContent>

+ 272 - 37
SE/schema/ant-object/default_db.ADMIN_USERS/user_status__OFF_HARD/user_status__OFF_HARD.xsd

@@ -194,22 +194,66 @@
                </xs:appinfo>
             </xs:annotation>
          </xs:element>-->
-         <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER"
-                     id="ADMIN_USERS___d4e4176-1"
-                     minOccurs="0"/>
+         <xs:element minOccurs="0" name="L_APPOITMENT_USER" type="xs:string"/>
+         <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 maxOccurs="unbounded"
                      minOccurs="0"
                      ref="default_db__x3A__DEVICES:DEVICES"
-                     id="ADMIN_USERS___d4e4DEV1"/>
+                     id="ADMIN_USERS___d4e4DEV1">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                     <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+            </xs:annotation>
+         </xs:element>
          <xs:element ref="default_db__x3A__USERS2_MARKETING:USERS2_MARKETING"
                      maxOccurs="unbounded"
-                     minOccurs="0"/>
+                     minOccurs="0">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                     <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+            </xs:annotation>
+         </xs:element>
          <xs:element maxOccurs="unbounded"
                      minOccurs="0"
-                     ref="default_db__x3A__PROBLEMS:PROBLEMS"/>
+                     ref="default_db__x3A__PROBLEMS:PROBLEMS">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                     <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+            </xs:annotation>
+         </xs:element>
          <xs:element maxOccurs="unbounded"
                      minOccurs="0"
-                     ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI"/>
+                     ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                     <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+            </xs:annotation>
+         </xs:element>
       </xs:sequence>
    </xs:complexType>
    <xs:element name="ADMIN_USERS"
@@ -332,19 +376,55 @@ Kombinacja: bazowa</xs:documentation>
                      </xs:appinfo>
                   </xs:annotation>
                </xs:element>-->
-               <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER"
-                           id="ADMIN_USERS___d4e4229-1"
-                           minOccurs="0"/>
+               <xs:element minOccurs="0" name="L_APPOITMENT_USER" type="xs:string"/>
+               <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 maxOccurs="unbounded"
                            minOccurs="0"
                            ref="default_db__x3A__DEVICES:DEVICES"
-                           id="ADMIN_USERS___d4e4DEV2"/>
+                           id="ADMIN_USERS___d4e4DEV2">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
                <xs:element ref="default_db__x3A__USERS2_MARKETING:USERS2_MARKETING"
                            maxOccurs="unbounded"
-                           minOccurs="0"/>
+                           minOccurs="0">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
                <xs:element maxOccurs="unbounded"
                            minOccurs="0"
-                           ref="default_db__x3A__PROBLEMS:PROBLEMS"/>
+                           ref="default_db__x3A__PROBLEMS:PROBLEMS">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
             </xs:sequence>
          </xs:restriction>
       </xs:complexContent>
@@ -451,22 +531,68 @@ Kombinacja: bazowa</xs:documentation>
                      </xs:appinfo>
                   </xs:annotation>
                </xs:element>-->
-               <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER"
-                           id="ADMIN_USERS___d4e4281-1"
-                           minOccurs="0"/>
+               <xs:element minOccurs="0" name="L_APPOITMENT_USER" type="xs:string"/>
+               <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 maxOccurs="unbounded"
                            minOccurs="0"
                            ref="default_db__x3A__DEVICES:DEVICES"
-                           id="ADMIN_USERS___d4e4DEV3"/>
+                           id="ADMIN_USERS___d4e4DEV3">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #555544
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <xs:element ref="default_db__x3A__USERS2_MARKETING:USERS2_MARKETING"
                            maxOccurs="unbounded"
-                           minOccurs="0"/>
+                           minOccurs="0">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
                <xs:element maxOccurs="unbounded"
                            minOccurs="0"
-                           ref="default_db__x3A__PROBLEMS:PROBLEMS"/>
+                           ref="default_db__x3A__PROBLEMS:PROBLEMS">
+                  \<xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
                <xs:element maxOccurs="unbounded"
                            minOccurs="0"
-                           ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI"/>
+                           ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>\</xs:element>
             </xs:sequence>
          </xs:restriction>
       </xs:complexContent>
@@ -587,19 +713,55 @@ Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
                      </xs:appinfo>
                   </xs:annotation>
                </xs:element>-->
-               <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER"
-                           id="ADMIN_USERS___d4e4340-1"
-                           minOccurs="0"/>
+               <xs:element minOccurs="0" name="L_APPOITMENT_USER" type="xs:string"/>
+               <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 maxOccurs="unbounded"
                            minOccurs="0"
                            ref="default_db__x3A__DEVICES:DEVICES"
-                           id="ADMIN_USERS___d4e4DEV4"/>
+                           id="ADMIN_USERS___d4e4DEV4">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
                <xs:element ref="default_db__x3A__USERS2_MARKETING:USERS2_MARKETING"
                            maxOccurs="unbounded"
-                           minOccurs="0"/>
+                           minOccurs="0">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
                <xs:element maxOccurs="unbounded"
                            minOccurs="0"
-                           ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI"/>
+                           ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
             </xs:sequence>
          </xs:restriction>
       </xs:complexContent>
@@ -711,18 +873,55 @@ Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
                      </xs:appinfo>
                   </xs:annotation>
                </xs:element>-->
-               <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER"
-                           id="ADMIN_USERS___d4e4394-1"/>
+               <xs:element minOccurs="0" name="L_APPOITMENT_USER" type="xs:string"/>
+               <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 maxOccurs="unbounded"
                            minOccurs="0"
                            ref="default_db__x3A__DEVICES:DEVICES"
-                           id="ADMIN_USERS___d4e4DEV5"/>
+                           id="ADMIN_USERS___d4e4DEV5">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
                <xs:element ref="default_db__x3A__USERS2_MARKETING:USERS2_MARKETING"
                            maxOccurs="unbounded"
-                           minOccurs="0"/>
+                           minOccurs="0">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
                <xs:element maxOccurs="unbounded"
                            minOccurs="0"
-                           ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI"/>
+                           ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
             </xs:sequence>
          </xs:restriction>
       </xs:complexContent>
@@ -832,19 +1031,55 @@ Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
                      </xs:appinfo>
                   </xs:annotation>
                </xs:element>-->
-               <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER"
-                           id="ADMIN_USERS___d4e4448-1"
-                           minOccurs="0"/>
+               <xs:element minOccurs="0" name="L_APPOITMENT_USER" type="xs:string"/>
+               <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 maxOccurs="unbounded"
                            minOccurs="0"
                            ref="default_db__x3A__DEVICES:DEVICES"
-                           id="ADMIN_USERS___d4e4DEV6"/>
+                           id="ADMIN_USERS___d4e4DEV6">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
                <xs:element ref="default_db__x3A__USERS2_MARKETING:USERS2_MARKETING"
                            maxOccurs="unbounded"
-                           minOccurs="0"/>
+                           minOccurs="0">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
                <xs:element maxOccurs="unbounded"
                            minOccurs="0"
-                           ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI"/>
+                           ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
             </xs:sequence>
          </xs:restriction>
       </xs:complexContent>

+ 272 - 37
SE/schema/ant-object/default_db.ADMIN_USERS/worker/worker.xsd

@@ -194,22 +194,66 @@
                </xs:appinfo>
             </xs:annotation>
          </xs:element>-->
-         <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER"
-                     id="ADMIN_USERS___d4e4176-1"
-                     minOccurs="0"/>
+         <xs:element minOccurs="0" name="L_APPOITMENT_USER" type="xs:string"/>
+         <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 maxOccurs="unbounded"
                      minOccurs="0"
                      ref="default_db__x3A__DEVICES:DEVICES"
-                     id="ADMIN_USERS___d4e4DEV1"/>
+                     id="ADMIN_USERS___d4e4DEV1">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                     <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+            </xs:annotation>
+         </xs:element>
          <xs:element ref="default_db__x3A__USERS2_MARKETING:USERS2_MARKETING"
                      maxOccurs="unbounded"
-                     minOccurs="0"/>
+                     minOccurs="0">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                     <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+            </xs:annotation>
+         </xs:element>
          <xs:element maxOccurs="unbounded"
                      minOccurs="0"
-                     ref="default_db__x3A__PROBLEMS:PROBLEMS"/>
+                     ref="default_db__x3A__PROBLEMS:PROBLEMS">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                     <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+            </xs:annotation>
+         </xs:element>
          <xs:element maxOccurs="unbounded"
                      minOccurs="0"
-                     ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI"/>
+                     ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                     <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+            </xs:annotation>
+         </xs:element>
       </xs:sequence>
    </xs:complexType>
    <xs:element name="ADMIN_USERS"
@@ -332,19 +376,55 @@ Kombinacja: bazowa</xs:documentation>
                      </xs:appinfo>
                   </xs:annotation>
                </xs:element>-->
-               <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER"
-                           id="ADMIN_USERS___d4e4229-1"
-                           minOccurs="0"/>
+               <xs:element minOccurs="0" name="L_APPOITMENT_USER" type="xs:string"/>
+               <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 maxOccurs="unbounded"
                            minOccurs="0"
                            ref="default_db__x3A__DEVICES:DEVICES"
-                           id="ADMIN_USERS___d4e4DEV2"/>
+                           id="ADMIN_USERS___d4e4DEV2">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
                <xs:element ref="default_db__x3A__USERS2_MARKETING:USERS2_MARKETING"
                            maxOccurs="unbounded"
-                           minOccurs="0"/>
+                           minOccurs="0">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
                <xs:element maxOccurs="unbounded"
                            minOccurs="0"
-                           ref="default_db__x3A__PROBLEMS:PROBLEMS"/>
+                           ref="default_db__x3A__PROBLEMS:PROBLEMS">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
             </xs:sequence>
          </xs:restriction>
       </xs:complexContent>
@@ -451,22 +531,68 @@ Kombinacja: bazowa</xs:documentation>
                      </xs:appinfo>
                   </xs:annotation>
                </xs:element>-->
-               <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER"
-                           id="ADMIN_USERS___d4e4281-1"
-                           minOccurs="0"/>
+               <xs:element minOccurs="0" name="L_APPOITMENT_USER" type="xs:string"/>
+               <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 maxOccurs="unbounded"
                            minOccurs="0"
                            ref="default_db__x3A__DEVICES:DEVICES"
-                           id="ADMIN_USERS___d4e4DEV3"/>
+                           id="ADMIN_USERS___d4e4DEV3">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #555544
+                </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
                <xs:element ref="default_db__x3A__USERS2_MARKETING:USERS2_MARKETING"
                            maxOccurs="unbounded"
-                           minOccurs="0"/>
+                           minOccurs="0">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
                <xs:element maxOccurs="unbounded"
                            minOccurs="0"
-                           ref="default_db__x3A__PROBLEMS:PROBLEMS"/>
+                           ref="default_db__x3A__PROBLEMS:PROBLEMS">
+                  \<xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
                <xs:element maxOccurs="unbounded"
                            minOccurs="0"
-                           ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI"/>
+                           ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>\</xs:element>
             </xs:sequence>
          </xs:restriction>
       </xs:complexContent>
@@ -587,19 +713,55 @@ Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
                      </xs:appinfo>
                   </xs:annotation>
                </xs:element>-->
-               <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER"
-                           id="ADMIN_USERS___d4e4340-1"
-                           minOccurs="0"/>
+               <xs:element minOccurs="0" name="L_APPOITMENT_USER" type="xs:string"/>
+               <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 maxOccurs="unbounded"
                            minOccurs="0"
                            ref="default_db__x3A__DEVICES:DEVICES"
-                           id="ADMIN_USERS___d4e4DEV4"/>
+                           id="ADMIN_USERS___d4e4DEV4">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
                <xs:element ref="default_db__x3A__USERS2_MARKETING:USERS2_MARKETING"
                            maxOccurs="unbounded"
-                           minOccurs="0"/>
+                           minOccurs="0">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
                <xs:element maxOccurs="unbounded"
                            minOccurs="0"
-                           ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI"/>
+                           ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
             </xs:sequence>
          </xs:restriction>
       </xs:complexContent>
@@ -711,18 +873,55 @@ Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
                      </xs:appinfo>
                   </xs:annotation>
                </xs:element>-->
-               <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER"
-                           id="ADMIN_USERS___d4e4394-1"/>
+               <xs:element minOccurs="0" name="L_APPOITMENT_USER" type="xs:string"/>
+               <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 maxOccurs="unbounded"
                            minOccurs="0"
                            ref="default_db__x3A__DEVICES:DEVICES"
-                           id="ADMIN_USERS___d4e4DEV5"/>
+                           id="ADMIN_USERS___d4e4DEV5">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
                <xs:element ref="default_db__x3A__USERS2_MARKETING:USERS2_MARKETING"
                            maxOccurs="unbounded"
-                           minOccurs="0"/>
+                           minOccurs="0">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
                <xs:element maxOccurs="unbounded"
                            minOccurs="0"
-                           ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI"/>
+                           ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
             </xs:sequence>
          </xs:restriction>
       </xs:complexContent>
@@ -832,19 +1031,55 @@ Kombinacja: EMPLOYE TYPE Kontakt</xs:documentation>
                      </xs:appinfo>
                   </xs:annotation>
                </xs:element>-->
-               <xs:element ref="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER"
-                           id="ADMIN_USERS___d4e4448-1"
-                           minOccurs="0"/>
+               <xs:element minOccurs="0" name="L_APPOITMENT_USER" type="xs:string"/>
+               <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 maxOccurs="unbounded"
                            minOccurs="0"
                            ref="default_db__x3A__DEVICES:DEVICES"
-                           id="ADMIN_USERS___d4e4DEV6"/>
+                           id="ADMIN_USERS___d4e4DEV6">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
                <xs:element ref="default_db__x3A__USERS2_MARKETING:USERS2_MARKETING"
                            maxOccurs="unbounded"
-                           minOccurs="0"/>
+                           minOccurs="0">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
                <xs:element maxOccurs="unbounded"
                            minOccurs="0"
-                           ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI"/>
+                           ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
             </xs:sequence>
          </xs:restriction>
       </xs:complexContent>