database
Database
DbFK
DbTable
Table
Name
DbTableRoot
TableColumn
Column
Name
ColumnTable
Type
IsPrimaryKey
false
ForeignKey
SourceTable
TargetTable
SourceColumn
TargetColumn
DbFkRoot
Name
DataType
String
String
Int
Int
Float
Float
Date
Date
<?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="database"
    nsURI="http://database/1.0" nsPrefix="database">
  <eClassifiers xsi:type="ecore:EClass" name="Database">
    <eStructuralFeatures xsi:type="ecore:EReference" name="DbFK" upperBound="-1" eType="#//ForeignKey"
        containment="true" eOpposite="#//ForeignKey/DbFkRoot"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="DbTable" upperBound="-1"
        eType="#//Table" containment="true" eOpposite="#//Table/DbTableRoot"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="Table">
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="Name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="DbTableRoot" lowerBound="1"
        eType="#//Database" eOpposite="#//Database/DbTable"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="TableColumn" lowerBound="1"
        upperBound="-1" eType="#//Column" containment="true" eOpposite="#//Column/ColumnTable"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="Column">
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="Name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="ColumnTable" lowerBound="1"
        eType="#//Table" eOpposite="#//Table/TableColumn"/>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="Type" eType="#//DataType"/>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="IsPrimaryKey" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean"
        defaultValueLiteral="false"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="ForeignKey">
    <eStructuralFeatures xsi:type="ecore:EReference" name="SourceTable" lowerBound="1"
        eType="#//Table"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="TargetTable" lowerBound="1"
        eType="#//Table"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="SourceColumn" lowerBound="1"
        upperBound="-1" eType="#//Column"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="TargetColumn" lowerBound="1"
        upperBound="-1" eType="#//Column"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="DbFkRoot" lowerBound="1"
        eType="#//Database" eOpposite="#//Database/DbFK"/>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="Name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EEnum" name="DataType">
    <eLiterals name="String"/>
    <eLiterals name="Int" value="1"/>
    <eLiterals name="Float" value="2"/>
    <eLiterals name="Date" value="3"/>
  </eClassifiers>
</ecore:EPackage>

