relational
Database
name
url
ownedSchemas
Schema
name
ownedTables
owner
Table
name
ownedColumns
ownedForeignKeys
owner
ForeignKey
name
foreignTable
sourceTable
Column
name
type
isPrimaryKey
isUnique
owner
Type
NUMERIC
NUMERIC
VARCHAR
VARCHAR
DATE
DATE
TIME
TIME
FLOAT
FLOAT
CHAR
CHAR
ModelElement
comment
<?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/dsl/relational" nsPrefix="relational">
  <eClassifiers xsi:type="ecore:EClass" name="Database" eSuperTypes="#//ModelElement">
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="url" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="ownedSchemas" ordered="false"
        upperBound="-1" eType="#//Schema" containment="true" eOpposite="#//Schema/owner"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="Schema" eSuperTypes="#//ModelElement">
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="ownedTables" ordered="false"
        upperBound="-1" eType="#//Table" containment="true" eOpposite="#//Table/owner"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="owner" ordered="false"
        lowerBound="1" eType="#//Database" eOpposite="#//Database/ownedSchemas"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="Table" eSuperTypes="#//ModelElement">
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="ownedColumns" ordered="false"
        upperBound="-1" eType="#//Column" containment="true" eOpposite="#//Column/owner"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="ownedForeignKeys" ordered="false"
        upperBound="-1" eType="#//ForeignKey" containment="true" eOpposite="#//ForeignKey/foreignTable"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="owner" ordered="false"
        lowerBound="1" eType="#//Schema" eOpposite="#//Schema/ownedTables"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="ForeignKey" eSuperTypes="#//ModelElement">
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="foreignTable" lowerBound="1"
        eType="#//Table" eOpposite="#//Table/ownedForeignKeys"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="sourceTable" lowerBound="1"
        eType="#//Table"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="Column" eSuperTypes="#//ModelElement">
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="type" eType="#//Type"/>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="isPrimaryKey" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean"/>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="isUnique" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="owner" ordered="false"
        lowerBound="1" eType="#//Table" eOpposite="#//Table/ownedColumns"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EEnum" name="Type">
    <eLiterals name="NUMERIC"/>
    <eLiterals name="VARCHAR" value="1"/>
    <eLiterals name="DATE" value="2"/>
    <eLiterals name="TIME" value="3"/>
    <eLiterals name="FLOAT" value="4"/>
    <eLiterals name="CHAR" value="5"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="ModelElement" abstract="true">
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="comment" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
  </eClassifiers>
</ecore:EPackage>

