forked from Traewelling/traewelling
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_ide_helper_models.php
More file actions
1336 lines (1293 loc) · 77 KB
/
_ide_helper_models.php
File metadata and controls
1336 lines (1293 loc) · 77 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<?php
// @formatter:off
// phpcs:ignoreFile
/**
* A helper file for your Eloquent Models
* Copy the phpDocs from this file to the correct Model,
* And remove them from this file, to prevent double declarations.
*
* @author Barry vd. Heuvel <barryvdh@gmail.com>
*/
namespace App\Models{
/**
* @property string $id
* @property string $type
* @property string|null $url
* @property \Illuminate\Support\Carbon $active_from
* @property \Illuminate\Support\Carbon|null $active_until
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @property-read \Illuminate\Database\Eloquent\Collection<int, \App\Models\AlertTranslation> $translations
* @property-read int|null $translations_count
* @method static \Illuminate\Database\Eloquent\Builder<static>|Alert newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder<static>|Alert newQuery()
* @method static \Illuminate\Database\Eloquent\Builder<static>|Alert query()
* @method static \Illuminate\Database\Eloquent\Builder<static>|Alert whereActiveFrom($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Alert whereActiveUntil($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Alert whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Alert whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Alert whereType($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Alert whereUpdatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Alert whereUrl($value)
*/
class Alert extends \Eloquent {}
}
namespace App\Models{
/**
* @property string $id
* @property string $alert_id
* @property string $locale
* @property string $title
* @property string $content
* @property string|null $url
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @property-read \App\Models\Alert|null $banner
* @method static \Illuminate\Database\Eloquent\Builder<static>|AlertTranslation newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder<static>|AlertTranslation newQuery()
* @method static \Illuminate\Database\Eloquent\Builder<static>|AlertTranslation query()
* @method static \Illuminate\Database\Eloquent\Builder<static>|AlertTranslation whereAlertId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|AlertTranslation whereContent($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|AlertTranslation whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|AlertTranslation whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|AlertTranslation whereLocale($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|AlertTranslation whereTitle($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|AlertTranslation whereUpdatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|AlertTranslation whereUrl($value)
*/
class AlertTranslation extends \Eloquent {}
}
namespace App\Models{
/**
* @property string $id
* @property string $name
* @property int $adminLevel
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @property-read \App\Models\AreasStationsMap|null $pivot
* @property-read \Illuminate\Database\Eloquent\Collection<int, \App\Models\Station> $stations
* @property-read int|null $stations_count
* @method static \Illuminate\Database\Eloquent\Builder<static>|Area newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder<static>|Area newQuery()
* @method static \Illuminate\Database\Eloquent\Builder<static>|Area query()
* @method static \Illuminate\Database\Eloquent\Builder<static>|Area whereAdminLevel($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Area whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Area whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Area whereName($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Area whereUpdatedAt($value)
*/
class Area extends \Eloquent {}
}
namespace App\Models{
/**
* @property string $id
* @property string $station_id
* @property string $area_id
* @property bool $default Whether it's the default area for the station
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @property-read \App\Models\Area $area
* @property-read \App\Models\Station $station
* @method static \Illuminate\Database\Eloquent\Builder<static>|AreasStationsMap newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder<static>|AreasStationsMap newQuery()
* @method static \Illuminate\Database\Eloquent\Builder<static>|AreasStationsMap query()
* @method static \Illuminate\Database\Eloquent\Builder<static>|AreasStationsMap whereAreaId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|AreasStationsMap whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|AreasStationsMap whereDefault($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|AreasStationsMap whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|AreasStationsMap whereStationId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|AreasStationsMap whereUpdatedAt($value)
*/
class AreasStationsMap extends \Eloquent {}
}
namespace App\Models{
/**
* @todo rename table to "Checkin" (without Train - we have more than just trains)
* @todo merge model with "Status" because the difference between trip sources (HAFAS,
* User, and future sources) should be handled in the Trip model.
* @todo use the `id` from trips, instead of the hafas trip id - this is duplicated data
* @todo drop the `departure` and `arrival` columns and use the stopover instead
* @property int $id
* @property int $status_id
* @property int|null $user_id workaround for unique key
* @property string $trip_id
* @property int|null $origin_stopover_id
* @property int|null $destination_stopover_id
* @property int|null $distance meters
* @property int $duration Duration in minutes. Cached value with real time and manual data. Null if not yet calculated.
* @property $departure
* @property $manual_departure User-defined override of the departure
* @property $arrival
* @property $manual_arrival User-defined override of the arrival
* @property int|null $points
* @property bool $forced
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @property-read \App\Models\Stopover|null $destinationStopover
* @property-read \Illuminate\Support\Collection<Status> $also_on_this_connection
* @property-read \stdClass $display_arrival
* @property-read \stdClass $display_departure
* @property-read float $speed
* @property-read \App\Models\Stopover|null $originStopover
* @property-read \App\Models\Status $status
* @property-read \App\Models\Trip|null $trip
* @property-read \App\Models\User|null $user
* @method static \Database\Factories\CheckinFactory factory($count = null, $state = [])
* @method static \Illuminate\Database\Eloquent\Builder<static>|Checkin newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder<static>|Checkin newQuery()
* @method static \Illuminate\Database\Eloquent\Builder<static>|Checkin query()
* @method static \Illuminate\Database\Eloquent\Builder<static>|Checkin whereArrival($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Checkin whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Checkin whereDeparture($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Checkin whereDestinationStopoverId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Checkin whereDistance($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Checkin whereDuration($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Checkin whereForced($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Checkin whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Checkin whereManualArrival($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Checkin whereManualDeparture($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Checkin whereOriginStopoverId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Checkin wherePoints($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Checkin whereStatusId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Checkin whereTripId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Checkin whereUpdatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Checkin whereUserId($value)
*/
class Checkin extends \Eloquent {}
}
namespace App\Models{
/**
* @property int $id
* @property string $name
* @property string $slug
* @property string|null $hashtag
* @property string|null $host
* @property string|null $url
* @property int|null $station_id
* @property \Illuminate\Support\Carbon $checkin_start
* @property \Illuminate\Support\Carbon $checkin_end
* @property \Illuminate\Support\Carbon|null $event_start If different from checkin_start
* @property \Illuminate\Support\Carbon|null $event_end If different from checkin_end
* @property int|null $approved_by
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @property-read \Illuminate\Database\Eloquent\Collection<int, \Spatie\Activitylog\Models\Activity> $activities
* @property-read int|null $activities_count
* @property-read \App\Models\User|null $approvedBy
* @property-read \Carbon\Carbon $end
* @property-read bool $has_extended_checkin
* @property-read bool $is_pride
* @property-read \Carbon\Carbon $start
* @property-read int $total_distance
* @property-read int $total_duration
* @property-read \App\Models\Station|null $station
* @property-read \Illuminate\Database\Eloquent\Collection<int, \App\Models\Status> $statuses
* @property-read int|null $statuses_count
* @method static \Database\Factories\EventFactory factory($count = null, $state = [])
* @method static \Illuminate\Database\Eloquent\Builder<static>|Event newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder<static>|Event newQuery()
* @method static \Illuminate\Database\Eloquent\Builder<static>|Event query()
* @method static \Illuminate\Database\Eloquent\Builder<static>|Event whereApprovedBy($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Event whereCheckinEnd($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Event whereCheckinStart($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Event whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Event whereEventEnd($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Event whereEventStart($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Event whereHashtag($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Event whereHost($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Event whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Event whereName($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Event whereSlug($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Event whereStationId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Event whereUpdatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Event whereUrl($value)
*/
class Event extends \Eloquent {}
}
namespace App\Models{
/**
* @property int $id
* @property int|null $user_id
* @property string $name
* @property string|null $host
* @property string|null $url
* @property int|null $station_id
* @property \Illuminate\Support\Carbon|null $begin
* @property \Illuminate\Support\Carbon|null $end
* @property string|null $hashtag
* @property int|null $admin_notification_id
* @property bool $processed
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @property-read \App\Models\Station|null $station
* @property-read \App\Models\User|null $user
* @method static \Database\Factories\EventSuggestionFactory factory($count = null, $state = [])
* @method static \Illuminate\Database\Eloquent\Builder<static>|EventSuggestion newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder<static>|EventSuggestion newQuery()
* @method static \Illuminate\Database\Eloquent\Builder<static>|EventSuggestion query()
* @method static \Illuminate\Database\Eloquent\Builder<static>|EventSuggestion whereAdminNotificationId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|EventSuggestion whereBegin($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|EventSuggestion whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|EventSuggestion whereEnd($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|EventSuggestion whereHashtag($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|EventSuggestion whereHost($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|EventSuggestion whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|EventSuggestion whereName($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|EventSuggestion whereProcessed($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|EventSuggestion whereStationId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|EventSuggestion whereUpdatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|EventSuggestion whereUrl($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|EventSuggestion whereUserId($value)
*/
class EventSuggestion extends \Eloquent {}
}
namespace App\Models{
/**
* @property int $id
* @property int $user_id
* @property int $follow_id
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @property-read \App\Models\User $following
* @property-read \App\Models\User $user
* @method static \Database\Factories\FollowFactory factory($count = null, $state = [])
* @method static \Illuminate\Database\Eloquent\Builder<static>|Follow newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder<static>|Follow newQuery()
* @method static \Illuminate\Database\Eloquent\Builder<static>|Follow query()
* @method static \Illuminate\Database\Eloquent\Builder<static>|Follow whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Follow whereFollowId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Follow whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Follow whereUpdatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Follow whereUserId($value)
*/
class Follow extends \Eloquent {}
}
namespace App\Models{
/**
* @property int $id
* @property int $user_id
* @property int $follow_id
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @property-read \App\Models\User $requestedFollow
* @property-read \App\Models\User $user
* @method static \Illuminate\Database\Eloquent\Builder<static>|FollowRequest newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder<static>|FollowRequest newQuery()
* @method static \Illuminate\Database\Eloquent\Builder<static>|FollowRequest query()
* @method static \Illuminate\Database\Eloquent\Builder<static>|FollowRequest whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|FollowRequest whereFollowId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|FollowRequest whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|FollowRequest whereUpdatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|FollowRequest whereUserId($value)
*/
class FollowRequest extends \Eloquent {}
}
namespace App\Models{
/**
* @property int $id
* @property int $user_id
* @property string|null $name
* @property string $token
* @property \Illuminate\Support\Carbon|null $last_accessed
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @property-read \App\Models\User $user
* @method static \Database\Factories\IcsTokenFactory factory($count = null, $state = [])
* @method static \Illuminate\Database\Eloquent\Builder<static>|IcsToken newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder<static>|IcsToken newQuery()
* @method static \Illuminate\Database\Eloquent\Builder<static>|IcsToken query()
* @method static \Illuminate\Database\Eloquent\Builder<static>|IcsToken whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|IcsToken whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|IcsToken whereLastAccessed($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|IcsToken whereName($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|IcsToken whereToken($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|IcsToken whereUpdatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|IcsToken whereUserId($value)
*/
class IcsToken extends \Eloquent {}
}
namespace App\Models{
/**
* @property string $id
* @property string|null $name
* @property string|null $human_name
* @property string|null $attribution
* @property string|null $license_url
* @property string|null $source_url
* @property string|null $spdx
* @property int $automatically_activate_source
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @property-read \Illuminate\Database\Eloquent\Collection<int, \App\Models\MotisSourceLicense> $motisSourceLicenses
* @property-read int|null $motis_source_licenses_count
* @method static \Illuminate\Database\Eloquent\Builder<static>|License newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder<static>|License newQuery()
* @method static \Illuminate\Database\Eloquent\Builder<static>|License query()
* @method static \Illuminate\Database\Eloquent\Builder<static>|License whereAttribution($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|License whereAutomaticallyActivateSource($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|License whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|License whereHumanName($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|License whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|License whereLicenseUrl($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|License whereName($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|License whereSourceUrl($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|License whereSpdx($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|License whereUpdatedAt($value)
*/
class License extends \Eloquent {}
}
namespace App\Models{
/**
* @property int $id
* @property int $user_id
* @property int $status_id
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @property-read \App\Models\Status $status
* @property-read \App\Models\User $user
* @method static \Database\Factories\LikeFactory factory($count = null, $state = [])
* @method static \Illuminate\Database\Eloquent\Builder<static>|Like newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder<static>|Like newQuery()
* @method static \Illuminate\Database\Eloquent\Builder<static>|Like query()
* @method static \Illuminate\Database\Eloquent\Builder<static>|Like whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Like whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Like whereStatusId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Like whereUpdatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Like whereUserId($value)
*/
class Like extends \Eloquent {}
}
namespace App\Models{
/**
* @property int $id
* @property string $domain
* @property string $client_id
* @property string $client_secret
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @property-read \Illuminate\Database\Eloquent\Collection<int, \App\Models\SocialLoginProfile> $socialProfiles
* @property-read int|null $social_profiles_count
* @method static \Illuminate\Database\Eloquent\Builder<static>|MastodonServer newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder<static>|MastodonServer newQuery()
* @method static \Illuminate\Database\Eloquent\Builder<static>|MastodonServer query()
* @method static \Illuminate\Database\Eloquent\Builder<static>|MastodonServer whereClientId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|MastodonServer whereClientSecret($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|MastodonServer whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|MastodonServer whereDomain($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|MastodonServer whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|MastodonServer whereUpdatedAt($value)
*/
class MastodonServer extends \Eloquent {}
}
namespace App\Models{
/**
* @property int $id
* @property int $status_id
* @property int $mentioned_id
* @property int $position
* @property int $length
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @property-read \App\Models\User|null $mentioned
* @property-read \App\Models\Status $status
* @method static \Illuminate\Database\Eloquent\Builder<static>|Mention newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder<static>|Mention newQuery()
* @method static \Illuminate\Database\Eloquent\Builder<static>|Mention query()
* @method static \Illuminate\Database\Eloquent\Builder<static>|Mention whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Mention whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Mention whereLength($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Mention whereMentionedId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Mention wherePosition($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Mention whereStatusId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Mention whereUpdatedAt($value)
*/
class Mention extends \Eloquent {}
}
namespace App\Models{
/**
* @property string $id
* @property string|null $provider
* @property string|null $country
* @property string|null $name
* @property string|null $human_name
* @property string|null $license
* @property string|null $license_url
* @property string|null $source_url
* @property string|null $spdx
* @property string|null $license_id
* @property int $active
* @property int $force_active
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @property-read \App\Models\License|null $manualLicense
* @property-read \Illuminate\Database\Eloquent\Collection<int, \App\Models\Trip> $trips
* @property-read int|null $trips_count
* @method static \Illuminate\Database\Eloquent\Builder<static>|MotisSourceLicense newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder<static>|MotisSourceLicense newQuery()
* @method static \Illuminate\Database\Eloquent\Builder<static>|MotisSourceLicense query()
* @method static \Illuminate\Database\Eloquent\Builder<static>|MotisSourceLicense whereActive($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|MotisSourceLicense whereCountry($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|MotisSourceLicense whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|MotisSourceLicense whereForceActive($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|MotisSourceLicense whereHumanName($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|MotisSourceLicense whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|MotisSourceLicense whereLicense($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|MotisSourceLicense whereLicenseId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|MotisSourceLicense whereLicenseUrl($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|MotisSourceLicense whereName($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|MotisSourceLicense whereProvider($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|MotisSourceLicense whereSourceUrl($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|MotisSourceLicense whereSpdx($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|MotisSourceLicense whereUpdatedAt($value)
*/
class MotisSourceLicense extends \Eloquent {}
}
namespace App\Models{
/**
* @property int $id
* @property int|null $user_id
* @property string $name
* @property string|null $secret
* @property string|null $provider
* @property string $redirect
* @property int $webhooks_enabled
* @property string|null $privacy_policy_url
* @property string|null $authorized_webhook_url
* @property bool $personal_access_client
* @property bool $password_client
* @property bool $revoked
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @property-read \Illuminate\Database\Eloquent\Collection<int, \Laravel\Passport\AuthCode> $authCodes
* @property-read int|null $auth_codes_count
* @property-read string|null $plain_secret
* @property-read \Illuminate\Database\Eloquent\Collection<int, \Laravel\Passport\Token> $tokens
* @property-read int|null $tokens_count
* @property-read \App\Models\User|null $user
* @method static \Laravel\Passport\Database\Factories\ClientFactory factory($count = null, $state = [])
* @method static \Illuminate\Database\Eloquent\Builder<static>|OAuthClient newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder<static>|OAuthClient newQuery()
* @method static \Illuminate\Database\Eloquent\Builder<static>|OAuthClient query()
* @method static \Illuminate\Database\Eloquent\Builder<static>|OAuthClient whereAuthorizedWebhookUrl($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|OAuthClient whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|OAuthClient whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|OAuthClient whereName($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|OAuthClient wherePasswordClient($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|OAuthClient wherePersonalAccessClient($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|OAuthClient wherePrivacyPolicyUrl($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|OAuthClient whereProvider($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|OAuthClient whereRedirect($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|OAuthClient whereRevoked($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|OAuthClient whereSecret($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|OAuthClient whereUpdatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|OAuthClient whereUserId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|OAuthClient whereWebhooksEnabled($value)
*/
class OAuthClient extends \Eloquent {}
}
namespace App\Models{
/**
* @property int $id
* @property string|null $wikidata_id Wikidata ID of the operator
* @property string $name
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @property-read \Illuminate\Database\Eloquent\Collection<int, \App\Models\OperatorIdentifier> $identifiers
* @property-read int|null $identifiers_count
* @property-read \Illuminate\Database\Eloquent\Collection<int, \App\Models\Trip> $trips
* @property-read int|null $trips_count
* @method static \Database\Factories\OperatorFactory factory($count = null, $state = [])
* @method static \Illuminate\Database\Eloquent\Builder<static>|Operator newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder<static>|Operator newQuery()
* @method static \Illuminate\Database\Eloquent\Builder<static>|Operator query()
* @method static \Illuminate\Database\Eloquent\Builder<static>|Operator whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Operator whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Operator whereName($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Operator whereUpdatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Operator whereWikidataId($value)
*/
class Operator extends \Eloquent {}
}
namespace App\Models{
/**
* @property string $id
* @property int $operator_id
* @property string $type e.g. hafas, motis
* @property string $identifier
* @property string|null $source Source of the identifier, e.g. motis_source
* @property string|null $name
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @property-read \App\Models\Operator $operator
* @method static \Illuminate\Database\Eloquent\Builder<static>|OperatorIdentifier newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder<static>|OperatorIdentifier newQuery()
* @method static \Illuminate\Database\Eloquent\Builder<static>|OperatorIdentifier query()
* @method static \Illuminate\Database\Eloquent\Builder<static>|OperatorIdentifier whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|OperatorIdentifier whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|OperatorIdentifier whereIdentifier($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|OperatorIdentifier whereName($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|OperatorIdentifier whereOperatorId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|OperatorIdentifier whereSource($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|OperatorIdentifier whereType($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|OperatorIdentifier whereUpdatedAt($value)
*/
class OperatorIdentifier extends \Eloquent {}
}
namespace App\Models{
/**
* @property int $id
* @property int|null $parent_id
* @property string $hash
* @property string $polyline
* @property string|null $source
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @property-read PolyLine|null $parent
* @property-read \Illuminate\Database\Eloquent\Collection<int, \App\Models\Trip> $trips
* @property-read int|null $trips_count
* @method static \Database\Factories\PolyLineFactory factory($count = null, $state = [])
* @method static \Illuminate\Database\Eloquent\Builder<static>|PolyLine newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder<static>|PolyLine newQuery()
* @method static \Illuminate\Database\Eloquent\Builder<static>|PolyLine query()
* @method static \Illuminate\Database\Eloquent\Builder<static>|PolyLine whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|PolyLine whereHash($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|PolyLine whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|PolyLine whereParentId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|PolyLine wherePolyline($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|PolyLine whereSource($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|PolyLine whereUpdatedAt($value)
*/
class PolyLine extends \Eloquent {}
}
namespace App\Models{
/**
* @property int $id
* @property string $body_md_de
* @property string $body_md_en
* @property \Illuminate\Support\Carbon $valid_at
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @method static \Illuminate\Database\Eloquent\Builder<static>|PrivacyAgreement newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder<static>|PrivacyAgreement newQuery()
* @method static \Illuminate\Database\Eloquent\Builder<static>|PrivacyAgreement query()
* @method static \Illuminate\Database\Eloquent\Builder<static>|PrivacyAgreement whereBodyMdDe($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|PrivacyAgreement whereBodyMdEn($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|PrivacyAgreement whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|PrivacyAgreement whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|PrivacyAgreement whereUpdatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|PrivacyAgreement whereValidAt($value)
*/
class PrivacyAgreement extends \Eloquent {}
}
namespace App\Models{
/**
* @property string $id
* @property int $user_id
* @property \App\Enum\ProfileLinkName $name
* @property string $url
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @property-read \App\Models\User $user
* @method static \Illuminate\Database\Eloquent\Builder<static>|ProfileLink newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder<static>|ProfileLink newQuery()
* @method static \Illuminate\Database\Eloquent\Builder<static>|ProfileLink query()
* @method static \Illuminate\Database\Eloquent\Builder<static>|ProfileLink whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|ProfileLink whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|ProfileLink whereName($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|ProfileLink whereUpdatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|ProfileLink whereUrl($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|ProfileLink whereUserId($value)
*/
class ProfileLink extends \Eloquent {}
}
namespace App\Models{
/**
* @property int $id
* @property \App\Enum\Report\ReportStatus $status Enum ReportStatus
* @property string $subject_type
* @property int $subject_id
* @property \App\Enum\Report\ReportReason|null $reason Enum ReportReason or null.
* @property string|null $description
* @property int|null $reporter_id
* @property int|null $admin_notification_id
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @property-read \Illuminate\Database\Eloquent\Collection<int, \Spatie\Activitylog\Models\Activity> $activities
* @property-read int|null $activities_count
* @property-read \App\Models\User|null $reporter
* @method static \Illuminate\Database\Eloquent\Builder<static>|Report newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder<static>|Report newQuery()
* @method static \Illuminate\Database\Eloquent\Builder<static>|Report query()
* @method static \Illuminate\Database\Eloquent\Builder<static>|Report whereAdminNotificationId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Report whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Report whereDescription($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Report whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Report whereReason($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Report whereReporterId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Report whereStatus($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Report whereSubjectId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Report whereSubjectType($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Report whereUpdatedAt($value)
*/
class Report extends \Eloquent {}
}
namespace App\Models{
/**
* @property string $id
* @property int $from_station_id
* @property int $to_station_id
* @property int $distance Distance in meters
* @property int $duration Duration in seconds
* @property string|null $path_type Type of routing path, e.g., rail, road, trail
* @property string $polyline
* @property int $polyline_precision
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @property-read \App\Models\Station $fromStation
* @property-read \Illuminate\Database\Eloquent\Collection<int, \App\Models\Stopover> $stopOvers
* @property-read int|null $stop_overs_count
* @property-read \App\Models\Station $toStation
* @property-read \Illuminate\Database\Eloquent\Collection<int, \App\Models\Trip> $trips
* @property-read int|null $trips_count
* @method static \Database\Factories\RouteSegmentFactory factory($count = null, $state = [])
* @method static \Illuminate\Database\Eloquent\Builder<static>|RouteSegment newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder<static>|RouteSegment newQuery()
* @method static \Illuminate\Database\Eloquent\Builder<static>|RouteSegment query()
* @method static \Illuminate\Database\Eloquent\Builder<static>|RouteSegment whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|RouteSegment whereDistance($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|RouteSegment whereDuration($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|RouteSegment whereFromStationId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|RouteSegment whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|RouteSegment wherePathType($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|RouteSegment wherePolyline($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|RouteSegment wherePolylinePrecision($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|RouteSegment whereToStationId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|RouteSegment whereUpdatedAt($value)
*/
class RouteSegment extends \Eloquent {}
}
namespace App\Models{
/**
* @property string $id
* @property int|null $user_id
* @property string|null $ip_address
* @property string|null $user_agent
* @property string $payload
* @property int $last_activity
* @property-read \App\Models\User|null $user
* @method static \Illuminate\Database\Eloquent\Builder<static>|Session newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder<static>|Session newQuery()
* @method static \Illuminate\Database\Eloquent\Builder<static>|Session query()
* @method static \Illuminate\Database\Eloquent\Builder<static>|Session whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Session whereIpAddress($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Session whereLastActivity($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Session wherePayload($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Session whereUserAgent($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Session whereUserId($value)
*/
class Session extends \Eloquent {}
}
namespace App\Models{
/**
* @property int $id
* @property int $user_id
* @property int|null $mastodon_id
* @property int|null $mastodon_server
* @property string|null $mastodon_token
* @property \App\Enum\MastodonVisibility $mastodon_visibility
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @property-read \App\Models\MastodonServer|null $mastodonServer
* @property-read \App\Models\User $user
* @method static \Illuminate\Database\Eloquent\Builder<static>|SocialLoginProfile newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder<static>|SocialLoginProfile newQuery()
* @method static \Illuminate\Database\Eloquent\Builder<static>|SocialLoginProfile query()
* @method static \Illuminate\Database\Eloquent\Builder<static>|SocialLoginProfile whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|SocialLoginProfile whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|SocialLoginProfile whereMastodonId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|SocialLoginProfile whereMastodonServer($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|SocialLoginProfile whereMastodonToken($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|SocialLoginProfile whereMastodonVisibility($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|SocialLoginProfile whereUpdatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|SocialLoginProfile whereUserId($value)
*/
class SocialLoginProfile extends \Eloquent {}
}
namespace App\Models{
/**
* @todo rename table to "Station" (without Train - we have more than just trains)
* @property int $id
* @property int|null $ibnr
* @property string|null $wikidata_id
* @property string|null $ifopt_a Country
* @property int|null $ifopt_b Administrative Area
* @property int|null $ifopt_c Mode or Stop Place
* @property int|null $ifopt_d Stop Place or Stop Place Component
* @property int|null $ifopt_e Stop Place Component (or unused)
* @property string|null $rilIdentifier
* @property string $name
* @property float $latitude
* @property float $longitude
* @property string|null $source
* @property int $relevance
* @property int|null $time_offset Defines the offset of the train station relative to Europe/Berlin
* @property int|null $shift_time If false, the timezone of the hafas request will not be shifted to Europe/Berlin
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @property int $identifiers_migrated
* @property-read \Illuminate\Database\Eloquent\Collection<int, \Spatie\Activitylog\Models\Activity> $activities
* @property-read int|null $activities_count
* @property-read \App\Models\AreasStationsMap|null $pivot
* @property-read \Illuminate\Database\Eloquent\Collection<int, \App\Models\Area> $areas
* @property-read int|null $areas_count
* @property-read string|null $ifopt
* @property-read string|null $localized_name
* @property-read \phpGPX\Models\Point $location
* @property-read \Illuminate\Database\Eloquent\Collection<int, \App\Models\StationName> $names
* @property-read int|null $names_count
* @property-read \Illuminate\Database\Eloquent\Collection<int, \App\Models\StationIdentifier> $stationIdentifiers
* @property-read int|null $station_identifiers_count
* @property-read \Illuminate\Database\Eloquent\Collection<int, \App\Models\Stopover> $stopovers
* @property-read int|null $stopovers_count
* @method static \Database\Factories\StationFactory factory($count = null, $state = [])
* @method static \Illuminate\Database\Eloquent\Builder<static>|Station newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder<static>|Station newQuery()
* @method static \Illuminate\Database\Eloquent\Builder<static>|Station query()
* @method static \Illuminate\Database\Eloquent\Builder<static>|Station whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Station whereIbnr($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Station whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Station whereIdentifiersMigrated($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Station whereIfoptA($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Station whereIfoptB($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Station whereIfoptC($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Station whereIfoptD($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Station whereIfoptE($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Station whereLatitude($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Station whereLongitude($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Station whereName($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Station whereRelevance($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Station whereRilIdentifier($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Station whereShiftTime($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Station whereSource($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Station whereTimeOffset($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Station whereUpdatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Station whereWikidataId($value)
*/
class Station extends \Eloquent {}
}
namespace App\Models{
/**
* @property string $id
* @property int $relevance
* @property int $station_id
* @property \App\StationIdentifierType $type
* @property string|null $origin
* @property string $identifier
* @property string|null $name Name of the station provided by the data source
* @property float|null $latitude
* @property float|null $longitude
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @property-read \phpGPX\Models\Point $location
* @property-read \App\Models\Station $station
* @method static \Database\Factories\StationIdentifierFactory factory($count = null, $state = [])
* @method static \Illuminate\Database\Eloquent\Builder<static>|StationIdentifier newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder<static>|StationIdentifier newQuery()
* @method static \Illuminate\Database\Eloquent\Builder<static>|StationIdentifier query()
* @method static \Illuminate\Database\Eloquent\Builder<static>|StationIdentifier whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|StationIdentifier whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|StationIdentifier whereIdentifier($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|StationIdentifier whereLatitude($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|StationIdentifier whereLongitude($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|StationIdentifier whereName($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|StationIdentifier whereOrigin($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|StationIdentifier whereRelevance($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|StationIdentifier whereStationId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|StationIdentifier whereType($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|StationIdentifier whereUpdatedAt($value)
*/
class StationIdentifier extends \Eloquent {}
}
namespace App\Models{
/**
* @property string $id
* @property int $station_id
* @property string $language
* @property string $name
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @property-read \App\Models\Station $station
* @method static \Illuminate\Database\Eloquent\Builder<static>|StationName newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder<static>|StationName newQuery()
* @method static \Illuminate\Database\Eloquent\Builder<static>|StationName query()
* @method static \Illuminate\Database\Eloquent\Builder<static>|StationName whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|StationName whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|StationName whereLanguage($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|StationName whereName($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|StationName whereStationId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|StationName whereUpdatedAt($value)
*/
class StationName extends \Eloquent {}
}
namespace App\Models{
/**
* @todo merge model with "Checkin" (later only "Checkin") because the difference between trip sources (HAFAS,
* User, and future sources) should be handled in the Trip model.
* @property int $id
* @property string|null $body
* @property int $user_id
* @property \App\Enum\Business $business
* @property \App\Enum\StatusVisibility $visibility
* @property int|null $event_id
* @property string|null $mastodon_post_id
* @property int|null $client_id
* @property string|null $moderation_notes Notes from the moderation team - visible to the user
* @property bool $lock_visibility Prevent the user from changing the visibility of the status?
* @property bool $hide_body Hide the body of the status from other users?
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @property-read \Illuminate\Database\Eloquent\Collection<int, \Spatie\Activitylog\Models\Activity> $activities
* @property-read int|null $activities_count
* @property-read \App\Models\Checkin|null $checkin
* @property-read \App\Models\OAuthClient|null $client
* @property-read \App\Models\Event|null $event
* @property-read string $description
* @property-read bool|null $favorited
* @property-read bool $status_invisible_to_me
* @property-read \Illuminate\Database\Eloquent\Collection<int, \App\Models\Like> $likes
* @property-read int|null $likes_count
* @property-read \Illuminate\Database\Eloquent\Collection<int, \App\Models\Mention> $mentions
* @property-read int|null $mentions_count
* @property-read \Illuminate\Database\Eloquent\Collection<int, \App\Models\StatusTag> $tags
* @property-read int|null $tags_count
* @property-read \App\Models\Checkin|null $trainCheckin
* @property-read \App\Models\User $user
* @method static \Database\Factories\StatusFactory factory($count = null, $state = [])
* @method static \Illuminate\Database\Eloquent\Builder<static>|Status newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder<static>|Status newQuery()
* @method static \Illuminate\Database\Eloquent\Builder<static>|Status query()
* @method static \Illuminate\Database\Eloquent\Builder<static>|Status whereBody($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Status whereBusiness($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Status whereClientId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Status whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Status whereEventId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Status whereHideBody($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Status whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Status whereLockVisibility($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Status whereMastodonPostId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Status whereModerationNotes($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Status whereUpdatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Status whereUserId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Status whereVisibility($value)
*/
class Status extends \Eloquent {}
}
namespace App\Models{
/**
* @property int $id
* @property int $status_id
* @property string $key
* @property string $value
* @property \App\Enum\StatusVisibility $visibility
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @property-read \App\Enum\StatusTagKey|null $key_enum
* @property-read \App\Models\Status $status
* @method static \Database\Factories\StatusTagFactory factory($count = null, $state = [])
* @method static \Illuminate\Database\Eloquent\Builder<static>|StatusTag newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder<static>|StatusTag newQuery()
* @method static \Illuminate\Database\Eloquent\Builder<static>|StatusTag query()
* @method static \Illuminate\Database\Eloquent\Builder<static>|StatusTag whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|StatusTag whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|StatusTag whereKey($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|StatusTag whereStatusId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|StatusTag whereUpdatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|StatusTag whereValue($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|StatusTag whereVisibility($value)
*/
class StatusTag extends \Eloquent {}
}
namespace App\Models{
/**
* @todo rename table to "Stopover" (without Train - we have more than just trains)
* @todo rename "train_station_id" to "station_id" - we have more than just trains.
* @todo rename "cancelled" to "is_cancelled" - or split into "is_arrival_cancelled" and "is_departure_cancelled"? need
* to think about this.
* @property int $id
* @property string $trip_id
* @property int $train_station_id
* @property $arrival_planned
* @property $arrival_real
* @property string|null $arrival_platform_planned
* @property string|null $arrival_platform_real
* @property $departure_planned
* @property $departure_real
* @property string|null $departure_platform_planned
* @property string|null $departure_platform_real
* @property bool $cancelled
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @property string|null $route_segment_id
* @property string|null $station_identifier_id
* @property-read \Carbon\Carbon|null $arrival
* @property-read \Carbon\Carbon|null $departure
* @property-read bool $is_arrival_cancelled
* @property-read bool $is_arrival_delayed
* @property-read bool $is_departure_cancelled
* @property-read bool $is_departure_delayed
* @property-read string|null $platform
* @property-read \App\Models\RouteSegment|null $routeSegment
* @property-read \App\Models\Station $station
* @property-read \App\Models\StationIdentifier|null $stationIdentifier
* @property-read \App\Models\Station $trainStation
* @property-read \App\Models\Trip $trip
* @method static \Database\Factories\StopoverFactory factory($count = null, $state = [])
* @method static \Illuminate\Database\Eloquent\Builder<static>|Stopover newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder<static>|Stopover newQuery()
* @method static \Illuminate\Database\Eloquent\Builder<static>|Stopover query()
* @method static \Illuminate\Database\Eloquent\Builder<static>|Stopover whereArrivalPlanned($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Stopover whereArrivalPlatformPlanned($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Stopover whereArrivalPlatformReal($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Stopover whereArrivalReal($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Stopover whereCancelled($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Stopover whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Stopover whereDeparturePlanned($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Stopover whereDeparturePlatformPlanned($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Stopover whereDeparturePlatformReal($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Stopover whereDepartureReal($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Stopover whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Stopover whereRouteSegmentId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Stopover whereStationIdentifierId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Stopover whereTrainStationId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Stopover whereTripId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Stopover whereUpdatedAt($value)
*/
class Stopover extends \Eloquent {}
}