Oauth2Abstract::getUserId()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 2
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 2
b 0
f 0
nc 1
nop 0
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 1
rs 10
1
<?php
2
/**
3
 * This file is part of the Zemit Framework.
4
 *
5
 * (c) Zemit Team <[email protected]>
6
 *
7
 * For the full copyright and license information, please view the LICENSE.txt
8
 * file that was distributed with this source code.
9
 */
10
11
declare(strict_types=1);
12
13
namespace Zemit\Models\Abstracts;
14
15
use Phalcon\Db\RawValue;
16
use Zemit\Filter\Validation;
17
use Zemit\Models\AbstractModel;
18
use Zemit\Models\User;
19
use Zemit\Models\Abstracts\Interfaces\Oauth2AbstractInterface;
20
21
/**
22
 * Class Oauth2Abstract
23
 *
24
 * This class defines a Oauth2 abstract model that extends the AbstractModel class and implements the Oauth2AbstractInterface.
25
 * It provides properties and methods for managing Oauth2 data.
26
 * 
27
 * @property User $userentity
28
 * @property User $UserEntity
29
 * @method User getUserEntity(?array $params = null)
30
 *
31
 * @property User $createdbyentity
32
 * @property User $CreatedByEntity
33
 * @method User getCreatedByEntity(?array $params = null)
34
 *
35
 * @property User $createdasentity
36
 * @property User $CreatedAsEntity
37
 * @method User getCreatedAsEntity(?array $params = null)
38
 *
39
 * @property User $updatedbyentity
40
 * @property User $UpdatedByEntity
41
 * @method User getUpdatedByEntity(?array $params = null)
42
 *
43
 * @property User $updatedasentity
44
 * @property User $UpdatedAsEntity
45
 * @method User getUpdatedAsEntity(?array $params = null)
46
 *
47
 * @property User $deletedasentity
48
 * @property User $DeletedAsEntity
49
 * @method User getDeletedAsEntity(?array $params = null)
50
 *
51
 * @property User $deletedbyentity
52
 * @property User $DeletedByEntity
53
 * @method User getDeletedByEntity(?array $params = null)
54
 *
55
 * @property User $restoredbyentity
56
 * @property User $RestoredByEntity
57
 * @method User getRestoredByEntity(?array $params = null)
58
 */
