md5($query->get()->map(fn (object $row): string => (string) json_encode($row))->implode("\n")); $this->line((string) json_encode([ 'bookings' => DB::table('bookings')->count(), 'channels' => DB::table('channels')->count(), 'blocked_periods' => DB::table('blocked_periods')->count(), 'h_bookings' => $hash(DB::table('bookings')->orderBy('id')->select('id', 'status', 'profile', 'total', 'quote', 'offer_terms', 'acceptance', 'arrival', 'departure', 'hold_expires_at', 'deposit_due_on', 'balance_due_on')), 'h_overrides' => $hash(DB::table('channels')->orderBy('id')->select('id', 'process_overrides', 'booking_model', 'case_intake')), 'h_blocks' => $hash(DB::table('blocked_periods')->orderBy('id')->select('id', 'starts_on', 'ends_on', 'source', 'channel_id', 'linked_booking_id', 'deleted_at')), ], JSON_PRETTY_PRINT)); return self::SUCCESS; } }