Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Datomic Schema in Hodur Descriptive Domain Modeling Engine format
[
^{:datomic/tag-recursive true
:graphviz/tag-recursive true
:graphviz/color "lightyellow"
:graphviz/stereotype "Person"
:graphviz/group "person-group"
}
Employee
[^String name
^Float salary
^{:type Employee
:cardinality [0 n]} supervisor
^{:type Employee
:cardinality [1 n]} coworkers
^Profession profession
^RelationshipStatus status
^Integer height
^Unit height_unit
]
^{:datomic/tag-recursive true
:graphviz/tag-recursive true
:graphviz/color "lightsalmon"
:graphviz/group "person-group"}
Profession
[^String name]
^{:datomic/tag-recursive true
:enum true
:doc "marriage status of employee"
:graphviz/tag-recursive true
:graphviz/color "lightblue"
:graphviz/group "enum-group"}
RelationshipStatus
[Single Married]
^{:datomic/tag-recursive true
:enum true
:graphviz/tag-recursive true
:graphviz/color "lightblue"
:graphviz/group "enum-group"}
Unit
[CENTIMETERS FEET]
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment