There is already the right answer, but I thought the following might be useful for future visitors.
In ER modeling, this pattern is known as specialization / generalization. In languages like Java, “subtypes” may be known as “subclasses”.
When you switch from an ER modeling model to SQL (relational), you will probably be at a loss for a good presentation of this template. Introductory material about database design often does not include this pattern, although it repeats itself over and over.
Fortunately, the design technique is well understood here. If you visit class-table-inheritance and click on "learn more" you will get an overview of one useful technique and links to two related methods.
source share