1: | <?php |
2: | /** |
3: | * This code is licensed under AGPLv3 license or Afterlogic Software License |
4: | * if commercial version of the product was purchased. |
5: | * For full statements of the licenses see LICENSE-AFTERLOGIC and LICENSE-AGPL3 files. |
6: | */ |
7: | |
8: | namespace Aurora\Modules\TwoFactorAuth\Models; |
9: | |
10: | use Aurora\System\Classes\Model; |
11: | use Aurora\Modules\Core\Models\User; |
12: | |
13: | /** |
14: | * Aurora\Modules\TwoFactorAuth\Models\WebAuthnKey |
15: | * |
16: | * @license https://www.gnu.org/licenses/agpl-3.0.html AGPL-3.0 |
17: | * @license https://afterlogic.com/products/common-licensing Afterlogic Software License |
18: | * @copyright Copyright (c) 2023, Afterlogic Corp. |
19: | * @package Api |
20: | * @property integer $Id |
21: | * @property integer $UserId |
22: | * @property string $Name |
23: | * @property string $KeyData |
24: | * @property integer $CreationDateTime |
25: | * @property integer $LastUsageDateTime |
26: | * @property \Illuminate\Support\Carbon|null $CreatedAt |
27: | * @property \Illuminate\Support\Carbon|null $UpdatedAt |
28: | * @property-read mixed $entity_id |
29: | * @method static int count(string $columns = '*') |
30: | * @method static \Illuminate\Database\Eloquent\Builder|\Aurora\Modules\TwoFactorAuth\Models\WebAuthnKey find(int|string $id, array|string $columns = ['*']) |
31: | * @method static \Illuminate\Database\Eloquent\Builder|\Aurora\Modules\TwoFactorAuth\Models\WebAuthnKey findOrFail(int|string $id, mixed $id, Closure|array|string $columns = ['*'], Closure $callback = null) |
32: | * @method static \Illuminate\Database\Eloquent\Builder|\Aurora\Modules\TwoFactorAuth\Models\WebAuthnKey first(array|string $columns = ['*']) |
33: | * @method static \Illuminate\Database\Eloquent\Builder|\Aurora\Modules\TwoFactorAuth\Models\WebAuthnKey firstWhere(Closure|string|array|\Illuminate\Database\Query\Expression $column, mixed $operator = null, mixed $value = null, string $boolean = 'and') |
34: | * @method static \Illuminate\Database\Eloquent\Builder|WebAuthnKey newModelQuery() |
35: | * @method static \Illuminate\Database\Eloquent\Builder|WebAuthnKey newQuery() |
36: | * @method static \Illuminate\Database\Eloquent\Builder|WebAuthnKey query() |
37: | * @method static \Illuminate\Database\Eloquent\Builder|\Aurora\Modules\TwoFactorAuth\Models\WebAuthnKey where(Closure|string|array|\Illuminate\Database\Query\Expression $column, mixed $operator = null, mixed $value = null, string $boolean = 'and') |
38: | * @method static \Illuminate\Database\Eloquent\Builder|WebAuthnKey whereCreatedAt($value) |
39: | * @method static \Illuminate\Database\Eloquent\Builder|WebAuthnKey whereCreationDateTime($value) |
40: | * @method static \Illuminate\Database\Eloquent\Builder|WebAuthnKey whereId($value) |
41: | * @method static \Illuminate\Database\Eloquent\Builder|\Aurora\Modules\TwoFactorAuth\Models\WebAuthnKey whereIn(string $column, mixed $values, string $boolean = 'and', bool $not = false) |
42: | * @method static \Illuminate\Database\Eloquent\Builder|WebAuthnKey whereKeyData($value) |
43: | * @method static \Illuminate\Database\Eloquent\Builder|WebAuthnKey whereLastUsageDateTime($value) |
44: | * @method static \Illuminate\Database\Eloquent\Builder|WebAuthnKey whereName($value) |
45: | * @method static \Illuminate\Database\Eloquent\Builder|WebAuthnKey whereUpdatedAt($value) |
46: | * @method static \Illuminate\Database\Eloquent\Builder|WebAuthnKey whereUserId($value) |
47: | * @mixin \Eloquent |
48: | */ |
49: | class WebAuthnKey extends Model |
50: | { |
51: | protected $table = 'security_web_authn_keys'; |
52: | protected $foreignModel = User::class; |
53: | protected $foreignModelIdColumn = 'UserId'; // Column that refers to an external table |
54: | |
55: | protected $fillable = [ |
56: | 'Id', |
57: | 'UserId', |
58: | 'Name', |
59: | 'KeyData', |
60: | 'CreationDateTime', |
61: | 'LastUsageDateTime' |
62: | ]; |
63: | } |
64: |