modelling multiple many-to-many relationships in datomic
Maybe I'm still thinking sql but I'm having trouble writing the datomic schema for a simple blog. I don't really understand the :db/cardinality attribute and what it means. In terms of this type of system, how do we model these relationships The system supports multiple users Each user may have many categories Each user may have many articles Each category may have many users Each category may have many articles Each article may have many comments Each comment has one user Look at the following diagram and read the full code sample (schema, sample data and queries) at https://gist.github.com