Please enable JavaScript.
Coggle requires JavaScript to display documents.
Bandmates, lots of reducers.. maybe don't need this much - Coggle…
Bandmates
back
-
models
MainModels
Profile
migration
-
-
-
-
-
is_admin: boolean, default: false
model
-
-
-
has_many :tags, through: :join_profile_tag
-
has_many :cities, through: :join_profile_city
-
-
has_many :instruments, through: :join_profile_instruments
-
-
Article
migration
-
-
type: string (global_post, profile_event, group_event, opinion)
-
-
is_validated: boolean, default: true (and false for global_posts)
model
belongs_to :profile, index: true
-
-
Group
-
model
-
has_many :groups, through: :join_profile_group
Friendship
migration
user_id: integer, as inviting
user_id: integer, as invited
-
model
-
belongs_to :user, as inviting
belongs_to :user, as invited
-
ArticleComment
migration
user_id: integer, as author
-
-
-
model
belongs_to :user, index: true
belongs_to :article, index: true
FieldModels
ProfilePicture
-
-
migration
belongs_to :profile, index: true
Tag
-
model
has_many :profiles, through: :join_profile_tag
-
City
-
model
has_many :profiles, through: :join_profile_city
-
Instrument
-
model
has_many :profiles, through: :join_profile_instrument
-
ArticleLink
-
migration
-
article_id: integer (need to specify it?) if yes, do it for each belongs_to
JoinTables
-
-
-
SubscriptionTable
migration
profile_id: integer, as subscriber
-
model
belongs_to :profile, as subscriber
belongs_to :profile, as followed
-
-
arborescence
Log in / Register
Home (discovery)
-
-
-
-
social (groupes, amis, messages)
-
article
-
-
-
titre, photo, description, lien
-
-