fix
This commit is contained in:
@@ -1,90 +1,4 @@
|
|||||||
# Movies - json
|
# Movies - json
|
||||||
# Movies - json
|
|
||||||
## Popis
|
|
||||||
|
|
||||||
Struktura souboru json 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:
|
|
||||||
```json
|
|
||||||
{
|
|
||||||
"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"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
## Popis
|
## Popis
|
||||||
|
|
||||||
Struktura souboru json pro import/export z/do database movies
|
Struktura souboru json pro import/export z/do database movies
|
||||||
|
|||||||
Reference in New Issue
Block a user