relational
DataBase
schemas
uri

port
Schema
tables
name
Table
fields
name
Field
name
Type
VARCHAR
VARCHAR
NUMERIC
NUMERIC
DATE
DATE
TIME
TIME
FLOAT
FLOAT
BOOLEAN
BOOLEAN
CHAR
CHAR
PrimaryKey
id
ForeignKey
reference
Column
type
<?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="relational"
    nsURI="http://www.obeo.fr/training/relational/1.0" nsPrefix="relational">
  <eClassifiers xsi:type="ecore:EClass" name="DataBase">
    <eStructuralFeatures xsi:type="ecore:EReference" name="schemas" upperBound="-1"
        eType="#//Schema" containment="true"/>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="uri" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"
        defaultValueLiteral=""/>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="port" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="Schema">
    <eStructuralFeatures xsi:type="ecore:EReference" name="tables" upperBound="-1"
        eType="#//Table" containment="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">
    <eStructuralFeatures xsi:type="ecore:EReference" name="fields" upperBound="-1"
        eType="#//Field" containment="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="Field" 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:EEnum" name="Type">
    <eLiterals name="VARCHAR"/>
    <eLiterals name="NUMERIC" value="1"/>
    <eLiterals name="DATE" value="2"/>
    <eLiterals name="TIME" value="3"/>
    <eLiterals name="FLOAT" value="4"/>
    <eLiterals name="BOOLEAN" value="5"/>
    <eLiterals name="CHAR" value="6"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="PrimaryKey" eSuperTypes="#//Field">
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="id" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//ELong"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="ForeignKey" eSuperTypes="#//Field">
    <eStructuralFeatures xsi:type="ecore:EReference" name="reference" lowerBound="1"
        eType="#//Table"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="Column" eSuperTypes="#//Field">
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="type" lowerBound="1" eType="#//Type"/>
  </eClassifiers>
</ecore:EPackage>

{"directed":true,"nodes":[{"nsPrefix":"relational","nsURI":"http://www.obeo.fr/training/relational/1.0","name":"relational","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":"Schema","instanceClass":null,"abstract":false,"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":"Field","instanceClass":null,"abstract":true,"id":4,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"instanceClassName":null,"name":"Type","instanceClass":null,"id":5,"serializable":true,"eClass":"EEnum"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"PrimaryKey","instanceClass":null,"abstract":false,"id":6,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"ForeignKey","instanceClass":null,"abstract":false,"id":7,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"Column","instanceClass":null,"abstract":false,"id":8,"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":"schemas","changeable":true,"resolveProxies":true,"lowerBound":0,"id":9,"derived":false},{"ordered":true,"upperBound":1,"defaultValue":"","volatile":false,"many":false,"required":true,"eClass":"EAttribute","defaultValueLiteral":"","unsettable":false,"transient":false,"unique":true,"name":"uri","changeable":true,"lowerBound":1,"iD":false,"id":10,"derived":false},{"ordered":true,"upperBound":1,"defaultValue":0,"volatile":false,"many":false,"required":false,"eClass":"EAttribute","defaultValueLiteral":null,"unsettable":false,"transient":false,"unique":true,"name":"port","changeable":true,"lowerBound":0,"iD":false,"id":11,"derived":false},{"id":12,"eClass":"EGenericType"},{"id":13,"eClass":"EGenericType"},{"id":14,"eClass":"EGenericType"},{"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":15,"derived":false},{"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":16,"derived":false},{"id":17,"eClass":"EGenericType"},{"id":18,"eClass":"EGenericType"},{"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":"fields","changeable":true,"resolveProxies":true,"lowerBound":0,"id":19,"derived":false},{"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":20,"derived":false},{"id":21,"eClass":"EGenericType"},{"id":22,"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":23,"derived":false},{"id":24,"eClass":"EGenericType"},{"name":"VARCHAR","id":25,"value":0,"literal":"VARCHAR","eClass":"EEnumLiteral"},{"name":"NUMERIC","id":26,"value":1,"literal":"NUMERIC","eClass":"EEnumLiteral"},{"name":"DATE","id":27,"value":2,"literal":"DATE","eClass":"EEnumLiteral"},{"name":"TIME","id":28,"value":3,"literal":"TIME","eClass":"EEnumLiteral"},{"name":"FLOAT","id":29,"value":4,"literal":"FLOAT","eClass":"EEnumLiteral"},{"name":"BOOLEAN","id":30,"value":5,"literal":"BOOLEAN","eClass":"EEnumLiteral"},{"name":"CHAR","id":31,"value":6,"literal":"CHAR","eClass":"EEnumLiteral"},{"ordered":true,"upperBound":1,"defaultValue":0,"volatile":false,"many":false,"required":true,"eClass":"EAttribute","defaultValueLiteral":null,"unsettable":false,"transient":false,"unique":true,"name":"id","changeable":true,"lowerBound":1,"iD":false,"id":32,"derived":false},{"id":33,"eClass":"EGenericType"},{"id":34,"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":"reference","changeable":true,"resolveProxies":true,"lowerBound":1,"id":35,"derived":false},{"id":36,"eClass":"EGenericType"},{"id":37,"eClass":"EGenericType"},{"ordered":true,"upperBound":1,"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":38,"derived":false},{"id":39,"eClass":"EGenericType"},{"id":40,"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":0,"target":8},{"source":1,"target":0},{"source":1,"target":9},{"source":1,"target":10},{"source":1,"target":11},{"source":9,"target":2},{"source":9,"target":12},{"source":9,"target":1},{"source":12,"target":2},{"source":10,"target":13},{"source":10,"target":1},{"source":11,"target":14},{"source":11,"target":1},{"source":2,"target":0},{"source":2,"target":15},{"source":2,"target":16},{"source":15,"target":3},{"source":15,"target":17},{"source":15,"target":2},{"source":17,"target":3},{"source":16,"target":18},{"source":16,"target":2},{"source":3,"target":0},{"source":3,"target":19},{"source":3,"target":20},{"source":19,"target":4},{"source":19,"target":21},{"source":19,"target":3},{"source":21,"target":4},{"source":20,"target":22},{"source":20,"target":3},{"source":4,"target":0},{"source":4,"target":23},{"source":23,"target":24},{"source":23,"target":4},{"source":5,"target":0},{"source":5,"target":25},{"source":5,"target":26},{"source":5,"target":27},{"source":5,"target":28},{"source":5,"target":29},{"source":5,"target":30},{"source":5,"target":31},{"source":25,"target":5},{"source":26,"target":5},{"source":27,"target":5},{"source":28,"target":5},{"source":29,"target":5},{"source":30,"target":5},{"source":31,"target":5},{"source":6,"target":0},{"source":6,"target":4},{"source":6,"target":32},{"source":6,"target":33},{"source":32,"target":34},{"source":32,"target":6},{"source":33,"target":4},{"source":7,"target":0},{"source":7,"target":4},{"source":7,"target":35},{"source":7,"target":36},{"source":35,"target":3},{"source":35,"target":37},{"source":35,"target":7},{"source":37,"target":3},{"source":36,"target":4},{"source":8,"target":0},{"source":8,"target":4},{"source":8,"target":38},{"source":8,"target":39},{"source":38,"target":5},{"source":38,"target":40},{"source":38,"target":8},{"source":40,"target":5},{"source":39,"target":4}],"multigraph":true}