BT San Technology

3 September 2026

CRUD and data relationships: designing a database from the business work

2 min read · Websites and web apps

Illustration: two people sorting cards with person, document and clock icons beside a laptop showing linked data tables
AI-generated illustration

Create, read, update and delete are only part of the business rules. Reference keys, relationships and integrity constraints. Changing a status is different from deleting history.

Implementation steps

  1. Pick the service request process
  2. Separate users, customers, requests and history entries
  3. Specify the relationships and the fields that must have a value
  4. Try the case of a customer who is deactivated but still has open work

Example deliverable

Deliverable: a data model with sample records that are related to each other

Benefits

Helps reduce duplicate data and sets the business rules from the start.

Limitations and cautions

A model that is too simple may not support the real history and conditions of the business.

Starting references

  • MDN — Client-server overview
  • PostgreSQL — Constraints

References

  1. MDN — Client-server overview (accessed 2026-11-21)
  2. PostgreSQL — Constraints (accessed 2026-11-21)

Add us on LINE

Scan with the LINE app on your phone

QR code to add LINE @Bankoos

LINE ID: @Bankoos

Open LINE on this computer