4 Models “classiques”
Artist
- id :primary_key
- name :string
- name_tag :string
Album
- id :primary_key
- name :string
- year :integer
- rating :float
Article
- id :primary_key
- title :string
- content :text
- date :datetime
- published :boolean
Review
- id :primary_key
- title :string
- content :text
- date :datetime
- published :boolean
3 join tables many_to_many
Album/Artist (table albums_artists)
- album_id
- artist_id
Album/Article (table albums_articles)
- album_id
- article_id
Article/Artist (table articles_artists)
- article_id
- artist_id
Faut bien faire gaffe à l’ordre des mots, au singulier/pluriel, aux minuscules/majuscules…
Flux RSS