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

168 lines
3.8 KiB
JSON

{
"tickets": [
{
"id": 1,
"passengers_count": 1,
"ticket_cost": 2680,
"flightId": 5
},
{
"id": 2,
"passengers_count": 2,
"ticket_cost": 4870,
"flightId": 6
},
{
"passengers_count": 6,
"ticket_cost": 21420,
"flightId": 14,
"id": 3
},
{
"passengers_count": 3,
"ticket_cost": 15000,
"flightId": 12,
"id": 4
}
],
"flights": [
{
"direction_from": "Санкт-Петербург",
"direction_to": "Сочи",
"departure_date": "17-12-2023",
"arrival_date": "17-12-2023",
"one_ticket_cost": 2435,
"id": 5
},
{
"id": 6,
"direction_from": "Ульяновск",
"direction_to": "Москва",
"departure_date": "26-12-2023",
"arrival_date": "26-12-2023",
"one_ticket_cost": 2680
},
{
"id": 7,
"direction_from": "Хабаровск",
"direction_to": "Кострома",
"departure_date": "5-1-2024",
"arrival_date": "5-1-2024",
"one_ticket_cost": 6870
},
{
"direction_from": "Астрахань",
"direction_to": "Нижний Новгород",
"departure_date": "28-1-2024",
"arrival_date": "28-1-2024",
"one_ticket_cost": 8720,
"id": 8
},
{
"direction_from": "Крым",
"direction_to": "Мурманск",
"departure_date": "27-1-2024",
"arrival_date": "28-1-2024",
"one_ticket_cost": 17800,
"id": 9
},
{
"direction_from": "Вологда",
"direction_to": "Астана",
"departure_date": "14-1-2024",
"arrival_date": "15-1-2024",
"one_ticket_cost": 10800,
"id": 10
},
{
"direction_from": "Москва",
"direction_to": "Крым",
"departure_date": "24-12-2023",
"arrival_date": "31-12-2023",
"one_ticket_cost": 3850,
"id": 11
},
{
"direction_from": "Кострома",
"direction_to": "Хабаровск",
"departure_date": "29-12-2023",
"arrival_date": "29-12-2023",
"one_ticket_cost": 5000,
"id": 12
},
{
"direction_from": "Москва",
"direction_to": "Кострома",
"departure_date": "6-1-2024",
"arrival_date": "6-1-2024",
"one_ticket_cost": 35740,
"id": 13
},
{
"direction_from": "Москва",
"direction_to": "Ульяновск",
"departure_date": "13-1-2024",
"arrival_date": "14-1-2024",
"one_ticket_cost": 3570,
"id": 14
}
],
"users": [
{
"id": 2,
"surname": "Артамонова",
"name": "Татьяна",
"patronymic": "Валерьевна",
"date_of_birth": "7-11-2003",
"email": "usertt@mail.ru",
"password": "usertt",
"role": "User"
},
{
"id": 8,
"surname": "Артамонова",
"name": "Татьяна",
"patronymic": "Валерьевна",
"date_of_birth": "7-11-2003",
"email": "admin@mail.ru",
"password": "admin",
"role": "Admin"
},
{
"surname": "user",
"name": "user",
"patronymic": "user",
"date_of_birth": "13-9-2012",
"email": "user66@mail.ru",
"password": "user66",
"role": "User",
"id": 9
}
],
"rents": [
{
"id": 1,
"status": "Ожидает подтверждения",
"userId": 2,
"ticketId": 1
},
{
"id": 2,
"status": "Ожидает подтверждения",
"userId": 8,
"ticketId": 2
},
{
"status": "Ожидает подтверждения",
"userId": 2,
"ticketId": 3,
"id": 3
},
{
"status": "Ожидает подтверждения",
"userId": 8,
"ticketId": 4,
"id": 4
}
]
}