59
abstract class Oauth2Abstract extends AbstractModel implements Oauth2AbstractInterface
60
{
61
    /**
62
     * Column: id
63
     * Attributes: First | Primary | NotNull | Numeric | Unsigned | AutoIncrement
64
     * @var mixed
65
     */
66
    public mixed $id = null;
67
        
68
    /**
69
     * Column: user_id
70
     * Attributes: NotNull | Numeric | Unsigned
71
     * @var mixed
72
     */
73
    public mixed $userId = null;
74
        
75
    /**
76
     * Column: provider
77
     * Attributes: NotNull | Size('google','microsoft') | Type(18)
78
     * @var mixed
79
     */
80
    public mixed $provider = null;
81
        
82
    /**
83
     * Column: provider_uuid
84
     * Attributes: NotNull | Size(120) | Type(2)
85
     * @var mixed
86
     */
87
    public mixed $providerUuid = null;
88
        
89
    /**
90
     * Column: access_token
91
     * Attributes: NotNull | Size(120) | Type(2)
92
     * @var mixed
93
     */
94
    public mixed $accessToken = null;
95
        
96
    /**
97
     * Column: refresh_token
98
     * Attributes: Size(120) | Type(2)
99
     * @var mixed
100
     */
101
    public mixed $refreshToken = null;
102
        
103
    /**
104
     * Column: email
105
     * Attributes: Size(320) | Type(2)
106
     * @var mixed
107
     */
108
    public mixed $email = null;
109
        
110
    /**
111
     * Column: name
112
     * Attributes: Size(120) | Type(2)
113
     * @var mixed
114
     */
115
    public mixed $name = null;
116
        
117
    /**
118
     * Column: first_name
119
     * Attributes: Size(60) | Type(2)
120
     * @var mixed
121
     */
122
    public mixed $firstName = null;
123
        
124
    /**
125
     * Column: last_name
126
     * Attributes: Size(60) | Type(2)
127
     * @var mixed
128
     */
129
    public mixed $lastName = null;
130
        
131
    /**
132
     * Column: meta
133
     * Attributes: Type(15)
134
     * @var mixed
135
     */
136
    public mixed $meta = null;
137
        
138
    /**
139
     * Column: deleted
140
     * Attributes: NotNull | Numeric | Unsigned | Type(26)
141
     * @var mixed
142
     */
143
    public mixed $deleted = 0;
144
        
145
    /**
146
     * Column: created_at
147
     * Attributes: NotNull | Type(4)
148
     * @var mixed
149
     */
150
    public mixed $createdAt = null;
151
        
152
    /**
153
     * Column: created_by
154
     * Attributes: Numeric | Unsigned
155
     * @var mixed
156
     */
157
    public mixed $createdBy = null;
158
        
159
    /**
160
     * Column: created_as
161
     * Attributes: Numeric | Unsigned
162
     * @var mixed
163
     */
164
    public mixed $createdAs = null;
165
        
166
    /**
167
     * Column: updated_at
168
     * Attributes: Type(4)
169
     * @var mixed
170
     */
171
    public mixed $updatedAt = null;
172
        
173
    /**
174
     * Column: updated_by
175
     * Attributes: Numeric | Unsigned
176
     * @var mixed
177
     */
178
    public mixed $updatedBy = null;
179
        
180
    /**
181
     * Column: updated_as
182
     * Attributes: Numeric | Unsigned
183
     * @var mixed
184
     */
185
    public mixed $updatedAs = null;
186
        
187
    /**
188
     * Column: deleted_at
189
     * Attributes: Type(4)
190
     * @var mixed
191
     */
192
    public mixed $deletedAt = null;
193
        
194
    /**
195
     * Column: deleted_as
196
     * Attributes: Numeric | Unsigned
197
     * @var mixed
198
     */
199
    public mixed $deletedAs = null;
200
        
201
    /**
202
     * Column: deleted_by
203
     * Attributes: Numeric | Unsigned
204
     * @var mixed
205
     */
206
    public mixed $deletedBy = null;
207
        
208
    /**
209
     * Column: restored_at
210
     * Attributes: Type(4)
211
     * @var mixed
212
     */
213
    public mixed $restoredAt = null;
214
        
215
    /**
216
     * Column: restored_by
217
     * Attributes: Numeric | Unsigned
218
     * @var mixed
219
     */
220
    public mixed $restoredBy = null;
221
    
222
    /**
223
     * Returns the value of field id
224
     * Column: id
225
     * Attributes: First | Primary | NotNull | Numeric | Unsigned | AutoIncrement
226
     * @return mixed
227
     */
228 2
    public function getId(): mixed
229
    {
230 2
        return $this->id;
231
    }
232
    
233
    /**
234
     * Sets the value of field id
235
     * Column: id 
236
     * Attributes: First | Primary | NotNull | Numeric | Unsigned | AutoIncrement
237
     * @param mixed $id
238
     * @return void
239
     */
240 1
    public function setId(mixed $id): void
241
    {
242 1
        $this->id = $id;
243
    }
244
    
245
    /**
246
     * Returns the value of field userId
247
     * Column: user_id
248
     * Attributes: NotNull | Numeric | Unsigned
249
     * @return mixed
250
     */
251 2
    public function getUserId(): mixed
252
    {
253 2
        return $this->userId;
254
    }
255
    
256
    /**
257
     * Sets the value of field userId
258
     * Column: user_id 
259
     * Attributes: NotNull | Numeric | Unsigned
260
     * @param mixed $userId
261
     * @return void
262
     */
263 1
    public function setUserId(mixed $userId): void
264
    {
265 1
        $this->userId = $userId;
266
    }
267
    
268
    /**
269
     * Returns the value of field provider
270
     * Column: provider
271
     * Attributes: NotNull | Size('google','microsoft') | Type(18)
272
     * @return mixed
273
     */
274 2
    public function getProvider(): mixed
275
    {
276 2
        return $this->provider;
277
    }
278
    
279
    /**
280
     * Sets the value of field provider
281
     * Column: provider 
282
     * Attributes: NotNull | Size('google','microsoft') | Type(18)
283
     * @param mixed $provider
284
     * @return void
285
     */
286 1
    public function setProvider(mixed $provider): void
287
    {
288 1
        $this->provider = $provider;
289
    }
290
    
291
    /**
292
     * Returns the value of field providerUuid
293
     * Column: provider_uuid
294
     * Attributes: NotNull | Size(120) | Type(2)
295
     * @return mixed
296
     */
297 2
    public function getProviderUuid(): mixed
298
    {
299 2
        return $this->providerUuid;
300
    }
301
    
302
    /**
303
     * Sets the value of field providerUuid
304
     * Column: provider_uuid 
305
     * Attributes: NotNull | Size(120) | Type(2)
306
     * @param mixed $providerUuid
307
     * @return void
308
     */
309 1
    public function setProviderUuid(mixed $providerUuid): void
310
    {
311 1
        $this->providerUuid = $providerUuid;
312
    }
313
    
314
    /**
315
     * Returns the value of field accessToken
316
     * Column: access_token
317
     * Attributes: NotNull | Size(120) | Type(2)
318
     * @return mixed
319
     */
320 2
    public function getAccessToken(): mixed
321
    {
322 2
        return $this->accessToken;
323
    }
324
    
325
    /**
326
     * Sets the value of field accessToken
327
     * Column: access_token 
328
     * Attributes: NotNull | Size(120) | Type(2)
329
     * @param mixed $accessToken
330
     * @return void
331
     */
332 1
    public function setAccessToken(mixed $accessToken): void
333
    {
334 1
        $this->accessToken = $accessToken;
335
    }
336
    
337
    /**
338
     * Returns the value of field refreshToken
339
     * Column: refresh_token
340
     * Attributes: Size(120) | Type(2)
341
     * @return mixed
342
     */
343 2
    public function getRefreshToken(): mixed
344
    {
345 2
        return $this->refreshToken;
346
    }
347
    
348
    /**
349
     * Sets the value of field refreshToken
350
     * Column: refresh_token 
351
     * Attributes: Size(120) | Type(2)
352
     * @param mixed $refreshToken
353
     * @return void
354
     */
355 1
    public function setRefreshToken(mixed $refreshToken): void
356
    {
357 1
        $this->refreshToken = $refreshToken;
358
    }
359
    
360
    /**
361
     * Returns the value of field email
362
     * Column: email
363
     * Attributes: Size(320) | Type(2)
364
     * @return mixed
365
     */
366 2
    public function getEmail(): mixed
367
    {
368 2
        return $this->email;
369
    }
370
    
371
    /**
372
     * Sets the value of field email
373
     * Column: email 
374
     * Attributes: Size(320) | Type(2)
375
     * @param mixed $email
376
     * @return void
377
     */
378 1
    public function setEmail(mixed $email): void
379
    {
380 1
        $this->email = $email;
381
    }
382
    
383
    /**
384
     * Returns the value of field name
385
     * Column: name
386
     * Attributes: Size(120) | Type(2)
387
     * @return mixed
388
     */
389 2
    public function getName(): mixed
390
    {
391 2
        return $this->name;
392
    }
393
    
394
    /**
395
     * Sets the value of field name
396
     * Column: name 
397
     * Attributes: Size(120) | Type(2)
398
     * @param mixed $name
399
     * @return void
400
     */
401 1
    public function setName(mixed $name): void
402
    {
403 1
        $this->name = $name;
404
    }
405
    
406
    /**
407
     * Returns the value of field firstName
408
     * Column: first_name
409
     * Attributes: Size(60) | Type(2)
410
     * @return mixed
411
     */
412 2
    public function getFirstName(): mixed
413
    {
414 2
        return $this->firstName;
415
    }
416
    
417
    /**
418
     * Sets the value of field firstName
419
     * Column: first_name 
420
     * Attributes: Size(60) | Type(2)
421
     * @param mixed $firstName
422
     * @return void
423
     */
424 1
    public function setFirstName(mixed $firstName): void
425
    {
426 1
        $this->firstName = $firstName;
427
    }
428
    
429
    /**
430
     * Returns the value of field lastName
431
     * Column: last_name
432
     * Attributes: Size(60) | Type(2)
433
     * @return mixed
434
     */
435 2
    public function getLastName(): mixed
436
    {
437 2
        return $this->lastName;
438
    }
439
    
440
    /**
441
     * Sets the value of field lastName
442
     * Column: last_name 
443
     * Attributes: Size(60) | Type(2)
444
     * @param mixed $lastName
445
     * @return void
446
     */
447 1
    public function setLastName(mixed $lastName): void
448
    {
449 1
        $this->lastName = $lastName;
450
    }
451
    
452
    /**
453
     * Returns the value of field meta
454
     * Column: meta
455
     * Attributes: Type(15)
456
     * @return mixed
457
     */
458 2
    public function getMeta(): mixed
459
    {
460 2
        return $this->meta;
461
    }
462
    
463
    /**
464
     * Sets the value of field meta
465
     * Column: meta 
466
     * Attributes: Type(15)
467
     * @param mixed $meta
468
     * @return void
469
     */
470 1
    public function setMeta(mixed $meta): void
471
    {
472 1
        $this->meta = $meta;
473
    }
474
    
475
    /**
476
     * Returns the value of field deleted
477
     * Column: deleted
478
     * Attributes: NotNull | Numeric | Unsigned | Type(26)
479
     * @return mixed
480
     */
481 2
    public function getDeleted(): mixed
482
    {
483 2
        return $this->deleted;
484
    }
485
    
486
    /**
487
     * Sets the value of field deleted
488
     * Column: deleted 
489
     * Attributes: NotNull | Numeric | Unsigned | Type(26)
490
     * @param mixed $deleted
491
     * @return void
492
     */
493 1
    public function setDeleted(mixed $deleted): void
494
    {
495 1
        $this->deleted = $deleted;
496
    }
497
    
498
    /**
499
     * Returns the value of field createdAt
500
     * Column: created_at
501
     * Attributes: NotNull | Type(4)
502
     * @return mixed
503
     */
504 2
    public function getCreatedAt(): mixed
505
    {
506 2
        return $this->createdAt;
507
    }
508
    
509
    /**
510
     * Sets the value of field createdAt
511
     * Column: created_at 
512
     * Attributes: NotNull | Type(4)
513
     * @param mixed $createdAt
514
     * @return void
515
     */
516 1
    public function setCreatedAt(mixed $createdAt): void
517
    {
518 1
        $this->createdAt = $createdAt;
519
    }
520
    
521
    /**
522
     * Returns the value of field createdBy
523
     * Column: created_by
524
     * Attributes: Numeric | Unsigned
525
     * @return mixed
526
     */
527 2
    public function getCreatedBy(): mixed
528
    {
529 2
        return $this->createdBy;
530
    }
531
    
532
    /**
533
     * Sets the value of field createdBy
534
     * Column: created_by 
535
     * Attributes: Numeric | Unsigned
536
     * @param mixed $createdBy
537
     * @return void
538
     */
539 1
    public function setCreatedBy(mixed $createdBy): void
540
    {
541 1
        $this->createdBy = $createdBy;
542
    }
543
    
544
    /**
545
     * Returns the value of field createdAs
546
     * Column: created_as
547
     * Attributes: Numeric | Unsigned
548
     * @return mixed
549
     */
550 2
    public function getCreatedAs(): mixed
551
    {
552 2
        return $this->createdAs;
553
    }
554
    
555
    /**
556
     * Sets the value of field createdAs
557
     * Column: created_as 
558
     * Attributes: Numeric | Unsigned
559
     * @param mixed $createdAs
560
     * @return void
561
     */
562 1
    public function setCreatedAs(mixed $createdAs): void
563
    {
564 1
        $this->createdAs = $createdAs;
565
    }
566
    
567
    /**
568
     * Returns the value of field updatedAt
569
     * Column: updated_at
570
     * Attributes: Type(4)
571
     * @return mixed
572
     */
573 2
    public function getUpdatedAt(): mixed
574
    {
575 2
        return $this->updatedAt;
576
    }
577
    
578
    /**
579
     * Sets the value of field updatedAt
580
     * Column: updated_at 
581
     * Attributes: Type(4)
582
     * @param mixed $updatedAt
583
     * @return void
584
     */
585 1
    public function setUpdatedAt(mixed $updatedAt): void
586
    {
587 1
        $this->updatedAt = $updatedAt;
588
    }
589
    
590
    /**
591
     * Returns the value of field updatedBy
592
     * Column: updated_by
593
     * Attributes: Numeric | Unsigned
594
     * @return mixed
595
     */
596 2
    public function getUpdatedBy(): mixed
597
    {
598 2
        return $this->updatedBy;
599
    }
600
    
601
    /**
602
     * Sets the value of field updatedBy
603
     * Column: updated_by 
604
     * Attributes: Numeric | Unsigned
605
     * @param mixed $updatedBy
606
     * @return void
607
     */
608 1
    public function setUpdatedBy(mixed $updatedBy): void
609
    {
610 1
        $this->updatedBy = $updatedBy;
611
    }
612
    
613
    /**
614
     * Returns the value of field updatedAs
615
     * Column: updated_as
616
     * Attributes: Numeric | Unsigned
617
     * @return mixed
618
     */
619 2
    public function getUpdatedAs(): mixed
620
    {
621 2
        return $this->updatedAs;
622
    }
623
    
624
    /**
625
     * Sets the value of field updatedAs
626
     * Column: updated_as 
627
     * Attributes: Numeric | Unsigned
628
     * @param mixed $updatedAs
629
     * @return void
630
     */
631 1
    public function setUpdatedAs(mixed $updatedAs): void
632
    {
633 1
        $this->updatedAs = $updatedAs;
634
    }
635
    
636
    /**
637
     * Returns the value of field deletedAt
638
     * Column: deleted_at
639
     * Attributes: Type(4)
640
     * @return mixed
641
     */
642 2
    public function getDeletedAt(): mixed
643
    {
644 2
        return $this->deletedAt;
645
    }
646
    
647
    /**
648
     * Sets the value of field deletedAt
649
     * Column: deleted_at 
650
     * Attributes: Type(4)
651
     * @param mixed $deletedAt
652
     * @return void
653
     */
654 1
    public function setDeletedAt(mixed $deletedAt): void
655
    {
656 1
        $this->deletedAt = $deletedAt;
657
    }
658
    
659
    /**
660
     * Returns the value of field deletedAs
661
     * Column: deleted_as
662
     * Attributes: Numeric | Unsigned
663
     * @return mixed
664
     */
665 2
    public function getDeletedAs(): mixed
666
    {
667 2
        return $this->deletedAs;
668
    }
669
    
670
    /**
671
     * Sets the value of field deletedAs
672
     * Column: deleted_as 
673
     * Attributes: Numeric | Unsigned
674
     * @param mixed $deletedAs
675
     * @return void
676
     */
677 1
    public function setDeletedAs(mixed $deletedAs): void
678
    {
679 1
        $this->deletedAs = $deletedAs;
680
    }
681
    
682
    /**
683
     * Returns the value of field deletedBy
684
     * Column: deleted_by
685
     * Attributes: Numeric | Unsigned
686
     * @return mixed
687
     */
688 2
    public function getDeletedBy(): mixed
689
    {
690 2
        return $this->deletedBy;
691
    }
692
    
693
    /**
694
     * Sets the value of field deletedBy
695
     * Column: deleted_by 
696
     * Attributes: Numeric | Unsigned
697
     * @param mixed $deletedBy
698
     * @return void
699
     */
700 1
    public function setDeletedBy(mixed $deletedBy): void
701
    {
702 1
        $this->deletedBy = $deletedBy;
703
    }
704
    
705
    /**
706
     * Returns the value of field restoredAt
707
     * Column: restored_at
708
     * Attributes: Type(4)
709
     * @return mixed
710
     */
711 2
    public function getRestoredAt(): mixed
712
    {
713 2
        return $this->restoredAt;
714
    }
715
    
716
    /**
717
     * Sets the value of field restoredAt
718
     * Column: restored_at 
719
     * Attributes: Type(4)
720
     * @param mixed $restoredAt
721
     * @return void
722
     */
723 1
    public function setRestoredAt(mixed $restoredAt): void
724
    {
725 1
        $this->restoredAt = $restoredAt;
726
    }
727
    
728
    /**
729
     * Returns the value of field restoredBy
730
     * Column: restored_by
731
     * Attributes: Numeric | Unsigned
732
     * @return mixed
733
     */
734 2
    public function getRestoredBy(): mixed
735
    {
736 2
        return $this->restoredBy;
737
    }
738
    
739
    /**
740
     * Sets the value of field restoredBy
741
     * Column: restored_by 
742
     * Attributes: Numeric | Unsigned
743
     * @param mixed $restoredBy
744
     * @return void
745
     */
746 1
    public function setRestoredBy(mixed $restoredBy): void
747
    {
748 1
        $this->restoredBy = $restoredBy;
749
    }
750
751
    /**
752
     * Adds the default relationships to the model.
753
     * @return void
754
     */
755 2
    public function addDefaultRelationships(): void
756
    {
757 2
        $this->belongsTo('userId', User::class, 'id', ['alias' => 'UserEntity']);
758
759 2
        $this->belongsTo('createdBy', User::class, 'id', ['alias' => 'CreatedByEntity']);
760
761 2
        $this->belongsTo('createdAs', User::class, 'id', ['alias' => 'CreatedAsEntity']);
762
763 2
        $this->belongsTo('updatedBy', User::class, 'id', ['alias' => 'UpdatedByEntity']);
764
765 2
        $this->belongsTo('updatedAs', User::class, 'id', ['alias' => 'UpdatedAsEntity']);
766
767 2
        $this->belongsTo('deletedAs', User::class, 'id', ['alias' => 'DeletedAsEntity']);
768
769 2
        $this->belongsTo('deletedBy', User::class, 'id', ['alias' => 'DeletedByEntity']);
770
771 2
        $this->belongsTo('restoredBy', User::class, 'id', ['alias' => 'RestoredByEntity']);
772
    }
773
    
774
    /**
775
     * Adds the default validations to the model.
776
     * @param Validation|null $validator
777
     * @return Validation
778
     */
779
    public function addDefaultValidations(?Validation $validator = null): Validation
780
    {
781
        $validator ??= new Validation();
782
    
783
        $this->addUnsignedIntValidation($validator, 'id', true);
784
        $this->addUnsignedIntValidation($validator, 'userId', false);
785
        $this->addInclusionInValidation($validator, 'provider', ['google','microsoft'], false);
786
        $this->addStringLengthValidation($validator, 'providerUuid', 0, 120, false);
787
        $this->addStringLengthValidation($validator, 'accessToken', 0, 120, false);
788
        $this->addStringLengthValidation($validator, 'refreshToken', 0, 120, true);
789
        $this->addStringLengthValidation($validator, 'email', 0, 320, true);
790
        $this->addStringLengthValidation($validator, 'name', 0, 120, true);
791
        $this->addStringLengthValidation($validator, 'firstName', 0, 60, true);
792
        $this->addStringLengthValidation($validator, 'lastName', 0, 60, true);
793
        $this->addJsonValidation($validator, 'meta', true);
794
        $this->addUnsignedIntValidation($validator, 'deleted', false);
795
        $this->addDateTimeValidation($validator, 'createdAt', false);
796
        $this->addUnsignedIntValidation($validator, 'createdBy', true);
797
        $this->addUnsignedIntValidation($validator, 'createdAs', true);
798
        $this->addDateTimeValidation($validator, 'updatedAt', true);
799
        $this->addUnsignedIntValidation($validator, 'updatedBy', true);
800
        $this->addUnsignedIntValidation($validator, 'updatedAs', true);
801
        $this->addDateTimeValidation($validator, 'deletedAt', true);
802
        $this->addUnsignedIntValidation($validator, 'deletedAs', true);
803
        $this->addUnsignedIntValidation($validator, 'deletedBy', true);
804
        $this->addDateTimeValidation($validator, 'restoredAt', true);
805
        $this->addUnsignedIntValidation($validator, 'restoredBy', true);
806
        
807
        return $validator;
808
    }
809
810
        
811
    /**
812
     * Returns an array that maps the column names of the database
813
     * table to the corresponding property names of the model.
814
     * 
815
     * @returns array The array mapping the column names to the property names
816
     */
817 1
    public function columnMap(): array
818
    {
819 1
        return [
820 1
            'id' => 'id',
821 1
            'user_id' => 'userId',
822 1
            'provider' => 'provider',
823 1
            'provider_uuid' => 'providerUuid',
824 1
            'access_token' => 'accessToken',
825 1
            'refresh_token' => 'refreshToken',
826 1
            'email' => 'email',
827 1
            'name' => 'name',
828 1
            'first_name' => 'firstName',
829 1
            'last_name' => 'lastName',
830 1
            'meta' => 'meta',
831 1
            'deleted' => 'deleted',
832 1
            'created_at' => 'createdAt',
833 1
            'created_by' => 'createdBy',
834 1
            'created_as' => 'createdAs',
835 1
            'updated_at' => 'updatedAt',
836 1
            'updated_by' => 'updatedBy',
837 1
            'updated_as' => 'updatedAs',
838 1
            'deleted_at' => 'deletedAt',
839 1
            'deleted_as' => 'deletedAs',
840 1
            'deleted_by' => 'deletedBy',
841 1
            'restored_at' => 'restoredAt',
842 1
            'restored_by' => 'restoredBy',
843 1
        ];
844
    }
845
}
846