'array', 'pass_threshold' => 'decimal:2', 'max_attempts' => 'integer', 'is_active' => 'boolean', 'options' => 'array', ]; public function scopeForTenant($query, $tenantId) { return $query->where('tenant_id', $tenantId); } public function scopeActive($query) { return $query->where('is_active', true); } public function getOption(string $key, mixed $default = null): mixed { $options = $this->options ?? []; return $options[$key] ?? $default; } public function setOption(string $key, mixed $value): void { $options = $this->options ?? []; $options[$key] = $value; $this->options = $options; } }