1: <?php
2:
3: namespace Aurora\Modules\Contacts\Models;
4:
5: use Aurora\System\Classes\Model;
6: use Aurora\Modules\Core\Models\User;
7:
8: class CTag extends Model
9: {
10: protected $table = 'contacts_ctags';
11:
12: protected $foreignModel = User::class;
13: protected $foreignModelIdColumn = 'UserId'; // Column that refers to an external table
14:
15: protected $fillable = [
16: 'Id',
17: 'UserId',
18: 'Storage',
19: 'CTag'
20: ];
21: }
22: