database
DataBase
getTable
tableName
tables
Table
getColumn
columnName
getIndex
indexName
dataBase
columns
indexes
storageEngine
InnoDB
collation
utf8_bin
primaryKey
uniques
Column
type
nullable
default
length
collation
utf8_bin
PrimaryKey
Index
columns
Unique
NamedElement
name
<?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">
    <eOperations name="getTable" eType="#//Table">
      <eParameters name="tableName" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
    </eOperations>
    <eStructuralFeatures xsi:type="ecore:EReference" name="tables" ordered="false"
        upperBound="-1" eType="#//Table" containment="true"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="Table" eSuperTypes="#//NamedElement">
    <eOperations name="getColumn" eType="#//Column">
      <eParameters name="columnName" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
    </eOperations>
    <eOperations name="getIndex" eType="#//Index">
      <eParameters name="indexName" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
    </eOperations>
    <eStructuralFeatures xsi:type="ecore:EReference" name="dataBase" ordered="false"
        eType="#//DataBase"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="columns" lowerBound="1"
        upperBound="-1" eType="#//Column" containment="true"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="indexes" ordered="false"
        upperBound="-1" eType="#//Index" containment="true"/>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="storageEngine" lowerBound="1"
        eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString" defaultValueLiteral="InnoDB"/>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="collation" lowerBound="1"
        eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString" defaultValueLiteral="utf8_bin"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="primaryKey" ordered="false"
        eType="#//PrimaryKey" changeable="false" volatile="true" transient="true"
        unsettable="true" derived="true">
      <eAnnotations source="http://www.eclipse.org/ocl/examples/OCL">
        <details key="derive" value="self.indexes->any(e|e.oclIsTypeOf(PrimaryKey))"/>
      </eAnnotations>
    </eStructuralFeatures>
    <eStructuralFeatures xsi:type="ecore:EReference" name="uniques" ordered="false"
        upperBound="-1" eType="#//Unique" changeable="false" volatile="true" transient="true"
        unsettable="true" derived="true">
      <eAnnotations source="http://www.eclipse.org/ocl/examples/OCL">
        <details key="derive" value="self.indexes->select(e|e.oclIsTypeOf(Unique))"/>
      </eAnnotations>
    </eStructuralFeatures>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="Column" eSuperTypes="#//NamedElement">
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="type" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="nullable" lowerBound="1"
        eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean"/>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="default" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="length" lowerBound="1"
        eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="collation" lowerBound="1"
        eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString" defaultValueLiteral="utf8_bin"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="PrimaryKey" eSuperTypes="#//Index"/>
  <eClassifiers xsi:type="ecore:EClass" name="Index" eSuperTypes="#//NamedElement">
    <eStructuralFeatures xsi:type="ecore:EReference" name="columns" ordered="false"
        lowerBound="1" upperBound="-1" eType="#//Column"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="Unique" eSuperTypes="#//Index"/>
  <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>
</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":"PrimaryKey","instanceClass":null,"abstract":false,"id":4,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"Index","instanceClass":null,"abstract":false,"id":5,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"Unique","instanceClass":null,"abstract":false,"id":6,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"NamedElement","instanceClass":null,"abstract":true,"id":7,"interface":false,"eClass":"EClass"},{"ordered":true,"upperBound":1,"unique":true,"name":"getTable","lowerBound":0,"id":8,"many":false,"required":false,"eClass":"EOperation"},{"container":false,"ordered":false,"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":9,"derived":false},{"id":10,"eClass":"EGenericType"},{"ordered":true,"upperBound":1,"unique":true,"name":"tableName","lowerBound":0,"id":11,"many":false,"required":false,"eClass":"EParameter"},{"id":12,"eClass":"EGenericType"},{"id":13,"eClass":"EGenericType"},{"ordered":true,"upperBound":1,"unique":true,"name":"getColumn","lowerBound":0,"id":14,"many":false,"required":false,"eClass":"EOperation"},{"ordered":true,"upperBound":1,"unique":true,"name":"getIndex","lowerBound":0,"id":15,"many":false,"required":false,"eClass":"EOperation"},{"container":false,"ordered":false,"upperBound":1,"defaultValue":null,"volatile":false,"many":false,"required":false,"eClass":"EReference","defaultValueLiteral":null,"containment":false,"unsettable":false,"transient":false,"unique":true,"name":"dataBase","changeable":true,"resolveProxies":true,"lowerBound":0,"id":16,"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":"columns","changeable":true,"resolveProxies":true,"lowerBound":1,"id":17,"derived":false},{"container":false,"ordered":false,"upperBound":-1,"defaultValue":null,"volatile":false,"many":true,"required":false,"eClass":"EReference","defaultValueLiteral":null,"containment":true,"unsettable":false,"transient":false,"unique":true,"name":"indexes","changeable":true,"resolveProxies":true,"lowerBound":0,"id":18,"derived":false},{"ordered":true,"upperBound":1,"defaultValue":"InnoDB","volatile":false,"many":false,"required":true,"eClass":"EAttribute","defaultValueLiteral":"InnoDB","unsettable":false,"transient":false,"unique":true,"name":"storageEngine","changeable":true,"lowerBound":1,"iD":false,"id":19,"derived":false},{"ordered":true,"upperBound":1,"defaultValue":"utf8_bin","volatile":false,"many":false,"required":true,"eClass":"EAttribute","defaultValueLiteral":"utf8_bin","unsettable":false,"transient":false,"unique":true,"name":"collation","changeable":true,"lowerBound":1,"iD":false,"id":20,"derived":false},{"container":false,"ordered":false,"upperBound":1,"defaultValue":null,"volatile":true,"many":false,"required":false,"eClass":"EReference","defaultValueLiteral":null,"containment":false,"unsettable":true,"transient":true,"unique":true,"name":"primaryKey","changeable":false,"resolveProxies":true,"lowerBound":0,"id":21,"derived":true},{"container":false,"ordered":false,"upperBound":-1,"defaultValue":null,"volatile":true,"many":true,"required":false,"eClass":"EReference","defaultValueLiteral":null,"containment":false,"unsettable":true,"transient":true,"unique":true,"name":"uniques","changeable":false,"resolveProxies":true,"lowerBound":0,"id":22,"derived":true},{"id":23,"eClass":"EGenericType"},{"id":24,"eClass":"EGenericType"},{"ordered":true,"upperBound":1,"unique":true,"name":"columnName","lowerBound":0,"id":25,"many":false,"required":false,"eClass":"EParameter"},{"id":26,"eClass":"EGenericType"},{"id":27,"eClass":"EGenericType"},{"ordered":true,"upperBound":1,"unique":true,"name":"indexName","lowerBound":0,"id":28,"many":false,"required":false,"eClass":"EParameter"},{"id":29,"eClass":"EGenericType"},{"id":30,"eClass":"EGenericType"},{"id":31,"eClass":"EGenericType"},{"id":32,"eClass":"EGenericType"},{"id":33,"eClass":"EGenericType"},{"id":34,"eClass":"EGenericType"},{"id":35,"eClass":"EGenericType"},{"id":36,"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":"type","changeable":true,"lowerBound":1,"iD":false,"id":37,"derived":false},{"ordered":true,"upperBound":1,"defaultValue":false,"volatile":false,"many":false,"required":true,"eClass":"EAttribute","defaultValueLiteral":null,"unsettable":false,"transient":false,"unique":true,"name":"nullable","changeable":true,"lowerBound":1,"iD":false,"id":38,"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":"default","changeable":true,"lowerBound":0,"iD":false,"id":39,"derived":false},{"ordered":true,"upperBound":1,"defaultValue":0,"volatile":false,"many":false,"required":true,"eClass":"EAttribute","defaultValueLiteral":null,"unsettable":false,"transient":false,"unique":true,"name":"length","changeable":true,"lowerBound":1,"iD":false,"id":40,"derived":false},{"ordered":true,"upperBound":1,"defaultValue":"utf8_bin","volatile":false,"many":false,"required":true,"eClass":"EAttribute","defaultValueLiteral":"utf8_bin","unsettable":false,"transient":false,"unique":true,"name":"collation","changeable":true,"lowerBound":1,"iD":false,"id":41,"derived":false},{"id":42,"eClass":"EGenericType"},{"id":43,"eClass":"EGenericType"},{"id":44,"eClass":"EGenericType"},{"id":45,"eClass":"EGenericType"},{"id":46,"eClass":"EGenericType"},{"id":47,"eClass":"EGenericType"},{"id":48,"eClass":"EGenericType"},{"container":false,"ordered":false,"upperBound":-1,"defaultValue":null,"volatile":false,"many":true,"required":true,"eClass":"EReference","defaultValueLiteral":null,"containment":false,"unsettable":false,"transient":false,"unique":true,"name":"columns","changeable":true,"resolveProxies":true,"lowerBound":1,"id":49,"derived":false},{"id":50,"eClass":"EGenericType"},{"id":51,"eClass":"EGenericType"},{"id":52,"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":53,"derived":false},{"id":54,"eClass":"EGenericType"}],"links":[{"source":0,"target":1},{"source":0,"target":2},{"source":0,"target":3},{"source":0,"target":4},{"source":0,"target":5},{"source":0,"target":6},{"source":0,"target":7},{"source":1,"target":0},{"source":1,"target":8},{"source":1,"target":9},{"source":8,"target":2},{"source":8,"target":10},{"source":8,"target":1},{"source":8,"target":11},{"source":10,"target":2},{"source":11,"target":12},{"source":11,"target":8},{"source":9,"target":2},{"source":9,"target":13},{"source":9,"target":1},{"source":13,"target":2},{"source":2,"target":0},{"source":2,"target":7},{"source":2,"target":14},{"source":2,"target":15},{"source":2,"target":16},{"source":2,"target":17},{"source":2,"target":18},{"source":2,"target":19},{"source":2,"target":20},{"source":2,"target":21},{"source":2,"target":22},{"source":2,"target":23},{"source":14,"target":3},{"source":14,"target":24},{"source":14,"target":2},{"source":14,"target":25},{"source":24,"target":3},{"source":25,"target":26},{"source":25,"target":14},{"source":15,"target":5},{"source":15,"target":27},{"source":15,"target":2},{"source":15,"target":28},{"source":27,"target":5},{"source":28,"target":29},{"source":28,"target":15},{"source":16,"target":1},{"source":16,"target":30},{"source":16,"target":2},{"source":30,"target":1},{"source":17,"target":3},{"source":17,"target":31},{"source":17,"target":2},{"source":31,"target":3},{"source":18,"target":5},{"source":18,"target":32},{"source":18,"target":2},{"source":32,"target":5},{"source":19,"target":33},{"source":19,"target":2},{"source":20,"target":34},{"source":20,"target":2},{"source":21,"target":4},{"source":21,"target":35},{"source":21,"target":2},{"source":35,"target":4},{"source":22,"target":6},{"source":22,"target":36},{"source":22,"target":2},{"source":36,"target":6},{"source":23,"target":7},{"source":3,"target":0},{"source":3,"target":7},{"source":3,"target":37},{"source":3,"target":38},{"source":3,"target":39},{"source":3,"target":40},{"source":3,"target":41},{"source":3,"target":42},{"source":37,"target":43},{"source":37,"target":3},{"source":38,"target":44},{"source":38,"target":3},{"source":39,"target":45},{"source":39,"target":3},{"source":40,"target":46},{"source":40,"target":3},{"source":41,"target":47},{"source":41,"target":3},{"source":42,"target":7},{"source":4,"target":0},{"source":4,"target":5},{"source":4,"target":48},{"source":48,"target":5},{"source":5,"target":0},{"source":5,"target":7},{"source":5,"target":49},{"source":5,"target":50},{"source":49,"target":3},{"source":49,"target":51},{"source":49,"target":5},{"source":51,"target":3},{"source":50,"target":7},{"source":6,"target":0},{"source":6,"target":5},{"source":6,"target":52},{"source":52,"target":5},{"source":7,"target":0},{"source":7,"target":53},{"source":53,"target":54},{"source":53,"target":7}],"multigraph":true}