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: * @license https://www.gnu.org/licenses/agpl-3.0.html AGPL-3.0
15: * @license https://afterlogic.com/products/common-licensing Afterlogic Software License
16: * @copyright Copyright (c) 2023, Afterlogic Corp.
17: *
18: * @package Api
19: */
20: class WebAuthnKey extends Model
21: {
22: protected $table = 'security_web_authn_keys';
23: protected $foreignModel = User::class;
24: protected $foreignModelIdColumn = 'UserId'; // Column that refers to an external table
25:
26: protected $fillable = [
27: 'Id',
28: 'UserId',
29: 'Name',
30: 'KeyData',
31: 'CreationDateTime',
32: 'LastUsageDateTime'
33: ];
34: }
35: