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\Contacts\Models;
9:
10: /**
11: * @license https://www.gnu.org/licenses/agpl-3.0.html AGPL-3.0
12: * @license https://afterlogic.com/products/common-licensing Afterlogic Software License
13: * @copyright Copyright (c) 2023, Afterlogic Corp.
14: *
15: * @package Models
16: * @subpackage GroupEvent
17: *
18: * @property string $GroupUUID
19: * @property string $ContactUUID
20: */
21:
22: use Aurora\System\Classes\Model;
23: use Aurora\Modules\Contacts\Models\Group;
24:
25: class GroupContact extends Model
26: {
27: public $table = 'contacts_group_contact';
28: protected $foreignModel = Group::class;
29: protected $foreignModelIdColumn = 'GroupId'; // Column that refers to an external table
30:
31: protected $fillable = [
32: 'Id',
33: 'UUID',
34: 'GroupId',
35: 'ContactId'
36: ];
37: }
38: