-
Notifications
You must be signed in to change notification settings - Fork 1
/
_ide_helper_models.php
427 lines (410 loc) · 20.1 KB
/
_ide_helper_models.php
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
<?php
// @formatter:off
/**
* 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 <[email protected]>
*/
namespace App\Models{
/**
* App\Models\Actor
*
* @property int $id
* @property string $first_name
* @property string $last_name
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @property-read \Illuminate\Database\Eloquent\Collection|\App\Models\Film[] $films
* @property-read int|null $films_count
* @method static \Illuminate\Database\Eloquent\Builder|Actor newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder|Actor newQuery()
* @method static \Illuminate\Database\Eloquent\Builder|Actor query()
* @method static \Illuminate\Database\Eloquent\Builder|Actor whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|Actor whereFirstName($value)
* @method static \Illuminate\Database\Eloquent\Builder|Actor whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder|Actor whereLastName($value)
* @method static \Illuminate\Database\Eloquent\Builder|Actor whereUpdatedAt($value)
*/
class Actor extends \Eloquent {}
}
namespace App\Models{
/**
* App\Models\Address
*
* @property int $id
* @property string $address
* @property string|null $address2
* @property string $district
* @property int $city_id
* @property string|null $postal_code
* @property string $phone
* @property string $location
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @property-read \App\Models\City $city
* @property-read \App\Models\Customer|null $customer
* @property-read \Illuminate\Database\Eloquent\Collection|\App\Models\Staff[] $staff
* @property-read int|null $staff_count
* @property-read \App\Models\Store|null $store
* @method static \Illuminate\Database\Eloquent\Builder|Address newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder|Address newQuery()
* @method static \Illuminate\Database\Eloquent\Builder|Address query()
* @method static \Illuminate\Database\Eloquent\Builder|Address whereAddress($value)
* @method static \Illuminate\Database\Eloquent\Builder|Address whereAddress2($value)
* @method static \Illuminate\Database\Eloquent\Builder|Address whereCityId($value)
* @method static \Illuminate\Database\Eloquent\Builder|Address whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|Address whereDistrict($value)
* @method static \Illuminate\Database\Eloquent\Builder|Address whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder|Address whereLocation($value)
* @method static \Illuminate\Database\Eloquent\Builder|Address wherePhone($value)
* @method static \Illuminate\Database\Eloquent\Builder|Address wherePostalCode($value)
* @method static \Illuminate\Database\Eloquent\Builder|Address whereUpdatedAt($value)
*/
class Address extends \Eloquent {}
}
namespace App\Models{
/**
* App\Models\Category
*
* @property int $id
* @property string $name
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @property-read \Illuminate\Database\Eloquent\Collection|\App\Models\Film[] $films
* @property-read int|null $films_count
* @method static \Illuminate\Database\Eloquent\Builder|Category newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder|Category newQuery()
* @method static \Illuminate\Database\Eloquent\Builder|Category query()
* @method static \Illuminate\Database\Eloquent\Builder|Category whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|Category whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder|Category whereName($value)
* @method static \Illuminate\Database\Eloquent\Builder|Category whereUpdatedAt($value)
*/
class Category extends \Eloquent {}
}
namespace App\Models{
/**
* App\Models\City
*
* @property int $id
* @property string $city
* @property int $country_id
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @property-read \Illuminate\Database\Eloquent\Collection|\App\Models\Address[] $Addresses
* @property-read int|null $addresses_count
* @property-read \App\Models\Country $country
* @method static \Illuminate\Database\Eloquent\Builder|City newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder|City newQuery()
* @method static \Illuminate\Database\Eloquent\Builder|City query()
* @method static \Illuminate\Database\Eloquent\Builder|City whereCity($value)
* @method static \Illuminate\Database\Eloquent\Builder|City whereCountryId($value)
* @method static \Illuminate\Database\Eloquent\Builder|City whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|City whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder|City whereUpdatedAt($value)
*/
class City extends \Eloquent {}
}
namespace App\Models{
/**
* App\Models\Country
*
* @property int $id
* @property string $country
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @property-read \Illuminate\Database\Eloquent\Collection|\App\Models\City[] $cities
* @property-read int|null $cities_count
* @method static \Illuminate\Database\Eloquent\Builder|Country newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder|Country newQuery()
* @method static \Illuminate\Database\Eloquent\Builder|Country query()
* @method static \Illuminate\Database\Eloquent\Builder|Country whereCountry($value)
* @method static \Illuminate\Database\Eloquent\Builder|Country whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|Country whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder|Country whereUpdatedAt($value)
*/
class Country extends \Eloquent {}
}
namespace App\Models{
/**
* App\Models\Customer
*
* @property int $id
* @property int $store_id
* @property string $first_name
* @property string $last_name
* @property string|null $email
* @property int $address_id
* @property bool $active
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @property-read \App\Models\Address $address
* @property-read string $full_name
* @property-read \Illuminate\Database\Eloquent\Collection|\App\Models\Payment[] $payments
* @property-read int|null $payments_count
* @property-read \Illuminate\Database\Eloquent\Collection|\App\Models\Rental[] $rentals
* @property-read int|null $rentals_count
* @property-read \App\Models\Store $store
* @method static \Illuminate\Database\Eloquent\Builder|Customer newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder|Customer newQuery()
* @method static \Illuminate\Database\Eloquent\Builder|Customer query()
* @method static \Illuminate\Database\Eloquent\Builder|Customer whereActive($value)
* @method static \Illuminate\Database\Eloquent\Builder|Customer whereAddressId($value)
* @method static \Illuminate\Database\Eloquent\Builder|Customer whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|Customer whereEmail($value)
* @method static \Illuminate\Database\Eloquent\Builder|Customer whereFirstName($value)
* @method static \Illuminate\Database\Eloquent\Builder|Customer whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder|Customer whereLastName($value)
* @method static \Illuminate\Database\Eloquent\Builder|Customer whereStoreId($value)
* @method static \Illuminate\Database\Eloquent\Builder|Customer whereUpdatedAt($value)
*/
class Customer extends \Eloquent {}
}
namespace App\Models{
/**
* App\Models\Film
*
* @property int $id
* @property string $title
* @property string|null $description
* @property string|null $release_year
* @property int $language_id
* @property int|null $original_language_id
* @property int $rental_duration
* @property string $rental_rate
* @property int|null $length
* @property string $replacement_cost
* @property string|null $rating
* @property mixed|null $special_features
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @property-read \Illuminate\Database\Eloquent\Collection|\App\Models\Actor[] $actors
* @property-read int|null $actors_count
* @property-read \Illuminate\Database\Eloquent\Collection|\App\Models\Category[] $categories
* @property-read int|null $categories_count
* @property-read \Illuminate\Database\Eloquent\Collection|\App\Models\Inventory[] $inventories
* @property-read int|null $inventories_count
* @property-read \App\Models\Language $language
* @method static \Illuminate\Database\Eloquent\Builder|Film newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder|Film newQuery()
* @method static \Illuminate\Database\Eloquent\Builder|Film query()
* @method static \Illuminate\Database\Eloquent\Builder|Film whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|Film whereDescription($value)
* @method static \Illuminate\Database\Eloquent\Builder|Film whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder|Film whereLanguageId($value)
* @method static \Illuminate\Database\Eloquent\Builder|Film whereLength($value)
* @method static \Illuminate\Database\Eloquent\Builder|Film whereOriginalLanguageId($value)
* @method static \Illuminate\Database\Eloquent\Builder|Film whereRating($value)
* @method static \Illuminate\Database\Eloquent\Builder|Film whereReleaseYear($value)
* @method static \Illuminate\Database\Eloquent\Builder|Film whereRentalDuration($value)
* @method static \Illuminate\Database\Eloquent\Builder|Film whereRentalRate($value)
* @method static \Illuminate\Database\Eloquent\Builder|Film whereReplacementCost($value)
* @method static \Illuminate\Database\Eloquent\Builder|Film whereSpecialFeatures($value)
* @method static \Illuminate\Database\Eloquent\Builder|Film whereTitle($value)
* @method static \Illuminate\Database\Eloquent\Builder|Film whereUpdatedAt($value)
*/
class Film extends \Eloquent {}
}
namespace App\Models{
/**
* App\Models\Inventory
*
* @property int $id
* @property int $film_id
* @property int $store_id
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @property-read \App\Models\Film $film
* @property-read \Illuminate\Database\Eloquent\Collection|\App\Models\Rental[] $rentals
* @property-read int|null $rentals_count
* @property-read \App\Models\Store $store
* @method static \Illuminate\Database\Eloquent\Builder|Inventory newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder|Inventory newQuery()
* @method static \Illuminate\Database\Eloquent\Builder|Inventory query()
* @method static \Illuminate\Database\Eloquent\Builder|Inventory whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|Inventory whereFilmId($value)
* @method static \Illuminate\Database\Eloquent\Builder|Inventory whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder|Inventory whereStoreId($value)
* @method static \Illuminate\Database\Eloquent\Builder|Inventory whereUpdatedAt($value)
*/
class Inventory extends \Eloquent {}
}
namespace App\Models{
/**
* App\Models\Language
*
* @property int $id
* @property string $name
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @property-read \Illuminate\Database\Eloquent\Collection|\App\Models\Film[] $films
* @property-read int|null $films_count
* @method static \Illuminate\Database\Eloquent\Builder|Language newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder|Language newQuery()
* @method static \Illuminate\Database\Eloquent\Builder|Language query()
* @method static \Illuminate\Database\Eloquent\Builder|Language whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|Language whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder|Language whereName($value)
* @method static \Illuminate\Database\Eloquent\Builder|Language whereUpdatedAt($value)
*/
class Language extends \Eloquent {}
}
namespace App\Models{
/**
* App\Models\Payment
*
* @property int $id
* @property int $customer_id
* @property int $staff_id
* @property int|null $rental_id
* @property string $amount
* @property string|null $payment_date
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @property-read \App\Models\Customer $customer
* @property-read \App\Models\Rental|null $rental
* @property-read \App\Models\Staff $staff
* @method static \Illuminate\Database\Eloquent\Builder|Payment newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder|Payment newQuery()
* @method static \Illuminate\Database\Eloquent\Builder|Payment query()
* @method static \Illuminate\Database\Eloquent\Builder|Payment whereAmount($value)
* @method static \Illuminate\Database\Eloquent\Builder|Payment whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|Payment whereCustomerId($value)
* @method static \Illuminate\Database\Eloquent\Builder|Payment whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder|Payment wherePaymentDate($value)
* @method static \Illuminate\Database\Eloquent\Builder|Payment whereRentalId($value)
* @method static \Illuminate\Database\Eloquent\Builder|Payment whereStaffId($value)
* @method static \Illuminate\Database\Eloquent\Builder|Payment whereUpdatedAt($value)
*/
class Payment extends \Eloquent {}
}
namespace App\Models{
/**
* App\Models\Rental
*
* @property int $id
* @property string $rental_date
* @property int $inventory_id
* @property int $customer_id
* @property string|null $return_date
* @property int $staff_id
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @property-read \App\Models\Customer $customer
* @property-read \App\Models\Inventory $inventory
* @property-read \Illuminate\Database\Eloquent\Collection|\App\Models\Payment[] $payments
* @property-read int|null $payments_count
* @property-read \App\Models\Staff $staff
* @method static \Illuminate\Database\Eloquent\Builder|Rental newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder|Rental newQuery()
* @method static \Illuminate\Database\Eloquent\Builder|Rental query()
* @method static \Illuminate\Database\Eloquent\Builder|Rental whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|Rental whereCustomerId($value)
* @method static \Illuminate\Database\Eloquent\Builder|Rental whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder|Rental whereInventoryId($value)
* @method static \Illuminate\Database\Eloquent\Builder|Rental whereRentalDate($value)
* @method static \Illuminate\Database\Eloquent\Builder|Rental whereReturnDate($value)
* @method static \Illuminate\Database\Eloquent\Builder|Rental whereStaffId($value)
* @method static \Illuminate\Database\Eloquent\Builder|Rental whereUpdatedAt($value)
*/
class Rental extends \Eloquent {}
}
namespace App\Models{
/**
* App\Models\Staff
*
* @property int $id
* @property string $first_name
* @property string $last_name
* @property int $address_id
* @property string|null $picture
* @property string|null $email
* @property int $store_id
* @property int $active
* @property string $username
* @property string|null $password
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @property-read \App\Models\Address $address
* @property-read \Illuminate\Database\Eloquent\Collection|\App\Models\Payment[] $payments
* @property-read int|null $payments_count
* @property-read \Illuminate\Database\Eloquent\Collection|\App\Models\Rental[] $rentals
* @property-read int|null $rentals_count
* @property-read \App\Models\Store $store
* @method static \Illuminate\Database\Eloquent\Builder|Staff newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder|Staff newQuery()
* @method static \Illuminate\Database\Eloquent\Builder|Staff query()
* @method static \Illuminate\Database\Eloquent\Builder|Staff whereActive($value)
* @method static \Illuminate\Database\Eloquent\Builder|Staff whereAddressId($value)
* @method static \Illuminate\Database\Eloquent\Builder|Staff whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|Staff whereEmail($value)
* @method static \Illuminate\Database\Eloquent\Builder|Staff whereFirstName($value)
* @method static \Illuminate\Database\Eloquent\Builder|Staff whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder|Staff whereLastName($value)
* @method static \Illuminate\Database\Eloquent\Builder|Staff wherePassword($value)
* @method static \Illuminate\Database\Eloquent\Builder|Staff wherePicture($value)
* @method static \Illuminate\Database\Eloquent\Builder|Staff whereStoreId($value)
* @method static \Illuminate\Database\Eloquent\Builder|Staff whereUpdatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|Staff whereUsername($value)
*/
class Staff extends \Eloquent {}
}
namespace App\Models{
/**
* App\Models\Store
*
* @property int $id
* @property int $manager_staff_id
* @property int $address_id
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @property-read \App\Models\Address $address
* @property-read \Illuminate\Database\Eloquent\Collection|\App\Models\Payment[] $customerPayments
* @property-read int|null $customer_payments_count
* @property-read \Illuminate\Database\Eloquent\Collection|\App\Models\Customer[] $customers
* @property-read int|null $customers_count
* @property-read \App\Models\Staff|null $staff
* @method static \Illuminate\Database\Eloquent\Builder|Store newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder|Store newQuery()
* @method static \Illuminate\Database\Eloquent\Builder|Store query()
* @method static \Illuminate\Database\Eloquent\Builder|Store whereAddressId($value)
* @method static \Illuminate\Database\Eloquent\Builder|Store whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|Store whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder|Store whereManagerStaffId($value)
* @method static \Illuminate\Database\Eloquent\Builder|Store whereUpdatedAt($value)
*/
class Store extends \Eloquent {}
}
namespace App\Models{
/**
* App\Models\User
*
* @property int $id
* @property string $name
* @property string $email
* @property \Illuminate\Support\Carbon|null $email_verified_at
* @property string $password
* @property string|null $remember_token
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @property-read \Illuminate\Notifications\DatabaseNotificationCollection|\Illuminate\Notifications\DatabaseNotification[] $notifications
* @property-read int|null $notifications_count
* @property-read \Illuminate\Database\Eloquent\Collection|\Laravel\Sanctum\PersonalAccessToken[] $tokens
* @property-read int|null $tokens_count
* @method static \Database\Factories\UserFactory factory(...$parameters)
* @method static \Illuminate\Database\Eloquent\Builder|User newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder|User newQuery()
* @method static \Illuminate\Database\Eloquent\Builder|User query()
* @method static \Illuminate\Database\Eloquent\Builder|User whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|User whereEmail($value)
* @method static \Illuminate\Database\Eloquent\Builder|User whereEmailVerifiedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|User whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder|User whereName($value)
* @method static \Illuminate\Database\Eloquent\Builder|User wherePassword($value)
* @method static \Illuminate\Database\Eloquent\Builder|User whereRememberToken($value)
* @method static \Illuminate\Database\Eloquent\Builder|User whereUpdatedAt($value)
*/
class User extends \Eloquent {}
}