We need a better thought out and more complete Datomic schema then what is there currently.
The data model is as follows.
Each user has zero or more decks.
Each deck has a unique name as identifier, an attribute denoting the number of fields each card in that deck has and zero or more cards.
Each card has a a fixed number of fields defined by the deck it belongs to.
We should be able to order the cards by number and retrieve the fields in the same order as they are saved. A user is free to reorder and save the cards in the deck at any time.
The current schema supports these requirements only partly.
The application and the test also has to be updated to support the new schema.
We need a better thought out and more complete Datomic schema then what is there currently.
The data model is as follows. Each user has zero or more decks. Each deck has a unique name as identifier, an attribute denoting the number of fields each card in that deck has and zero or more cards. Each card has a a fixed number of fields defined by the deck it belongs to.
We should be able to order the cards by number and retrieve the fields in the same order as they are saved. A user is free to reorder and save the cards in the deck at any time.
The current schema supports these requirements only partly. The application and the test also has to be updated to support the new schema.