← Back to Studio Notes

Database Design for Custom Software: A Practical Business Guide

Learn how database design affects custom software quality, including data models, relationships, permissions, reporting, performance, security, and scalability.

KEHEM / Studio Notes
  KEHEM

A database is not just a place where software stores information.

It is the structure behind the system.

When the database is designed well, the software feels organized, reliable, and easier to grow. Reports make sense. Permissions are clearer. Workflows are easier to manage. Future features are easier to add.

When the database is designed poorly, the software becomes fragile. Data is duplicated. Reports are unreliable. Features become harder to build. Small changes create unexpected problems.

For custom business software, database design is one of the most important technical decisions.

What Is Database Design?

Database design is the process of planning how software stores, organizes, connects, and retrieves data.

It defines:

  • What data the system needs
  • How records relate to each other
  • Which fields are required
  • How users access information
  • How reports are generated
  • How data stays accurate
  • How the system can grow over time

Good database design makes the software easier to use, maintain, and improve.

Why Database Design Matters for Business Software

Custom software is usually built around real business workflows.

That means the database often needs to represent customers, users, requests, projects, payments, files, reports, approvals, statuses, and activity history.

If that structure is unclear, the software becomes harder to trust.

Good database design supports:

  • Accurate reporting
  • Faster dashboards
  • Clear user permissions
  • Easier search and filtering
  • Better workflow tracking
  • Fewer data errors
  • Easier future development
  • Better long-term maintenance

The interface is what users see.

The database is what keeps the system stable underneath.

1. Start With the Business Workflow

Database design should begin with the business process, not the table structure.

Before creating records, understand how the business works.

Ask:

  • What process is the software supporting?
  • Who uses the system?
  • What information do they create?
  • What information do they update?
  • What statuses are needed?
  • What reports are required?
  • What approvals happen?
  • What records need history?

The database should reflect the real workflow.

2. Identify the Main Entities

Entities are the main types of records in the system.

For business software, common entities include:

  • Users
  • Clients
  • Projects
  • Tasks
  • Requests
  • Files
  • Payments
  • Comments
  • Notifications
  • Reports
  • Teams
  • Roles

Each entity becomes part of the data model.

For example, a client portal may include clients, users, requests, files, messages, and status updates.

3. Define Relationships

Most records are connected.

Examples:

  • A client can have many projects.
  • A project can have many tasks.
  • A task can have many comments.
  • A user can belong to a team.
  • A request can have many files.
  • A payment belongs to an invoice.

These relationships should be planned carefully.

Good relationships make the system easier to query, report on, and maintain.

4. Avoid Duplicate Data

Duplicate data creates confusion.

If the same information is stored in multiple places, it can become inconsistent.

For example, if a client email is stored separately in five different tables, one update may not reach every place.

Good database design reduces unnecessary duplication.

This helps keep data accurate and easier to maintain.

Distinguish accidental duplication from deliberate historical snapshots. An invoice may need to retain the billing name and address used when it was issued, even after the client updates their profile. Document which values are current references and which preserve a past transaction.

5. Use Clear Statuses

Business software often depends on statuses.

Statuses help users understand where something is in the workflow.

Examples:

  • New
  • In review
  • In progress
  • Waiting for client
  • Approved
  • Completed
  • Cancelled

Statuses should be consistent and meaningful. Define permitted transitions as well as allowed values: who can approve a request, whether a completed request can reopen, and what must be recorded when it does. A list of status names alone does not enforce the workflow.

Too many statuses can confuse users. Too few can hide important workflow details.

6. Plan User Roles and Permissions

Database design must support access control.

Different users may need different access.

Examples:

  • Administrators can manage only the records and actions their role explicitly permits.
  • Manager can view team reports.
  • Staff can update assigned tasks.
  • Client can view only their own requests.
  • Viewer can read but not edit.

Permissions should be planned early because they affect the data model, API, and interface.

For client portals and SaaS products, permission design is especially important. Storing a role or client ID does not enforce access by itself. Check authorization in the backend for every request, including search, exports and file downloads, and test that one client cannot retrieve another client's records.

7. Plan for Reporting

Many businesses build custom software because they need better reporting.

Reports depend on good data structure.

Before building, define the questions the business needs to answer.

Examples:

  • How many requests are open?
  • Which projects are delayed?
  • Which staff members are overloaded?
  • What revenue came in this month?
  • Which clients have pending approvals?
  • How many tasks were completed last week?

If reporting needs are known early, the database can be designed to support them.

8. Use Audit History Where Needed

Some systems need to track changes over time.

Audit history may record:

  • Who changed a record
  • What changed
  • When it changed
  • Previous value
  • New value
  • Related action

This is useful for approvals, financial records, client requests, sensitive data, and admin activity.

Not every system needs detailed audit logs, but important workflows often do.

9. Plan Search and Filtering

Users often need to find records quickly.

Search and filtering may depend on:

  • Client name
  • Status
  • Date range
  • Assigned staff
  • Project type
  • Priority
  • Payment status
  • Category
  • Region

If search and filters are important, the database should be structured and indexed properly.

A system that stores data but makes it hard to find is not useful enough.

10. Consider Performance Early

Performance problems often appear when data grows.

A dashboard may work fine with 100 records but become slow with 100,000 records.

Performance planning may include:

  • Indexes
  • Pagination
  • Query optimization
  • Caching
  • Archive strategy
  • Background jobs
  • Reporting tables
  • Efficient relationships

The goal is not to over-optimize early.

The goal is to avoid obvious future problems.

Test representative queries with realistic data volumes. Add indexes for demonstrated access patterns and measure the effect; indexes also use storage and add write overhead. See the PostgreSQL indexing guide. A cache or background worker cannot compensate for an incorrect data model.

11. Think About Data Validation

Data should be clean.

Validation helps prevent incomplete, incorrect, or unsafe data from entering the system.

Examples:

  • Email must be valid.
  • Required fields cannot be empty.
  • Date must be in a valid format.
  • Status must match allowed values.
  • File size must stay within limits.
  • Business values must satisfy the applicable rules, such as a quantity being non-negative.

Validation should happen in the interface and backend.

The database should support data integrity as well. Use primary keys for identity, foreign keys for relationships, unique constraints for values that must not repeat, and suitable NOT NULL and CHECK constraints. These complement application validation and can catch conflicting concurrent writes.

For example, a request must reference an existing project, and a reference number might need to be unique within one client rather than across every client. Define deletion behaviour deliberately so removing a parent record does not unexpectedly erase history. PostgreSQL documents these constraint types. Authorization is a separate control; valid input does not imply permission to access a record.

12. Plan File Storage Separately

Files are often better stored outside the main database.

The database usually stores file information, while the actual file is stored in a file storage system.

File records may include:

  • File name
  • File type
  • File size
  • Upload date
  • Uploaded by
  • Related project or request
  • Access permissions
  • Private storage key or object identifier

This keeps the system more manageable. Keep private files private, check permission before issuing download access, and generate temporary links when needed rather than storing expiring download URLs as permanent identifiers.

13. Data Migration

If the business already uses spreadsheets or old software, data may need to be imported.

Data migration should be planned early.

Consider:

  • What data needs to move?
  • Is the old data clean?
  • Are fields consistent?
  • Are duplicates present?
  • What format is available?
  • What should be archived?
  • What should be ignored?

Data migration can become time-consuming if the source data is messy.

14. Backup and Recovery

Business software should have a backup plan.

A database may contain important operational, customer, or financial information.

Backup planning should include:

  • Backup frequency
  • Backup storage
  • Restore process
  • Access control
  • Retention period
  • Testing restore ability

A backup is only useful if it can be restored when needed.

Agree how much recent data loss is tolerable and how quickly the service must recover. Choose backups and, where required, point-in-time recovery around those objectives. Test restoration into an isolated environment and include uploaded files, configuration and access to required encryption keys in the recovery plan. See PostgreSQL backup and restore documentation.

15. Security and Privacy

Database security is essential.

Important areas include:

  • Access control
  • Secure credentials
  • Encryption where needed
  • Data minimization
  • Backup security
  • Audit logs
  • Sensitive data handling
  • Applicable privacy requirements, documented retention rules and deletion procedures

Security should be part of the database design, not added after launch.

Simple Database Design Example

For a client portal, the database may include:

  • Users
  • Clients
  • Projects
  • Requests
  • Files
  • Comments
  • Status updates
  • Notifications

Relationships may include:

  • One client has many users.
  • One client has many projects.
  • One project has many requests.
  • One request has many files.
  • One request has many comments.
  • One user can create many comments.

This structure can support client access, file sharing, project updates and request tracking when the associated rules are implemented. If a user can work with several clients, use a membership relationship with an explicit role rather than assuming one user always belongs to one client. Test that a file or comment cannot be attached to a request in another client's account.

Custom Database Design: What It Costs, and Why It Is Priced Separately

Custom database design rarely appears as a line item, which makes it feel free. It is not. It is either done deliberately at the start, or absorbed into development later — when changing a structure means migrating live data.

Request a scoped estimate rather than relying on a universal price range. The main work packages are:

Work packageDeliverables to confirm
New application modelEntity relationships, field definitions, keys, constraints and deletion rules
Existing-data migrationField mapping, cleanup rules, test import, reconciliation and rollback plan
Multi-tenant or reporting designTenant boundaries, permission tests, key report queries and performance checks

Ask whether implementation, documentation, migration rehearsals and post-launch support are included. Existing data quality, integrations, required availability and reporting complexity can change the effort substantially.

Two important cost factors are:

  • Migration. Moving a decade of spreadsheets into a normalised schema means deciding what to do with duplicates, missing references and inconsistent formatting — and then deciding again when you find the third date format.
  • Reporting requirements. A structure that only has to store data is straightforward. One that has to answer "revenue by region by month for the last three years, live" needs a different shape, and usually an indexing strategy to go with it.

Be sceptical of any project where the data structure gets decided in week one by whoever happens to be free. That is how systems reach their third year with a table called data_old_final2.

Common Database Design Mistakes

Avoid these mistakes:

  • Starting without understanding the workflow
  • Storing duplicate data everywhere
  • Ignoring user roles
  • Not planning reports
  • Using unclear statuses
  • Forgetting audit history
  • Not validating data
  • Designing only for current record volume
  • Ignoring search and filters
  • Treating files like normal text records
  • Not planning backups

These mistakes can make the software harder to maintain later.

Database Design Checklist

Ask for an entity-relationship diagram and a data dictionary that explains each field, its type, meaning, owner and allowed values. Review them against real examples with the people who run the workflow.

Before building custom software, ask:

  • What are the main entities?
  • How do records relate to each other?
  • What fields are required?
  • What statuses are needed?
  • What user roles exist?
  • What permissions are required?
  • What reports are needed?
  • What data needs search and filtering?
  • Is audit history needed?
  • Will files be uploaded?
  • Is data migration required?
  • What security rules apply?
  • What backup plan is needed?

Clear answers create a stronger technical foundation.

How KEHEM IT Plans Database Design

KEHEM IT designs custom software around the business workflow first.

We look at users, data, permissions, reports, dashboards, files, integrations, and future growth before development begins. This helps create software that feels clear on the surface and stable underneath.

Good database design is invisible when it works well.

The system simply feels reliable.

Frequently Asked Questions

What is custom database design?

It is the process of defining how one specific business's information will be stored: the tables, the fields, how records relate, what rules are enforced, who can see what, and how it all performs as data grows. It is custom because the structure follows your workflow rather than a generic template's assumptions about it.

How much does custom database design cost?

The cost depends on the scope, existing data, integrations, tenant model and reporting needs. Request an estimate against named deliverables and separate design, implementation, migration and ongoing support. Migration does not have a fixed multiplier.

Can you redesign an existing database without losing data?

A controlled migration can reduce the risk, but no process makes data loss impossible. Back up and test restoration first, rehearse transformations on a copy, compare counts and business totals, and validate permissions and critical workflows. Plan how writes during migration are captured or paused, define rollback conditions, and obtain sign-off before cutover. The approach depends on downtime tolerance and application complexity.

How many tables should a custom system have?

There is no target number, and anyone quoting one is guessing. A focused internal tool may need twelve; a multi-tenant platform may need a hundred. The measure is whether each table has one clear job and whether the relationships match how the business actually works.

Should we stay on spreadsheets instead?

Sometimes yes — if the data is small, edited by one person, and rarely shared, a spreadsheet is genuinely the right tool. Multiple editors alone do not establish the need for a database: spreadsheet platforms support collaboration and other controls. Compare those capabilities with your actual record-level access, workflow, integration and reporting requirements before replacing the system. Our guide on when to replace spreadsheets with custom software covers where that line falls.

Final Thoughts

Database design shapes the long-term quality of custom software.

It affects reporting, permissions, performance, security, maintenance, and future development.

A polished interface may impress users at first, but a strong database keeps the system useful over time.

If your business is building custom software, do not treat the database as an afterthought.

It is the foundation the system will stand on.

Related reading: PostgreSQL vs MySQL is the engine decision that sits above this one; database indexing and query optimisation is how the design performs under load; and multi-tenant SaaS architecture covers the tenancy model if you are building a product. Build Reliable Custom Software

Or Have Us Review the Data Model

Have a project in mind?

KEHEM designs and builds thoughtful websites, SaaS products, and business systems.

Talk to KEHEMExplore Services