relationaldatabase
RelationalDatabase
tables
NamedElement
name
Table
columns
primaryKey
foreignKeys
Column
table
tableAsPrimaryKey
foreignKeysAsColumn
foreignKeysAsForeignColumn
ForeignKey
tableColumn
foreignColumn
table
<?xml version="1.0" encoding="UTF-8"?>
<ecore:EPackage xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="relationaldatabase" nsURI="http://se.cs.toronto.edu/modelepedia/RelationalDatabase"
    nsPrefix="relationaldatabase">
  <eClassifiers xsi:type="ecore:EClass" name="RelationalDatabase">
    <eAnnotations source="gmf.diagram"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="tables" upperBound="-1"
        eType="#//Table" containment="true"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="NamedElement" abstract="true">
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="Table" eSuperTypes="#//NamedElement">
    <eAnnotations source="gmf.node">
      <details key="label" value="name"/>
    </eAnnotations>
    <eStructuralFeatures xsi:type="ecore:EReference" name="columns" lowerBound="1"
        upperBound="-1" eType="#//Column" containment="true" eOpposite="#//Column/table">
      <eAnnotations source="gmf.compartment">
        <details key="layout" value="list"/>
      </eAnnotations>
    </eStructuralFeatures>
    <eStructuralFeatures xsi:type="ecore:EReference" name="primaryKey" lowerBound="1"
        eType="#//Column" eOpposite="#//Column/tableAsPrimaryKey"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="foreignKeys" upperBound="-1"
        eType="#//ForeignKey" containment="true" eOpposite="#//ForeignKey/table">
      <eAnnotations source="gmf.compartment">
        <details key="layout" value="list"/>
      </eAnnotations>
    </eStructuralFeatures>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="Column" eSuperTypes="#//NamedElement">
    <eAnnotations source="gmf.node">
      <details key="label" value="name"/>
    </eAnnotations>
    <eStructuralFeatures xsi:type="ecore:EReference" name="table" lowerBound="1" eType="#//Table"
        eOpposite="#//Table/columns"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="tableAsPrimaryKey" eType="#//Table"
        eOpposite="#//Table/primaryKey"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="foreignKeysAsColumn" upperBound="-1"
        eType="#//ForeignKey" eOpposite="#//ForeignKey/tableColumn"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="foreignKeysAsForeignColumn"
        upperBound="-1" eType="#//ForeignKey" eOpposite="#//ForeignKey/foreignColumn"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="ForeignKey" eSuperTypes="#//NamedElement">
    <eAnnotations source="gmf.node">
      <details key="label" value="name"/>
    </eAnnotations>
    <eStructuralFeatures xsi:type="ecore:EReference" name="tableColumn" lowerBound="1"
        eType="#//Column" eOpposite="#//Column/foreignKeysAsColumn">
      <eAnnotations source="gmf.link">
        <details key="target.decoration" value="none"/>
      </eAnnotations>
    </eStructuralFeatures>
    <eStructuralFeatures xsi:type="ecore:EReference" name="foreignColumn" lowerBound="1"
        eType="#//Column" eOpposite="#//Column/foreignKeysAsForeignColumn">
      <eAnnotations source="gmf.link">
        <details key="target.decoration" value="none"/>
      </eAnnotations>
    </eStructuralFeatures>
    <eStructuralFeatures xsi:type="ecore:EReference" name="table" lowerBound="1" eType="#//Table"
        eOpposite="#//Table/foreignKeys"/>
  </eClassifiers>
</ecore:EPackage>

{"directed":true,"nodes":[{"nsPrefix":"relationaldatabase","nsURI":"http://se.cs.toronto.edu/modelepedia/RelationalDatabase","name":"relationaldatabase","id":0,"eClass":"EPackage"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"RelationalDatabase","instanceClass":null,"abstract":false,"id":1,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"NamedElement","instanceClass":null,"abstract":true,"id":2,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"Table","instanceClass":null,"abstract":false,"id":3,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"Column","instanceClass":null,"abstract":false,"id":4,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"ForeignKey","instanceClass":null,"abstract":false,"id":5,"interface":false,"eClass":"EClass"},{"container":false,"ordered":true,"upperBound":-1,"defaultValue":null,"volatile":false,"many":true,"required":false,"eClass":"EReference","defaultValueLiteral":null,"containment":true,"unsettable":false,"transient":false,"unique":true,"name":"tables","changeable":true,"resolveProxies":true,"lowerBound":0,"id":6,"derived":false},{"id":7,"eClass":"EGenericType"},{"ordered":true,"upperBound":1,"defaultValue":null,"volatile":false,"many":false,"required":true,"eClass":"EAttribute","defaultValueLiteral":null,"unsettable":false,"transient":false,"unique":true,"name":"name","changeable":true,"lowerBound":1,"iD":false,"id":8,"derived":false},{"id":9,"eClass":"EGenericType"},{"container":false,"ordered":true,"upperBound":-1,"defaultValue":null,"volatile":false,"many":true,"required":true,"eClass":"EReference","defaultValueLiteral":null,"containment":true,"unsettable":false,"transient":false,"unique":true,"name":"columns","changeable":true,"resolveProxies":true,"lowerBound":1,"id":10,"derived":false},{"container":false,"ordered":true,"upperBound":1,"defaultValue":null,"volatile":false,"many":false,"required":true,"eClass":"EReference","defaultValueLiteral":null,"containment":false,"unsettable":false,"transient":false,"unique":true,"name":"primaryKey","changeable":true,"resolveProxies":true,"lowerBound":1,"id":11,"derived":false},{"container":false,"ordered":true,"upperBound":-1,"defaultValue":null,"volatile":false,"many":true,"required":false,"eClass":"EReference","defaultValueLiteral":null,"containment":true,"unsettable":false,"transient":false,"unique":true,"name":"foreignKeys","changeable":true,"resolveProxies":true,"lowerBound":0,"id":12,"derived":false},{"id":13,"eClass":"EGenericType"},{"id":14,"eClass":"EGenericType"},{"container":true,"ordered":true,"upperBound":1,"defaultValue":null,"volatile":false,"many":false,"required":true,"eClass":"EReference","defaultValueLiteral":null,"containment":false,"unsettable":false,"transient":false,"unique":true,"name":"table","changeable":true,"resolveProxies":true,"lowerBound":1,"id":15,"derived":false},{"id":16,"eClass":"EGenericType"},{"container":false,"ordered":true,"upperBound":1,"defaultValue":null,"volatile":false,"many":false,"required":false,"eClass":"EReference","defaultValueLiteral":null,"containment":false,"unsettable":false,"transient":false,"unique":true,"name":"tableAsPrimaryKey","changeable":true,"resolveProxies":true,"lowerBound":0,"id":17,"derived":false},{"id":18,"eClass":"EGenericType"},{"container":true,"ordered":true,"upperBound":1,"defaultValue":null,"volatile":false,"many":false,"required":true,"eClass":"EReference","defaultValueLiteral":null,"containment":false,"unsettable":false,"transient":false,"unique":true,"name":"table","changeable":true,"resolveProxies":true,"lowerBound":1,"id":19,"derived":false},{"container":false,"ordered":true,"upperBound":-1,"defaultValue":null,"volatile":false,"many":true,"required":false,"eClass":"EReference","defaultValueLiteral":null,"containment":false,"unsettable":false,"transient":false,"unique":true,"name":"foreignKeysAsColumn","changeable":true,"resolveProxies":true,"lowerBound":0,"id":20,"derived":false},{"container":false,"ordered":true,"upperBound":-1,"defaultValue":null,"volatile":false,"many":true,"required":false,"eClass":"EReference","defaultValueLiteral":null,"containment":false,"unsettable":false,"transient":false,"unique":true,"name":"foreignKeysAsForeignColumn","changeable":true,"resolveProxies":true,"lowerBound":0,"id":21,"derived":false},{"id":22,"eClass":"EGenericType"},{"id":23,"eClass":"EGenericType"},{"id":24,"eClass":"EGenericType"},{"id":25,"eClass":"EGenericType"},{"container":false,"ordered":true,"upperBound":1,"defaultValue":null,"volatile":false,"many":false,"required":true,"eClass":"EReference","defaultValueLiteral":null,"containment":false,"unsettable":false,"transient":false,"unique":true,"name":"tableColumn","changeable":true,"resolveProxies":true,"lowerBound":1,"id":26,"derived":false},{"id":27,"eClass":"EGenericType"},{"container":false,"ordered":true,"upperBound":1,"defaultValue":null,"volatile":false,"many":false,"required":true,"eClass":"EReference","defaultValueLiteral":null,"containment":false,"unsettable":false,"transient":false,"unique":true,"name":"foreignColumn","changeable":true,"resolveProxies":true,"lowerBound":1,"id":28,"derived":false},{"id":29,"eClass":"EGenericType"},{"id":30,"eClass":"EGenericType"},{"id":31,"eClass":"EGenericType"},{"id":32,"eClass":"EGenericType"}],"links":[{"source":0,"target":1},{"source":0,"target":2},{"source":0,"target":3},{"source":0,"target":4},{"source":0,"target":5},{"source":1,"target":0},{"source":1,"target":6},{"source":6,"target":3},{"source":6,"target":7},{"source":6,"target":1},{"source":7,"target":3},{"source":2,"target":0},{"source":2,"target":8},{"source":8,"target":9},{"source":8,"target":2},{"source":3,"target":0},{"source":3,"target":2},{"source":3,"target":10},{"source":3,"target":11},{"source":3,"target":12},{"source":3,"target":13},{"source":10,"target":4},{"source":10,"target":14},{"source":10,"target":3},{"source":10,"target":15},{"source":14,"target":4},{"source":11,"target":4},{"source":11,"target":16},{"source":11,"target":3},{"source":11,"target":17},{"source":16,"target":4},{"source":12,"target":5},{"source":12,"target":18},{"source":12,"target":3},{"source":12,"target":19},{"source":18,"target":5},{"source":13,"target":2},{"source":4,"target":0},{"source":4,"target":2},{"source":4,"target":15},{"source":4,"target":17},{"source":4,"target":20},{"source":4,"target":21},{"source":4,"target":22},{"source":15,"target":3},{"source":15,"target":23},{"source":15,"target":4},{"source":15,"target":10},{"source":23,"target":3},{"source":17,"target":3},{"source":17,"target":24},{"source":17,"target":4},{"source":17,"target":11},{"source":24,"target":3},{"source":20,"target":5},{"source":20,"target":25},{"source":20,"target":4},{"source":20,"target":26},{"source":25,"target":5},{"source":21,"target":5},{"source":21,"target":27},{"source":21,"target":4},{"source":21,"target":28},{"source":27,"target":5},{"source":22,"target":2},{"source":5,"target":0},{"source":5,"target":2},{"source":5,"target":26},{"source":5,"target":28},{"source":5,"target":19},{"source":5,"target":29},{"source":26,"target":4},{"source":26,"target":30},{"source":26,"target":5},{"source":26,"target":20},{"source":30,"target":4},{"source":28,"target":4},{"source":28,"target":31},{"source":28,"target":5},{"source":28,"target":21},{"source":31,"target":4},{"source":19,"target":3},{"source":19,"target":32},{"source":19,"target":5},{"source":19,"target":12},{"source":32,"target":3},{"source":29,"target":2}],"multigraph":true}