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

168 lines
3.8 KiB
JSON
Raw Normal View History

2023-12-23 09:14:46 +04:00
{
"tickets": [
{
"id": 1,
"passengers_count": 1,
"ticket_cost": 2680,
2023-12-28 13:20:02 +04:00
"flightId": 5
},
{
"id": 2,
"passengers_count": 2,
"ticket_cost": 4870,
2023-12-28 13:20:02 +04:00
"flightId": 6
2023-12-28 01:29:20 +04:00
},
{
"passengers_count": 6,
2023-12-28 13:20:02 +04:00
"ticket_cost": 21420,
"flightId": 14,
"id": 3
2023-12-28 01:29:20 +04:00
},
{
"passengers_count": 3,
2023-12-28 13:20:02 +04:00
"ticket_cost": 15000,
"flightId": 12,
"id": 4
2023-12-23 09:14:46 +04:00
}
],
"flights": [
2023-12-23 09:14:46 +04:00
{
"direction_from": "Санкт-Петербург",
2023-12-23 09:14:46 +04:00
"direction_to": "Сочи",
"departure_date": "17-12-2023",
"arrival_date": "17-12-2023",
"one_ticket_cost": 2435,
"id": 5
},
{
2023-12-23 11:31:13 +04:00
"id": 6,
"direction_from": "Ульяновск",
"direction_to": "Москва",
2023-12-23 09:14:46 +04:00
"departure_date": "26-12-2023",
"arrival_date": "26-12-2023",
2023-12-23 11:31:13 +04:00
"one_ticket_cost": 2680
},
2023-12-23 09:14:46 +04:00
{
"id": 7,
"direction_from": "Хабаровск",
"direction_to": "Кострома",
2023-12-23 09:14:46 +04:00
"departure_date": "5-1-2024",
"arrival_date": "5-1-2024",
"one_ticket_cost": 6870
2023-12-23 09:14:46 +04:00
},
{
"direction_from": "Астрахань",
2023-12-23 09:14:46 +04:00
"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
2023-12-28 01:29:20 +04:00
},
{
"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
2023-12-23 09:14:46 +04:00
}
],
"users": [
{
"id": 2,
"surname": "Артамонова",
"name": "Татьяна",
"patronymic": "Валерьевна",
2023-12-23 09:14:46 +04:00
"date_of_birth": "7-11-2003",
"email": "usertt@mail.ru",
"password": "usertt",
"role": "User"
2023-12-23 09:14:46 +04:00
},
{
"id": 8,
"surname": "Артамонова",
"name": "Татьяна",
"patronymic": "Валерьевна",
"date_of_birth": "7-11-2003",
"email": "admin@mail.ru",
"password": "admin",
"role": "Admin"
2023-12-28 01:29:20 +04:00
},
{
"surname": "user",
"name": "user",
"patronymic": "user",
"date_of_birth": "13-9-2012",
"email": "user66@mail.ru",
"password": "user66",
"role": "User",
"id": 9
2023-12-23 09:14:46 +04:00
}
],
"rents": [
{
2023-12-23 09:14:46 +04:00
"id": 1,
"status": "Ожидает подтверждения",
"userId": 2,
"ticketId": 1
},
{
"id": 2,
"status": "Ожидает подтверждения",
2023-12-28 13:20:02 +04:00
"userId": 8,
"ticketId": 2
},
2023-12-28 01:29:20 +04:00
{
"status": "Ожидает подтверждения",
"userId": 2,
2023-12-28 13:20:02 +04:00
"ticketId": 3,
2023-12-28 01:29:20 +04:00
"id": 3
},
{
"status": "Ожидает подтверждения",
"userId": 8,
2023-12-28 13:20:02 +04:00
"ticketId": 4,
"id": 4
2023-12-28 01:29:20 +04:00
}
2023-12-23 09:14:46 +04:00
]
}