{"directed":true,"nodes":[{"nsPrefix":"database","nsURI":"http://database/1.0","name":"database","id":0,"eClass":"EPackage"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"Database","instanceClass":null,"abstract":false,"id":1,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"Table","instanceClass":null,"abstract":false,"id":2,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"Column","instanceClass":null,"abstract":false,"id":3,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"ForeignKey","instanceClass":null,"abstract":false,"id":4,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"instanceClassName":null,"name":"DataType","instanceClass":null,"id":5,"serializable":true,"eClass":"EEnum"},{"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":"DbFK","changeable":true,"resolveProxies":true,"lowerBound":0,"id":6,"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":"DbTable","changeable":true,"resolveProxies":true,"lowerBound":0,"id":7,"derived":false},{"id":8,"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":"DbFkRoot","changeable":true,"resolveProxies":true,"lowerBound":1,"id":9,"derived":false},{"id":10,"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":"DbTableRoot","changeable":true,"resolveProxies":true,"lowerBound":1,"id":11,"derived":false},{"ordered":true,"upperBound":1,"defaultValue":null,"volatile":false,"many":false,"required":false,"eClass":"EAttribute","defaultValueLiteral":null,"unsettable":false,"transient":false,"unique":true,"name":"Name","changeable":true,"lowerBound":0,"iD":false,"id":12,"derived":false},{"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":"TableColumn","changeable":true,"resolveProxies":true,"lowerBound":1,"id":13,"derived":false},{"id":14,"eClass":"EGenericType"},{"id":15,"eClass":"EGenericType"},{"id":16,"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":"ColumnTable","changeable":true,"resolveProxies":true,"lowerBound":1,"id":17,"derived":false},{"ordered":true,"upperBound":1,"defaultValue":null,"volatile":false,"many":false,"required":false,"eClass":"EAttribute","defaultValueLiteral":null,"unsettable":false,"transient":false,"unique":true,"name":"Name","changeable":true,"lowerBound":0,"iD":false,"id":18,"derived":false},{"ordered":true,"upperBound":1,"volatile":false,"many":false,"required":false,"eClass":"EAttribute","defaultValueLiteral":null,"unsettable":false,"transient":false,"unique":true,"name":"Type","changeable":true,"lowerBound":0,"iD":false,"id":19,"derived":false},{"ordered":true,"upperBound":1,"defaultValue":false,"volatile":false,"many":false,"required":false,"eClass":"EAttribute","defaultValueLiteral":"false","unsettable":false,"transient":false,"unique":true,"name":"IsPrimaryKey","changeable":true,"lowerBound":0,"iD":false,"id":20,"derived":false},{"id":21,"eClass":"EGenericType"},{"id":22,"eClass":"EGenericType"},{"id":23,"eClass":"EGenericType"},{"id":24,"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":"SourceTable","changeable":true,"resolveProxies":true,"lowerBound":1,"id":25,"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":"TargetTable","changeable":true,"resolveProxies":true,"lowerBound":1,"id":26,"derived":false},{"container":false,"ordered":true,"upperBound":-1,"defaultValue":null,"volatile":false,"many":true,"required":true,"eClass":"EReference","defaultValueLiteral":null,"containment":false,"unsettable":false,"transient":false,"unique":true,"name":"SourceColumn","changeable":true,"resolveProxies":true,"lowerBound":1,"id":27,"derived":false},{"container":false,"ordered":true,"upperBound":-1,"defaultValue":null,"volatile":false,"many":true,"required":true,"eClass":"EReference","defaultValueLiteral":null,"containment":false,"unsettable":false,"transient":false,"unique":true,"name":"TargetColumn","changeable":true,"resolveProxies":true,"lowerBound":1,"id":28,"derived":false},{"ordered":true,"upperBound":1,"defaultValue":null,"volatile":false,"many":false,"required":false,"eClass":"EAttribute","defaultValueLiteral":null,"unsettable":false,"transient":false,"unique":true,"name":"Name","changeable":true,"lowerBound":0,"iD":false,"id":29,"derived":false},{"id":30,"eClass":"EGenericType"},{"id":31,"eClass":"EGenericType"},{"id":32,"eClass":"EGenericType"},{"id":33,"eClass":"EGenericType"},{"id":34,"eClass":"EGenericType"},{"id":35,"eClass":"EGenericType"},{"name":"String","id":36,"value":0,"literal":"String","eClass":"EEnumLiteral"},{"name":"Int","id":37,"value":1,"literal":"Int","eClass":"EEnumLiteral"},{"name":"Float","id":38,"value":2,"literal":"Float","eClass":"EEnumLiteral"},{"name":"Date","id":39,"value":3,"literal":"Date","eClass":"EEnumLiteral"}],"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":1,"target":7},{"source":6,"target":4},{"source":6,"target":8},{"source":6,"target":1},{"source":6,"target":9},{"source":8,"target":4},{"source":7,"target":2},{"source":7,"target":10},{"source":7,"target":1},{"source":7,"target":11},{"source":10,"target":2},{"source":2,"target":0},{"source":2,"target":12},{"source":2,"target":11},{"source":2,"target":13},{"source":12,"target":14},{"source":12,"target":2},{"source":11,"target":1},{"source":11,"target":15},{"source":11,"target":2},{"source":11,"target":7},{"source":15,"target":1},{"source":13,"target":3},{"source":13,"target":16},{"source":13,"target":2},{"source":13,"target":17},{"source":16,"target":3},{"source":3,"target":0},{"source":3,"target":18},{"source":3,"target":17},{"source":3,"target":19},{"source":3,"target":20},{"source":18,"target":21},{"source":18,"target":3},{"source":17,"target":2},{"source":17,"target":22},{"source":17,"target":3},{"source":17,"target":13},{"source":22,"target":2},{"source":19,"target":5},{"source":19,"target":23},{"source":19,"target":3},{"source":23,"target":5},{"source":20,"target":24},{"source":20,"target":3},{"source":4,"target":0},{"source":4,"target":25},{"source":4,"target":26},{"source":4,"target":27},{"source":4,"target":28},{"source":4,"target":9},{"source":4,"target":29},{"source":25,"target":2},{"source":25,"target":30},{"source":25,"target":4},{"source":30,"target":2},{"source":26,"target":2},{"source":26,"target":31},{"source":26,"target":4},{"source":31,"target":2},{"source":27,"target":3},{"source":27,"target":32},{"source":27,"target":4},{"source":32,"target":3},{"source":28,"target":3},{"source":28,"target":33},{"source":28,"target":4},{"source":33,"target":3},{"source":9,"target":1},{"source":9,"target":34},{"source":9,"target":4},{"source":9,"target":6},{"source":34,"target":1},{"source":29,"target":35},{"source":29,"target":4},{"source":5,"target":0},{"source":5,"target":36},{"source":5,"target":37},{"source":5,"target":38},{"source":5,"target":39},{"source":36,"target":5},{"source":37,"target":5},{"source":38,"target":5},{"source":39,"target":5}],"multigraph":true}