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\Core\Models;
9:
10: use Aurora\System\Classes\Model;
11:
12: /**
13: * The Core GroupUser class.
14: *
15: * @license https://www.gnu.org/licenses/agpl-3.0.html AGPL-3.0
16: * @license https://afterlogic.com/products/common-licensing Afterlogic Software License
17: * @copyright Copyright (c) 2023, Afterlogic Corp.
18: *
19: * @property int $Id Object primary key
20: * @property int $GroupId Group ID
21: * @property int $UserId User ID
22: */
23: class GroupUser extends Model
24: {
25: public $table = 'core_group_user';
26: protected $foreignModel = Group::class;
27: protected $foreignModelIdColumn = 'GroupId'; // Column that refers to an external table
28:
29: /**
30: * The attributes that are mass assignable.
31: *
32: * @var array
33: */
34: protected $fillable = [
35: 'Id',
36: 'GroupId',
37: 'UserId'
38: ];
39: }
40: