| 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\RefreshFolder |
| 10: | * |
| 11: | * @property integer $Id |
| 12: | * @property integer $IdAccount |
| 13: | * @property string $FolderFullName |
| 14: | * @property boolean $AlwaysRefresh |
| 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\RefreshFolder find(int|string $id, array|string $columns = ['*']) |
| 20: | * @method static \Illuminate\Database\Eloquent\Builder|\Aurora\Modules\Mail\Models\RefreshFolder findOrFail(int|string $id, mixed $id, Closure|array|string $columns = ['*'], Closure $callback = null) |
| 21: | * @method static \Illuminate\Database\Eloquent\Builder|\Aurora\Modules\Mail\Models\RefreshFolder first(array|string $columns = ['*']) |
| 22: | * @method static \Illuminate\Database\Eloquent\Builder|\Aurora\Modules\Mail\Models\RefreshFolder 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|RefreshFolder newModelQuery() |
| 24: | * @method static \Illuminate\Database\Eloquent\Builder|RefreshFolder newQuery() |
| 25: | * @method static \Illuminate\Database\Eloquent\Builder|RefreshFolder query() |
| 26: | * @method static \Illuminate\Database\Eloquent\Builder|\Aurora\Modules\Mail\Models\RefreshFolder 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|RefreshFolder whereAlwaysRefresh($value) |
| 28: | * @method static \Illuminate\Database\Eloquent\Builder|RefreshFolder whereCreatedAt($value) |
| 29: | * @method static \Illuminate\Database\Eloquent\Builder|RefreshFolder whereFolderFullName($value) |
| 30: | * @method static \Illuminate\Database\Eloquent\Builder|RefreshFolder whereId($value) |
| 31: | * @method static \Illuminate\Database\Eloquent\Builder|RefreshFolder whereIdAccount($value) |
| 32: | * @method static \Illuminate\Database\Eloquent\Builder|\Aurora\Modules\Mail\Models\RefreshFolder whereIn(string $column, mixed $values, string $boolean = 'and', bool $not = false) |
| 33: | * @method static \Illuminate\Database\Eloquent\Builder|RefreshFolder whereUpdatedAt($value) |
| 34: | * @mixin \Eloquent |
| 35: | */ |
| 36: | class RefreshFolder extends Model |
| 37: | { |
| 38: | protected $table = 'mail_refresh_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: | 'AlwaysRefresh' => 'boolean' |
| 65: | ]; |
| 66: | |
| 67: | protected $attributes = [ |
| 68: | ]; |
| 69: | } |
| 70: |