Database Schema Design: Patterns for Scalable Applications
Good schema design prevents months of painful migrations later. Normalise, Then Denormalise Intentionally Start normalised. Add materialised views or denormalised columns only after profiling. Soft Deletes Audit Table Pattern UUIDs vs Serial IDs UUIDs: better for distributed systems, no guessable IDs. Serial: simpler joins, smaller indexes. Conclusion Design for reads first. Add constraints aggressively. Use soft deletes for anything user-facing.