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: | /** |
9: | * Aurora\Modules\Mail\Models\SystemFolder |
10: | * |
11: | * @property integer $Id |
12: | * @property integer $IdAccount |
13: | * @property string $FolderFullName |
14: | * @property integer $Type |
15: | * @property \Illuminate\Support\Carbon|null $CreatedAt |
16: | * @property \Illuminate\Support\Carbon|null $UpdatedAt |
17: | * @property-read mixed $entity_id |
18: | * @method static int count(string $columns = '*') |
19: | * @method static \Illuminate\Database\Eloquent\Builder|\Aurora\Modules\Mail\Models\SystemFolder find(int|string $id, array|string $columns = ['*']) |
20: | * @method static \Illuminate\Database\Eloquent\Builder|\Aurora\Modules\Mail\Models\SystemFolder findOrFail(int|string $id, mixed $id, Closure|array|string $columns = ['*'], Closure $callback = null) |
21: | * @method static \Illuminate\Database\Eloquent\Builder|\Aurora\Modules\Mail\Models\SystemFolder first(array|string $columns = ['*']) |
22: | * @method static \Illuminate\Database\Eloquent\Builder|\Aurora\Modules\Mail\Models\SystemFolder firstWhere(Closure|string|array|\Illuminate\Database\Query\Expression $column, mixed $operator = null, mixed $value = null, string $boolean = 'and') |
23: | * @method static \Illuminate\Database\Eloquent\Builder|SystemFolder newModelQuery() |
24: | * @method static \Illuminate\Database\Eloquent\Builder|SystemFolder newQuery() |
25: | * @method static \Illuminate\Database\Eloquent\Builder|SystemFolder query() |
26: | * @method static \Illuminate\Database\Eloquent\Builder|\Aurora\Modules\Mail\Models\SystemFolder where(Closure|string|array|\Illuminate\Database\Query\Expression $column, mixed $operator = null, mixed $value = null, string $boolean = 'and') |
27: | * @method static \Illuminate\Database\Eloquent\Builder|SystemFolder whereCreatedAt($value) |
28: | * @method static \Illuminate\Database\Eloquent\Builder|SystemFolder whereFolderFullName($value) |
29: | * @method static \Illuminate\Database\Eloquent\Builder|SystemFolder whereId($value) |
30: | * @method static \Illuminate\Database\Eloquent\Builder|SystemFolder whereIdAccount($value) |
31: | * @method static \Illuminate\Database\Eloquent\Builder|\Aurora\Modules\Mail\Models\SystemFolder whereIn(string $column, mixed $values, string $boolean = 'and', bool $not = false) |
32: | * @method static \Illuminate\Database\Eloquent\Builder|SystemFolder whereType($value) |
33: | * @method static \Illuminate\Database\Eloquent\Builder|SystemFolder whereUpdatedAt($value) |
34: | * @mixin \Eloquent |
35: | */ |
36: | class SystemFolder extends Model |
37: | { |
38: | protected $table = 'mail_system_folders'; |
39: | |
40: | protected $foreignModel = MailAccount::class; |
41: | protected $foreignModelIdColumn = 'IdAccount'; // Column that refers to an external table |
42: | |
43: | /** |
44: | * The attributes that are mass assignable. |
45: | * |
46: | * @var array |
47: | */ |
48: | protected $fillable = [ |
49: | 'Id', |
50: | 'IdAccount', |
51: | 'FolderFullName', |
52: | 'Type' |
53: | ]; |
54: | |
55: | /** |
56: | * The attributes that should be hidden for arrays. |
57: | * |
58: | * @var array |
59: | */ |
60: | protected $hidden = [ |
61: | ]; |
62: | |
63: | protected $casts = [ |
64: | ]; |
65: | |
66: | protected $attributes = [ |
67: | ]; |
68: | } |
69: |