<?xml version="1.0" encoding="UTF8"?>
<!DOCTYPE entity [
	<!ENTITY % xhtml-special PUBLIC "-//W3C//ENTITIES Special for XHTML//EN" "http://www.w3.org/MarkUp/DTD/xhtml-special.ent" > %xhtml-special;
	<!ENTITY % xhtml-symbol PUBLIC "-//W3C//ENTITIES Symbols for XHTML//EN" "http://www.w3.org/MarkUp/DTD/xhtml-symbol.ent" > %xhtml-symbol;
	<!ENTITY % xhtml-lat1 PUBLIC "-//W3C//ENTITIES Latin 1 for XHTML//EN" "http://www.w3.org/MarkUp/DTD/xhtml-lat1.ent" > %xhtml-lat1;
]>
<ENGINE_MODEL xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" currentView="Diagram1" lcp="179" xmlRevision="71">
  <META_INFO createdBy="johndoe" createdOn="Oct 13, 2020 16:44" modifiedBy="johndoe" modifiedOn="Nov 10, 2020 12:18" lastEditor="Livebase designer" lastOS="Linux" modelName="ExcelImporterShowcase" uac="CUSTOMER"/>
  <COMMENTS>
    <COMMENT name="comment1">
      <![CDATA[ birthplace ]]>
    </COMMENT>
    <COMMENT name="comment2">
      <![CDATA[ residence ]]>
    </COMMENT>
    <COMMENT_LINK comment="comment1" target="Customer.birthplace"/>
    <COMMENT_LINK comment="comment2" target="Customer.residence"/>
  </COMMENTS>
  <DATABASE_SCHEMA>
    <CLASS name="City" objectTitle="name">
      <CLASS_ROLE name="City"/>
      <STRING_ATTRIBUTE name="name" allowNull="FALSE" caseMode="0" innerSpaceMode="0"/>
      <UNIQUE_CONSTRAINT>
        <KEY_ELEMENT target="name"/>
      </UNIQUE_CONSTRAINT>
    </CLASS>
    <CLASS name="Credit_card" objectTitle="number">
      <STRING_ATTRIBUTE name="number" allowNull="FALSE" caseMode="0" innerSpaceMode="0"/>
      <DATE_ATTRIBUTE name="expiration_date" allowNull="FALSE"/>
    </CLASS>
    <CLASS name="Customer" objectTitle="first_name">
      <CLASS_ROLE name="Customer"/>
      <STRING_ATTRIBUTE name="first_name" allowNull="FALSE" caseMode="0" innerSpaceMode="0"/>
      <STRING_ATTRIBUTE name="last_name" allowNull="FALSE" caseMode="0" innerSpaceMode="0"/>
      <UNIQUE_CONSTRAINT>
        <KEY_ELEMENT target="last_name"/>
        <KEY_ELEMENT target="first_name"/>
      </UNIQUE_CONSTRAINT>
    </CLASS>
    <CLASS name="Product" objectTitle="name">
      <CLASS_ROLE name="Product"/>
      <STRING_ATTRIBUTE name="name" allowNull="FALSE" caseMode="0" innerSpaceMode="0"/>
      <INTEGER_ATTRIBUTE name="quantity"/>
      <REAL_ATTRIBUTE name="price" decimalDigits="2"/>
      <BOOLEAN_ATTRIBUTE name="on_sale"/>
      <DATE_ATTRIBUTE name="date_added"/>
      <TIME_ATTRIBUTE name="time_added"/>
      <UNIQUE_CONSTRAINT>
        <KEY_ELEMENT target="name"/>
      </UNIQUE_CONSTRAINT>
    </CLASS>
    <CLASS name="Purchase" objectTitle="purchased_on">
      <CLASS_ROLE name="Purchase"/>
      <DATETIME_ATTRIBUTE name="purchased_on" allowNull="FALSE"/>
    </CLASS>
    <CLASS name="Store" objectTitle="name">
      <CLASS_ROLE name="Store"/>
      <STRING_ATTRIBUTE name="name" allowNull="FALSE" caseMode="0" innerSpaceMode="0"/>
      <STRING_ATTRIBUTE name="address" caseMode="0" innerSpaceMode="0"/>
      <UNIQUE_CONSTRAINT>
        <KEY_ELEMENT target="name"/>
      </UNIQUE_CONSTRAINT>
    </CLASS>
    <COMPOSITION name="C1" wholeClass="Customer" partClass="Credit_card">
      <SOURCE_ROLE name="customer_" custom="FALSE"/>
      <TARGET_ROLE name="credit_card_" custom="FALSE" cardinality="0,N"/>
    </COMPOSITION>
    <ASSOCIATION name="A1" aClass="Purchase" bClass="Product">
      <A_ROLE name="purchase_" custom="FALSE" cardinality="0,N" navigable="FALSE"/>
      <B_ROLE name="product_" custom="FALSE" cardinality="1,N"/>
    </ASSOCIATION>
    <ASSOCIATION name="A2" aClass="Purchase" bClass="Customer">
      <A_ROLE name="purchase_" custom="FALSE" cardinality="0,N"/>
      <B_ROLE name="customer_" custom="FALSE" cardinality="1"/>
    </ASSOCIATION>
    <ASSOCIATION name="A3" aClass="Product" bClass="Store">
      <A_ROLE name="product_" custom="FALSE" cardinality="0,N"/>
      <B_ROLE name="store_" custom="FALSE" cardinality="0,N"/>
    </ASSOCIATION>
    <ASSOCIATION name="A4" aClass="Customer" bClass="City">
      <A_ROLE name="customer_" custom="FALSE" cardinality="0,N" navigable="FALSE"/>
      <B_ROLE name="residence" custom="TRUE" cardinality="0,1"/>
    </ASSOCIATION>
    <ASSOCIATION name="A5" aClass="Customer" bClass="City">
      <A_ROLE name="customer_1" custom="FALSE" cardinality="0,N" navigable="FALSE"/>
      <B_ROLE name="birthplace" custom="TRUE" cardinality="0,1"/>
    </ASSOCIATION>
  </DATABASE_SCHEMA>
  <DIAGRAM_SCHEMA name="Diagram1">
    <CANVAS width="1200" height="620" zoom="1.25"/>
    <CLASS_VIEW class="Product" x="674.0" y="182.66666666666666"/>
    <CLASS_VIEW class="Purchase" x="484.0" y="63.0"/>
    <CLASS_VIEW class="Customer" x="266.0" y="182.66666666666666"/>
    <CLASS_VIEW class="Store" x="484.0" y="393.0"/>
    <CLASS_VIEW class="Credit_card" x="32.0" y="182.66666666666666"/>
    <CLASS_VIEW class="City" x="266.0" y="356.0"/>
    <RELATION_VIEW relation="A1"/>
    <RELATION_VIEW relation="A2"/>
    <RELATION_VIEW relation="A3"/>
    <RELATION_VIEW relation="C1"/>
    <RELATION_VIEW relation="A4">
      <BEND x="439.0" y="309.0"/>
    </RELATION_VIEW>
    <RELATION_VIEW relation="A5">
      <BEND x="269.0" y="306.0"/>
    </RELATION_VIEW>
    <COMMENT_VIEW comment="comment1" x="150.0" y="298.0" width="83" height="40" collapsed="FALSE">
      <COMMENTLINK_VIEW target="Customer.birthplace"/>
    </COMMENT_VIEW>
    <COMMENT_VIEW comment="comment2" x="465.0" y="295.0" width="83" height="40" collapsed="FALSE">
      <COMMENTLINK_VIEW target="Customer.residence"/>
    </COMMENT_VIEW>
  </DIAGRAM_SCHEMA>
  <APPLICATION_SCHEMA name="Application" defaultPolicyForNewEntities="enable">
    <OPERATIONS>
      <CLASS_OPERATIONS class="City">
        <ENABLE>
          <CLASS_ROLE role="City"/>
          <ATTRIBUTE attribute="name"/>
          <ROLE role="customer_"/>
          <ROLE role="customer_1"/>
        </ENABLE>
      </CLASS_OPERATIONS>
      <CLASS_OPERATIONS class="Credit_card">
        <ENABLE>
          <ATTRIBUTE attribute="number"/>
          <ATTRIBUTE attribute="expiration_date"/>
        </ENABLE>
      </CLASS_OPERATIONS>
      <CLASS_OPERATIONS class="Customer">
        <ENABLE>
          <CLASS_ROLE role="Customer"/>
          <ATTRIBUTE attribute="first_name"/>
          <ATTRIBUTE attribute="last_name"/>
          <ROLE role="birthplace"/>
          <ROLE role="credit_card_"/>
          <ROLE role="purchase_"/>
          <ROLE role="residence"/>
        </ENABLE>
      </CLASS_OPERATIONS>
      <CLASS_OPERATIONS class="Product">
        <ENABLE>
          <CLASS_ROLE role="Product"/>
          <ATTRIBUTE attribute="name"/>
          <ATTRIBUTE attribute="quantity"/>
          <ATTRIBUTE attribute="price"/>
          <ATTRIBUTE attribute="on_sale"/>
          <ATTRIBUTE attribute="date_added"/>
          <ATTRIBUTE attribute="time_added"/>
          <ROLE role="purchase_"/>
          <ROLE role="store_"/>
        </ENABLE>
      </CLASS_OPERATIONS>
      <CLASS_OPERATIONS class="Purchase">
        <ENABLE>
          <CLASS_ROLE role="Purchase"/>
          <ATTRIBUTE attribute="purchased_on"/>
          <ROLE role="customer_"/>
          <ROLE role="product_"/>
        </ENABLE>
      </CLASS_OPERATIONS>
      <CLASS_OPERATIONS class="Store">
        <ENABLE>
          <CLASS_ROLE role="Store"/>
          <ATTRIBUTE attribute="name"/>
          <ATTRIBUTE attribute="address"/>
          <ROLE role="product_"/>
        </ENABLE>
      </CLASS_OPERATIONS>
    </OPERATIONS>
    <LAYOUTS>
      <MENUBAR_LAYOUT>
        <COMMAND_OPEN_CLASS class="Product" name="$Product1" openAutomatically="FALSE"/>
        <COMMAND_OPEN_CLASS class="Purchase" name="$Purchase1" openAutomatically="FALSE"/>
        <COMMAND_OPEN_CLASS class="Customer" name="$Customer1" openAutomatically="FALSE"/>
        <COMMAND_OPEN_CLASS class="Store" name="$Store1" openAutomatically="FALSE"/>
        <COMMAND_OPEN_CLASS class="City" name="$City1" openAutomatically="FALSE"/>
      </MENUBAR_LAYOUT>
      <CLASS_LAYOUT class="City"/>
      <CLASS_LAYOUT class="Credit_card"/>
      <CLASS_LAYOUT class="Customer"/>
      <CLASS_LAYOUT class="Product"/>
      <CLASS_LAYOUT class="Purchase"/>
      <CLASS_LAYOUT class="Store"/>
    </LAYOUTS>
  </APPLICATION_SCHEMA>
  <PROFILE_SCHEMA defaultOptions="" defaultGrantsOnApplication="-" public="TRUE"/>
  <PROFILE_SCHEMA name="Member" defaultOptions="ar" defaultGrantsOnApplication="vced" canEditHomePage="FALSE" canEditApplicationCSS="FALSE" canEditPasswordPolicy="FALSE" defaultProfile="TRUE">
    <APPLICATION_GRANTS application="Application" grantsOnClasses="vced" grantsOnAttributes="ve" grantsOnAssociations="ve" grantsOnCompositions="vced">
      <CLASS_GRANTS class="City" grants="vced">
        <ELEMENT_GRANTS target="name" grants="ve"/>
        <ELEMENT_GRANTS target="customer_" grants="-"/>
        <ELEMENT_GRANTS target="customer_1" grants="-"/>
      </CLASS_GRANTS>
      <CLASS_GRANTS class="Credit_card">
        <ELEMENT_GRANTS target="number" grants="ve"/>
        <ELEMENT_GRANTS target="expiration_date" grants="ve"/>
      </CLASS_GRANTS>
      <CLASS_GRANTS class="Customer" grants="vced">
        <ELEMENT_GRANTS target="first_name" grants="ve"/>
        <ELEMENT_GRANTS target="last_name" grants="ve"/>
        <ELEMENT_GRANTS target="birthplace" grants="ve"/>
        <ELEMENT_GRANTS target="credit_card_" grants="vced"/>
        <ELEMENT_GRANTS target="purchase_" grants="ve"/>
        <ELEMENT_GRANTS target="residence" grants="ve"/>
      </CLASS_GRANTS>
      <CLASS_GRANTS class="Product" grants="vced">
        <ELEMENT_GRANTS target="name" grants="ve"/>
        <ELEMENT_GRANTS target="quantity" grants="ve"/>
        <ELEMENT_GRANTS target="price" grants="ve"/>
        <ELEMENT_GRANTS target="on_sale" grants="ve"/>
        <ELEMENT_GRANTS target="date_added" grants="ve"/>
        <ELEMENT_GRANTS target="time_added" grants="ve"/>
        <ELEMENT_GRANTS target="purchase_" grants="-"/>
        <ELEMENT_GRANTS target="store_" grants="ve"/>
      </CLASS_GRANTS>
      <CLASS_GRANTS class="Purchase" grants="vced">
        <ELEMENT_GRANTS target="purchased_on" grants="ve"/>
        <ELEMENT_GRANTS target="customer_" grants="ve"/>
        <ELEMENT_GRANTS target="product_" grants="ve"/>
      </CLASS_GRANTS>
      <CLASS_GRANTS class="Store" grants="vced">
        <ELEMENT_GRANTS target="name" grants="ve"/>
        <ELEMENT_GRANTS target="address" grants="ve"/>
        <ELEMENT_GRANTS target="product_" grants="ve"/>
      </CLASS_GRANTS>
    </APPLICATION_GRANTS>
  </PROFILE_SCHEMA>
  <LOCALIZATION_SCHEMA language="en">
    <CLASS_LOCALIZATION class="City"/>
    <CLASS_LOCALIZATION class="Credit_card"/>
    <CLASS_LOCALIZATION class="Customer"/>
    <CLASS_LOCALIZATION class="Product"/>
    <CLASS_LOCALIZATION class="Purchase"/>
    <CLASS_LOCALIZATION class="Store"/>
    <APPLICATION_LOCALIZATION application="Application">
      <MENU_LOCALIZATION menu="$Product1"/>
      <MENU_LOCALIZATION menu="$Purchase1"/>
      <MENU_LOCALIZATION menu="$Customer1"/>
      <MENU_LOCALIZATION menu="$Store1"/>
      <MENU_LOCALIZATION menu="$City1"/>
    </APPLICATION_LOCALIZATION>
  </LOCALIZATION_SCHEMA>
</ENGINE_MODEL>
