Skip to content

Instantly share code, notes, and snippets.

@athanhat
Created July 8, 2022 13:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save athanhat/bb581d77cfe224c144a19ea4940f406f to your computer and use it in GitHub Desktop.
Save athanhat/bb581d77cfe224c144a19ea4940f406f to your computer and use it in GitHub Desktop.
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