'datetime', 'flipped_off_at' => 'datetime', 'active' => 'boolean', ]; } public static function currentlyActive(): ?self { return static::query()->where('active', true)->orderByDesc('flipped_on_at')->first(); } }