-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsample_data_tickets.hbs
More file actions
38 lines (38 loc) · 1.48 KB
/
sample_data_tickets.hbs
File metadata and controls
38 lines (38 loc) · 1.48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
{
"docs": [
{{#repeat 8000}}
{
"_id": "{{@index}}",
"firstname": "{{firstName}}",
"lastname": "{{lastName}}",
"tickets": [
{{#repeat (int 2 5)}}
{
"trip_id": "{{int 1 2000}}",
"station_departure": "{{random 'Paris' 'Troyes' 'Romilly-sur-Seine' 'Nogent-sur-Seine'}}",
"station_arrival": "{{random 'Paris' 'Troyes' 'Romilly-sur-Seine' 'Nogent-sur-Seine'}}",
"datetime_departure": "{{date '2025-01-01T00:00+00:00' '2025-01-01T11:59+00:00' 'YYYY-MM-DD HH:mm'}}",
"datetime_arrival": "{{date '2025-01-01T12:00+00:00' '2025-01-01T23:59+00:00' 'YYYY-MM-DD HH:mm'}}",
"duration": "{{time '00:30' '03:04'}}",
"total_price":"{{int 10 500}}",
"passengers": [
{{#repeat (int 1 4)}}
{
"passenger_id": "{{@index}}",
"firstname": "{{firstName}}",
"lastname": "{{lastName}}",
"age": "{{int 1 90}}",
"class":"{{random "Seconde" "Première"}}",
"ticket_price":"{{int 10 150}}",
"seat":"{{int 10 150}}",
"ticket_url":"https://nbviewer.org/github/UTT-GL03/EcoTrain/blob/billets/frontend/public/placeholder_ticket.pdf"
}
{{/repeat}}
]
}
{{/repeat}}
]
}
{{/repeat}}
]
}