1: | <?php |
2: | /** |
3: | * This code is licensed under Afterlogic Software License. |
4: | * For full statements of the license see LICENSE file. |
5: | */ |
6: | |
7: | namespace Aurora\Modules\ActivityHistory\Models; |
8: | |
9: | use Aurora\Modules\Core\Models\User; |
10: | |
11: | /** |
12: | * @license https://afterlogic.com/products/common-licensing Afterlogic Software License |
13: | * @copyright Copyright (c) 2019, Afterlogic Corp. |
14: | * |
15: | * @property int $Id |
16: | * @property int $UserId |
17: | * @property string $ResourceType |
18: | * @property string $ResourceId |
19: | * @property string $IpAddress |
20: | * @property string $Action |
21: | * @property int $Timestamp |
22: | * @property string $GuestPublicId |
23: | */ |
24: | class ActivityHistory extends \Aurora\System\Classes\Model |
25: | { |
26: | protected $table = 'core_activity_history'; |
27: | |
28: | protected $foreignModel = User::class; |
29: | protected $foreignModelIdColumn = 'UserId'; // Column that refers to an external table |
30: | |
31: | protected $fillable = [ |
32: | 'Id', |
33: | 'UserId', |
34: | 'ResourceType', |
35: | 'ResourceId', |
36: | 'IpAddress', |
37: | 'Action', |
38: | 'Timestamp', |
39: | 'GuestPublicId' |
40: | ]; |
41: | } |
42: |