Database development in 5 steps

Many companies feel the need for their own database. However, many are unsure of exactly how that will work. Therefore, the following 5 steps:

Step 1: Consulting and defining the data schema

In this step, the purpose and objective of the database are worked out, and the data schema—i.e., the structure of the database with table and column names—is derived from it. The theoretical basis of the data schema is the Entity-Relationship model: an entity is a "thing," for example, a customer, an order, or an item in an invoice. The "Relationship" is then a statement such as "A customer can have multiple orders" or "Each invoice can have multiple invoice items."

Step 2: Implementing the data schema in SQL

From the developed data schema, one can build 1:1 SQL code. In addition to the tables, which consist of columns, indexes are also created to speed up access to the tables via specific columns. An index can be compared to a sorted dictionary in which the correct database entry can be found very quickly thanks to the sorting. More on this in the Article on Multi-Indexes. In addition, constraints are established. A constraint might look like this: a customer may no longer be deleted if an invoice has already been issued to them.

Step 3: Defining an API

The basic operations on a database are: Read, Insert, Update, and Delete. However, it is not always correct for all users of the database to have these rights on all data. In a security design, it is determined which user has which rights on which data. Based on these rights, so-called operations are defined that the user is then allowed to perform. An example of an operation is: "add customer record". The set of all operations then results in the API (Application Programming Interface). The API can also be accessible over the network later, which allows both authorized machines and authorized humans to work with the data from the database. More on this in the article about JSON.

Step 4: Building a user interface for humans

The API is already perfectly suited for machine operation. For example, you can connect LED walls remotely that load content from the database. You can connect production machines that retrieve their order assignments from the database and transmit the production progress back. However, humans do not want to enter commands like "delete record with ID 35" textually, but would rather click a delete button. A designer who is familiar with ergonomics and design laws can plan the perfect user interface for you, which is then implemented by developers.

Step 5: Introduction and further development

Usually, the true potential of software only reveals itself during use. Adjustments and improvements based on experience, overlooked special cases, or changes in law are not a technical problem. However, it should be ensured that the development team is still available or a replacement exists.
Категории