The car web portal database

At this stage, one can convert the logical model of the car web portal presented in Chapter 01, Relational Databases, to a physical model. To help the developer to create a table, one can follow this minimal checklist:

  • What is the primary key?
  • What is the default value for each column?
  • What is the type of each column?
  • What are the constraints on each column or set of columns?
  • Are permissions set correctly on tables, sequences, and schemas?
  • Are foreign keys specified with the proper actions?
  • What is the data life cycle?
  • What are the operations allowed on the data?

To create the car web portal schema, the formal relational model will not be applied strictly. Also, surrogate keys will be used instead of natural ...

Get Learning PostgreSQL 10 - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.