1: <?php
2:
3: namespace Aurora\Modules\Mail\Models;
4:
5: use Aurora\System\Classes\Model;
6: use Aurora\Modules\Mail\Models\MailAccount;
7:
8: class RefreshFolder extends Model
9: {
10: protected $table = 'mail_refresh_folders';
11:
12: protected $foreignModel = MailAccount::class;
13: protected $foreignModelIdColumn = 'IdAccount'; // Column that refers to an external table
14:
15: /**
16: * The attributes that are mass assignable.
17: *
18: * @var array
19: */
20: protected $fillable = [
21: 'Id',
22: 'IdAccount',
23: 'FolderFullName',
24: 'Type'
25: ];
26:
27: /**
28: * The attributes that should be hidden for arrays.
29: *
30: * @var array
31: */
32: protected $hidden = [
33: ];
34:
35: protected $casts = [
36: 'AlwaysRefresh' => 'boolean'
37: ];
38:
39: protected $attributes = [
40: ];
41: }
42: