I am trying to make postgres tables work like an object hierarchy. As an example I have done this.
pgsql-general by date:
Соглашаюсь с условиями обработки персональных данных