CREATE TABLE users (username text, email text);
CREATE TABLE simple_users () INHERITS (users);
CREATE TABLE users_with_password (password text) INHERITS (users);
Our three tables look like this:
| Column | Type |
|---|---|
| username | text |
| text |
| Column | Type |
|---|---|
| username | text |
| text |
| Column | Type |
|---|---|
| username | text |
| text | |
| password | text |