PIbd-32_Artamonova_T.V._Lab.../server/data.json

134 lines
3.1 KiB
JSON
Raw Normal View History

2023-12-23 09:14:46 +04:00
{
"tickets": [
{
"id": 1,
"passengers_count": 1,
"ticket_cost": 1000,
"flightId": 2
}
],
"flights": [
{
"id": 2,
"direction_from": "a",
"direction_to": "b",
"departure_date": "1-1-2024",
"arrival_date": "1-1-2024",
"tickets_count": 100,
"one_ticket_cost": 1000
},
{
"direction_from": "ульск",
"direction_to": "мск",
"departure_date": "24-12-2023",
"arrival_date": "24-12-2023",
"tickets_count": 20,
"one_ticket_cost": 2000,
"id": 3
},
{
"direction_from": "Санкт-Петербург ",
"direction_to": "Сочи",
"departure_date": "17-12-2023",
"arrival_date": "17-12-2023",
"tickets_count": 320,
"one_ticket_cost": 2435,
"id": 5
},
{
"direction_from": "Ульяновск ",
"direction_to": "Москва ",
"departure_date": "26-12-2023",
"arrival_date": "26-12-2023",
"tickets_count": 40,
"one_ticket_cost": 2680,
"id": 6
},
{
"direction_from": "Хабаровск ",
"direction_to": "Кострома ",
"departure_date": "5-1-2024",
"arrival_date": "5-1-2024",
"tickets_count": 200,
"one_ticket_cost": 6870,
"id": 7
},
{
"direction_from": "Астрахань ",
"direction_to": "Нижний Новгород",
"departure_date": "28-1-2024",
"arrival_date": "28-1-2024",
"tickets_count": 68,
"one_ticket_cost": 8720,
"id": 8
},
{
"direction_from": "Крым",
"direction_to": "Мурманск",
"departure_date": "27-1-2024",
"arrival_date": "28-1-2024",
"tickets_count": 100,
"one_ticket_cost": 17800,
"id": 9
},
{
"direction_from": "Вологда",
"direction_to": "Астана",
"departure_date": "14-1-2024",
"arrival_date": "15-1-2024",
"tickets_count": 200,
"one_ticket_cost": 10800,
"id": 10
}
],
"users": [
{
"id": 2,
"surname": "Артамонова",
"name": "Татьяна",
"patronymic": "Валерьевна",
"date_of_birth": "7-11-2003",
"email": "usertt@mail.ru",
"password": "usertt",
"role": "user"
},
{
"surname": "а",
"name": "а",
"patronymic": "а",
"date_of_birth": "17-5-2000",
"email": "user@mail.ru",
"password": "user",
"role": "user",
"id": 3
},
{
"surname": "ыщылы",
"name": "шчшчгч",
"patronymic": "шчшчшч",
"date_of_birth": "10-12-2015",
"email": "aaa@mail.ru",
"password": "aaa",
"role": "user",
"id": 4
},
{
"surname": "ыщылы",
"name": "шчшчгч",
"patronymic": "шчшчшч",
"date_of_birth": "10-12-2015",
"email": "aa@mail.ru",
"password": "aaa",
"role": "user",
"id": 5
}
],
"rents": [
{
"id": 1,
"status": "Ожидает подтверждения",
"userId": 2,
"ticketId": 1
}
]
}