add movies
This commit is contained in:
40
si/movies/yaml.md
Normal file
40
si/movies/yaml.md
Normal file
@@ -0,0 +1,40 @@
|
||||
# Movies - yaml
|
||||
|
||||
## Rozbor
|
||||
|
||||
```mermaid
|
||||
graph TD;
|
||||
movie-->movie_has_genre;
|
||||
movie_has_genre-->genre;
|
||||
movie-->country;
|
||||
```
|
||||
|
||||
## EXAMPLE:
|
||||
```yaml
|
||||
movie:
|
||||
- id: 1
|
||||
name: Harry Potter a Fénixův řád
|
||||
year: 2007
|
||||
country_id: 2
|
||||
- id: 2
|
||||
name: Hostitel
|
||||
year: 2013
|
||||
country_id: 1
|
||||
country:
|
||||
- id: 1
|
||||
name: USA
|
||||
- id: 2
|
||||
name: Velká Británie
|
||||
movie_has_genre:
|
||||
- movie_id: 2
|
||||
genre_id: 1
|
||||
- movie_id: 2
|
||||
genre_id: 2
|
||||
- movie_id: 1
|
||||
genre_id: 2
|
||||
genre:
|
||||
- id: 1
|
||||
name: Thriller
|
||||
- id: 2
|
||||
name: Fantazy
|
||||
```
|
||||
Reference in New Issue
Block a user