Skip to content
This repository was archived by the owner on Jan 24, 2018. It is now read-only.

Database logic model

toxis edited this page Jan 10, 2012 · 1 revision

This is a preview of our database logic model (some columns were ignored because they are automatically generated by Rails) BDD Schema

There is a relation 'many to many' between Users and Bands. A user can be member of one or more bands (a user can too not belong to a band). Bands can have at least one or more users (admins of the band). The table 'bandrelations' allows for this relationship.

The relation between Users, Bands and Posts is particular. In fact, Posts is polymorphic to differentiate if a comment is posted by a user or a band (column: comment_type).

Clone this wiki locally