Welcome! Please see the About page for a little more info on how this works.

+1 vote
in Cloud by

Hi,

I've got a question about data modeling with Datomic.

I am learning Datomic by moving the storage from a small side project I built (https://github.com/rollacaster/shopping-cards) from .edn files to Datomic.

I translated the current data model 1:1 and got the following result (I used https://github.com/hodur-org/hodur-graphviz-schema to create this schema :

https://github.com/rollacaster/shopping-cards/blob/datomic/shopping-cards-schema.png

Is this is a "proper" Datomic data model or does Datomic has any capabilities to simplify this model (e.g. removing the CookedWith Entity)?

1 Answer

0 votes
by

I think I found my answer and modelled it in the same way as the course registration example in https://docs.datomic.com/cloud/schema/schema-reference.html#composite-tuples

...