{"directed":true,"nodes":[{"nsPrefix":"relational","nsURI":"http://www.obeo.fr/dsl/relational","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":"ForeignKey","instanceClass":null,"abstract":false,"id":4,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"Column","instanceClass":null,"abstract":false,"id":5,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"instanceClassName":null,"name":"Type","instanceClass":null,"id":6,"serializable":true,"eClass":"EEnum"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"ModelElement","instanceClass":null,"abstract":true,"id":7,"interface":false,"eClass":"EClass"},{"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":8,"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":"url","changeable":true,"lowerBound":0,"iD":false,"id":9,"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":"ownedSchemas","changeable":true,"resolveProxies":true,"lowerBound":0,"id":10,"derived":false},{"id":11,"eClass":"EGenericType"},{"id":12,"eClass":"EGenericType"},{"id":13,"eClass":"EGenericType"},{"id":14,"eClass":"EGenericType"},{"container":true,"ordered":false,"upperBound":1,"defaultValue":null,"volatile":false,"many":false,"required":true,"eClass":"EReference","defaultValueLiteral":null,"containment":false,"unsettable":false,"transient":false,"unique":true,"name":"owner","changeable":true,"resolveProxies":true,"lowerBound":1,"id":15,"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":16,"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":"ownedTables","changeable":true,"resolveProxies":true,"lowerBound":0,"id":17,"derived":false},{"id":18,"eClass":"EGenericType"},{"id":19,"eClass":"EGenericType"},{"id":20,"eClass":"EGenericType"},{"container":true,"ordered":false,"upperBound":1,"defaultValue":null,"volatile":false,"many":false,"required":true,"eClass":"EReference","defaultValueLiteral":null,"containment":false,"unsettable":false,"transient":false,"unique":true,"name":"owner","changeable":true,"resolveProxies":true,"lowerBound":1,"id":21,"derived":false},{"id":22,"eClass":"EGenericType"},{"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":23,"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":"ownedColumns","changeable":true,"resolveProxies":true,"lowerBound":0,"id":24,"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":"ownedForeignKeys","changeable":true,"resolveProxies":true,"lowerBound":0,"id":25,"derived":false},{"id":26,"eClass":"EGenericType"},{"id":27,"eClass":"EGenericType"},{"id":28,"eClass":"EGenericType"},{"container":true,"ordered":false,"upperBound":1,"defaultValue":null,"volatile":false,"many":false,"required":true,"eClass":"EReference","defaultValueLiteral":null,"containment":false,"unsettable":false,"transient":false,"unique":true,"name":"owner","changeable":true,"resolveProxies":true,"lowerBound":1,"id":29,"derived":false},{"id":30,"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":"foreignTable","changeable":true,"resolveProxies":true,"lowerBound":1,"id":31,"derived":false},{"id":32,"eClass":"EGenericType"},{"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":33,"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":"sourceTable","changeable":true,"resolveProxies":true,"lowerBound":1,"id":34,"derived":false},{"id":35,"eClass":"EGenericType"},{"id":36,"eClass":"EGenericType"},{"id":37,"eClass":"EGenericType"},{"id":38,"eClass":"EGenericType"},{"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":39,"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":40,"derived":false},{"ordered":true,"upperBound":1,"defaultValue":false,"volatile":false,"many":false,"required":false,"eClass":"EAttribute","defaultValueLiteral":null,"unsettable":false,"transient":false,"unique":true,"name":"isPrimaryKey","changeable":true,"lowerBound":0,"iD":false,"id":41,"derived":false},{"ordered":true,"upperBound":1,"defaultValue":false,"volatile":false,"many":false,"required":false,"eClass":"EAttribute","defaultValueLiteral":null,"unsettable":false,"transient":false,"unique":true,"name":"isUnique","changeable":true,"lowerBound":0,"iD":false,"id":42,"derived":false},{"id":43,"eClass":"EGenericType"},{"id":44,"eClass":"EGenericType"},{"id":45,"eClass":"EGenericType"},{"id":46,"eClass":"EGenericType"},{"id":47,"eClass":"EGenericType"},{"id":48,"eClass":"EGenericType"},{"name":"NUMERIC","id":49,"value":0,"literal":"NUMERIC","eClass":"EEnumLiteral"},{"name":"VARCHAR","id":50,"value":1,"literal":"VARCHAR","eClass":"EEnumLiteral"},{"name":"DATE","id":51,"value":2,"literal":"DATE","eClass":"EEnumLiteral"},{"name":"TIME","id":52,"value":3,"literal":"TIME","eClass":"EEnumLiteral"},{"name":"FLOAT","id":53,"value":4,"literal":"FLOAT","eClass":"EEnumLiteral"},{"name":"CHAR","id":54,"value":5,"literal":"CHAR","eClass":"EEnumLiteral"},{"ordered":true,"upperBound":1,"defaultValue":null,"volatile":false,"many":false,"required":false,"eClass":"EAttribute","defaultValueLiteral":null,"unsettable":false,"transient":false,"unique":true,"name":"comment","changeable":true,"lowerBound":0,"iD":false,"id":55,"derived":false},{"id":56,"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":7},{"source":1,"target":8},{"source":1,"target":9},{"source":1,"target":10},{"source":1,"target":11},{"source":8,"target":12},{"source":8,"target":1},{"source":9,"target":13},{"source":9,"target":1},{"source":10,"target":2},{"source":10,"target":14},{"source":10,"target":1},{"source":10,"target":15},{"source":14,"target":2},{"source":11,"target":7},{"source":2,"target":0},{"source":2,"target":7},{"source":2,"target":16},{"source":2,"target":17},{"source":2,"target":15},{"source":2,"target":18},{"source":16,"target":19},{"source":16,"target":2},{"source":17,"target":3},{"source":17,"target":20},{"source":17,"target":2},{"source":17,"target":21},{"source":20,"target":3},{"source":15,"target":1},{"source":15,"target":22},{"source":15,"target":2},{"source":15,"target":10},{"source":22,"target":1},{"source":18,"target":7},{"source":3,"target":0},{"source":3,"target":7},{"source":3,"target":23},{"source":3,"target":24},{"source":3,"target":25},{"source":3,"target":21},{"source":3,"target":26},{"source":23,"target":27},{"source":23,"target":3},{"source":24,"target":5},{"source":24,"target":28},{"source":24,"target":3},{"source":24,"target":29},{"source":28,"target":5},{"source":25,"target":4},{"source":25,"target":30},{"source":25,"target":3},{"source":25,"target":31},{"source":30,"target":4},{"source":21,"target":2},{"source":21,"target":32},{"source":21,"target":3},{"source":21,"target":17},{"source":32,"target":2},{"source":26,"target":7},{"source":4,"target":0},{"source":4,"target":7},{"source":4,"target":33},{"source":4,"target":31},{"source":4,"target":34},{"source":4,"target":35},{"source":33,"target":36},{"source":33,"target":4},{"source":31,"target":3},{"source":31,"target":37},{"source":31,"target":4},{"source":31,"target":25},{"source":37,"target":3},{"source":34,"target":3},{"source":34,"target":38},{"source":34,"target":4},{"source":38,"target":3},{"source":35,"target":7},{"source":5,"target":0},{"source":5,"target":7},{"source":5,"target":39},{"source":5,"target":40},{"source":5,"target":41},{"source":5,"target":42},{"source":5,"target":29},{"source":5,"target":43},{"source":39,"target":44},{"source":39,"target":5},{"source":40,"target":6},{"source":40,"target":45},{"source":40,"target":5},{"source":45,"target":6},{"source":41,"target":46},{"source":41,"target":5},{"source":42,"target":47},{"source":42,"target":5},{"source":29,"target":3},{"source":29,"target":48},{"source":29,"target":5},{"source":29,"target":24},{"source":48,"target":3},{"source":43,"target":7},{"source":6,"target":0},{"source":6,"target":49},{"source":6,"target":50},{"source":6,"target":51},{"source":6,"target":52},{"source":6,"target":53},{"source":6,"target":54},{"source":49,"target":6},{"source":50,"target":6},{"source":51,"target":6},{"source":52,"target":6},{"source":53,"target":6},{"source":54,"target":6},{"source":7,"target":0},{"source":7,"target":55},{"source":55,"target":56},{"source":55,"target":7}],"multigraph":true}