dmarjenburgh / memwise

A simple application to help you remember/rehearse words with customizable 'flashcards'
Eclipse Public License 1.0
9 stars 0 forks source link

Datomic schema design #1

Open dmarjenburgh opened 9 years ago

dmarjenburgh commented 9 years ago

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.