This commit is contained in:
Dzejkobik007
2022-10-10 00:13:19 +02:00
parent 3d5f060b53
commit 144568e14a
6 changed files with 0 additions and 0 deletions

62
si/movies/yaml/yaml.md Normal file
View File

@@ -0,0 +1,62 @@
# Movies - yaml
## Popis
Struktura souboru yaml pro import/export z/do database movies
### movie
- id
- name
- year
- country_id
### country
- id
- name
### movie_has_genre
- movie_id
- genre_id
### genre
- id
- name
## 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
```