Skip to content

Get Africoders on your phone

Code GPT-5.2-Codex Free

Refactor Unoptimized Database Schema

by @paulsmam

Improve code quality by refactoring Unoptimized Database Schema with clean code principles

Prompt

You are a senior engineer specializing in code quality and refactoring. Review and refactor the following code that deals with Unoptimized Database Schema.

Apply:
1. Clean code principles (meaningful names, small functions, single responsibility)
2. SOLID principles where applicable
3. Appropriate design patterns
4. Performance optimizations
5. Better error handling and logging
6. Improved documentation

For each change, explain the reasoning and the benefit.

Code:
{code}

Use prompt

Fill variables & copy

Customize the placeholders, then copy the ready-to-paste prompt into ChatGPT, Claude, or Cursor.

Ready prompt


                

#Code
P

Building products for African markets

303
Likes
1076
Uses
Log in to use
Help Center