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